Package cloud.piranha.http.undertow
Class UndertowHttpRequest
- java.lang.Object
-
- cloud.piranha.http.undertow.UndertowHttpRequest
-
- All Implemented Interfaces:
HttpServerRequest
public class UndertowHttpRequest extends Object implements HttpServerRequest
The Undertow WebApplicationServerRequest.- Author:
- Manfred Riem ([email protected])
-
-
Constructor Summary
Constructors Constructor Description UndertowHttpRequest(io.undertow.server.HttpServerExchange exchange)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHeader(String name)
Get the header.Iterator<String>
getHeaderNames()
Get the header names.InputStream
getInputStream()
Get the input stream.String
getLocalAddress()
Get the local address.String
getLocalHostname()
Get the local hostname.int
getLocalPort()
Get the local port.String
getMethod()
Get the method.String
getQueryParameter(String name)
Get the query parameter.String
getQueryString()
Get the query string.String
getRemoteAddress()
Get the remote address.String
getRemoteHostname()
Get the remote hostname.int
getRemotePort()
Get the remote port.String
getRequestTarget()
Get the request target.
-
-
-
Method Detail
-
getHeader
public String getHeader(String name)
Get the header.- Specified by:
getHeader
in interfaceHttpServerRequest
- Parameters:
name
- the name.- Returns:
- the value.
-
getHeaderNames
public Iterator<String> getHeaderNames()
Get the header names.- Specified by:
getHeaderNames
in interfaceHttpServerRequest
- Returns:
- the header names.
-
getInputStream
public InputStream getInputStream()
Get the input stream.- Specified by:
getInputStream
in interfaceHttpServerRequest
- Returns:
- the input stream.
-
getLocalAddress
public String getLocalAddress()
Get the local address.- Specified by:
getLocalAddress
in interfaceHttpServerRequest
- Returns:
- the local address.
-
getLocalHostname
public String getLocalHostname()
Get the local hostname.- Specified by:
getLocalHostname
in interfaceHttpServerRequest
- Returns:
- the local hostname.
-
getLocalPort
public int getLocalPort()
Get the local port.- Specified by:
getLocalPort
in interfaceHttpServerRequest
- Returns:
- the local port.
-
getMethod
public String getMethod()
Get the method.- Specified by:
getMethod
in interfaceHttpServerRequest
- Returns:
- the method.
-
getQueryParameter
public String getQueryParameter(String name)
Get the query parameter.- Specified by:
getQueryParameter
in interfaceHttpServerRequest
- Parameters:
name
- the name.- Returns:
- the value.
-
getQueryString
public String getQueryString()
Get the query string.- Specified by:
getQueryString
in interfaceHttpServerRequest
- Returns:
- the query string.
-
getRemoteAddress
public String getRemoteAddress()
Get the remote address.- Specified by:
getRemoteAddress
in interfaceHttpServerRequest
- Returns:
- the remote address.
-
getRemoteHostname
public String getRemoteHostname()
Get the remote hostname.- Specified by:
getRemoteHostname
in interfaceHttpServerRequest
- Returns:
- the remote hostname.
-
getRemotePort
public int getRemotePort()
Get the remote port.- Specified by:
getRemotePort
in interfaceHttpServerRequest
- Returns:
- the remote port.
-
getRequestTarget
public String getRequestTarget()
Get the request target.- Specified by:
getRequestTarget
in interfaceHttpServerRequest
- Returns:
- the request target.
-
-