public class PrefixResourceName extends BasePrefixResourceName<ResourceMatch,EntitlementException> implements ResourceName
ResourceName
interface
it provides methods to do resource comparisons and resource
handling based on prefix based string match going left to right.
This kind of pattern matching would be used by URL kind of resources.caseSensitive, debug, delimiter, exactMatch, noMatch, oneLevelWildcard, oneLevelWildcardEmbedded, oneLevelWildcardLength, subResourceMatch, superResourceMatch, wildcard, wildcardEmbedded, wildcardLength, wildcardMatch
Constructor and Description |
---|
PrefixResourceName()
empty no argument constructor.
|
Modifier and Type | Method and Description |
---|---|
protected EntitlementException |
constructResourceInvalidException(Object[] args)
Construct the exception that will be thrown if the resource is invalid during canonicalize.
|
protected String |
normalizeRequestResource(String requestResource)
If further normalization of
requestResource is required during comparison, it can be added here. |
protected String |
normalizeTargetResource(String targetResource)
If further normalization of
targetResource is required during comparison, it can be added here. |
append, canonicalize, compare, getServiceTypeNames, getSubResource, initialize, oneLevelWildcardCompare, split
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
append, canonicalize, compare, getServiceTypeNames, getSubResource, initialize, split
protected String normalizeRequestResource(String requestResource)
BasePrefixResourceName
requestResource
is required during comparison, it can be added here.normalizeRequestResource
in class BasePrefixResourceName<ResourceMatch,EntitlementException>
requestResource
- The target resource from the compare method.protected String normalizeTargetResource(String targetResource)
BasePrefixResourceName
targetResource
is required during comparison, it can be added here.normalizeTargetResource
in class BasePrefixResourceName<ResourceMatch,EntitlementException>
targetResource
- The target resource from the compare method.protected EntitlementException constructResourceInvalidException(Object[] args)
BasePrefixResourceName
constructResourceInvalidException
in class BasePrefixResourceName<ResourceMatch,EntitlementException>
args
- The exception arguments.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.