Package com.helger.commons.url
Class URLData
java.lang.Object
com.helger.commons.url.URLData
- All Implemented Interfaces:
ISimpleURL
Read-only implementation of
ISimpleURL- Author:
- Philip Helger
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionURLData(String sPath, URLParameterList aParams) URLData(String sPath, URLParameterList aParams, String sAnchor) -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.commons.url.ISimpleURL
getAsStringWithEncodedParameters, getAsStringWithEncodedParameters, getAsStringWithoutEncodedParameters, getAsURI, getAsURL, getProtocol, hasAnchor, hasAnchor, hasKnownProtocol
-
Field Details
-
EMPTY_URL_DATA
The string representing an empty URL. Must contain at least one character.
-
-
Constructor Details
-
URLData
-
URLData
-
URLData
-
-
Method Details
-
getPath
- Specified by:
getPathin interfaceISimpleURL- Returns:
- The path part of the URL (everything before the "?" and the "#",
incl. the protocol). Never
nullbut maybe empty (e.g. for "?x=y").
-
params
- Specified by:
paramsin interfaceISimpleURL- Returns:
- A map of all query string parameters. May be
null.
-
getAnchor
- Specified by:
getAnchorin interfaceISimpleURL- Returns:
- The name of the anchor (everything after the "#") or
nullif none is defined.
-
equals
-
hashCode
public int hashCode() -
toString
-