当前页面:
在线文档首页 >
JBOSS Portal 2.4 API 英文版文档
WSRPPortletURL - JBOSS Portal 2.4 API 英文版文档
org.jboss.portal.wsrp
Class WSRPPortletURL
java.lang.Object
org.jboss.portal.wsrp.WSRPPortletURL
- All Implemented Interfaces:
- PortletURL
- Direct Known Subclasses:
- WSRPActionURL, WSRPRenderURL, WSRPResourceURL
- public abstract class WSRPPortletURL
- extends java.lang.Object
- implements PortletURL
- Since:
- 2.4 (Apr 28, 2006)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
WSRPPortletURL
protected WSRPPortletURL(Mode mode,
WindowState windowState,
boolean secure)
WSRPPortletURL
protected WSRPPortletURL(java.util.Map params)
WSRPPortletURL
protected WSRPPortletURL()
create
public static WSRPPortletURL create(PortletURL portletURL,
boolean secure)
create
public static WSRPPortletURL create(java.lang.String encodedURL)
- Parses a WSRP rewritten URL and extracts each component.
TODO: some values need to be in pairs or are mutually exclusive, check for this
URL are of the form: wsrp_rewrite?wsrp-urlType=value&name1=value1&name2=value2
.../wsrp_rewrite
Examples: - Load a resource http://test.com/images/test.gif:
wsrp_rewrite?wsrp-urlType=resource&wsrp-url=http%3A%2F%2Ftest.com%2Fimages%2Ftest.gif&wsrp-requiresRewrite=true/wsrp_rewrite
- Declare a secure interaction back to the Portlet:
wsrp_rewrite?wsrp-urlType=blockingAction&wsrp-secureURL=true&wsrp-navigationalState=a8h4K5JD9&wsrp-interactionState=fg4h923mdk/wsrp_rewrite
- Request the Consumer render the Portlet in a different mode and window state:
wsrp_rewrite?wsrp-urlType=render&wsrp-mode=help&wsrp-windowState=maximized/wsrp_rewrite
- Parameters:
encodedURL
-
setParams
protected void setParams(java.util.Map params)
getRawParameterValueFor
public java.lang.String getRawParameterValueFor(java.util.Map params,
java.lang.String parameterName)
getMode
public Mode getMode()
- Description copied from interface:
PortletURL
- The mode that may be null.
- Specified by:
getMode
in interface PortletURL
- Returns:
- the mode
getWindowState
public WindowState getWindowState()
- Description copied from interface:
PortletURL
- The window state that may be null.
- Specified by:
getWindowState
in interface PortletURL
- Returns:
- the window state
isSecure
public boolean isSecure()
getURLType
protected abstract java.lang.String getURLType()
toString
public java.lang.String toString()
appendEnd
protected abstract void appendEnd(java.lang.StringBuffer sb)
createURLParameter
protected final void createURLParameter(java.lang.StringBuffer sb,
java.lang.String name,
java.lang.String value)