@Immutable public class URLData extends Object implements IURLData
IURLData interface.| Modifier and Type | Field and Description |
|---|---|
static URLData |
EMPTY_URL_DATA
The string representing an empty URL.
|
| Constructor and Description |
|---|
URLData(String sPath) |
URLData(String sPath,
URLParameterList aParams) |
URLData(String sPath,
URLParameterList aParams,
String sAnchor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsParam(String sName)
Check if at least one parameter with the given name is contained.
|
URLParameterList |
directGetAllParams() |
boolean |
equals(Object o) |
URLParameterList |
getAllParams() |
ICommonsList<String> |
getAllParams(String sName)
Get all parameter values of the passed key.
|
String |
getAnchor() |
String |
getParam(String sName)
Get the first parameter value of the given key.
|
int |
getParamCount() |
String |
getPath() |
int |
hashCode() |
boolean |
hasParams() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetProtocol, hasAnchor, hasAnchor, hasKnownProtocolpublic static final URLData EMPTY_URL_DATA
public URLData(@Nonnull String sPath, @Nullable URLParameterList aParams)
public boolean hasParams()
@Nonnegative public int getParamCount()
getParamCount in interface IURLDatapublic final boolean containsParam(@Nullable String sName)
IURLDatacontainsParam in interface IURLDatasName - The name to check. May be null.true if at least one parameter with this name is
present, false otherwise.@Nullable public final String getParam(@Nullable String sName)
IURLData@Nullable public final ICommonsList<String> getAllParams(@Nullable String sName)
IURLDatagetAllParams in interface IURLDatasName - The key to check. May be null.null but maybe empty list.@Nullable @ReturnsMutableObject(value="design") public final URLParameterList directGetAllParams()
directGetAllParams in interface IURLDatanull.@Nonnull @ReturnsMutableCopy public final URLParameterList getAllParams()
getAllParams in interface IURLDatanull.Copyright © 2014–2017 Philip Helger. All rights reserved.