public class UrlItem extends Object
Constructor and Description |
---|
UrlItem(String strRoot)
Constructs an url with no parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(String strName,
int nValue)
Add a Parameter to the url.
|
void |
addParameter(String strName,
String strValue)
Add a Parameter to the url.
|
String |
getAnchor()
Get the anchor
|
String |
getUrl()
Return the url string.
|
String |
getUrlWithEntity()
Return the url string.
|
void |
setAnchor(String strAnchorName)
Set the anchor
|
String |
toString() |
public UrlItem(String strRoot)
strRoot
- The url's root.public void addParameter(String strName, String strValue)
strName
- The name of the parameter.strValue
- The value of the parameter.public void addParameter(String strName, int nValue)
strName
- The name of the parameter.nValue
- The value of the parameter.public String getUrl()
public String getUrlWithEntity()
public String getAnchor()
public void setAnchor(String strAnchorName)
strAnchorName
- the _srtAnchor to setCopyright © 2020 City of Paris. All rights reserved.