public class ActionURL extends Object
PortletActionURL provides a URL with settable and re-settable parameters based on a portlet window's ActionURL base URL.
| Modifier and Type | Field and Description |
|---|---|
protected String |
m_base
The base url to the portlet.
|
protected boolean |
m_isAction
Is this an Action URL
|
protected String |
m_page
The site pge, if any.
|
protected String |
m_panel
The panel, if any.
|
protected Map |
m_parameters
parameters.
|
protected String |
m_pid
The portlet window id, if any.
|
protected String |
m_QueryString
Pre-formatted query string, in lieu of
|
protected javax.servlet.http.HttpServletRequest |
m_request
HttpServletRequest *
|
protected String |
m_resourcePath
Is this a Resource URL
|
protected String |
m_site
The site, if any.
|
static String |
PARAM_PAGE
The parameter for page.
|
static String |
PARAM_PANEL
The parameter for paneld.
|
static String |
PARAM_PID
The parameter for portlet window id (pid).
|
static String |
PARAM_SITE
The parameter for site.
|
| Constructor and Description |
|---|
ActionURL(String base,
javax.servlet.http.HttpServletRequest request)
Construct with a base URL to the portlet, no parameters
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ActionURL |
reset()
"Reset" the URL by clearing the parameters.
|
ActionURL |
setAction()
Set this URL to be an 'action' URL, one that usually does a Form POST
|
ActionURL |
setPage(String page)
Set or reset the page.
|
ActionURL |
setPanel(String panel)
Set or reset the panel.
|
ActionURL |
setParameter(String name,
String value)
Set or replace (or remove if value is null) a parameter
|
ActionURL |
setPid(String pid)
Set or reset the pid.
|
ActionURL |
setQueryString(String queryString) |
ActionURL |
setResourcePath(String path) |
ActionURL |
setSite(String site)
Set or reset the site.
|
String |
toString()
Reneder the URL with parameters
|
public static final String PARAM_PID
public static final String PARAM_SITE
public static final String PARAM_PAGE
public static final String PARAM_PANEL
protected String m_base
protected Map m_parameters
protected String m_pid
protected String m_panel
protected String m_site
protected String m_page
protected boolean m_isAction
protected String m_resourcePath
protected String m_QueryString
protected javax.servlet.http.HttpServletRequest m_request
public ActionURL(String base, javax.servlet.http.HttpServletRequest request)
base - The base URLpublic ActionURL reset()
public ActionURL setParameter(String name, String value)
name - The parameter name.value - The parameter value.public ActionURL setAction()
public ActionURL setPid(String pid)
pid - The portlet window id.public ActionURL setSite(String site)
site - The site id.public ActionURL setPage(String page)
page - The page id.public ActionURL setPanel(String panel)
panel - The panel id.public String toString()
public ActionURL setResourcePath(String path)
resource - Whether the URL is a resourceCopyright © 2003–2018 The Sakai Foundation. All rights reserved.