@Immutable public class URLData extends Object implements IURLData
IURLData interface.| Modifier and Type | Field and Description |
|---|---|
static URLData |
EMPTY_URL_DATA
The string representing an empty URL.
|
| Constructor and Description |
|---|
URLData(String sPath) |
URLData(String sPath,
Map<String,String> aParams) |
URLData(String sPath,
Map<String,String> aParams,
String sAnchor) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
directGetParams() |
boolean |
equals(Object o) |
Map<String,String> |
getAllParams() |
String |
getAnchor() |
int |
getParamCount() |
String |
getPath() |
IURLProtocol |
getProtocol() |
boolean |
hasAnchor() |
int |
hashCode() |
boolean |
hasKnownProtocol() |
boolean |
hasParams() |
String |
toString() |
public static final URLData EMPTY_URL_DATA
@Nullable public IURLProtocol getProtocol()
getProtocol in interface IURLDatanull for an unknown
protocol.public boolean hasKnownProtocol()
hasKnownProtocol in interface IURLDatatrue if the URL has a known protocolpublic boolean hasParams()
@Nonnegative public int getParamCount()
getParamCount in interface IURLData@Nullable @ReturnsMutableObject(reason="Performance reasons") public Map<String,String> directGetParams()
directGetParams in interface IURLDatanull.@Nonnull @ReturnsMutableCopy public Map<String,String> getAllParams()
getAllParams in interface IURLDatanull.public boolean hasAnchor()
Copyright © 2006–2014 phloc systems. All rights reserved.