Home » displaytag-1.1.1-src » org » displaytag » util » [javadoc | source]
org.displaytag.util
public class: DefaultHref [javadoc | source]
java.lang.Object
   org.displaytag.util.DefaultHref

All Implemented Interfaces:
    Href

Constructor:
 public DefaultHref(String baseUrl) 
    Construct a new Href parsing a URL. Parameters are stripped from the base url and saved in the parameters map.
    Parameters:
    baseUrl - String
Method from org.displaytag.util.DefaultHref Summary:
addParameter,   addParameter,   addParameterMap,   clone,   equals,   getAnchor,   getBaseUrl,   getParameterMap,   hashCode,   removeParameter,   setAnchor,   setFullUrl,   setParameterMap,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.displaytag.util.DefaultHref Detail:
 public Href addParameter(String name,
    Object value) 
    Adds a parameter to the href.
 public Href addParameter(String name,
    int value) 
    Adds an int parameter to the href.
 public  void addParameterMap(Map parametersMap) 
    Adds all the parameters contained in the map to the Href. The value in the given Map will be escaped before added. Parameters in the original href are kept and not overridden.
 public Object clone() 
 public boolean equals(Object object) 
 public String getAnchor() 
    Returns the URI anchor.
 public String getBaseUrl() 
    Getter for the base url (without parameters).
 public Map getParameterMap() 
    Getter for the map containing link parameters. The returned map is always a copy and not the original instance.
 public int hashCode() 
 public  void removeParameter(String name) 
    Removes a parameter from the href.
 public  void setAnchor(String name) 
    Setter for the URI anchor.
 public  void setFullUrl(String baseUrl) 
 public  void setParameterMap(Map parametersMap) 
    Adds all the parameters contained in the map to the Href. The value in the given Map will be escaped before added. Any parameter already present in the href object is removed.
 public String toString() 
    toString: output the full url with parameters.