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

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

public class FSSystemResourceUtilImpl
extends Object
implements SystemResourceUtil

FSSystemResourceUtilImpl

Locates resources relative to the root file system path

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

Field Summary
private  String systemRoot
           
 
Constructor Summary
FSSystemResourceUtilImpl(String systemRoot)
           
 
Method Summary
private  boolean beginsWithSeperator(String path)
           
private  boolean endsWithSeperator(String path)
           
 String getSystemRoot()
           
 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

systemRoot

private String systemRoot
Constructor Detail

FSSystemResourceUtilImpl

public FSSystemResourceUtilImpl(String systemRoot)
                         throws IOException
Parameters:
systemRoot - The root from which all resource URLs will be constructed.
Throws:
IOException
Method Detail

getSystemRoot

public String getSystemRoot()
Specified by:
getSystemRoot in interface SystemResourceUtil
Returns:
The root from were this system is running
See Also:
SystemResourceUtil.getSystemRoot()

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)

endsWithSeperator

private boolean endsWithSeperator(String path)

beginsWithSeperator

private boolean beginsWithSeperator(String path)


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