Class HttpURLResourceName

    • Constructor Detail

      • HttpURLResourceName

        public HttpURLResourceName()
        Deprecated.
    • Method Detail

      • compare

        public ResourceMatch compare​(String requestResource,
                                     String targetResource,
                                     boolean wildcardCompare)
        Deprecated.
        Description copied from class: BaseURLResourceName
        Specific comparison for URLs, where a wildcard in the host/port should not match any of the path. Strings should be canonicalized prior to entering this comparison, else they will be compared by the super class' comparison function.
        Specified by:
        compare in interface BaseResourceName<ResourceMatch,​PolicyException>
        Overrides:
        compare in class BaseURLResourceName<ResourceMatch,​PolicyException>
        Parameters:
        requestResource - name of the resource which will be compared
        targetResource - name of the resource which will be compared with
        wildcardCompare - flag for wildcard comparison
        Returns:
        If a wildcard is in the host/port, separately compares the path/query and scheme/host/port, returning NO_MATCH if any don't match. Otherwise returns the match of the port/path/query.