public interface InvocationContext
| Modifier and Type | Method and Description |
|---|---|
ActionRequest |
getActionRequest()
Return the current action request if this is an action request.
|
ActionResponse |
getActionResponse()
Return the current action response if this is an action request.
|
Authenticator |
getAuthenticator()
Return the authenticator
|
EventRequest |
getEventRequest()
Return the current event request if this is an event request.
|
EventResponse |
getEventResponse()
Return the current event response if this is an event request.
|
LocaleHandler |
getLocaleHandler()
Return the locale handler
|
PortletRequest |
getPortletRequest()
Return the current portlet request.
|
PortletResponse |
getPortletResponse()
Return the current portlet response.
|
PrivilegeManager |
getPrivilegeManager()
Return the privilege manager
|
RenderRequest |
getRenderRequest()
Return the current render request if this is a render request.
|
RenderResponse |
getRenderResponse()
Return the current render response if this is a render request.
|
RequestProgressTracker |
getRequestProgressTracker()
Return the request progress tracker
|
ResourceRequest |
getResourceRequest()
Return the current resource request if this is a resource request.
|
ResourceResponse |
getResourceResponse()
Return the current resource response if this is a resource request.
|
UserState |
getUserState()
Get the current user state.
|
boolean |
isActionRequest()
Is this an action request?
|
boolean |
isEventRequest()
Is this an event request?
|
boolean |
isRenderRequest()
Is this a render request?
|
boolean |
isResourceRequest()
Is this a resource request?
|
java.lang.String |
translate(java.lang.String text)
Translate the message using the current resource bundle
of the user.
|
void |
update(ActionRequest request,
ActionResponse response)
Use new provided action request and/or response object.
|
void |
update(EventRequest request,
EventResponse response)
Use new provided event request and/or response object.
|
void |
update(RenderRequest request,
RenderResponse response)
Use new provided render request and/or response object.
|
void |
update(ResourceRequest request,
ResourceResponse response)
Use new provided resource request and/or response object.
|
UserState getUserState()
PortletRequest getPortletRequest()
PortletResponse getPortletResponse()
boolean isActionRequest()
true if the current request is an action request.ActionRequest getActionRequest()
nullActionResponse getActionResponse()
nullvoid update(ActionRequest request,
ActionResponse response)
request - New request object or null to use the old one.response - New response object or null to use the old one.java.lang.IllegalStateException - if current request is not an action request.boolean isRenderRequest()
true if the current request is a render request.RenderRequest getRenderRequest()
nullRenderResponse getRenderResponse()
nullvoid update(RenderRequest request,
RenderResponse response)
request - New request object or null to use the old one.response - New response object or null to use the old one.java.lang.IllegalStateException - if current request is not a render request.boolean isResourceRequest()
true if the current request is a resource request.ResourceRequest getResourceRequest()
nullResourceResponse getResourceResponse()
nullvoid update(ResourceRequest request,
ResourceResponse response)
request - New request object or null to use the old one.response - New response object or null to use the old one.java.lang.IllegalStateException - if current request is not a resource request.boolean isEventRequest()
true if the current request is a event request.EventRequest getEventRequest()
nullEventResponse getEventResponse()
nullvoid update(EventRequest request,
EventResponse response)
request - New request object or null to use the old one.response - New response object or null to use the old one.java.lang.IllegalStateException - if current request is not an event request.Authenticator getAuthenticator()
LocaleHandler getLocaleHandler()
PrivilegeManager getPrivilegeManager()
java.lang.String translate(java.lang.String text)
RequestProgressTracker getRequestProgressTracker()