Interface representing an URI (the href parameter of an <a> tag). Provides methods to insert new parameters. It
doesn't support multiple parameter values
| Method from org.displaytag.util.Href 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()
|
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 void removeParameter(String name)
Removes a parameter from the href. |
public void setAnchor(String name)
Setter for the URI anchor. |
public void setFullUrl(String url)
Set the full url, overriding any existing parameter. |
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. |