Apache CXF API

org.apache.cxf.jaxrs.provider
Class XPathProvider<T>

java.lang.Object
  extended by org.apache.cxf.jaxrs.provider.XPathProvider<T>
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<T>

@Provider
@Consumes(value={"text/xml","application/xml","application/*+xml"})
public class XPathProvider<T>
extends Object
implements javax.ws.rs.ext.MessageBodyReader<T>


Constructor Summary
XPathProvider()
           
 
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 setForceDOM(boolean b)
           
 void setNamespaces(Map<String,String> nsMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathProvider

public XPathProvider()
Method Detail

setConsumeMediaTypes

public void setConsumeMediaTypes(List<String> types)

getConsumeMediaTypes

public List<String> getConsumeMediaTypes()

setForceDOM

public void setForceDOM(boolean b)

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 API

Apache CXF