Apache CXF API

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

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

@Provider
public class CachingMessageBodyReader<T>
extends AbstractCachingMessageProvider<T>
implements javax.ws.rs.ext.MessageBodyReader<T>


Field Summary
 
Fields inherited from class org.apache.cxf.jaxrs.provider.AbstractCachingMessageProvider
ACTIVE_JAXRS_PROVIDER_KEY, BUNDLE, LOG, mc
 
Constructor Summary
CachingMessageBodyReader()
           
 
Method Summary
protected  javax.ws.rs.ext.MessageBodyReader<T> getReader(Class<?> type, Type gType, Annotation[] anns, javax.ws.rs.core.MediaType mt)
           
 boolean isReadable(Class<?> type, Type gType, Annotation[] anns, javax.ws.rs.core.MediaType mt)
           
 T readFrom(Class<T> type, Type gType, Annotation[] anns, javax.ws.rs.core.MediaType mt, javax.ws.rs.core.MultivaluedMap<String,String> theheaders, InputStream is)
           
 void setDelegatingReader(javax.ws.rs.ext.MessageBodyReader<T> reader)
           
 void setDelegatingReaders(List<javax.ws.rs.ext.MessageBodyReader<T>> readers)
           
 
Methods inherited from class org.apache.cxf.jaxrs.provider.AbstractCachingMessageProvider
getObject, isProviderKeyNotSet, setMessageContext, setObject
 
Methods inherited from class org.apache.cxf.jaxrs.provider.AbstractConfigurableProvider
getBus, getConsumeMediaTypes, getEnableBuffering, getEnableStreaming, getProduceMediaTypes, init, isPayloadEmpty, isPayloadEmpty, setBus, setConsumeMediaTypes, setEnableBuffering, setEnableStreaming, setProduceMediaTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingMessageBodyReader

public CachingMessageBodyReader()
Method Detail

isReadable

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

readFrom

public T readFrom(Class<T> type,
                  Type gType,
                  Annotation[] anns,
                  javax.ws.rs.core.MediaType mt,
                  javax.ws.rs.core.MultivaluedMap<String,String> theheaders,
                  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

getReader

protected javax.ws.rs.ext.MessageBodyReader<T> getReader(Class<?> type,
                                                         Type gType,
                                                         Annotation[] anns,
                                                         javax.ws.rs.core.MediaType mt)

setDelegatingReader

public void setDelegatingReader(javax.ws.rs.ext.MessageBodyReader<T> reader)

setDelegatingReaders

public void setDelegatingReaders(List<javax.ws.rs.ext.MessageBodyReader<T>> readers)

Apache CXF API

Apache CXF