|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensaml.util.SimpleURLCanonicalizer
public final class SimpleURLCanonicalizer
This class performs simple canonicalization of a URL as follows:
| Field Summary | |
|---|---|
private static Map<String,Integer> |
schemePortMap
The scheme-to-port mapping data. |
| Constructor Summary | |
|---|---|
private |
SimpleURLCanonicalizer()
Constructor to prevent instantiation. |
| Method Summary | |
|---|---|
static String |
canonicalize(String url)
Canonicalize the supplied URL. |
private static void |
canonicalize(URLBuilder url)
Canonicalize the supplied URLBuilder data. |
static void |
deregisterSchemePortMapping(String scheme)
Deregister a scheme-to-port mapping. |
static Integer |
getRegisteredPort(String scheme)
Obtain the default port registered for a scheme. |
static void |
registerSchemePortMapping(String scheme,
Integer port)
Register a new scheme-to-port mapping. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static Map<String,Integer> schemePortMap
| Constructor Detail |
|---|
private SimpleURLCanonicalizer()
| Method Detail |
|---|
public static void registerSchemePortMapping(String scheme,
Integer port)
scheme - the scheme to registerport - the default port for that schemepublic static void deregisterSchemePortMapping(String scheme)
scheme - the scheme to deregisterpublic static Integer getRegisteredPort(String scheme)
scheme - the scheme to look up
public static String canonicalize(String url)
url - the URL to canonicalize
private static void canonicalize(URLBuilder url)
url - the URLBuilder to canonicalize
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||