javax.ws.rs.ext.ReaderInterceptor
to intercept calls to (@link javax.ws.rs.ext.MessageBodyReader#readFrom}.
The getters and setters in this context class correspond to the
parameters of the intercepted method.
ReaderInterceptor, MessageBodyReader
| Modifier and Type | Method and Description |
|---|---|
| public MultivaluedMap | |
| public InputStream | Returns: input stream of the object to be read.Get the input stream of the object to be read. |
| public Object | |
| public void |
| getHeaders | back to summary |
|---|---|
| public MultivaluedMap Get mutable map of HTTP headers.
Note that while the headers are mutable, a
| |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() Get the input stream of the object to be read. The JAX-RS runtime is responsible for closing the input stream.
| |
| proceed | back to summary |
|---|---|
| public Object proceed() throws IOException, WebApplicationException Proceed to the next interceptor in the chain. Return the result of the
next interceptor invoked. Interceptors MUST explicitly call this method
to continue the execution chain; the call to this method in the
last interceptor of the chain will invoke the wrapped
| |
| setInputStream | back to summary |
|---|---|
| public void setInputStream(InputStream is) Set the input stream of the object to be read. For example, by wrapping it with another input stream. The JAX-RS runtime is responsible for closing the input stream that is set.
| |