|
| Portal |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object | +--com.sas.portal.portlet.NavigationUtil
Utility class to build URLs and prepare resources specific to given locales.
| Method Summary | |
static String |
buildBaseURL(PortletContext context,
HttpServletRequest request)
Build base URL given just a PortletContext and an HttpServletRequest. |
static String |
buildBaseURL(PortletContext context,
HttpServletRequest request,
String portletActionName)
Build base URL given a PortletContext, an HttpServletRequest, and a specific portletActionName. |
static String |
buildBaseURL(PortletContext context,
HttpServletRequest request,
String portletActionName,
Map parameters)
Build base URL given a PortletContext, an HttpServletRequest, and a specific portletActionName. |
static String |
buildBaseURL(RemotePortletContext context,
HttpServletRequest request)
Build base URL given just a RemotePortletContext and an HttpServletRequest. |
static String |
buildBaseURL(RemotePortletContext context,
HttpServletRequest request,
String portletActionName)
Build base URL given a RemotePortletContext, an HttpServletRequest, and a specific portletActionName. |
static String |
buildBaseURL(RemotePortletContext context,
HttpServletRequest request,
String portletActionName,
Map parameters)
Build base URL given a RemotePortletContext, an HttpServletRequest, and a specific portletActionName. |
static void |
prepareLocalizedResources(String bundleName,
HttpServletRequest request,
PortletContext ctx)
Prepares the localized resources for the portlet by using the bundle name and the locale of the user. |
static void |
prepareLocalizedResources(String bundleName,
HttpServletRequest request,
PortletContext ctx,
Locale locale)
Prepares the localized resources for the portlet by using the bundle name and the locale provided. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static String buildBaseURL(PortletContext context,
HttpServletRequest request)
context - PortletContext to userequest - HttpServletRequest to use
public static String buildBaseURL(RemotePortletContext context,
HttpServletRequest request)
context - PortletContext to userequest - HttpServletRequest to use
public static String buildBaseURL(PortletContext context,
HttpServletRequest request,
String portletActionName)
context - PortletContext to userequest - HttpServletRequest to useportletActionName - name of the portlet action
public static String buildBaseURL(RemotePortletContext context,
HttpServletRequest request,
String portletActionName)
context - PortletContext to userequest - HttpServletRequest to useportletActionName - name of the portlet action
public static String buildBaseURL(PortletContext context,
HttpServletRequest request,
String portletActionName,
Map parameters)
throws IllegalArgumentException
context - PortletContext to userequest - HttpServletRequest to useportletActionName - name of the portlet actionmap - the map of parameters to append to the built URLIllegalArgumentException -
public static String buildBaseURL(RemotePortletContext context,
HttpServletRequest request,
String portletActionName,
Map parameters)
throws IllegalArgumentException
context - RemotePortletContext to userequest - HttpServletRequest to useportletActionName - name of the portlet actionmap - the map of parameters to append to the built URLIllegalArgumentException -
public static void prepareLocalizedResources(String bundleName,
HttpServletRequest request,
PortletContext ctx)
throws IOException
com.foo.portlets.Resources.bundleName - the package and name of a properties filerequest - the HttpServletRequestctx - the PortletContextIOException - if difficulty reading the file
public static void prepareLocalizedResources(String bundleName,
HttpServletRequest request,
PortletContext ctx,
Locale locale)
throws IOException
com.foo.portlets.Resources.bundleName - the package and name of a properties filerequest - the HttpServletRequestctx - the PortletContextlocale - the Locale to useIOException - if difficulty reading the file
|
| Portal |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||