Interface ReaderInterceptorContext

    • Method Detail

      • getInputStream

        java.io.InputStream getInputStream()
        Get the input stream of the object to be read. The runtime is responsible for closing the input stream.
        Returns:
        input stream of the object to be read.
      • setInputStream

        void setInputStream​(java.io.InputStream is)
        Set the input stream of the object to be read. For example, by wrapping it with another input stream. The runtime is responsible for closing the input stream that is set.
        Parameters:
        is - new input stream.
      • getHeaders

        MultivaluedMap<java.lang.String,​java.lang.String> getHeaders()
        Get mutable map of HTTP headers.

        Note that while the headers are mutable, a reader interceptor should typically roll-back any header modifications once the call to context.proceed() returns, to avoid externally visible side-effects of the interceptor invocation.

        Returns:
        map of HTTP headers.