Class ProtocolRequest

java.lang.Object
java.io.InputStream
io.netty.buffer.ByteBufInputStream
septogeddon.pluginquery.http.ProtocolRequest
All Implemented Interfaces:
Closeable, DataInput, AutoCloseable

public class ProtocolRequest extends io.netty.buffer.ByteBufInputStream
The request data sent from the client/browser. This is also an InputStream.
  • Constructor Details

  • Method Details

    • getHTTPContext

      public HTTPContext getHTTPContext()
      Get the HTTP context
      Returns:
      HTTPContext instance
    • getHeaderValue

      public HTTPHeader getHeaderValue(String name)
      Get the header value
      Parameters:
      name - the header name
      Returns:
      the header value
    • getMethod

      public ProtocolMethod getMethod()
      Get the method of this request
      Returns:
      HTTP method
    • getPath

      public ProtocolPath getPath()
      Get the path of this request
      Returns:
      HTTP path URL
    • getVersion

      public String getVersion()
      Get the protocol version of this request (e.g. HTTP/1.1)
      Returns:
      the protocol version