Class HttpInputPathImpl

    • Constructor Detail

      • HttpInputPathImpl

        public HttpInputPathImpl​(java.lang.String routePath,
                                 HttpInputPathSegment segmentHead,
                                 int parameterCount)
        Instantiate.
        Parameters:
        routePath - Route path.
        segmentHead - Head HttpInputPathSegment of linked list of HttpInputPathSegment instances.
        parameterCount - Number of path parameters for sorting routes.
    • Method Detail

      • isPathParameters

        public boolean isPathParameters()
        ================ HttpInputPath =======================
        Specified by:
        isPathParameters in interface HttpInputPath
        Returns:
        true if the path contains parameters.
      • isMatchPath

        public boolean isMatchPath​(java.lang.String path,
                                   int endingPathParameterTerminatingCharacter)
        Description copied from interface: HttpInputPath
        Indicates if the path matches the HttpInput path.
        Specified by:
        isMatchPath in interface HttpInputPath
        Parameters:
        path - Path.
        endingPathParameterTerminatingCharacter - Character value for the Character that terminates the ending path parameter. This is ignored if the last part of the path is static (i.e. only applies for last parameter to know when it terminates the path, e.g. /path/{last}). Should the last parameter consume the remainder of the path, provide -1 to indicate no terminating Character.
        Returns:
        true if the path matches the HttpInput path.