|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The PortalURI interface represents a pointer to a resource on the portal.
A PortalURI can be created through the PortalContext and additional parameters
can be added to it. The PortalURI can be converted to a String
which get URL encoded and ready for embedding into markup.
| Method Summary | |
void |
addParameter(String name,
String value)
Add a parameter to this URI. |
void |
addParameter(String name,
String[] values)
Sets a list of parameter values for this URI |
boolean |
isForward()
Returns true if PortalURI needs to be forwarded to, false if needs to be redirected to |
boolean |
isRedirect()
Returns true if PortalURI needs to be redirected to, false if needs to be forwarded to. |
void |
setForward(boolean forward)
Sets the PortalURI to forward mode. |
PortalURI |
setPageContextParameter(String context,
String key,
String value)
Sets page context parameters for this PortalURI. |
String |
toString()
The string representation of this object. |
| Method Detail |
public String toString()
toString in class Object
public void addParameter(String name,
String value)
name - the name of the parameter to addvalue - the value of the parameter to add
public void addParameter(String name,
String[] values)
name - a String specifying the name of the parametervalues - a String[] of values for the parameter. if this array is
null or empty, any existing values for this parameter will be unsetpublic void setForward(boolean forward)
forward - True for forward, false for redirectpublic boolean isForward()
public boolean isRedirect()
public PortalURI setPageContextParameter(String context,
String key,
String value)
IllegalArgumentException if any of the arguments is omitted.context - the page context to which the parameters will be associatedkey - the key for the specified parametervalue - the value of the specified parameterPortalURI object containing the new page context parameters
|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||