public class HttpURLResourceName extends URLResourceName
ResourceName extends
URLResourceName to add special handling of resources which end
in delimiter (BaseURLResourceName)
followed by a multi level wildcard. Wildcard card at the end matches across levels.
so http://abc.com/b/c/d/* matches
http://abc.com/b/c/d/e/f/g.html
while http://abc.com/"*"/d matches only string of type
http://abc.com/a/d. So embedded wildcard matches only at that
level where specified, while wildcard at the end, matches
across levels.
Behaviour of existing URLResourceName was not changed to
maintain backward compatibility.BaseURLResourceName}comparatorcaseSensitive, debug, delimiter, exactMatch, noMatch, oneLevelWildcard, oneLevelWildcardEmbedded, oneLevelWildcardLength, subResourceMatch, superResourceMatch, wildcard, wildcardEmbedded, wildcardLength, wildcardMatch| Constructor and Description |
|---|
HttpURLResourceName() |
| Modifier and Type | Method and Description |
|---|---|
ResourceMatch |
compare(String requestResource,
String targetResource,
boolean wildcardCompare)
Compares two resources.
|
constructResourceInvalidExceptioncanonicalizeappend, getServiceTypeNames, getSubResource, initialize, normalizeRequestResource, normalizeTargetResource, oneLevelWildcardCompare, splitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappend, canonicalize, getServiceTypeNames, getSubResource, initialize, splitpublic ResourceMatch compare(String requestResource, String targetResource, boolean wildcardCompare)
compare in interface BaseResourceName<ResourceMatch,MalformedURLException>compare in class BaseURLResourceName<ResourceMatch,MalformedURLException>requestResource - name of the resource which will be comparedtargetResource - name of the resource which will be compared withwildcardCompare - flag for wildcard comparisonResourceMatch that
specifies if the resources are exact match, or
otherwise.Copyright © 2010–2023 Open Identity Platform Community. All rights reserved.