org.springframework.core.io
Class FileSystemResourceLoader.FileSystemContextResource

java.lang.Object
  extended by org.springframework.core.io.AbstractResource
      extended by org.springframework.core.io.FileSystemResource
          extended by org.springframework.core.io.FileSystemResourceLoader.FileSystemContextResource
All Implemented Interfaces:
ContextResource, InputStreamSource, Resource
Enclosing class:
FileSystemResourceLoader

private static class FileSystemResourceLoader.FileSystemContextResource
extends FileSystemResource
implements ContextResource

FileSystemResource that explicitly expresses a context-relative path through implementing the ContextResource interface.


Constructor Summary
FileSystemResourceLoader.FileSystemContextResource(java.lang.String path)
           
 
Method Summary
 java.lang.String getPathWithinContext()
          Return the path within the enclosing 'context'.
 
Methods inherited from class org.springframework.core.io.FileSystemResource
createRelative, equals, exists, getDescription, getFile, getFilename, getInputStream, getPath, getURI, getURL, hashCode, isReadable
 
Methods inherited from class org.springframework.core.io.AbstractResource
contentLength, getFileForLastModifiedCheck, isOpen, lastModified, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.core.io.Resource
contentLength, createRelative, exists, getDescription, getFile, getFilename, getURI, getURL, isOpen, isReadable, lastModified
 
Methods inherited from interface org.springframework.core.io.InputStreamSource
getInputStream
 

Constructor Detail

FileSystemResourceLoader.FileSystemContextResource

public FileSystemResourceLoader.FileSystemContextResource(java.lang.String path)
Method Detail

getPathWithinContext

public java.lang.String getPathWithinContext()
Description copied from interface: ContextResource
Return the path within the enclosing 'context'.

This is typically path relative to a context-specific root directory, e.g. a ServletContext root or a PortletContext root.

Specified by:
getPathWithinContext in interface ContextResource