public final class MetadataIndexSupport extends Object
Modifier | Constructor and Description |
---|---|
private |
MetadataIndexSupport()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static String |
canonicalizeLocationURI(String input)
Canonicalize a location to be indexed.
|
static String |
trimURLPathSegment(String input)
Trim the right-most segment from the specified URL path.
|
@Nonnull public static String canonicalizeLocationURI(@Nonnull String input) throws MalformedURLException
Query, fragment and username/password are removed. Then further canonicalization
is performed as implemented by SimpleURLCanonicalizer
.
input
- the locationMalformedURLException
- if URL can not be canonicalized@Nullable public static String trimURLPathSegment(@Nullable String input)
The input should be the path only, with no query or fragment.
Paths ending in "/" return the input with the trailing slash omitted, except for the special case of input == "/", which returns null. Paths not ending in "/" return the input with the right-most segment removed, and including a trailing slash.
input
- the path to evaluateCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.