public static interface ServerRequest.Path
PathMatcher.| Modifier and Type | Method | Description |
|---|---|---|
ServerRequest.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 by relevant
PathMatcher. |
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)
PathMatcher.name - a parameter namenull if not existjava.util.List<java.lang.String> segments()
java.lang.String toString()
toString in class java.lang.ObjectServerRequest.Path absolute()
The absolute path also contains access to path parameters defined in context PathMatchers. If there is
name conflict then value represents latest matcher result.
Copyright © 2018 Oracle Corporation. All rights reserved.