Class WebRouter

    • Constructor Detail

    • Method Detail

      • transformToApplicationCanonicalPath

        public static java.lang.String transformToApplicationCanonicalPath​(java.lang.String path,
                                                                           java.lang.String contextPath)
                                                                    throws HttpException

        Transforms the path to canonical path for the application.

        Available for routing to call directly to avoid ManagedObject creation.

        Parameters:
        path - Path to be transformed.
        contextPath - Context path of the application. May be null if context at root.
        Returns:
        Canonical path for the application.
        Throws:
        HttpException - If path is invalid.
      • transformToCanonicalPath

        public static java.lang.String transformToCanonicalPath​(java.lang.String path)
                                                         throws HttpException
        Transforms the input Request URI path to a canonical path.
        Parameters:
        path - Path to transform.
        Returns:
        Canonical path.
        Throws:
        HttpException - Should the Request URI path be invalid.