cloud.piranha.api.HttpServerRequest
public class DefaultHttpServerRequest
extends java.lang.Object
implements cloud.piranha.api.HttpServerRequest
Constructor | Description |
---|---|
DefaultHttpServerRequest(java.net.Socket socket) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addHeader(java.lang.String name,
java.lang.String value) |
Add the header.
|
java.lang.String |
getHeader(java.lang.String name) |
Get the header.
|
java.util.Iterator<java.lang.String> |
getHeaderNames() |
Get the header names.
|
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 |
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.
|
void |
setMethod(java.lang.String method) |
Set the method.
|
void |
setRequestTarget(java.lang.String requestTarget) |
Set the request target.
|
public DefaultHttpServerRequest(java.net.Socket socket)
socket
- the socket.public void addHeader(java.lang.String name, java.lang.String value)
name
- the name.value
- the value.public java.lang.String getHeader(java.lang.String name)
getHeader
in interface cloud.piranha.api.HttpServerRequest
name
- the name.public java.util.Iterator<java.lang.String> getHeaderNames()
getHeaderNames
in interface cloud.piranha.api.HttpServerRequest
public java.io.InputStream getInputStream()
getInputStream
in interface cloud.piranha.api.HttpServerRequest
public java.lang.String getLocalAddress()
getLocalAddress
in interface cloud.piranha.api.HttpServerRequest
public java.lang.String getLocalHostname()
getLocalHostname
in interface cloud.piranha.api.HttpServerRequest
public int getLocalPort()
getLocalPort
in interface cloud.piranha.api.HttpServerRequest
public java.lang.String getMethod()
getMethod
in interface cloud.piranha.api.HttpServerRequest
public java.lang.String getQueryParameter(java.lang.String name)
getQueryParameter
in interface cloud.piranha.api.HttpServerRequest
name
- the name.public java.lang.String getQueryString()
getQueryString
in interface cloud.piranha.api.HttpServerRequest
public java.lang.String getRemoteAddress()
getRemoteAddress
in interface cloud.piranha.api.HttpServerRequest
public java.lang.String getRemoteHostname()
getRemoteHostname
in interface cloud.piranha.api.HttpServerRequest
public int getRemotePort()
getRemotePort
in interface cloud.piranha.api.HttpServerRequest
public java.lang.String getRequestTarget()
getRequestTarget
in interface cloud.piranha.api.HttpServerRequest
public void setMethod(java.lang.String method)
method
- the method.public void setRequestTarget(java.lang.String requestTarget)
requestTarget
- the request target.Copyright © 2020 Piranha Cloud. All rights reserved.