Package org.apache.solr.jersey
Class MessageBodyReaders.CachingDelegatingMessageBodyReader
- java.lang.Object
-
- org.apache.solr.jersey.MessageBodyReaders.CachingDelegatingMessageBodyReader
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<Object>
- Direct Known Subclasses:
MessageBodyReaders.CachingJsonMessageBodyReader
- Enclosing class:
- MessageBodyReaders
public abstract static class MessageBodyReaders.CachingDelegatingMessageBodyReader extends Object implements jakarta.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 jakarta.ws.rs.ext.MessageBodyReader<Object>
getDelegate()
boolean
isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
Object
readFrom(Class<Object> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.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 jakarta.ws.rs.ext.MessageBodyReader<Object> getDelegate()
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
- Specified by:
isReadable
in interfacejakarta.ws.rs.ext.MessageBodyReader<Object>
-
readFrom
public Object readFrom(Class<Object> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException
- Specified by:
readFrom
in interfacejakarta.ws.rs.ext.MessageBodyReader<Object>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-
-