public interface RequestPath extends PathContainer
PathContainer.Element, PathContainer.Options, PathContainer.PathSegment, PathContainer.Separator
Modifier and Type | Method and Description |
---|---|
PathContainer |
contextPath()
Returns the portion of the URL path that represents the application.
|
RequestPath |
modifyContextPath(String contextPath)
Return a new
RequestPath instance with a modified context path. |
static RequestPath |
parse(URI uri,
String contextPath)
Create a new
RequestPath with the given parameters. |
PathContainer |
pathWithinApplication()
The portion of the request path after the context path.
|
PathContainer contextPath()
The context path may come from the underlying runtime API such as
when deploying as a WAR to a Servlet container or it may be assigned in
a WebFlux application through the use of
ContextPathCompositeHandler
.
PathContainer pathWithinApplication()
RequestPath modifyContextPath(String contextPath)
RequestPath
instance with a modified context path.
The new context path must match 0 or more path segments at the start.contextPath
- the new context pathRequestPath
instancestatic RequestPath parse(URI uri, @Nullable String contextPath)
RequestPath
with the given parameters.