org.apache.cxf.jaxrs.provider
Class CachingMessageBodyReader<T>
java.lang.Object
org.apache.cxf.jaxrs.provider.AbstractConfigurableProvider
org.apache.cxf.jaxrs.provider.AbstractCachingMessageProvider<T>
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>
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.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 |
CachingMessageBodyReader
public CachingMessageBodyReader()
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