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