Package fr.paris.lutece.util.url
Class UrlParameterItem
- java.lang.Object
-
- fr.paris.lutece.util.url.UrlParameterItem
-
public class UrlParameterItem extends Object
This class provides utility methods to manipulate an url parameter
-
-
Constructor Summary
Constructors Constructor Description UrlParameterItem(String strName, int nValue)Constructs a UrlParameterItem.UrlParameterItem(String strName, String strValue)Constructs a UrlParameterItem.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCode(boolean bFirst)Return the string to insert the parameter in the url.StringgetCodeEntity(boolean bFirst)Return the string to insert the parameter in the url.
-
-
-
Constructor Detail
-
UrlParameterItem
public UrlParameterItem(String strName, String strValue)
Constructs a UrlParameterItem.- Parameters:
strName- The name of the parameter.strValue- The value of the parameter.
-
UrlParameterItem
public UrlParameterItem(String strName, int nValue)
Constructs a UrlParameterItem.- Parameters:
strName- The name of the parameter.nValue- The value of the parameter.
-
-
Method Detail
-
getCode
public String getCode(boolean bFirst)
Return the string to insert the parameter in the url.- Parameters:
bFirst- True if this is the first url parameter.- Returns:
- String The string to insert in the url.
-
getCodeEntity
public String getCodeEntity(boolean bFirst)
Return the string to insert the parameter in the url.- Parameters:
bFirst- True if this is the first url parameter.- Returns:
- String The string to insert in the url.
-
-