| java.lang.Object org.springframework.core.io.AbstractResource org.springframework.web.portlet.context.PortletContextResource
PortletContextResource | public class PortletContextResource extends AbstractResource (Code) | | Resource implementation for PortletContext resources,
interpreting relative paths within the portlet application root.
Always supports stream access, but only allows java.io.File
access when the portlet application archive is expanded.
Always supports resolution as URL.
author: Juergen Hoeller author: John A. Lewis since: 2.0 See Also: javax.portlet.PortletContext.getResourceAsStream See Also: javax.portlet.PortletContext.getRealPath |
PortletContextResource | public PortletContextResource(PortletContext portletContext, String path)(Code) | | Create a new PortletContextResource.
The Portlet spec requires that resource paths start with a slash,
even if many containers accept paths without leading slash too.
Consequently, the given path will be prepended with a slash if it
doesn't already start with one.
Parameters: portletContext - the PortletContext to load from Parameters: path - the path of the resource |
getFile | public File getFile() throws IOException(Code) | | This implementation delegates to PortletContext.getRealPath,
but throws a FileNotFoundException if not found or not resolvable.
See Also: javax.portlet.PortletContext.getRealPath |
getInputStream | public InputStream getInputStream() throws IOException(Code) | | This implementation delegates to PortletContext.getResourceAsStream,
but throws a FileNotFoundException if not found.
See Also: javax.portlet.PortletContext.getResourceAsStream |
getPath | public String getPath()(Code) | | Return the path for this resource.
|
getPortletContext | public PortletContext getPortletContext()(Code) | | Return the PortletContext for this resource.
|
hashCode | public int hashCode()(Code) | | |
|
|