public static interface HttpRequest.Path
| Modifier and Type | Method and Description |
|---|---|
HttpRequest.Path |
absolute()
If the instance represents a path relative to some context root then returns absolute requested path otherwise
returns this instance.
|
java.lang.String |
param(java.lang.String name)
Returns value of single parameter resolved from path pattern.
|
java.util.List<java.lang.String> |
segments()
Returns path as a list of its segments.
|
java.lang.String |
toString()
Returns a path string representation with leading slash.
|
java.lang.String param(java.lang.String name)
name - a parameter namenull if not existjava.util.List<java.lang.String> segments()
java.lang.String toString()
toString in class java.lang.ObjectHttpRequest.Path absolute()
The absolute path also contains access to path parameters defined in context matchers. If there is name conflict then value represents latest matcher result.
Copyright © 2018 Oracle Corporation. All rights reserved.