Package org.wildfly.security.auth.client
Class MatchHostRule
- java.lang.Object
-
- org.wildfly.security.auth.client.MatchRule
-
- org.wildfly.security.auth.client.MatchHostRule
-
class MatchHostRule extends MatchRule
- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private StringhostSpecprivate booleansuffixMatchprivate static PatternvalidHostSpecPattern
-
Constructor Summary
Constructors Constructor Description MatchHostRule(MatchRule parent, String hostSpec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) StringBuilderasString(StringBuilder b)StringgetMatchHost()Get the host name that this rule matches, ornullif this rule does not match by host.(package private) booleanhalfEqual(MatchRule other)inthashCode()Get the hash code of this rule.booleanisHostMatched()Determine whether this rule matches based on host name.booleanmatches(URI uri, String abstractType, String abstractTypeAuthority)Determine if this rule matches the given URI, and type.(package private) MatchRulereparent(MatchRule newParent)-
Methods inherited from class org.wildfly.security.auth.client.MatchRule
equals, equals, getMatchAbstractType, getMatchAbstractTypeAuthority, getMatchNetwork, getMatchPath, getMatchPort, getMatchProtocol, getMatchUrnName, getMatchUser, isNetworkMatched, isPathMatched, isPortMatched, isProtocolMatched, isTypeAuthorityMatched, isTypeMatched, isUrnNameMatched, isUserMatched, matchAbstractType, matchAddress, matchAnyUser, matches, matchHost, matchLocalSecurityDomain, matchNetwork, matchNoUser, matchPath, matchPort, matchProtocol, matchUrnName, matchUser, parentAsString, parentHalfEqual, parentHashCode, toString, without
-
-
-
-
Method Detail
-
matches
public boolean matches(URI uri, String abstractType, String abstractTypeAuthority)
Description copied from class:MatchRuleDetermine if this rule matches the given URI, and type.
-
getMatchHost
public String getMatchHost()
Description copied from class:MatchRuleGet the host name that this rule matches, ornullif this rule does not match by host.- Overrides:
getMatchHostin classMatchRule- Returns:
- the host name, or
nullif there is none
-
isHostMatched
public boolean isHostMatched()
Description copied from class:MatchRuleDetermine whether this rule matches based on host name.- Overrides:
isHostMatchedin classMatchRule- Returns:
trueif the rule matches based on host name,falseotherwise
-
hashCode
public int hashCode()
Description copied from class:MatchRuleGet the hash code of this rule.
-
asString
StringBuilder asString(StringBuilder b)
-
-