public class WSRPResourceURL extends WSRPPortletURL implements org.gatein.pc.api.ResourceURL
WSRPPortletURL.URLContext| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_RESOURCE_ID |
AMPERSAND, EQUALS, extra, log, navigationalState, strict| Constructor and Description |
|---|
WSRPResourceURL() |
WSRPResourceURL(org.gatein.pc.api.Mode mode,
org.gatein.pc.api.WindowState windowState,
boolean secure,
org.gatein.pc.api.StateString navigationalState,
org.gatein.pc.api.StateString resourceState,
String resourceId,
org.gatein.pc.api.cache.CacheLevel cacheability,
WSRPPortletURL.URLContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendEnd(StringBuffer sb) |
protected void |
dealWithSpecificParams(Map<String,String> params,
String originalURL)
Deal with specific parameters first so that we can remove them before dealing with extra params.
|
static Map<String,String> |
decodeResource(String resourceInfo)
Decodes the resource information specified by the encodeResource back into proper resource values todo: improve
|
static String |
encodeResource(String resourceId,
URL resourceURL,
boolean preferedOperation)
Encodes the wsrp resource information into a single string.
|
org.gatein.pc.api.cache.CacheLevel |
getCacheability() |
String |
getResourceId() |
org.gatein.pc.api.StateString |
getResourceState() |
URL |
getResourceURL()
Deprecated.
|
protected String |
getURLType() |
boolean |
requiresRewrite()
Deprecated.
|
appendExtraParams, create, create, create, create, createURLParameter, getMode, getNavigationalState, getProperties, getRawParameterValueFor, getWindowState, isSecure, setExtra, setParams, setStrict, toStringpublic static final String DEFAULT_RESOURCE_ID
public WSRPResourceURL()
public WSRPResourceURL(org.gatein.pc.api.Mode mode,
org.gatein.pc.api.WindowState windowState,
boolean secure,
org.gatein.pc.api.StateString navigationalState,
org.gatein.pc.api.StateString resourceState,
String resourceId,
org.gatein.pc.api.cache.CacheLevel cacheability,
WSRPPortletURL.URLContext context)
protected String getURLType()
getURLType in class WSRPPortletURLprotected void appendEnd(StringBuffer sb)
appendEnd in class WSRPPortletURLprotected void dealWithSpecificParams(Map<String,String> params, String originalURL)
WSRPPortletURLdealWithSpecificParams in class WSRPPortletURLparams - name-value map of the URL parametersoriginalURL - a String reprensenting the URL we are working withpublic URL getResourceURL()
public String getResourceId()
getResourceId in interface org.gatein.pc.api.ResourceURLpublic org.gatein.pc.api.StateString getResourceState()
getResourceState in interface org.gatein.pc.api.ResourceURLpublic org.gatein.pc.api.cache.CacheLevel getCacheability()
getCacheability in interface org.gatein.pc.api.ResourceURLpublic boolean requiresRewrite()
public static String encodeResource(String resourceId, URL resourceURL, boolean preferedOperation)
resourceId - The original resource IDresourceURL - The originial resource urlpreferedOperation - The preferedOperation valueCopyright © 2006-2014 GateIn. All Rights Reserved.