PathContainer that subdivides the path into a
contextPath() and the remaining pathWithinApplication().
The latter is typically used for request mapping within the application
while the former is useful when preparing external links that point back to
the application.
| Modifier and Type | Method and Description |
|---|---|
| public PathContainer | |
| public RequestPath | Returns: a newRequestPath instancethe new context path contextPath)Return a new |
| public static RequestPath | |
| public static RequestPath | parse(String
the path rawPath, String the contextPath portion of the URI path contextPath)Variant of |
| public PathContainer | pathWithinApplication()
The portion of the request path after the context path which is typically used for request mapping within the application. |
| contextPath | back to summary |
|---|---|
| public PathContainer contextPath() Returns the portion of the URL path that represents the application. The context path is always at the beginning of the path and starts but does not end with "/". It is shared for URLs of the same application. 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
| |
| modifyContextPath | back to summary |
|---|---|
| public RequestPath modifyContextPath(String contextPath) Return a new
| |
| parse | back to summary |
|---|---|
| public static RequestPath parse(URI uri, String contextPath) Parse the URI for a request into a | |
| parse | back to summary |
|---|---|
| public static RequestPath parse(String rawPath, String contextPath) Variant of | |
| pathWithinApplication | back to summary |
|---|---|
| public PathContainer pathWithinApplication() The portion of the request path after the context path which is typically used for request mapping within the application. | |