|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.alphadisplaytag.util.Href
Object representing an URI (the href parameter of an <a> tag). Provides methods to insert new parameters. It doesn't support multiple parameter values
| Constructor Summary | |
Href(Href href)
Constructor for Href. |
|
Href(java.lang.String baseUrl)
Construct a new Href parsing a URL. |
|
| Method Summary | |
void |
addParameter(java.lang.String name,
int value)
Adds an int parameter to the href. |
void |
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.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 |
setAnchor(java.lang.String name)
Setter for the URI anchor. |
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Href(java.lang.String baseUrl)
baseUrl - Stringpublic Href(Href href)
href - Href| Method Detail |
public void addParameter(java.lang.String name,
java.lang.Object value)
name - Stringvalue - Object
public void addParameter(java.lang.String name,
int value)
name - Stringvalue - intpublic java.util.Map getParameterMap()
public void setParameterMap(java.util.Map parametersMap)
parametersMap - Map containing parameterspublic void addParameterMap(java.util.Map parametersMap)
parametersMap - Map containing parameterspublic java.lang.String getBaseUrl()
public java.lang.String getAnchor()
null if no anchor has been set.public void setAnchor(java.lang.String name)
name - string to be used as anchor name (without #).public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
My Home Page. Contact me at: chauvetp@hotmail.com.
I am alway looking for Java/J2EE work and would appreciate the business.
Some of my design is inspired by the original display tag <display:*> code.
Please go to http://displaytag.sourceforge.net/ for details
on the <display:*> tag.
Copyright © 2004 Aiki Innovations Inc. Permission is granted to reuse and distribute for commercial or personal use if no extensive monetary gain is received. Java and the Java Standard Tag Library are programming languages owed by Sun Microsystems, Inc: http://java.sun.com/products/jsp/jstl/