public class SimpleURL extends AbstractSimpleURL implements ICloneable<SimpleURL>
URL.m_aParams, m_sAnchorEMPTY_URL_STRING| Constructor and Description |
|---|
SimpleURL() |
SimpleURL(IURLData aURL) |
SimpleURL(String sHref) |
SimpleURL(String sHref,
Map<String,String> aParams) |
SimpleURL(String sHref,
Map<String,String> aParams,
String sAnchor) |
| Modifier and Type | Method and Description |
|---|---|
SimpleURL |
add(String sKey)
Add a parameter without a value
|
SimpleURL |
add(String sKey,
BigInteger aValue) |
SimpleURL |
add(String sKey,
int nValue) |
SimpleURL |
add(String sKey,
long nValue) |
SimpleURL |
add(String sKey,
String sValue) |
SimpleURL |
addAll(Map<String,String> aParams) |
SimpleURL |
addIfNonNull(String sKey,
String sValue) |
SimpleURL |
getClone() |
SimpleURL |
remove(String sKey)
Remove the parameter with the given key.
|
SimpleURL |
setAnchor(String sAnchor) |
directGetParams, equals, getAllParams, getAnchor, getAsString, getAsStringWithEncodedParameters, getAsStringWithEncodedParameters, getAsStringWithEncodedParameters, getParam, getParamCount, getPath, getProtocol, hasAnchor, hashCode, hasKnownProtocol, hasParams, toStringpublic SimpleURL()
public SimpleURL(@Nonnull String sHref, @Nullable Map<String,String> aParams, @Nullable String sAnchor)
@Nonnull public SimpleURL add(@Nonnull@Nonempty String sKey)
sKey - The name of the parameter. May neither be null nor
empty.@Nonnull public SimpleURL addIfNonNull(@Nonnull@Nonempty String sKey, @Nullable String sValue)
@Nonnull public SimpleURL remove(@Nullable String sKey)
sKey - The key to remove@Nonnull public SimpleURL getClone()
getClone in interface ICloneable<SimpleURL>Copyright © 2006–2015 phloc systems. All rights reserved.