Class NettyHttpServerRequest

java.lang.Object
cloud.piranha.http.netty.NettyHttpServerRequest
All Implemented Interfaces:
HttpServerRequest

public class NettyHttpServerRequest
extends java.lang.Object
implements HttpServerRequest
The Netty implementation of HTTP Server Request.
Author:
Manfred Riem ([email protected])
  • Constructor Summary

    Constructors
    Constructor Description
    NettyHttpServerRequest​(io.netty.channel.ChannelHandlerContext context, io.netty.handler.codec.http.FullHttpRequest request)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getHeader​(java.lang.String name)
    Get the header.
    java.util.Iterator<java.lang.String> getHeaderNames()
    Get the header names.
    java.util.Iterator<java.lang.String> getHeaders​(java.lang.String name)
    Get the headers.
    java.io.InputStream getInputStream()
    Get the input stream.
    java.lang.String getLocalAddress()
    Get the local address.
    java.lang.String getLocalHostname()
    Get the local hostname.
    int getLocalPort()
    Get the local port.
    java.lang.String getMethod()
    Get the method.
    java.lang.String getProtocol()
    Get the protocol
    java.lang.String getQueryParameter​(java.lang.String name)
    Get the query parameter.
    java.lang.String getQueryString()
    Get the query string.
    java.lang.String getRemoteAddress()
    Get the remote address.
    java.lang.String getRemoteHostname()
    Get the remote hostname.
    int getRemotePort()
    Get the remote port.
    java.lang.String getRequestTarget()
    Get the request target.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NettyHttpServerRequest

      public NettyHttpServerRequest​(io.netty.channel.ChannelHandlerContext context, io.netty.handler.codec.http.FullHttpRequest request)
      Constructor.
      Parameters:
      request - the HTTP request.
      context - the context.
  • Method Details