public class Http2RequestImpl extends CommonRequest implements HttpRequest, Reset
| Modifier and Type | Field and Description |
|---|---|
static int |
STATE_DATA_FRAME |
static int |
STATE_DONE |
static int |
STATE_HEADER_FRAME |
aioSession, attachment, configuration, connection, contentLength, contentType, cookies, headers, headerSize, hostHeader, method, parameters, protocol, queryString, remoteAddr, remoteHost, requestUri, requestUrl, scheme, serverHandler, sslEngine, type, uriSSL_ENGINE_THREAD_LOCAL| Constructor and Description |
|---|
Http2RequestImpl(int streamId,
Http2Session session,
boolean push) |
| Modifier and Type | Method and Description |
|---|---|
void |
bodyDone() |
void |
checkState(int state) |
ByteArrayOutputStream |
getBody() |
Map<String,HeaderValue> |
getHeaders() |
BodyInputStream |
getInputStream() |
InetSocketAddress |
getLocalAddress() |
Collection<Part> |
getParts(MultipartConfig configElement) |
String |
getRemoteAddr()
Returns the Internet Protocol (IP) address of the client
or last proxy that sent the request.
|
InetSocketAddress |
getRemoteAddress() |
String |
getRemoteHost()
Returns the fully qualified name of the client
or the last proxy that sent the request.
|
AbstractResponse |
getResponse() |
Http2Session |
getSession() |
int |
getStreamId() |
PushBuilder |
newPushBuilder() |
void |
reset() |
void |
setBody(ByteArrayOutputStream body) |
void |
setState(int state) |
getAioSession, getAttachment, getCharacterEncoding, getConfiguration, getConnection, getContentLength, getContentType, getCookies, getHeader, getHeader, getHeaderNames, getHeaders, getHeaderSize, getHost, getLocale, getLocales, getMethod, getParameter, getParameters, getParameterValues, getProtocol, getQueryString, getRequestType, getRequestURI, getRequestURL, getScheme, getServerHandler, getSslEngine, getUri, isMultiplexing, isSecure, setAttachment, setHeader, setMethod, setProtocol, setQueryString, setRequestURI, setScheme, setServerHandler, setType, setUriclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttachment, getCharacterEncoding, getContentLength, getContentType, getCookies, getHeader, getHeaderNames, getHeaders, getLocale, getLocales, getMethod, getParameter, getParameters, getParameterValues, getParts, getProtocol, getQueryString, getRequestURI, getRequestURL, getScheme, getSslEngine, getTrailerFields, isSecure, isTrailerFieldsReady, setAttachmentpublic static final int STATE_HEADER_FRAME
public static final int STATE_DATA_FRAME
public static final int STATE_DONE
public Http2RequestImpl(int streamId,
Http2Session session,
boolean push)
public Map<String,HeaderValue> getHeaders()
public void checkState(int state)
public void setState(int state)
public void reset()
reset in interface Resetreset in class CommonRequestpublic Collection<Part> getParts(MultipartConfig configElement) throws IOException
getParts in interface HttpRequestIOExceptionpublic String getRemoteAddr()
CommonRequestREMOTE_ADDR.getRemoteAddr in interface HttpRequestgetRemoteAddr in class CommonRequestString containing the
IP address of the client that sent the requestpublic InetSocketAddress getRemoteAddress()
getRemoteAddress in interface HttpRequestgetRemoteAddress in class CommonRequestpublic InetSocketAddress getLocalAddress()
getLocalAddress in interface HttpRequestgetLocalAddress in class CommonRequestpublic String getRemoteHost()
CommonRequestREMOTE_HOST.getRemoteHost in interface HttpRequestgetRemoteHost in class CommonRequestString containing the fully
qualified name of the clientpublic BodyInputStream getInputStream()
getInputStream in interface HttpRequestgetInputStream in class CommonRequestpublic int getStreamId()
public ByteArrayOutputStream getBody()
public void setBody(ByteArrayOutputStream body)
public void bodyDone()
public AbstractResponse getResponse()
public Http2Session getSession()
public PushBuilder newPushBuilder()
newPushBuilder in interface HttpRequestCopyright © 2025. All rights reserved.