fr.paris.lutece.util.url
Class UrlParameterItem

java.lang.Object
  extended by fr.paris.lutece.util.url.UrlParameterItem

public class UrlParameterItem
extends java.lang.Object

This class provides utility methods to manipulate an url parameter


Constructor Summary
UrlParameterItem(java.lang.String strName, int nValue)
          Constructs a UrlParameterItem.
UrlParameterItem(java.lang.String strName, java.lang.String strValue)
          Constructs a UrlParameterItem.
 
Method Summary
 java.lang.String getCode(boolean bFirst)
          Return the string to insert the parameter in the url.
 java.lang.String getCodeEntity(boolean bFirst)
          Return the string to insert the parameter in the url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlParameterItem

public UrlParameterItem(java.lang.String strName,
                        java.lang.String strValue)
Constructs a UrlParameterItem.

Parameters:
strName - The name of the parameter.
strValue - The value of the parameter.

UrlParameterItem

public UrlParameterItem(java.lang.String strName,
                        int nValue)
Constructs a UrlParameterItem.

Parameters:
strName - The name of the parameter.
nValue - The value of the parameter.
Method Detail

getCode

public java.lang.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 java.lang.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.


Copyright © 2012 Mairie de Paris. All Rights Reserved.