Package org.apache.cxf.resource
Class SinglePropertyResolver
java.lang.Object
org.apache.cxf.resource.SinglePropertyResolver
- All Implemented Interfaces:
ResourceResolver
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAsStream
(String name) Resolve a resource given its name and return an InputStream to it.<T> T
Resolve a resource given its name and type.
-
Constructor Details
-
SinglePropertyResolver
-
-
Method Details
-
getAsStream
Description copied from interface:ResourceResolver
Resolve a resource given its name and return an InputStream to it.- Specified by:
getAsStream
in interfaceResourceResolver
- Parameters:
name
- name of the resource to resolve.- Returns:
- an InputStream for the resource or null if it could not be found.
-
resolve
Description copied from interface:ResourceResolver
Resolve a resource given its name and type.- Specified by:
resolve
in interfaceResourceResolver
- 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.
-