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