@Provider @Consumes(value={"text/xml","application/xml","application/*+xml"}) public class XPathProvider<T> extends Object implements javax.ws.rs.ext.MessageBodyReader<T>
Constructor and Description |
---|
XPathProvider() |
Modifier and Type | Method and Description |
---|---|
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 |
setForceDOM(boolean b) |
void |
setNamespaces(Map<String,String> nsMap) |
public void setForceDOM(boolean b)
public void setExpression(String expr)
public void setClassName(String name)
public boolean isReadable(Class<?> cls, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<T>
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
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<T>
IOException
javax.ws.rs.WebApplicationException
Apache CXF