|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.importexport.resource.ServletContextResourceAccessor
public class ServletContextResourceAccessor
An implementation of ResourceAccessor
that gets resources via the servlet context.
Constructor Summary | |
---|---|
ServletContextResourceAccessor()
|
Method Summary | |
---|---|
java.io.InputStream |
getResource(java.lang.String resourcePath)
Returns an InputStream for reading a resource. |
void |
setServletContext(javax.servlet.ServletContext servletContext)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServletContextResourceAccessor()
Method Detail |
---|
public java.io.InputStream getResource(java.lang.String resourcePath)
ResourceAccessor
getResource
in interface ResourceAccessor
resourcePath
- the relative URL path of the resource. For example: /images/foo.png
InputStream
for reading the resourcepublic void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext
in interface org.springframework.web.context.ServletContextAware
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |