Class MatchPortRule

    • Field Detail

      • port

        private final int port
    • Constructor Detail

      • MatchPortRule

        MatchPortRule​(MatchRule parent,
                      int port)
    • 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.
        matches in class MatchRule
        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)
        true if the rule matches, false otherwise
      • getMatchPort

        public int getMatchPort()
        Description copied from class: MatchRule
        Get the port number that this rule matches, or 0 if this rule does not match by port.
        getMatchPort in class MatchRule
        the port number, or 0 if there is none
      • hashCode

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