java.lang.Object
cloud.piranha.http.impl.DefaultHttpServerRequest
- All Implemented Interfaces:
HttpServerRequest
The default implementation of HttpServerRequest.
- Author:
- Manfred Riem (mriem@manorrock.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the header.getHeaders(String name) intintbooleanisSecure()voidSet the method.voidsetRequestTarget(String requestTarget) Set the request target.
-
Constructor Details
-
DefaultHttpServerRequest
Constructor.- Parameters:
socket- the socket.
-
-
Method Details
-
addHeader
Add the header.- Parameters:
name- the name.value- the value.
-
getHeader
- Specified by:
getHeaderin interfaceHttpServerRequest
-
getHeaderNames
- Specified by:
getHeaderNamesin interfaceHttpServerRequest
-
getHeaders
- Specified by:
getHeadersin interfaceHttpServerRequest
-
getInputStream
- Specified by:
getInputStreamin interfaceHttpServerRequest
-
getLocalAddress
- Specified by:
getLocalAddressin interfaceHttpServerRequest
-
getLocalHostname
- Specified by:
getLocalHostnamein interfaceHttpServerRequest
-
getLocalPort
public int getLocalPort()- Specified by:
getLocalPortin interfaceHttpServerRequest
-
getMethod
- Specified by:
getMethodin interfaceHttpServerRequest
-
getProtocol
- Specified by:
getProtocolin interfaceHttpServerRequest
-
getRemoteAddress
- Specified by:
getRemoteAddressin interfaceHttpServerRequest
-
getRemoteHostname
- Specified by:
getRemoteHostnamein interfaceHttpServerRequest
-
getRemotePort
public int getRemotePort()- Specified by:
getRemotePortin interfaceHttpServerRequest
-
getRequestTarget
- Specified by:
getRequestTargetin interfaceHttpServerRequest
-
isSecure
public boolean isSecure()- Specified by:
isSecurein interfaceHttpServerRequest
-
setMethod
Set the method.- Parameters:
method- the method.
-
setRequestTarget
Set the request target.- Parameters:
requestTarget- the request target.
-