Class InfinispanResponse

    • Method Detail

      • contentAsText

        public void contentAsText​(String content)
        Adds content as text. Converts it internally to UTF-8.
        Parameters:
        content - Content.
      • contentAsBytes

        public void contentAsBytes​(byte[] content)
        Adds content as binary array.
        Parameters:
        content - Content.
      • contentType

        public void contentType​(String contentType)
        Adds Content-Type header.
        Parameters:
        contentType - Content-Type header.
      • httpVersion

        public void httpVersion​(io.netty.handler.codec.http.HttpVersion httpVersion)
        Adds HTTP version header.
        Parameters:
        httpVersion - HTTP version header.
      • status

        public void status​(io.netty.handler.codec.http.HttpResponseStatus httpStatus)
        Adds status code.
        Parameters:
        httpStatus - Status code.
      • isKeepAlive

        public boolean isKeepAlive()
        Checks whether this is a Keep Alive type of response.
        Returns:
        true if the response contains Keep Alive headers.
      • addSpecificHeaders

        protected void addSpecificHeaders​(io.netty.handler.codec.http.FullHttpResponse response)
      • toNettyHttpResponse

        public io.netty.handler.codec.http.FullHttpResponse toNettyHttpResponse()
        Renders FullHttpResponse object.
        Returns:
        FullHttpResponse object based on this InfinispanResponse.
      • authenticate

        public void authenticate​(String authenticateHeader)
        Adds www-authenticate header.
        Parameters:
        authenticateHeader - www-authenticate header value.
      • charset

        public void charset​(Charset charset)
        Adds a charset.
        Parameters:
        charset - charset value.