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.
|
String |
param(String name) |
Returns value of single parameter resolved by relevant
PathMatcher. |
List<String> |
segments() |
Returns path as a list of its segments.
|
String |
toString() |
Returns a path string representation with leading slash.
|
String param(String name)
PathMatcher.name - a parameter namenull if not existList<String> segments()
String toString()
ServerRequest.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 and/or its affiliates. All Rights Reserved. Use is subject to license terms.