@Internal public class AsyncRequestImpl extends Object implements AsyncRequest
AsyncRequest that wraps the Request as delegate.| 构造器和说明 |
|---|
AsyncRequestImpl(esa.httpserver.core.Request req) |
| 限定符和类型 | 方法和说明 |
|---|---|
io.netty.buffer.ByteBufAllocator |
alloc()
Get current allocator.
|
String[] |
attributeNames()
Returns an
String[] containing the names of the attributes available to this request |
io.netty.buffer.ByteBuf |
byteBufBody()
Get ByteBuf result of http body.
|
Set<io.netty.handler.codec.http.cookie.Cookie> |
cookies()
Returns a set containing all of the
Cookie objects the client sent with this request. |
Object |
getAttribute(String name)
Returns the value of the named attribute as an Object, or
null if no attribute of the given name exists. |
io.netty.handler.codec.http.HttpHeaders |
headers()
Get http headers
|
io.netty.handler.codec.http.HttpVersion |
httpVersion()
HttpVersion, such as HTTP/1.1
|
HttpInputStream |
inputStream()
Get input stream
|
String |
localAddr()
Returns the Internet Protocol (IP) address of the interface on which the request was received.
|
int |
localPort()
Returns the port of the interface on which the request was received.
|
io.netty.handler.codec.http.HttpMethod |
method()
HTTP methodPathMatcher
|
Map<String,List<String>> |
parameterMap()
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.
|
String |
remoteAddr()
Returns the Internet Protocol (IP) address of the client or last proxy that sent the request.
|
int |
remotePort()
Returns the Internet Protocol (PORT) address of the client or last proxy that sent the request.
|
Object |
removeAttribute(String name)
Removes an attribute from this request.
|
String |
scheme()
HTTP or HTTPS
|
void |
setAttribute(String name,
Object value)
Stores an attribute in this request.
|
String |
tcpSourceAddr()
Returns the last proxy that sent the request.
|
String |
toString() |
io.netty.handler.codec.http.HttpHeaders |
trailers()
Gets the trailing headers of this request.
|
String |
uri()
Http full url.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddHeader, addHeader, body, containsHeader, containsHeader, containsTrailer, containsTrailer, contentLength, getAttributeNames, getBody, getBodyByteBuf, getContentLength, getCookie, getCookies, getHeader, getHeader, getHeaderSize, getHttpHeaders, getInputStream, getIntHeader, getIntHeader, getIntTrailer, getIntTrailer, getLocalAddr, getLocalPort, getMethod, getParameter, getParameterMap, getParameters, getProtocol, getRemoteAddr, getRequestURI, getScheme, getShortHeader, getShortHeader, getShortTrailer, getShortTrailer, getTcpSourceAddr, getTrailer, getTrailer, getUncheckedAttribute, getURIAndQueryString, hasAttribute, headerSize, protocol, rawMethod, removeUncheckedAttribute, setHeader, setHeaderpublic io.netty.handler.codec.http.HttpVersion httpVersion()
AsyncRequesthttpVersion 在接口中 AsyncRequestpublic String scheme()
AsyncRequestscheme 在接口中 AsyncRequestpublic String uri()
AsyncRequesturi 在接口中 AsyncRequestpublic String path()
AsyncRequestpath 在接口中 AsyncRequestpublic String query()
AsyncRequestquery 在接口中 AsyncRequestpublic io.netty.handler.codec.http.HttpMethod method()
AsyncRequestmethod 在接口中 AsyncRequestpublic io.netty.handler.codec.http.HttpHeaders headers()
AsyncRequestheaders 在接口中 AsyncRequestpublic io.netty.handler.codec.http.HttpHeaders trailers()
AsyncRequesttrailers 在接口中 AsyncRequestpublic io.netty.buffer.ByteBuf byteBufBody()
AsyncRequestbyteBufBody 在接口中 AsyncRequestpublic HttpInputStream inputStream()
AsyncRequestinputStream 在接口中 AsyncRequestpublic String remoteAddr()
AsyncRequestremoteAddr 在接口中 AsyncRequestpublic String tcpSourceAddr()
AsyncRequesttcpSourceAddr 在接口中 AsyncRequestpublic int remotePort()
AsyncRequestremotePort 在接口中 AsyncRequestpublic String localAddr()
AsyncRequestlocalAddr 在接口中 AsyncRequestpublic int localPort()
AsyncRequestlocalPort 在接口中 AsyncRequestpublic Map<String,List<String>> parameterMap()
AsyncRequestparameterMap 在接口中 AsyncRequestpublic Set<io.netty.handler.codec.http.cookie.Cookie> cookies()
AsyncRequestCookie objects the client sent with this request.cookies 在接口中 AsyncRequestCookie objects the client sent with this request, returns an empty set if no cookies
were sent.public void setAttribute(String name, Object value)
AsyncRequestsetAttribute 在接口中 AsyncRequestname - namevalue - valuepublic Object getAttribute(String name)
AsyncRequestnull if no attribute of the given name exists.getAttribute 在接口中 AsyncRequestname - namepublic Object removeAttribute(String name)
AsyncRequestremoveAttribute 在接口中 AsyncRequestname - namepublic String[] attributeNames()
AsyncRequestString[] containing the names of the attributes available to this requestattributeNames 在接口中 AsyncRequestpublic io.netty.buffer.ByteBufAllocator alloc()
AsyncRequestalloc 在接口中 AsyncRequestCopyright © 2020. All rights reserved.