Class MatchHostRule

    • Field Detail

      • validHostSpecPattern

        private static final Pattern validHostSpecPattern
      • suffixMatch

        private final boolean suffixMatch
      • hostSpec

        private final String hostSpec
    • Constructor Detail

    • Method Detail

      • matches

        public boolean matches​(URI uri,
                               String abstractType,
                               String abstractTypeAuthority)
        Description copied from class: MatchRule
        Determine if this rule matches the given URI, and type.
        Overrides:
        matches in class MatchRule
        Parameters:
        uri - the URI to test
        abstractType - the abstract type of the connection (may be null)
        abstractTypeAuthority - the authority name of the abstract type (may be null)
        Returns:
        true if the rule matches, false otherwise
      • getMatchHost

        public String getMatchHost()
        Description copied from class: MatchRule
        Get the host name that this rule matches, or null if this rule does not match by host.
        Overrides:
        getMatchHost in class MatchRule
        Returns:
        the host name, or null if there is none
      • isHostMatched

        public boolean isHostMatched()
        Description copied from class: MatchRule
        Determine whether this rule matches based on host name.
        Overrides:
        isHostMatched in class MatchRule
        Returns:
        true if the rule matches based on host name, false otherwise
      • hashCode

        public int hashCode()
        Description copied from class: MatchRule
        Get the hash code of this rule.
        Specified by:
        hashCode in class MatchRule
        Returns:
        the hash code