org.apache.pluto.core
Class DefaultPortletInvokerService

java.lang.Object
  extended by org.apache.pluto.core.DefaultPortletInvokerService
All Implemented Interfaces:
PortletInvokerService

public class DefaultPortletInvokerService
extends java.lang.Object
implements PortletInvokerService

Used internally to invoke/dispatch requests from the container to the portlet application.


Constructor Summary
DefaultPortletInvokerService()
          Default Constructor.
 
Method Summary
 void action(ActionRequest request, ActionResponse response, InternalPortletWindow window)
          Invoke the portlet with an action request.
 void admin(PortletRequest request, PortletResponse response, InternalPortletWindow window)
           
 void event(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, InternalPortletWindow window)
          Invoke the portlet with a render request.
protected  void invoke(PortletRequest request, PortletResponse response, InternalPortletWindow portletWindow, java.lang.Integer methodID)
          Perform the invocation.
 void load(PortletRequest request, PortletResponse response, InternalPortletWindow window)
          Invoke the portlet with a load request.
 void render(RenderRequest request, RenderResponse response, InternalPortletWindow window)
          Invoke the portlet with a render request.
 void serveResource(ResourceRequest request, ResourceResponse response, InternalPortletWindow window)
          Invoke the portlet with a resource request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPortletInvokerService

public DefaultPortletInvokerService()
Default Constructor. Create a new invoker which is initialized for the given InternalPortletWindow.

Method Detail

action

public void action(ActionRequest request,
                   ActionResponse response,
                   InternalPortletWindow window)
            throws java.io.IOException,
                   PortletException
Invoke the portlet with an action request.

Specified by:
action in interface PortletInvokerService
Parameters:
request - action request used for the invocation.
response - action response used for the invocation.
Throws:
java.io.IOException
PortletException
See Also:
PortletServlet, Portlet.processAction(javax.portlet.ActionRequest,javax.portlet.ActionResponse)

render

public void render(RenderRequest request,
                   RenderResponse response,
                   InternalPortletWindow window)
            throws java.io.IOException,
                   PortletException
Invoke the portlet with a render request.

Specified by:
render in interface PortletInvokerService
Parameters:
request - action request used for the invocation.
response - action response used for the invocation.
Throws:
java.io.IOException
PortletException
See Also:
PortletServlet, Portlet.render(javax.portlet.RenderRequest,javax.portlet.RenderResponse)

event

public void event(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response,
                  InternalPortletWindow window)
           throws java.io.IOException,
                  PortletException
Invoke the portlet with a render request.

Specified by:
event in interface PortletInvokerService
Parameters:
request - action request used for the invocation.
response - action response used for the invocation.
Throws:
java.io.IOException
PortletException
See Also:
PortletServlet, Portlet.render(javax.portlet.RenderRequest,javax.portlet.RenderResponse)

serveResource

public void serveResource(ResourceRequest request,
                          ResourceResponse response,
                          InternalPortletWindow window)
                   throws java.io.IOException,
                          PortletException
Invoke the portlet with a resource request.

Specified by:
serveResource in interface PortletInvokerService
Parameters:
request - resource request used for the invocation.
response - resource response used for the invocation.
Throws:
java.io.IOException
PortletException
See Also:
PortletServlet, javax.portlet.Portlet#resource(javax.portlet.ResourceRequest,javax.portlet.ResourceResponse)

load

public void load(PortletRequest request,
                 PortletResponse response,
                 InternalPortletWindow window)
          throws java.io.IOException,
                 PortletException
Invoke the portlet with a load request.

Specified by:
load in interface PortletInvokerService
Parameters:
request - action request used for the invocation.
response - action response used for the invocation.
Throws:
java.io.IOException
PortletException
See Also:
PortletServlet

admin

public void admin(PortletRequest request,
                  PortletResponse response,
                  InternalPortletWindow window)
           throws java.io.IOException,
                  PortletException
Specified by:
admin in interface PortletInvokerService
Throws:
java.io.IOException
PortletException

invoke

protected final void invoke(PortletRequest request,
                            PortletResponse response,
                            InternalPortletWindow portletWindow,
                            java.lang.Integer methodID)
                     throws PortletException,
                            java.io.IOException
Perform the invocation.

Parameters:
request - portlet request
response - portlet response
portletWindow - internal portlet window
methodID - method identifier
Throws:
PortletException - if a portlet exception occurs.
java.io.IOException - if an error occurs writing to the response.


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.