public interface IURLData extends Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsParam(String sName)
Check if at least one parameter with the given name is contained.
|
URLParameterList |
directGetAllParams() |
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() |
default IURLProtocol |
getProtocol() |
default boolean |
hasAnchor() |
default boolean |
hasAnchor(String sAnchor)
Check if this URL has an anchor with the passed name.
|
default boolean |
hasKnownProtocol() |
boolean |
hasParams() |
@Nullable default IURLProtocol getProtocol()
null for an unknown
protocol.default boolean hasKnownProtocol()
true if the URL has a known protocol@Nonnull String getPath()
null but maybe empty (e.g.
for "?x=y").boolean hasParams()
true if at least one parameter is present,
false otherwise.@Nonnegative int getParamCount()
@Nullable @ReturnsMutableObject(value="design") URLParameterList directGetAllParams()
null.@Nonnull @ReturnsMutableCopy URLParameterList getAllParams()
null.boolean containsParam(@Nullable String sName)
sName - The name to check. May be null.true if at least one parameter with this name is
present, false otherwise.@Nullable String getParam(@Nullable String sName)
sName - The key to check. May be null.null if no such parameter is present.@Nonnull @ReturnsMutableCopy ICommonsList<String> getAllParams(@Nullable String sName)
sName - The key to check. May be null.null but maybe empty list.@Nullable String getAnchor()
null if none is defined.default boolean hasAnchor()
true if an anchor is present, false
otherwise.Copyright © 2014–2017 Philip Helger. All rights reserved.