public class ServletContextResourceResolver extends Object implements ResourceResolver
Constructor and Description |
---|
ServletContextResourceResolver(javax.servlet.ServletContext sc) |
Modifier and Type | Method and Description |
---|---|
InputStream |
getAsStream(String string)
Resolve a resource given its name and return an InputStream to it.
|
<T> T |
resolve(String entryName,
Class<T> clz)
Resolve a resource given its name and type.
|
public ServletContextResourceResolver(javax.servlet.ServletContext sc)
public final InputStream getAsStream(String string)
ResourceResolver
getAsStream
in interface ResourceResolver
string
- name of the resource to resolve.public final <T> T resolve(String entryName, Class<T> clz)
ResourceResolver
resolve
in interface ResourceResolver
entryName
- name of the resource to resolve.clz
- type of the resource to resolve.null
if the
resource cannot be resolved.Apache CXF