Skip navigation links 
 
oracle.stellent.wcm.javaee.utils
Class ServletContextResource
java.lang.Object
   oracle.stellent.wcm.common.io.resource.Resource
oracle.stellent.wcm.common.io.resource.Resource
       oracle.stellent.wcm.javaee.utils.ServletContextResource
oracle.stellent.wcm.javaee.utils.ServletContextResource
- 
public class ServletContextResource
 
- extends Resource
Loads a path from the servlet context
 
| Constructor Summary | 
| ServletContextResource(javax.servlet.ServletContext servletContext, java.lang.String path)
 | 
  
 
 
| Methods inherited from class oracle.stellent.wcm.common.io.resource.Resource | 
| getPath | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
ServletContextResource
public ServletContextResource(javax.servlet.ServletContext servletContext,
                              java.lang.String path)
getServletContext
public javax.servlet.ServletContext getServletContext()
exists
public boolean exists()
- 
- Overrides:
- existsin class- Resource
 
- 
- Returns:
- true if the resource exists
 
getInputStream
public java.io.InputStream getInputStream()
                                   throws java.io.IOException
- 
- Specified by:
- getInputStreamin class- Resource
 
- 
- Returns:
- the inputstream to this resource
- Throws:
- java.io.IOException
 
getExternalPath
public java.lang.String getExternalPath()
- 
- Overrides:
- getExternalPathin class- Resource
 
- 
- Returns:
- an external form of the path
 
getLastModified
public long getLastModified()
- 
- Overrides:
- getLastModifiedin class- Resource
 
- 
- Returns:
- the time when this resource was last modified, -1 if it cannot be determined
 
Skip navigation links 
 
Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.