@Provider public class CachingMessageBodyReader<T> extends AbstractCachingMessageProvider<T> implements javax.ws.rs.ext.MessageBodyReader<T>
ACTIVE_JAXRS_PROVIDER_KEY, BUNDLE, LOG, mc
Constructor and Description |
---|
CachingMessageBodyReader() |
Modifier and Type | Method and Description |
---|---|
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) |
getObject, isProviderKeyNotSet, setMessageContext, setObject
getBus, getConsumeMediaTypes, getEnableBuffering, getEnableStreaming, getProduceMediaTypes, init, isPayloadEmpty, isPayloadEmpty, reportEmptyContentLength, setBus, setConsumeMediaTypes, setEnableBuffering, setEnableStreaming, setProduceMediaTypes
public boolean isReadable(Class<?> type, Type gType, Annotation[] anns, javax.ws.rs.core.MediaType mt)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<T>
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
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<T>
IOException
javax.ws.rs.WebApplicationException
protected javax.ws.rs.ext.MessageBodyReader<T> getReader(Class<?> type, Type gType, Annotation[] anns, javax.ws.rs.core.MediaType mt)
public void setDelegatingReader(javax.ws.rs.ext.MessageBodyReader<T> reader)
Apache CXF