|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.jboss.portal.portlet.impl.jsr168.taglib.PortletTag
org.jboss.portal.portlet.impl.jsr168.taglib.GenerateURLTag
public abstract class GenerateURLTag
Superclass of the actionURL and renderURL tags for the JSR 168 Portlet specification.
Creates a URL that must point to the current portlet and must trigger a render or action request with the supplied parameters.
| Field Summary |
|---|
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
|---|
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
|---|---|
GenerateURLTag()
|
|
| Method Summary | |
|---|---|
void |
addParameter(java.lang.String name,
java.lang.String value)
Add a named parameter. |
protected void |
clearPreviousTag()
|
int |
doEndTag()
Generate the URL |
int |
doStartTag()
Process the body, which may contain portlet:param tags |
protected javax.portlet.BaseURL |
generateURL()
|
protected javax.portlet.BaseURL |
getBasePortletEnvironmentAndURL()
Set up the environment for generating the PortletURL and get the base PortletURL to decorate. |
java.lang.String |
getPortletMode()
Indicates the portlet mode that the portlet must have when this link is executed. |
java.lang.String |
getSecure()
Indicates whether the resulting URL should be a secure or insecure connection. |
protected abstract java.lang.String |
getTypeValue()
Get the type - action or render - from the implementing subclass |
protected java.util.Map |
getURLParameters()
Convert working parameters to what is needed by PortletURL - a map with String[] values. |
java.lang.String |
getVar()
|
java.lang.String |
getWindowState()
Indicates the window state that the portlet should have when this link is executed. |
protected void |
setPortletMode(PortletURL portletURL)
Set the portlet mode for the URL to be what was given in the tag. |
void |
setPortletMode(java.lang.String portletMode)
|
protected void |
setSecure(javax.portlet.BaseURL portletURL)
Set the secure/unsecure state for the URL to be what was given in the tag. |
void |
setSecure(java.lang.String secure)
|
void |
setVar(java.lang.String var)
|
protected void |
setWindowState(PortletURL portletURL)
Set the window state for the URL to be what was given in the tag. |
void |
setWindowState(java.lang.String windowState)
|
protected void |
writeURL(javax.portlet.BaseURL portletURL)
|
| Methods inherited from class org.jboss.portal.portlet.impl.jsr168.taglib.PortletTag |
|---|
getActionRequest, getActionResponse, getConfig, getDispatchedRequest, getEventRequest, getEventResponse, getInvocation, getPortletPreferences, getPortletPreferenceValues, getPortletRequest, getPortletResponse, getPortletSessionScope, getRenderRequest, getRenderResponse, getResourceRequest, getResourceResponse, getSession |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenerateURLTag()
| Method Detail |
|---|
public java.lang.String getPortletMode()
public void setPortletMode(java.lang.String portletMode)
portletMode - The portletMode to set.public java.lang.String getSecure()
public void setSecure(java.lang.String secure)
secure - The secure connection value to set.public java.lang.String getVar()
public void setVar(java.lang.String var)
var - The var to set.public java.lang.String getWindowState()
public void setWindowState(java.lang.String windowState)
windowState - The windowState to set.protected java.util.Map getURLParameters()
public void addParameter(java.lang.String name,
java.lang.String value)
name - value - protected javax.portlet.BaseURL getBasePortletEnvironmentAndURL()
protected void setWindowState(PortletURL portletURL)
throws WindowStateException
portletURL -
WindowStateException
protected void setPortletMode(PortletURL portletURL)
throws PortletModeException
portletURL -
PortletModeException
protected void setSecure(javax.portlet.BaseURL portletURL)
throws PortletSecurityException
portletURL -
PortletSecurityExceptionprotected void clearPreviousTag()
protected abstract java.lang.String getTypeValue()
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException
protected javax.portlet.BaseURL generateURL()
throws java.lang.Exception
java.lang.Exception
protected void writeURL(javax.portlet.BaseURL portletURL)
throws java.lang.Exception
java.lang.Exception
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||