Apache CXF API

org.apache.cxf.jaxrs.client
Class ResponseReader

java.lang.Object
  extended by org.apache.cxf.jaxrs.client.ResponseReader
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<javax.ws.rs.core.Response>

public class ResponseReader
extends Object
implements javax.ws.rs.ext.MessageBodyReader<javax.ws.rs.core.Response>


Constructor Summary
ResponseReader()
           
ResponseReader(Class<?> entityCls)
           
 
Method Summary
protected  MessageContext getContext()
           
 boolean isReadable(Class<?> cls, Type genericType, Annotation[] anns, javax.ws.rs.core.MediaType mt)
           
 javax.ws.rs.core.Response readFrom(Class<javax.ws.rs.core.Response> cls, Type genericType, Annotation[] anns, javax.ws.rs.core.MediaType mt, javax.ws.rs.core.MultivaluedMap<String,String> headers, InputStream is)
           
 void setEntityClass(Class<?> cls)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseReader

public ResponseReader()

ResponseReader

public ResponseReader(Class<?> entityCls)
Method Detail

isReadable

public boolean isReadable(Class<?> cls,
                          Type genericType,
                          Annotation[] anns,
                          javax.ws.rs.core.MediaType mt)
Specified by:
isReadable in interface javax.ws.rs.ext.MessageBodyReader<javax.ws.rs.core.Response>

readFrom

public javax.ws.rs.core.Response readFrom(Class<javax.ws.rs.core.Response> cls,
                                          Type genericType,
                                          Annotation[] anns,
                                          javax.ws.rs.core.MediaType mt,
                                          javax.ws.rs.core.MultivaluedMap<String,String> headers,
                                          InputStream is)
                                   throws IOException,
                                          javax.ws.rs.WebApplicationException
Specified by:
readFrom in interface javax.ws.rs.ext.MessageBodyReader<javax.ws.rs.core.Response>
Throws:
IOException
javax.ws.rs.WebApplicationException

setEntityClass

public void setEntityClass(Class<?> cls)

getContext

protected MessageContext getContext()

Apache CXF API

Apache CXF