org.displaytag.util
Class PostHref

java.lang.Object
  extended by org.displaytag.util.PostHref
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Href

public class PostHref
extends java.lang.Object
implements Href

Version:
$Revision: 1134 $ ($Author: fgiust $)
Author:
fgiust
See Also:
Serialized Form

Constructor Summary
PostHref(Href parent, java.lang.String form)
           
 
Method Summary
 Href addParameter(java.lang.String name, int value)
          Adds an int parameter to the href.
 Href addParameter(java.lang.String name, java.lang.Object value)
          Adds a parameter to the href.
 void addParameterMap(java.util.Map parametersMap)
          Adds all the parameters contained in the map to the Href.
 java.lang.Object clone()
           
 boolean equals(java.lang.Object object)
           
 java.lang.String getAnchor()
          Returns the URI anchor.
 java.lang.String getBaseUrl()
          Getter for the base url (without parameters).
 java.util.Map getParameterMap()
          Getter for the map containing link parameters.
 void removeParameter(java.lang.String name)
          Removes a parameter from the href.
 void setAnchor(java.lang.String name)
          Setter for the URI anchor.
 void setFullUrl(java.lang.String url)
          Set the full url, overriding any existing parameter.
 void setParameterMap(java.util.Map parametersMap)
          Adds all the parameters contained in the map to the Href.
 java.lang.String toString()
          toString: output the full url with parameters.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PostHref

public PostHref(Href parent,
                java.lang.String form)
Method Detail

addParameter

public Href addParameter(java.lang.String name,
                         java.lang.Object value)
Description copied from interface: Href
Adds a parameter to the href.

Specified by:
addParameter in interface Href
Parameters:
name -
value -
Returns:
See Also:
Href.addParameter(java.lang.String, java.lang.Object)

addParameter

public Href addParameter(java.lang.String name,
                         int value)
Description copied from interface: Href
Adds an int parameter to the href.

Specified by:
addParameter in interface Href
Parameters:
name -
value -
Returns:
See Also:
Href.addParameter(java.lang.String, int)

addParameterMap

public void addParameterMap(java.util.Map parametersMap)
Description copied from interface: Href
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.

Specified by:
addParameterMap in interface Href
Parameters:
parametersMap -
See Also:
Href.addParameterMap(java.util.Map)

equals

public boolean equals(java.lang.Object object)
Specified by:
equals in interface Href
Overrides:
equals in class java.lang.Object
Parameters:
object -
Returns:
See Also:
Href.equals(java.lang.Object)

getAnchor

public java.lang.String getAnchor()
Description copied from interface: Href
Returns the URI anchor.

Specified by:
getAnchor in interface Href
Returns:
See Also:
Href.getAnchor()

getBaseUrl

public java.lang.String getBaseUrl()
Description copied from interface: Href
Getter for the base url (without parameters).

Specified by:
getBaseUrl in interface Href
Returns:
See Also:
Href.getBaseUrl()

getParameterMap

public java.util.Map getParameterMap()
Description copied from interface: Href
Getter for the map containing link parameters. The returned map is always a copy and not the original instance.

Specified by:
getParameterMap in interface Href
Returns:
See Also:
Href.getParameterMap()

removeParameter

public void removeParameter(java.lang.String name)
Description copied from interface: Href
Removes a parameter from the href.

Specified by:
removeParameter in interface Href
Parameters:
name -
See Also:
Href.removeParameter(java.lang.String)

setAnchor

public void setAnchor(java.lang.String name)
Description copied from interface: Href
Setter for the URI anchor.

Specified by:
setAnchor in interface Href
Parameters:
name -
See Also:
Href.setAnchor(java.lang.String)

setFullUrl

public void setFullUrl(java.lang.String url)
Description copied from interface: Href
Set the full url, overriding any existing parameter.

Specified by:
setFullUrl in interface Href
Parameters:
url -
See Also:
Href.setFullUrl(java.lang.String)

setParameterMap

public void setParameterMap(java.util.Map parametersMap)
Description copied from interface: Href
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.

Specified by:
setParameterMap in interface Href
Parameters:
parametersMap -
See Also:
Href.setParameterMap(java.util.Map)

toString

public java.lang.String toString()
Description copied from interface: Href
toString: output the full url with parameters.

Specified by:
toString in interface Href
Overrides:
toString in class java.lang.Object
Returns:
See Also:
Href.toString()

clone

public java.lang.Object clone()
Specified by:
clone in interface Href
Overrides:
clone in class java.lang.Object
See Also:
Object.clone()


Copyright © 2002-2010 the Displaytag team. All Rights Reserved.