public class WebServiceContextResourceResolver extends Object implements ResourceResolver
Constructor and Description |
---|
WebServiceContextResourceResolver() |
WebServiceContextResourceResolver(Bus b) |
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 string,
Class<T> clz)
Resolve a resource given its name and type.
|
void |
setBus(Bus b) |
public WebServiceContextResourceResolver()
public WebServiceContextResourceResolver(Bus b)
public final void setBus(Bus b)
public final InputStream getAsStream(String string)
ResourceResolver
getAsStream
in interface ResourceResolver
string
- name of the resource to resolve.public final <T> T resolve(String string, Class<T> clz)
ResourceResolver
resolve
in interface ResourceResolver
string
- name of the resource to resolve.clz
- type of the resource to resolve.null
if the
resource cannot be resolved.Apache CXF