public class FacesResourceResolver extends ResourceResolver
Modifier and Type | Field and Description |
---|---|
ExternalContext |
externalContext |
Constructor and Description |
---|
FacesResourceResolver(ExternalContext externalContext) |
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 ExternalContext externalContext
public FacesResourceResolver(ExternalContext externalContext)
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 © 2011 Nuxeo SA. All Rights Reserved.