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.
|
String |
param(String name)
Returns value of single parameter resolved from path pattern.
|
List<String> |
segments()
Returns path as a list of its segments.
|
String |
toRawString()
Returns a path string representation with leading slash without
any character decoding.
|
String |
toString()
Returns a path string representation with leading slash.
|
String param(String name)
name - a parameter namenull if not existList<String> segments()
String toString()
String toRawString()
HttpRequest.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–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.