| java.lang.Object com.opensymphony.webwork.portlet.util.PortletUrlHelper
PortletUrlHelper | public class PortletUrlHelper (Code) | | Helper class for creating Portlet URLs. Portlet URLs are fundamentally different from regular
servlet URLs since they never target the application itself; all requests go through the portlet
container and must therefore be programatically constructed using the
javax.portlet.RenderResponse.createActionURL and
javax.portlet.RenderResponse.createRenderURL APIs.
author: Nils-Helge Garli |
Method Summary | |
public static String | buildResourceUrl(String value, Map params) Encode an url to a non webwork action resource, like stylesheet, image or
servlet. | public static String | buildUrl(String action, String namespace, Map params, String type, String mode, String state) Create a portlet URL with for the specified action and namespace.
Parameters: action - The action the URL should invoke. Parameters: namespace - The namespace of the action to invoke. Parameters: params - The parameters of the URL. Parameters: type - The type of the url, either action or render Parameters: mode - The PortletMode of the URL. Parameters: state - The WindowState of the URL. | public static String | buildUrl(String action, String namespace, Map params, String scheme, String type, String portletMode, String windowState, boolean includeContext, boolean encodeResult) Create a portlet URL with for the specified action and namespace. | public static Map | ensureParamsAreStringArrays(Map params) Will ensure that all entries in params are String arrays,
as requried by the setParameters on the PortletURL.
Parameters: params - The parameters to the URL. |
buildResourceUrl | public static String buildResourceUrl(String value, Map params)(Code) | | Encode an url to a non webwork action resource, like stylesheet, image or
servlet.
Parameters: value - encoded url to non webwork action resources. |
buildUrl | public static String buildUrl(String action, String namespace, Map params, String type, String mode, String state)(Code) | | Create a portlet URL with for the specified action and namespace.
Parameters: action - The action the URL should invoke. Parameters: namespace - The namespace of the action to invoke. Parameters: params - The parameters of the URL. Parameters: type - The type of the url, either action or render Parameters: mode - The PortletMode of the URL. Parameters: state - The WindowState of the URL. The URL String. |
buildUrl | public static String buildUrl(String action, String namespace, Map params, String scheme, String type, String portletMode, String windowState, boolean includeContext, boolean encodeResult)(Code) | | Create a portlet URL with for the specified action and namespace.
See Also: PortletUrlHelper.buildUrl(String,String,Map,String,String,String) |
ensureParamsAreStringArrays | public static Map ensureParamsAreStringArrays(Map params)(Code) | | Will ensure that all entries in params are String arrays,
as requried by the setParameters on the PortletURL.
Parameters: params - The parameters to the URL. A Map with all parameters as String arrays. |
|
|