public interface BaseRequest
| 限定符和类型 | 方法和说明 |
|---|---|
Map<String,esa.commons.http.Cookie> |
cookies()
Returns a map containing all of the
Cookie objects the client sent with this request. |
default esa.commons.http.Cookie |
getCookie(String name)
Gets the
Cookie with given name. |
default String |
getParam(String parName)
Gets parameter, This pair of parameter can be from url parameters or body k-v values when Content-Type equals to
'x-www-form-urlencoded'
|
default List<String> |
getParams(String parName)
Get parameters This pair of parameter can be from url parameters or body k-v values when Content-Type equals to
'x-www-form-urlencoded'
|
esa.commons.http.HttpHeaders |
headers()
Gets http headers
|
SocketAddress |
localAddress()
Returns the Internet Protocol address of the interface on which the request was received.
|
esa.commons.http.HttpMethod |
method()
HTTP method
|
Map<String,List<String>> |
paramMap()
Get parameter map This pair of parameters can be from url parameters or body k-v values when Content-Type equals
to 'x-www-form-urlencoded'
|
String |
path()
Http path except parameters.
|
String |
query()
Returns the query part of the uri.
|
default String |
rawMethod()
HTTP method as String type.
|
SocketAddress |
remoteAddress()
Returns the Internet Protocol address of the client or last proxy that sent the request.
|
String |
scheme()
HTTP or HTTPS
|
SocketAddress |
tcpSourceAddress()
Returns the last proxy that sent the request.
|
String |
uri()
Http aggregated url.
|
esa.commons.http.HttpVersion |
version()
HttpVersion, such as HTTP/1.1
|
esa.commons.http.HttpVersion version()
String scheme()
String uri()
String path()
String query()
esa.commons.http.HttpMethod method()
default String rawMethod()
default String getParam(String parName)
parName - parameter namedefault List<String> getParams(String parName)
parName - parameter nameMap<String,List<String>> paramMap()
esa.commons.http.HttpHeaders headers()
Map<String,esa.commons.http.Cookie> cookies()
Cookie objects the client sent with this request.Cookie objects the client sent with this request, returns an empty map if no cookies
were sent.default esa.commons.http.Cookie getCookie(String name)
Cookie with given name.name - cookie namenull if did not find.SocketAddress remoteAddress()
SocketAddress tcpSourceAddress()
SocketAddress localAddress()
Copyright © 2020. All rights reserved.