| Modifier and Type | Method and Description |
|---|---|
String |
getAnchor() |
default String |
getAsStringWithEncodedParameters() |
default String |
getAsStringWithEncodedParameters(Charset aCharset) |
default String |
getAsStringWithoutEncodedParameters() |
default URI |
getAsURI() |
default URL |
getAsURL() |
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() |
URLParameterList |
params() |
@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").@Nullable @ReturnsMutableObject URLParameterList params()
null.@Nullable String getAnchor()
null if none is defined.default boolean hasAnchor()
true if an anchor is present, false
otherwise.default boolean hasAnchor(@Nullable String sAnchor)
sAnchor - The anchor name to check.true if the passed anchor is present.@Nonnull default String getAsStringWithoutEncodedParameters()
@Nonnull default String getAsStringWithEncodedParameters()
URLHelper.CHARSET_URL_OBJ.@Nonnull default String getAsStringWithEncodedParameters(@Nonnull Charset aCharset)
aCharset - The charset used for encoding the parameters. May not be
null.Copyright © 2014–2022 Philip Helger. All rights reserved.