Class UrlItem


  • public class UrlItem
    extends java.lang.Object
    This class provides utility methods for the generation of Url String
    • Constructor Summary

      Constructors 
      Constructor Description
      UrlItem​(java.lang.String strRoot)
      Constructs an url with no parameters.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addParameter​(java.lang.String strName, int nValue)
      Add a Parameter to the url.
      void addParameter​(java.lang.String strName, java.lang.String strValue)
      Add a Parameter to the url.
      java.lang.String getAnchor()
      Get the anchor
      java.lang.String getUrl()
      Return the url string.
      java.lang.String getUrlWithEntity()
      Return the url string.
      void setAnchor​(java.lang.String strAnchorName)
      Set the anchor
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • UrlItem

        public UrlItem​(java.lang.String strRoot)
        Constructs an url with no parameters.
        Parameters:
        strRoot - The url's root.
    • Method Detail

      • addParameter

        public void addParameter​(java.lang.String strName,
                                 java.lang.String strValue)
        Add a Parameter to the url.
        Parameters:
        strName - The name of the parameter.
        strValue - The value of the parameter.
      • addParameter

        public void addParameter​(java.lang.String strName,
                                 int nValue)
        Add a Parameter to the url.
        Parameters:
        strName - The name of the parameter.
        nValue - The value of the parameter.
      • getUrl

        public java.lang.String getUrl()
        Return the url string.
        Returns:
        String The url string.
      • getUrlWithEntity

        public java.lang.String getUrlWithEntity()
        Return the url string.
        Returns:
        String The url string with entity code.
      • getAnchor

        public java.lang.String getAnchor()
        Get the anchor
        Returns:
        the _srtAnchor
      • setAnchor

        public void setAnchor​(java.lang.String strAnchorName)
        Set the anchor
        Parameters:
        strAnchorName - the _srtAnchor to set
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object