Skip navigation links
com.bea.wsrp.consumer.resource
Class ResourceURLUtils
java.lang.Object
com.bea.wsrp.consumer.resource.ResourceURLUtils
-
public class ResourceURLUtils
- extends Object
Method Summary |
static String |
getClientRewriteString(PortletParameters pathParams)
|
static String |
getParam(PortletParameters pathParams, String pathName, javax.servlet.http.HttpServletRequest request, String requestName)
|
static ResourceURLUtils.ResourceRequestInfo |
getRequestInfo(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletConfig servletConfig, PortletParameters pathParams, String clientRewriteString, boolean havePortalUrl)
|
static String |
getTargetUrl(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletConfig servletConfig, PortletParameters pathParams)
|
static String |
getTargetUrlParam(javax.servlet.ServletConfig config)
|
static boolean |
isEmpty(String value)
|
static boolean |
isUseOperation(javax.servlet.http.HttpServletRequest request, boolean havePortalUrl, String wsrpUrl, PortletParameters pathParams)
|
static PortletParameters |
parseRequestPathParameters(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext servletContext)
Parse pseudo parameters in the path formated such that as /name_value/ The name is NOT URLDecoded therefore MUST be URL safe. |
static PortletParameters |
parseRequestPathParameters(String pathInfo)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSRP_URL
public static final String WSRP_URL
-
- See Also
- Constants Summary
TARGET_URL
public static final String TARGET_URL
-
- See Also
- Constants Summary
ResourceURLUtils
public ResourceURLUtils()
parseRequestPathParameters
public static PortletParameters parseRequestPathParameters(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext servletContext)
- Parse pseudo parameters in the path formated such that as
/name_value/
The name is NOT URLDecoded therefore MUST be URL safe. The value is URLDecoded with UTF-8 The context and servlet paths are ignored Additionally if "*wsrp*separator" is present it is treated as a special marker. The sub-string to the right of it will be treated as its value. This value is NOT URLDecoded. It can be found in the returned parameters as the name.
-
- Parameters
request
- The request to parse
- Returns
- The Portlet params with name-value pairs
parseRequestPathParameters
public static PortletParameters parseRequestPathParameters(String pathInfo)
getClientRewriteString
public static String getClientRewriteString(PortletParameters pathParams)
isEmpty
public static boolean isEmpty(String value)
isUseOperation
public static boolean isUseOperation(javax.servlet.http.HttpServletRequest request,
boolean havePortalUrl,
String wsrpUrl,
PortletParameters pathParams)
getParam
public static String getParam(PortletParameters pathParams,
String pathName,
javax.servlet.http.HttpServletRequest request,
String requestName)
getTargetUrl
public static String getTargetUrl(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletConfig servletConfig,
PortletParameters pathParams)
throws IOException
-
- Throws
IOException
getTargetUrlParam
public static String getTargetUrlParam(javax.servlet.ServletConfig config)
getRequestInfo
public static ResourceURLUtils.ResourceRequestInfo getRequestInfo(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletConfig servletConfig,
PortletParameters pathParams,
String clientRewriteString,
boolean havePortalUrl)
throws IOException
-
- Throws
IOException
Skip navigation links
Copyright © 2010, Oracle. All rights reserved.