public abstract class GenerateURLTag extends PortletTag
| Constructor and Description |
|---|
GenerateURLTag() |
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(String name,
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.
|
String |
getPortletMode()
Indicates the portlet mode that the portlet must have when this link is executed.
|
String |
getSecure()
Indicates whether the resulting URL should be a secure or insecure connection.
|
protected abstract String |
getTypeValue()
Get the type - action or render - from the implementing subclass
|
protected Map |
getURLParameters()
Convert working parameters to what is needed by PortletURL - a map with String[] values.
|
String |
getVar() |
String |
getWindowState()
Indicates the window state that the portlet should have when this link is executed.
|
protected void |
setPortletMode(javax.portlet.PortletURL portletURL)
Set the portlet mode for the URL to be what was given in the tag.
|
void |
setPortletMode(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(String secure) |
void |
setVar(String var) |
protected void |
setWindowState(javax.portlet.PortletURL portletURL)
Set the window state for the URL to be what was given in the tag.
|
void |
setWindowState(String windowState) |
protected void |
writeURL(javax.portlet.BaseURL portletURL) |
getActionRequest, getActionResponse, getConfig, getDispatchedRequest, getEventRequest, getEventResponse, getInvocation, getPortletPreferences, getPortletPreferenceValues, getPortletRequest, getPortletResponse, getPortletSessionScope, getRenderRequest, getRenderResponse, getResourceRequest, getResourceResponse, getSessionpublic String getPortletMode()
public void setPortletMode(String portletMode)
portletMode - The portletMode to set.public String getSecure()
public void setSecure(String secure)
secure - The secure connection value to set.public String getVar()
public void setVar(String var)
var - The var to set.public String getWindowState()
public void setWindowState(String windowState)
windowState - The windowState to set.protected Map getURLParameters()
public void addParameter(String name, String value)
name - value - protected javax.portlet.BaseURL getBasePortletEnvironmentAndURL()
protected void setWindowState(javax.portlet.PortletURL portletURL)
throws javax.portlet.WindowStateException
portletURL - javax.portlet.WindowStateExceptionprotected void setPortletMode(javax.portlet.PortletURL portletURL)
throws javax.portlet.PortletModeException
portletURL - javax.portlet.PortletModeExceptionprotected void setSecure(javax.portlet.BaseURL portletURL)
throws javax.portlet.PortletSecurityException
portletURL - javax.portlet.PortletSecurityExceptionprotected void clearPreviousTag()
protected abstract 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.JspExceptionprotected void writeURL(javax.portlet.BaseURL portletURL)
throws Exception
Exceptionpublic int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionCopyright © 2003-2019 GateIn. All Rights Reserved.