|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sakaiproject.vm.ActionURL
public class ActionURL
PortletActionURL provides a URL with settable and re-settable parameters based on a portlet window's ActionURL base URL.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
ActionURL(String base,
javax.servlet.http.HttpServletRequest request)
Construct with a base URL to the portlet, no parameters |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public ActionURL(String base,
javax.servlet.http.HttpServletRequest request)
base - The base URL| Method Detail |
|---|
public 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()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic ActionURL setResourcePath(String path)
resource - Whether the URL is a resourcepublic ActionURL setQueryString(String queryString)
queryString - The m_QueryString to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||