Interface RequestPath

    • Method Detail

      • contextPath

        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 ContextPathCompositeHandler.

      • modifyContextPath

        RequestPath modifyContextPath​(String contextPath)
        Return a new RequestPath instance with a modified context path. The new context path must match 0 or more path segments at the start.
        Parameters:
        contextPath - the new context path
        Returns:
        a new RequestPath instance