Package fr.paris.lutece.util.url
Class UrlItem
java.lang.Object
fr.paris.lutece.util.url.UrlItem
- All Implemented Interfaces:
Serializable
This class provides utility methods for the generation of Url String
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(String strName, int nValue) Add a Parameter to the url.voidaddParameter(String strName, String strValue) Add a Parameter to the url.Get the anchorgetUrl()Return the url string.Return the url string.voidSet the anchortoString()
-
Constructor Details
-
UrlItem
Constructs an url with no parameters.- Parameters:
strRoot- The url's root.
-
-
Method Details
-
addParameter
Add a Parameter to the url.- Parameters:
strName- The name of the parameter.strValue- The value of the parameter.
-
addParameter
Add a Parameter to the url.- Parameters:
strName- The name of the parameter.nValue- The value of the parameter.
-
getUrl
Return the url string.- Returns:
- String The url string.
-
getUrlWithEntity
Return the url string.- Returns:
- String The url string with entity code.
-
getAnchor
Get the anchor- Returns:
- the _srtAnchor
-
setAnchor
Set the anchor- Parameters:
strAnchorName- the _srtAnchor to set
-
toString
-