|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.springframework.web.portlet.support.PortletRequestContextUtils
public class PortletRequestContextUtils
Utility class for easy access to request-specific state which has been
set by the ContribDispatcherPortlet.
Supports lookup of current PortletApplicationContext.
ContribDispatcherPortlet| Constructor Summary | |
|---|---|
PortletRequestContextUtils()
|
|
| Method Summary | |
|---|---|
static PortletApplicationContext |
getPortletApplicationContext(javax.portlet.PortletRequest request)
Look for the PortletApplicationContext associated with the DispatcherPortlet that has initiated request processing. |
static PortletApplicationContext |
getPortletApplicationContext(javax.portlet.PortletRequest request,
javax.portlet.PortletContext portletContext)
Look for the PortletApplicationContext associated with the DispatcherPortlet that has initiated request processing, and for the global context if none was found associated with the current request. |
static org.springframework.context.ApplicationContext |
getWebApplicationContext(javax.portlet.PortletRequest request,
javax.portlet.PortletContext portletContext)
Look for the PortletApplicationContext associated with the DispatcherPortlet that has initiated request processing, for the global portlet context if none was found associated with the current request, and for the global context if no global portlet context was found. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PortletRequestContextUtils()
| Method Detail |
|---|
public static PortletApplicationContext getPortletApplicationContext(javax.portlet.PortletRequest request)
throws IllegalStateException
request - current portlet request
IllegalStateException - if no portlet-specific context has been found
public static PortletApplicationContext getPortletApplicationContext(javax.portlet.PortletRequest request,
javax.portlet.PortletContext portletContext)
throws IllegalStateException
request - current portlet requestportletContext - current portlet context
IllegalStateException - if neither a portlet-specific nor a
global context has been found
public static org.springframework.context.ApplicationContext getWebApplicationContext(javax.portlet.PortletRequest request,
javax.portlet.PortletContext portletContext)
throws IllegalStateException
request - current portlet requestportletContext - current portlet context
IllegalStateException - if neither a portlet-specific nor a
global context has been found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||