T - The type that the compare method is going to return instances of.E - The exception type thrown by the canonicalize method.public abstract class BaseURLResourceName<T,E extends Exception> extends BasePrefixResourceName<T,E>
BasePrefixResourceName to provide special handling to URL type prefix resource
names in canonicalize method like validating port, assigning default port of
80, if port absent etc.BaseResourceName,
BasePrefixResourceName| Modifier and Type | Field and Description |
|---|---|
protected static Comparator<String> |
comparator
Query parameter comparator.
|
caseSensitive, debug, delimiter, exactMatch, noMatch, oneLevelWildcard, oneLevelWildcardEmbedded, oneLevelWildcardLength, subResourceMatch, superResourceMatch, wildcard, wildcardEmbedded, wildcardLength, wildcardMatch| Modifier | Constructor and Description |
|---|---|
protected |
BaseURLResourceName(Debug debug,
T exactMatch,
T noMatch,
T subResourceMatch,
T superResourceMatch,
T wildcardMatch)
Constructs a new BaseURLResourceName instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
canonicalize(String urlStr)
This method is used to canonicalize a url string.
|
T |
compare(String requestResource,
String targetResource,
boolean wildcardCompare)
Specific comparison for URLs, where a wildcard in the host/port should not match any of the path.
|
append, constructResourceInvalidException, getServiceTypeNames, getSubResource, initialize, normalizeRequestResource, normalizeTargetResource, oneLevelWildcardCompare, splitprotected static Comparator<String> comparator
protected BaseURLResourceName(Debug debug, T exactMatch, T noMatch, T subResourceMatch, T superResourceMatch, T wildcardMatch)
debug - The debug instance.exactMatch - The object to return on an exact match.noMatch - The object to return on no match.subResourceMatch - The object to return on a sub-resource match.superResourceMatch - The object to return on a super-resource match.wildcardMatch - The object to return on a wildcard match.public T compare(String requestResource, String targetResource, boolean wildcardCompare)
compare in interface BaseResourceName<T,E extends Exception>compare in class BasePrefixResourceName<T,E extends Exception>requestResource - name of the resource which will be comparedtargetResource - name of the resource which will be compared withwildcardCompare - flag for wildcard comparisonpublic String canonicalize(String urlStr) throws E extends Exception
canonicalize in interface BaseResourceName<T,E extends Exception>canonicalize in class BasePrefixResourceName<T,E extends Exception>urlStr - the url string to be canonicalizedE - if the url string is invalidE extends ExceptionCopyright © 2010–2023 Open Identity Platform Community. All rights reserved.