|
Portal |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.portal.portlet.NavigationUtil
public class NavigationUtil
Utility class to build URLs and prepare resources specific to given locales.
Method Summary | |
---|---|
static java.lang.String |
buildBaseURL(PortletContext context,
javax.servlet.http.HttpServletRequest request)
Build base URL given just a PortletContext and an HttpServletRequest. |
static java.lang.String |
buildBaseURL(PortletContext context,
javax.servlet.http.HttpServletRequest request,
java.lang.String portletActionName)
Build base URL given a PortletContext, an HttpServletRequest, and a specific portletActionName. |
static java.lang.String |
buildBaseURL(PortletContext context,
javax.servlet.http.HttpServletRequest request,
java.lang.String portletActionName,
java.util.Map parameters)
Build base URL given a PortletContext, an HttpServletRequest, and a specific portletActionName. |
static java.lang.String |
buildBaseURL(RemotePortletContext context,
javax.servlet.http.HttpServletRequest request)
Build base URL given just a RemotePortletContext and an HttpServletRequest. |
static java.lang.String |
buildBaseURL(RemotePortletContext context,
javax.servlet.http.HttpServletRequest request,
java.lang.String portletActionName)
Build base URL given a RemotePortletContext, an HttpServletRequest, and a specific portletActionName. |
static java.lang.String |
buildBaseURL(RemotePortletContext context,
javax.servlet.http.HttpServletRequest request,
java.lang.String portletActionName,
java.util.Map parameters)
Build base URL given a RemotePortletContext, an HttpServletRequest, and a specific portletActionName. |
static void |
prepareLocalizedResources(java.lang.String bundleName,
javax.servlet.http.HttpServletRequest request,
PortletContext ctx)
Prepares the localized resources for the portlet by using the bundle name and the locale of the user. |
Method Detail |
---|
public static java.lang.String buildBaseURL(PortletContext context, javax.servlet.http.HttpServletRequest request)
context
- PortletContext to userequest
- HttpServletRequest to use
public static java.lang.String buildBaseURL(RemotePortletContext context, javax.servlet.http.HttpServletRequest request)
context
- PortletContext to userequest
- HttpServletRequest to use
public static java.lang.String buildBaseURL(PortletContext context, javax.servlet.http.HttpServletRequest request, java.lang.String portletActionName)
context
- PortletContext to userequest
- HttpServletRequest to useportletActionName
- name of the portlet action
public static java.lang.String buildBaseURL(RemotePortletContext context, javax.servlet.http.HttpServletRequest request, java.lang.String portletActionName)
context
- PortletContext to userequest
- HttpServletRequest to useportletActionName
- name of the portlet action
public static java.lang.String buildBaseURL(PortletContext context, javax.servlet.http.HttpServletRequest request, java.lang.String portletActionName, java.util.Map parameters) throws java.lang.IllegalArgumentException
context
- PortletContext to userequest
- HttpServletRequest to useportletActionName
- name of the portlet actionparameters
- the map of parameters to append to the built URL
java.lang.IllegalArgumentException
public static java.lang.String buildBaseURL(RemotePortletContext context, javax.servlet.http.HttpServletRequest request, java.lang.String portletActionName, java.util.Map parameters) throws java.lang.IllegalArgumentException
context
- RemotePortletContext to userequest
- HttpServletRequest to useportletActionName
- name of the portlet actionparameters
- the map of parameters to append to the built URL
java.lang.IllegalArgumentException
- Used by com.sas.svcs.alerts.portlet.actions in Products/BIServices/Applications/SharedPortletspublic static void prepareLocalizedResources(java.lang.String bundleName, javax.servlet.http.HttpServletRequest request, PortletContext ctx) throws java.io.IOException
com.foo.portlets.Resources
.
bundleName
- the package and name of a properties filerequest
- the HttpServletRequestctx
- the PortletContext
java.io.IOException
- if difficulty reading the file
|
Portal |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |