org.apache.cxf.jaxrs.provider
Class XPathProvider<T>
java.lang.Object
org.apache.cxf.jaxrs.provider.XPathProvider<T>
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyReader<T>
@Provider
public class XPathProvider<T>
- extends Object
- implements javax.ws.rs.ext.MessageBodyReader<T>
Method Summary |
List<String> |
getConsumeMediaTypes()
|
boolean |
isReadable(Class<?> cls,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
|
T |
readFrom(Class<T> cls,
Type type,
Annotation[] anns,
javax.ws.rs.core.MediaType mt,
javax.ws.rs.core.MultivaluedMap<String,String> hrs,
InputStream is)
|
void |
setClassName(String name)
|
void |
setConsumeMediaTypes(List<String> types)
|
void |
setExpression(String expr)
|
void |
setExpressions(Map<String,String> expressions)
|
void |
setNamespaces(Map<String,String> nsMap)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XPathProvider
public XPathProvider()
setConsumeMediaTypes
public void setConsumeMediaTypes(List<String> types)
getConsumeMediaTypes
public List<String> getConsumeMediaTypes()
setExpression
public void setExpression(String expr)
setClassName
public void setClassName(String name)
setExpressions
public void setExpressions(Map<String,String> expressions)
setNamespaces
public void setNamespaces(Map<String,String> nsMap)
isReadable
public boolean isReadable(Class<?> cls,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<T>
readFrom
public T readFrom(Class<T> cls,
Type type,
Annotation[] anns,
javax.ws.rs.core.MediaType mt,
javax.ws.rs.core.MultivaluedMap<String,String> hrs,
InputStream is)
throws IOException,
javax.ws.rs.WebApplicationException
- Specified by:
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<T>
- Throws:
IOException
javax.ws.rs.WebApplicationException
Apache CXF