public class SimpleControllerHandlerAdapter extends java.lang.Object implements HandlerAdapter, PortletContextAware
This is an SPI class, not used directly by application code.
DispatcherPortlet, 
Controller, 
ResourceAwareController, 
EventAwareController| Constructor and Description | 
|---|
| SimpleControllerHandlerAdapter() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | handleAction(ActionRequest request,
            ActionResponse response,
            java.lang.Object handler)Use the given handler to handle this action request. | 
| void | handleEvent(EventRequest request,
           EventResponse response,
           java.lang.Object handler)Use the given handler to handle this event request. | 
| ModelAndView | handleRender(RenderRequest request,
            RenderResponse response,
            java.lang.Object handler)Use the given handler to handle this render request. | 
| ModelAndView | handleResource(ResourceRequest request,
              ResourceResponse response,
              java.lang.Object handler)Use the given handler to handle this resource request. | 
| void | setPortletContext(PortletContext portletContext)Set the PortletContext that this object runs in. | 
| boolean | supports(java.lang.Object handler)Given a handler instance, return whether or not this HandlerAdapter can
 support it. | 
public void setPortletContext(PortletContext portletContext)
PortletContextAwareInvoked after population of normal bean properties but before an init callback like InitializingBean's afterPropertiesSet or a custom init-method. Invoked after ApplicationContextAware's setApplicationContext.
setPortletContext in interface PortletContextAwareportletContext - PortletContext object to be used by this objectpublic boolean supports(java.lang.Object handler)
HandlerAdapterA typical implementation:
return (handler instanceof MyHandler);
 
supports in interface HandlerAdapterhandler - handler object to checkpublic void handleAction(ActionRequest request, ActionResponse response, java.lang.Object handler) throws java.lang.Exception
HandlerAdapterhandleAction in interface HandlerAdapterrequest - current action requestresponse - current action responsehandler - handler to use. This object must have previously been passed
 to the supports method of this interface, which must have
 returned true.java.lang.Exception - in case of errorsPortlet.processAction(javax.portlet.ActionRequest, javax.portlet.ActionResponse)public ModelAndView handleRender(RenderRequest request, RenderResponse response, java.lang.Object handler) throws java.lang.Exception
HandlerAdapterhandleRender in interface HandlerAdapterrequest - current render requestresponse - current render responsehandler - handler to use. This object must have previously been passed
 to the supports method of this interface, which must have
 returned true.null if the request has been handled directlyjava.lang.Exception - in case of errorsPortlet.render(javax.portlet.RenderRequest, javax.portlet.RenderResponse)public ModelAndView handleResource(ResourceRequest request, ResourceResponse response, java.lang.Object handler) throws java.lang.Exception
HandlerAdapterhandleResource in interface HandlerAdapterrequest - current render requestresponse - current render responsehandler - handler to use. This object must have previously been passed
 to the supports method of this interface, which must have
 returned true.null if the request has been handled directlyjava.lang.Exception - in case of errorsResourceServingPortlet.serveResource(javax.portlet.ResourceRequest, javax.portlet.ResourceResponse)public void handleEvent(EventRequest request, EventResponse response, java.lang.Object handler) throws java.lang.Exception
HandlerAdapterhandleEvent in interface HandlerAdapterrequest - current action requestresponse - current action responsehandler - handler to use. This object must have previously been passed
 to the supports method of this interface, which must have
 returned true.java.lang.Exception - in case of errorsEventPortlet.processEvent(javax.portlet.EventRequest, javax.portlet.EventResponse)