Class NettyHttpRequest

  • All Implemented Interfaces:
    HttpRequest

    public class NettyHttpRequest
    extends BaseHttpRequest
    Abstraction for an inbound http request on the server, or a response from a server to a client

    We have this abstraction so that we can reuse marshalling objects in a client framework and serverside framework

    Version:
    $Revision: 1 $
    Author:
    Bill Burke, Norman Maurer, Kristoffer Sjogren
    • Method Detail

      • getMutableHeaders

        public jakarta.ws.rs.core.MultivaluedMap<String,​String> getMutableHeaders()
      • setHttpMethod

        public void setHttpMethod​(String method)
      • isFlushed

        public boolean isFlushed()
      • getAttribute

        public Object getAttribute​(String attribute)
      • setAttribute

        public void setAttribute​(String name,
                                 Object value)
      • removeAttribute

        public void removeAttribute​(String name)
      • getHttpHeaders

        public jakarta.ws.rs.core.HttpHeaders getHttpHeaders()
      • setInputStream

        public void setInputStream​(InputStream stream)
      • getHttpMethod

        public String getHttpMethod()
      • isKeepAlive

        public boolean isKeepAlive()
      • is100ContinueExpected

        public boolean is100ContinueExpected()
      • forward

        public void forward​(String path)
      • wasForwarded

        public boolean wasForwarded()
      • setContentBuffer

        public void setContentBuffer​(io.netty.buffer.ByteBuf content)
      • releaseContentBuffer

        public void releaseContentBuffer()
      • getRemoteHost

        public String getRemoteHost()
      • getRemoteAddress

        public String getRemoteAddress()