org.apache.jetspeed.components.util.system
Class ClassLoaderSystemResourceUtilImpl

java.lang.Object
  extended by org.apache.jetspeed.components.util.system.ClassLoaderSystemResourceUtilImpl
All Implemented Interfaces:
SystemResourceUtil

public class ClassLoaderSystemResourceUtilImpl
extends Object
implements SystemResourceUtil

ClassLoaderSystemResourceUtilImpl

Version:
$Id: ClassLoaderSystemResourceUtilImpl.java 516448 2007-03-09 16:25:47Z ate $
Author:
Scott T. Weaver

Field Summary
private  ClassLoader cl
           
 
Constructor Summary
ClassLoaderSystemResourceUtilImpl(ClassLoader cl)
           
 
Method Summary
private  String convertFSSeperatorToSlash(String path)
           
 String getSystemRoot()
          For this implementation, always returns "/"
 URL getURL(String relativePath)
          Creates a fully qualified path to the relativePath as a URL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cl

private ClassLoader cl
Constructor Detail

ClassLoaderSystemResourceUtilImpl

public ClassLoaderSystemResourceUtilImpl(ClassLoader cl)
Parameters:
cl - ClassLoader that will be used to locate a resource
Method Detail

getSystemRoot

public String getSystemRoot()
For this implementation, always returns "/"

Specified by:
getSystemRoot in interface SystemResourceUtil
Returns:
The root from were this system is running

getURL

public URL getURL(String relativePath)
           throws MalformedURLException
Description copied from interface: SystemResourceUtil
Creates a fully qualified path to the relativePath as a URL

Specified by:
getURL in interface SystemResourceUtil
Returns:
Throws:
MalformedURLException
See Also:
SystemResourceUtil.getURL(java.lang.String)

convertFSSeperatorToSlash

private String convertFSSeperatorToSlash(String path)


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.