public interface HttpRequest
| Modifier and Type | Interface and Description |
|---|---|
static interface |
HttpRequest.Path
Represents requested normalised URI path.
|
| Modifier and Type | Method and Description |
|---|---|
String |
fragment()
Returns a decoded request URI fragment without leading hash '#' character.
|
Http.RequestMethod |
method()
Returns an HTTP request method.
|
HttpRequest.Path |
path()
Returns a path which was accepted by matcher in actual routing.
|
String |
query()
Returns an encoded query string without leading '?' character.
|
Parameters |
queryParams()
Returns query parameters.
|
URI |
uri()
Returns a Request-URI (or alternatively path) as defined in request line.
|
Http.Version |
version()
Returns an HTTP version from the request line.
|
Http.RequestMethod method()
HTTP standard methods utility class.Http.MethodHttp.Version version()
See HTTP Version enumeration for supported versions.
If communication starts as a HTTP/1.1 with h2c upgrade, then it will be automatically
upgraded and this method returns HTTP/2.0.
URI uri()
String query()
Parameters queryParams()
HttpRequest.Path path()
Use HttpRequest.Path.absolute() method to obtain absolute request URI path representation.
Returned HttpRequest.Path also provide access to path template parameters. An absolute path then provides access to
all (including) context parameters if any. In case of conflict between parameter names, most recent value is returned.
String fragment()
Copyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.