public class ServletResourceResolver extends ResourceResolver
Modifier and Type | Field and Description |
---|---|
ServletContext |
servletContext |
Constructor and Description |
---|
ServletResourceResolver(ServletContext servletContext) |
Modifier and Type | Method and Description |
---|---|
URL |
getResource(String path)
Gets a resource URL at the given path.
|
InputStream |
getResourceAsStream(String path)
Gets a resource at the given path.
|
getInstance, setInstance
public final ServletContext servletContext
public ServletResourceResolver(ServletContext servletContext)
public URL getResource(String path)
ResourceResolver
getResource
in class ResourceResolver
path
- the path, which must not start with a /ServletContext.getResource(java.lang.String)
,
ClassLoader.getResource(java.lang.String)
public InputStream getResourceAsStream(String path)
ResourceResolver
getResourceAsStream
in class ResourceResolver
path
- the path, which must not start with a /ServletContext.getResourceAsStream(java.lang.String)
,
ClassLoader.getResourceAsStream(java.lang.String)
Copyright © 2013 Nuxeo SA. All Rights Reserved.