| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private MultiMap | |
| protected final ContextInternal | |
| private Handler | |
| private boolean | |
| private HttpEventHandler | |
| private boolean | |
| private final MultiMap | |
| private static final Logger | |
| private MultiMap | |
| private Charset | |
| private HttpPostRequestDecoder | |
| protected final Http2ServerResponse | |
| private boolean | |
| private final String | |
| protected final Http2ServerStream | |
| private Handler | |
| private Handler |
| Access | Constructor and Description |
|---|---|
| pack-priv | Http2ServerRequest(Http2ServerStream stream, String serverOrigin, Http2Headers headers, String contentEncoding)
|
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public @Nullable HostAndPort | |
| public synchronized Future | body()
Implements io. Convenience method for receiving the entire request body in one piece. |
| public long | |
| private void | |
| public HttpConnection | |
| public Context | |
| public Set | cookies()
Implements io. Returns a modifiable set of parsed cookies from the |
| public Set | cookies(String
the name to be matches name)Implements io. Returns a read only set of parsed cookies that match the given name, or an empty set. |
| public HttpServerRequest | customFrameHandler(Handler<HttpFrame> handler)
Implements io. Set a custom frame handler. |
| public DecoderResult | |
| public void | dispatch(Handler<HttpServerRequest> handler)
Implements io.
|
| public synchronized Future | end()
Implements io. Returns a future signaling when the request has been fully received successfully or failed. |
| public HttpServerRequest | |
| private HttpEventHandler | |
| public HttpServerRequest | exceptionHandler(Handler<Throwable> handler)
Implements io.
|
| public HttpServerRequest | fetch(long amount)
Implements io. Fetch the specified |
| public MultiMap | formAttributes()
Implements io. Returns a map of all form attributes in the request. |
| public Cookie | getCookie(String
the cookie name name)Implements io. Get the cookie with the specified name. |
| public Cookie | getCookie(String
the cookie name name, String the cookie domain domain, String the cookie path path)Implements io. Get the cookie with the specified |
| public String | getFormAttribute(String
the attribute name attributeName)Implements io. Return the first form attribute value with the specified name |
| public String | |
| public void | |
| public void | handleCustomFrame(HttpFrame frame)
Overrides default io.
|
| public void | handleData(Buffer data)
Overrides default io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public void | handleEnd(MultiMap trailers)
Overrides default io.
|
| public void | |
| public void | handlePriorityChange(StreamPriority streamPriority)
Overrides default io.
|
| public HttpServerRequest | |
| public void | |
| public MultiMap | |
| public String | |
| public int | |
| public boolean | |
| public boolean | |
| public HttpMethod | |
| public Object | |
| private void | |
| public MultiMap | params(boolean
whether semicolon is treated as a normal character or a query parameter separator semicolonIsNormalChar)Implements io.
|
| public String | |
| public HttpServerRequest | pause()
Implements io. Pause the |
| public X509Certificate[] | peerCertificateChain()
Implements io.
References Deprecated
X509Certificate is deprecated or references (maybe indirectly) at least one deprecated element.
Note Java SE 5+ recommends to use javax.net.ssl.SSLSession#getPeerCertificates() instead of of javax.net.ssl.SSLSession#getPeerCertificateChain() which this method is based on. |
| public String | |
| public SocketAddress | remoteAddress()
Overrides default io. Implements io.
|
| public Http2ServerResponse | |
| public HttpServerRequest | resume()
Implements io. Resume reading, and sets the buffer in |
| public HttpServerRequest | routed(String
The route this request has been routed to. route)Overrides default io. Marks this request as being routed to the given route. |
| public String | |
| public HttpServerRequest | setExpectMultipart(boolean
true - if you are expecting a multi-part body expect)Implements io. Call this with true if you are expecting a multi-part body to be submitted in the request. |
| public HttpServerRequest | setParamsCharset(String
the charset to use for decoding query params charset)Implements io. Override the charset to use for decoding the query parameter map, when none is set, |
| public int | |
| public StreamPriority | |
| public HttpServerRequest | streamPriorityHandler(Handler<StreamPriority>
the handler to be called when stream priority changes handler)Implements io. Set an handler for stream priority changes This is not implemented for HTTP/1.x. |
| public Future | toNetSocket()
Implements io. Like |
| public Future | toWebSocket()
Implements io. Like |
| public HttpServerRequest | |
| public String | |
| public HttpVersion |
| absoluteURI | back to summary |
|---|---|
| private String absoluteURI | |
| attributes | back to summary |
|---|---|
| private MultiMap attributes | |
| context | back to summary |
|---|---|
| protected final ContextInternal context | |
| customFrameHandler | back to summary |
|---|---|
| private Handler<HttpFrame> customFrameHandler | |
| ended | back to summary |
|---|---|
| private boolean ended | |
| eventHandler | back to summary |
|---|---|
| private HttpEventHandler eventHandler | |
| expectMultipart | back to summary |
|---|---|
| private boolean expectMultipart | |
| headersMap | back to summary |
|---|---|
| private final MultiMap headersMap | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| params | back to summary |
|---|---|
| private MultiMap params | |
| paramsCharset | back to summary |
|---|---|
| private Charset paramsCharset | |
| postRequestDecoder | back to summary |
|---|---|
| private HttpPostRequestDecoder postRequestDecoder | |
| response | back to summary |
|---|---|
| protected final Http2ServerResponse response | |
| semicolonIsNormalCharInParams | back to summary |
|---|---|
| private boolean semicolonIsNormalCharInParams | |
| serverOrigin | back to summary |
|---|---|
| private final String serverOrigin | |
| stream | back to summary |
|---|---|
| protected final Http2ServerStream stream | |
| streamPriorityHandler | back to summary |
|---|---|
| private Handler<StreamPriority> streamPriorityHandler | |
| uploadHandler | back to summary |
|---|---|
| private Handler<HttpServerFileUpload> uploadHandler | |
| Http2ServerRequest | back to summary |
|---|---|
| pack-priv Http2ServerRequest(Http2ServerStream stream, String serverOrigin, Http2Headers headers, String contentEncoding) | |
| absoluteURI | back to summary |
|---|---|
| public String absoluteURI() Implements io.
| |
| authority | back to summary |
|---|---|
| public @Nullable HostAndPort authority() Implements io.
| |
| body | back to summary |
|---|---|
| public synchronized Future Implements io. Doc from io. Convenience method for receiving the entire request body in one piece. This saves you having to manually set a dataHandler and an endHandler and append the chunks of the body until the whole body received. Don't use this if your request body is large - you could potentially run out of RAM. | |
| bytesRead | back to summary |
|---|---|
| public long bytesRead() Implements io.
| |
| checkEnded | back to summary |
|---|---|
| private void checkEnded() | |
| connection | back to summary |
|---|---|
| public HttpConnection connection() Implements io.
| |
| context | back to summary |
|---|---|
| public Context context() Implements abstract io.
| |
| cookies | back to summary |
|---|---|
| public Set Implements io. Doc from io. Returns a modifiable set of parsed cookies from the | |
| cookies | back to summary |
|---|---|
| public Set Implements io. Doc from io. Returns a read only set of parsed cookies that match the given name, or an empty set. Several cookies may share the
same name but have different keys. A cookie is unique by its Note the returned | |
| customFrameHandler | back to summary |
|---|---|
| public HttpServerRequest customFrameHandler(Handler<HttpFrame> handler) Implements io. Doc from io. Set a custom frame handler. The handler will get notified when the http stream receives an custom HTTP/2 frame. HTTP/2 permits extension of the protocol.
| |
| decoderResult | back to summary |
|---|---|
| public DecoderResult decoderResult() Implements io.
| |
| dispatch | back to summary |
|---|---|
| public void dispatch(Handler<HttpServerRequest> handler) Implements io. | |
| end | back to summary |
|---|---|
| public synchronized Future Implements io. Doc from io. Returns a future signaling when the request has been fully received successfully or failed. | |
| endHandler | back to summary |
|---|---|
| public HttpServerRequest endHandler(Handler<Void> handler) Implements io.
| |
| eventHandler | back to summary |
|---|---|
| private HttpEventHandler eventHandler(boolean create) | |
| exceptionHandler | back to summary |
|---|---|
| public HttpServerRequest exceptionHandler(Handler<Throwable> handler) Implements io.
| |
| fetch | back to summary |
|---|---|
| public HttpServerRequest fetch(long amount) Implements io. Doc from io. Fetch the specified
| |
| formAttributes | back to summary |
|---|---|
| public MultiMap formAttributes() Implements io. Doc from io. Returns a map of all form attributes in the request. Be aware that the attributes will only be available after the whole body has been received, i.e. after the request end handler has been called.
| |
| getCookie | back to summary |
|---|---|
| public Cookie getCookie(String name) Implements io. Doc from io. Get the cookie with the specified name. Note this will return just the 1st | |
| getCookie | back to summary |
|---|---|
| public Cookie getCookie(String name, String domain, String path) Implements io. Doc from io. Get the cookie with the specified | |
| getFormAttribute | back to summary |
|---|---|
| public String getFormAttribute(String attributeName) Implements io. Doc from io. Return the first form attribute value with the specified name | |
| getParamsCharset | back to summary |
|---|---|
| public String getParamsCharset() Implements io.
| |
| handleClose | back to summary |
|---|---|
| public void handleClose() Implements io.
| |
| handleCustomFrame | back to summary |
|---|---|
| public void handleCustomFrame(HttpFrame frame) Overrides default io.
| |
| handleData | back to summary |
|---|---|
| public void handleData(Buffer data) Overrides default io. References Deprecated
See corresponding docs for further information. | |
| handleEnd | back to summary |
|---|---|
| public void handleEnd(MultiMap trailers) Overrides default io. | |
| handleException | back to summary |
|---|---|
| public void handleException(Throwable cause) Implements io.
| |
| handlePriorityChange | back to summary |
|---|---|
| public void handlePriorityChange(StreamPriority streamPriority) Overrides default io.
| |
| handler | back to summary |
|---|---|
| public HttpServerRequest handler(Handler<Buffer> handler) Implements io.
| |
| handleReset | back to summary |
|---|---|
| public void handleReset(long errorCode) Implements io.
| |
| headers | back to summary |
|---|---|
| public MultiMap headers() Implements io.
| |
| host | back to summary |
|---|---|
| public String host() Implements io.
| |
| id | back to summary |
|---|---|
| public int id() Implements io.
| |
| isEnded | back to summary |
|---|---|
| public boolean isEnded() Implements io. Doc from io. Has the request ended? I.e. has the entire request, including the body been read?
| |
| isExpectMultipart | back to summary |
|---|---|
| public boolean isExpectMultipart() Implements io.
| |
| method | back to summary |
|---|---|
| public HttpMethod method() Implements io.
| |
| metric | back to summary |
|---|---|
| public Object metric() Implements abstract io.
| |
| notifyException | back to summary |
|---|---|
| private void notifyException(Throwable failure) | |
| params | back to summary |
|---|---|
| public MultiMap params(boolean semicolonIsNormalChar) Implements io.
| |
| path | back to summary |
|---|---|
| public String path() Implements io.
| |
| pause | back to summary |
|---|---|
| public HttpServerRequest pause() Implements io. Doc from io. Pause the
While it's paused, no data will be sent to the data
| |
| peerCertificateChain | back to summary |
|---|---|
| public X509Certificate[] peerCertificateChain() throws SSLPeerUnverifiedException Implements io. Doc from io. References Deprecated
See corresponding docs for further information. Note Java SE 5+ recommends to use javax.net.ssl.SSLSession#getPeerCertificates() instead of
of javax.net.ssl.SSLSession#getPeerCertificateChain() which this method is based on. Use
| |
| query | back to summary |
|---|---|
| public String query() Implements io.
| |
| remoteAddress | back to summary |
|---|---|
| public SocketAddress remoteAddress() Overrides default io. Implements io.
| |
| response | back to summary |
|---|---|
| public Http2ServerResponse response() Implements io.
| |
| resume | back to summary |
|---|---|
| public HttpServerRequest resume() Implements io. Doc from io. Resume reading, and sets the buffer in
If the
| |
| routed | back to summary |
|---|---|
| public HttpServerRequest routed(String route) Overrides default io. Doc from io. Marks this request as being routed to the given route. This is purely informational and is being provided to metrics. | |
| scheme | back to summary |
|---|---|
| public String scheme() Implements io.
| |
| setExpectMultipart | back to summary |
|---|---|
| public HttpServerRequest setExpectMultipart(boolean expect) Implements io. Doc from io. Call this with true if you are expecting a multi-part body to be submitted in the request. This must be called before the body of the request has been received
| |
| setParamsCharset | back to summary |
|---|---|
| public HttpServerRequest setParamsCharset(String charset) Implements io. Doc from io. Override the charset to use for decoding the query parameter map, when none is set,
| |
| streamId | back to summary |
|---|---|
| public int streamId() Overrides default io.
| |
| streamPriority | back to summary |
|---|---|
| public StreamPriority streamPriority() Overrides default io.
| |
| streamPriorityHandler | back to summary |
|---|---|
| public HttpServerRequest streamPriorityHandler(Handler<StreamPriority> handler) Implements io. Doc from io. Set an handler for stream priority changes This is not implemented for HTTP/1.x.
| |
| toNetSocket | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| toWebSocket | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| uploadHandler | back to summary |
|---|---|
public HttpServerRequest uploadHandler(@Nullable Handler<HttpServerFileUpload> handler)
| |
| uri | back to summary |
|---|---|
| public String uri() Implements io.
| |
| version | back to summary |
|---|---|
| public HttpVersion version() Implements io.
| |