@NotThreadSafe public class SimpleURL extends Object implements ISimpleURL, ICloneable<SimpleURL>, IURLParameterList<SimpleURL>
URL.| Constructor and Description |
|---|
SimpleURL() |
SimpleURL(ISimpleURL aURL) |
SimpleURL(String sHref) |
SimpleURL(String sHref,
Charset aCharset) |
SimpleURL(String sHref,
Charset aCharset,
Iterable<? extends URLParameter> aParams,
String sAnchor) |
SimpleURL(String sHref,
Charset aCharset,
Map<String,String> aParams,
String sAnchor) |
SimpleURL(String sHref,
Iterable<? extends URLParameter> aParams,
String sAnchor) |
SimpleURL(String sHref,
Map<String,String> aParams) |
SimpleURL(String sHref,
Map<String,String> aParams,
String sAnchor) |
SimpleURL(URI aURI) |
SimpleURL(URI aURI,
Charset aCharset) |
SimpleURL(URL aURL) |
SimpleURL(URL aURL,
Charset aCharset) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(URLParameter aParam) |
boolean |
equals(Object o) |
String |
getAnchor() |
SimpleURL |
getClone() |
String |
getPath() |
int |
hashCode() |
URLParameterList |
params() |
SimpleURL |
setAnchor(String sAnchor) |
SimpleURL |
setPath(String sPath) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAsStringWithEncodedParameters, getAsStringWithEncodedParameters, getAsStringWithoutEncodedParameters, getAsURI, getAsURL, getProtocol, hasAnchor, hasAnchor, hasKnownProtocoladd, add, add, add, add, add, add, addAll, addAll, addAll, addIf, addIfNotNull, addRandomthisAsTpublic SimpleURL()
public SimpleURL(@Nonnull String sHref, @Nullable Map<String,String> aParams, @Nullable String sAnchor)
public SimpleURL(@Nonnull String sHref, @Nonnull Charset aCharset, @Nullable Map<String,String> aParams, @Nullable String sAnchor)
public SimpleURL(@Nonnull String sHref, @Nullable Iterable<? extends URLParameter> aParams, @Nullable String sAnchor)
public SimpleURL(@Nonnull String sHref, @Nonnull Charset aCharset, @Nullable Iterable<? extends URLParameter> aParams, @Nullable String sAnchor)
public SimpleURL(@Nonnull ISimpleURL aURL)
@Nonnull public final String getPath()
getPath in interface ISimpleURLnull but maybe empty (e.g.
for "?x=y").@Nonnull @ReturnsMutableObject public final URLParameterList params()
params in interface ISimpleURLnull.public boolean add(@Nonnull URLParameter aParam)
add in interface IURLParameterList<SimpleURL>@Nullable public final String getAnchor()
getAnchor in interface ISimpleURLnull if none is defined.@Nonnull public SimpleURL getClone()
getClone in interface ICloneable<SimpleURL>Copyright © 2014–2020 Philip Helger. All rights reserved.