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) StringBuilder
asString(StringBuilder b)
String
getMatchPath()
Get the path name that this rule matches, ornull
if this rule does not match by path.(package private) boolean
halfEqual(MatchRule other)
int
hashCode()
Get the hash code of this rule.boolean
isPathMatched()
Determine whether this rule matches based on path name.boolean
matches(URI uri, String abstractType, String abstractTypeAuthority)
Determine if this rule matches the given URI, and type.private boolean
prefixes(String pathSpec)
(package private) MatchRule
reparent(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:MatchRule
Determine if this rule matches the given URI, and type.
-
getMatchPath
public String getMatchPath()
Description copied from class:MatchRule
Get the path name that this rule matches, ornull
if this rule does not match by path.- Overrides:
getMatchPath
in classMatchRule
- Returns:
- the path name, or
null
if there is none
-
isPathMatched
public boolean isPathMatched()
Description copied from class:MatchRule
Determine whether this rule matches based on path name.- Overrides:
isPathMatched
in classMatchRule
- Returns:
true
if the rule matches based on path name,false
otherwise
-
hashCode
public int hashCode()
Description copied from class:MatchRule
Get the hash code of this rule.
-
prefixes
private boolean prefixes(String pathSpec)
-
asString
StringBuilder asString(StringBuilder b)
-
-