public interface RequestPath extends PathContainer
PathContainer.Element, 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(java.lang.String contextPath)
Return a new
RequestPath instance with a modified context path. |
static RequestPath |
parse(java.net.URI uri,
java.lang.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(java.lang.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(java.net.URI uri, @Nullable java.lang.String contextPath)
RequestPath
with the given parameters.