Package org.apache.solr.jersey
Class MessageBodyReaders.CachingDelegatingMessageBodyReader
- java.lang.Object
-
- org.apache.solr.jersey.MessageBodyReaders.CachingDelegatingMessageBodyReader
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<Object>
- Direct Known Subclasses:
MessageBodyReaders.CachingJsonMessageBodyReader
- Enclosing class:
- MessageBodyReaders
public abstract static class MessageBodyReaders.CachingDelegatingMessageBodyReader extends Object implements javax.ws.rs.ext.MessageBodyReader<Object>
Caches the deserialized request body in theContainerRequestContext
for use later in the request lifecycle.This makes the request body accessible to any Jersey response filters or interceptors.
- See Also:
PostRequestLoggingFilter
-
-
Field Summary
Fields Modifier and Type Field Description static String
DESERIALIZED_REQUEST_BODY_KEY
-
Constructor Summary
Constructors Constructor Description CachingDelegatingMessageBodyReader()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract javax.ws.rs.ext.MessageBodyReader<Object>
getDelegate()
boolean
isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
Object
readFrom(Class<Object> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
-
-
-
Field Detail
-
DESERIALIZED_REQUEST_BODY_KEY
public static final String DESERIALIZED_REQUEST_BODY_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDelegate
public abstract javax.ws.rs.ext.MessageBodyReader<Object> getDelegate()
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isReadable
in interfacejavax.ws.rs.ext.MessageBodyReader<Object>
-
readFrom
public Object readFrom(Class<Object> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
- Specified by:
readFrom
in interfacejavax.ws.rs.ext.MessageBodyReader<Object>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-
-