Class MatchNetworkRule

    • Field Detail

      • cidrAddress

        private final org.wildfly.common.net.CidrAddress cidrAddress
    • Constructor Detail

      • MatchNetworkRule

        MatchNetworkRule​(MatchRule parent,
                         org.wildfly.common.net.CidrAddress cidrAddress)
    • 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
      • isNetworkMatched

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

        public org.wildfly.common.net.CidrAddress getMatchNetwork()
        Description copied from class: MatchRule
        Get the network that this rule matches, or null if this rule does not match by network.
        Overrides:
        getMatchNetwork in class MatchRule
        Returns:
        the network that this rule matches, or null 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
        Returns:
        the hash code