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 Details

    • 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 Details

    • 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.