delegate instance.
Implementing HttpServerRequest or extending HttpServerRequestInternal is not encouraged however if that is necessary,
implementations should favor extending this class to ensure minimum breakage when new methods are added to the interface.
The delegate instance can be accessed using protected final delegate field, any implemented method can be overridden.
| Modifier and Type | Field and Description |
|---|---|
| protected final HttpServerRequestInternal |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public HostAndPort | |
| public Future | body()
Implements io. Convenience method for receiving the entire request body in one piece. |
| public long | |
| public HttpConnection | |
| public Context | |
| 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 Set | cookies()
Implements io. Returns a modifiable set of parsed cookies from the |
| public HttpServerRequest | customFrameHandler(Handler<HttpFrame> handler)
Implements io. Set a custom frame handler. |
| public DecoderResult | |
| public Future | end()
Implements io. Returns a future signaling when the request has been fully received successfully or failed. |
| public HttpServerRequest | |
| 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 @Nullable Cookie | getCookie(String
the cookie name name)Implements io. Get the cookie with the specified name. |
| public @Nullable 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 @Nullable String | getFormAttribute(String
the attribute name attributeName)Implements io. Return the first form attribute value with the specified name |
| public String | |
| public HttpServerRequest | |
| public MultiMap | |
| public String | |
| public boolean | |
| public boolean | |
| public boolean | isValidAuthority()
Overrides io. This method act as |
| public HttpMethod | |
| public Object | |
| 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 HttpServerResponse | |
| 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 |
| delegate | back to summary |
|---|---|
| protected final HttpServerRequestInternal delegate | |
| HttpServerRequestWrapper | back to summary |
|---|---|
| public HttpServerRequestWrapper(HttpServerRequestInternal delegate) | |
| absoluteURI | back to summary |
|---|---|
| public String absoluteURI() Implements io.
| |
| authority | back to summary |
|---|---|
| public HostAndPort authority() Implements io.
| |
| body | back to summary |
|---|---|
| public 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.
| |
| 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 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 | |
| cookies | back to summary |
|---|---|
| public Set Implements io. Doc from io. Returns a modifiable set of parsed cookies from the | |
| 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.
| |
| end | back to summary |
|---|---|
| public 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> endHandler) Implements io.
| |
| 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 @Nullable 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 @Nullable Cookie getCookie(String name, String domain, String path) Implements io. Doc from io. Get the cookie with the specified | |
| getFormAttribute | back to summary |
|---|---|
| public @Nullable 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.
| |
| handler | back to summary |
|---|---|
| public HttpServerRequest handler(Handler<Buffer> handler) Implements io.
| |
| headers | back to summary |
|---|---|
| public MultiMap headers() Implements io.
| |
| host | back to summary |
|---|---|
| public String host() 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.
| |
| isValidAuthority | back to summary |
|---|---|
| public boolean isValidAuthority() Overrides io. Doc from io. This method act as
| |
| method | back to summary |
|---|---|
| public HttpMethod method() Implements io.
| |
| metric | back to summary |
|---|---|
| public Object metric() Implements abstract io.
| |
| 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.
| |
| response | back to summary |
|---|---|
| public HttpServerResponse 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> uploadHandler) | |
| uri | back to summary |
|---|---|
| public String uri() Implements io.
| |
| version | back to summary |
|---|---|
| public HttpVersion version() Implements io.
| |