Package com.helger.commons.url
Class SimpleURL
java.lang.Object
com.helger.commons.url.SimpleURL
- All Implemented Interfaces:
ICloneable<SimpleURL>,IGenericImplTrait<SimpleURL>,ISimpleURL,IURLParameterList<SimpleURL>
@NotThreadSafe
public class SimpleURL
extends Object
implements ISimpleURL, ICloneable<SimpleURL>, IURLParameterList<SimpleURL>
Abstraction of the string parts of a URL but much simpler (and faster) than
URL.- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleURL(ISimpleURL aURL) SimpleURL(String sHref, Iterable<? extends URLParameter> 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.traits.IGenericImplTrait
thisAsTMethods inherited from interface com.helger.commons.url.ISimpleURL
getAsStringWithEncodedParameters, getAsStringWithEncodedParameters, getAsStringWithoutEncodedParameters, getAsURI, getAsURL, getProtocol, hasAnchor, hasAnchor, hasKnownProtocol
-
Constructor Details
-
SimpleURL
public SimpleURL() -
SimpleURL
-
SimpleURL
-
SimpleURL
-
SimpleURL
-
SimpleURL
-
SimpleURL
-
SimpleURL
-
SimpleURL
-
SimpleURL
-
SimpleURL
-
SimpleURL
-
SimpleURL
-
-
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").
-
setPath
-
params
- Specified by:
paramsin interfaceISimpleURL- Returns:
- A map of all query string parameters. May be
null.
-
add
- Specified by:
addin interfaceIURLParameterList<SimpleURL>
-
getAnchor
- Specified by:
getAnchorin interfaceISimpleURL- Returns:
- The name of the anchor (everything after the "#") or
nullif none is defined.
-
setAnchor
-
getClone
- Specified by:
getClonein interfaceICloneable<SimpleURL>- Returns:
- A 100% deep-copy of the implementing class.
-
equals
-
hashCode
public int hashCode() -
toString
-