Apache CXF API

org.apache.cxf.jaxrs.provider
Class XPathProvider

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

@Provider
public class XPathProvider
extends Object
implements javax.ws.rs.ext.MessageBodyReader<Object>


Constructor Summary
XPathProvider()
           
 
Method Summary
 List<String> getConsumeMediaTypes()
           
 boolean isReadable(Class cls, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 Object readFrom(Class<Object> 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
 

Constructor Detail

XPathProvider

public XPathProvider()
Method Detail

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<Object>

readFrom

public Object readFrom(Class<Object> 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<Object>
Throws:
IOException
javax.ws.rs.WebApplicationException

Apache CXF API

Apache CXF