Package cloud.piranha.http.api
Interface HttpServerRequest
-
- All Known Implementing Classes:
DefaultHttpServerRequest
,GrizzlyHttpServerRequest
,NettyHttpServerRequest
,UndertowHttpRequest
public interface HttpServerRequest
The HttpServerRequest API.This API delivers an abstraction over the HTTP request line, the HTTP request headers and the HTTP request body.
- Author:
- Manfred Riem ([email protected])
-
-
Method Summary
All Methods Instance Methods Abstract 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
String getHeader(String name)
Get the header.- Parameters:
name
- the name of the header.- Returns:
- the value, or null.
-
getInputStream
InputStream getInputStream()
Get the input stream.- Returns:
- the input stream.
-
getLocalAddress
String getLocalAddress()
Get the local address.- Returns:
- the local address.
-
getLocalHostname
String getLocalHostname()
Get the local hostname.- Returns:
- the local hostname.
-
getLocalPort
int getLocalPort()
Get the local port.- Returns:
- the local port.
-
getMethod
String getMethod()
Get the method.- Returns:
- the method.
-
getQueryParameter
String getQueryParameter(String name)
Get the query parameter.- Parameters:
name
- the name.- Returns:
- the value, or null if not found.
-
getQueryString
String getQueryString()
Get the query string.- Returns:
- the query string.
-
getRemoteAddress
String getRemoteAddress()
Get the remote address.- Returns:
- the remote address.
-
getRemoteHostname
String getRemoteHostname()
Get the remote hostname.- Returns:
- the remote hostname.
-
getRemotePort
int getRemotePort()
Get the remote port.- Returns:
- the remote port.
-
getRequestTarget
String getRequestTarget()
Get the request target.- Returns:
- the request target.
-
-