org.apache.cxf.jaxws.handler
Class InitParamResourceResolver
java.lang.Object
org.apache.cxf.jaxws.handler.InitParamResourceResolver
- All Implemented Interfaces:
- ResourceResolver
public class InitParamResourceResolver
- extends Object
- implements ResourceResolver
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InitParamResourceResolver
public InitParamResourceResolver(Map<String,String> map)
resolve
public <T> T resolve(String resourceName,
Class<T> resourceType)
- Description copied from interface:
ResourceResolver
- Resolve a resource given its name and type.
- Specified by:
resolve
in interface ResourceResolver
- Parameters:
resourceName
- name of the resource to resolve.resourceType
- type of the resource to resolve.
- Returns:
- an instance of the resource or
null
if the
resource cannot be resolved.
getAsStream
public InputStream getAsStream(String name)
- Description copied from interface:
ResourceResolver
- Resolve a resource given its name and return an InputStream to it.
- Specified by:
getAsStream
in interface ResourceResolver
- Parameters:
name
- name of the resource to resolve.
- Returns:
- an InputStream for the resource or null if it could not be found.
Apache CXF