public class UrlIdentifier extends java.lang.Object implements Identifier
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
_log |
private java.net.URL |
_urlIdentifier |
private static boolean |
DEBUG |
private static java.util.Set |
UNRESERVED_CHARACTERS |
Constructor and Description |
---|
UrlIdentifier(java.lang.String identifier) |
UrlIdentifier(java.lang.String identifier,
boolean removeFragment) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getIdentifier() |
java.net.URL |
getUrl() |
int |
hashCode() |
static java.net.URL |
normalize(java.lang.String text) |
static java.net.URL |
normalize(java.lang.String text,
boolean removeFragment) |
private static java.lang.String |
normalizeUrlEncoding(java.lang.String text) |
java.lang.String |
toString() |
private static org.apache.commons.logging.Log _log
private static final boolean DEBUG
private static final java.util.Set UNRESERVED_CHARACTERS
private java.net.URL _urlIdentifier
public UrlIdentifier(java.lang.String identifier) throws DiscoveryException
DiscoveryException
public UrlIdentifier(java.lang.String identifier, boolean removeFragment) throws DiscoveryException
DiscoveryException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getIdentifier()
getIdentifier
in interface Identifier
public java.lang.String toString()
toString
in class java.lang.Object
public java.net.URL getUrl()
public static java.net.URL normalize(java.lang.String text) throws DiscoveryException
DiscoveryException
public static java.net.URL normalize(java.lang.String text, boolean removeFragment) throws DiscoveryException
DiscoveryException
private static java.lang.String normalizeUrlEncoding(java.lang.String text)
Copyright 2006-2008 Sxip Identity Corporation