org.apache.pluto.invoker.impl
Class PortletInvokerImpl
java.lang.Object
org.apache.pluto.invoker.impl.PortletInvokerImpl
- All Implemented Interfaces:
- PortletInvoker
public class PortletInvokerImpl
- extends java.lang.Object
- implements PortletInvoker
Method Summary |
void |
action(ActionRequest request,
ActionResponse response)
This method invokes the processAction method of a Java portlet (javax.portlet.Portlet ). |
private Logger |
getLog()
Provides lazy instantiation of the Logger. |
protected void |
invoke(PortletRequest portletRequest,
PortletResponse portletResponse,
java.lang.Integer methodID)
|
void |
load(PortletRequest request,
RenderResponse response)
This method invokes the optional load method of a portlet if supported. |
void |
render(RenderRequest request,
RenderResponse response)
This method invokes the render method of a Java portlet (javax.portlet.Portlet ). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
servletConfig
private javax.servlet.ServletConfig servletConfig
portletDefinition
private PortletDefinition portletDefinition
log
private Logger log
PortletInvokerImpl
public PortletInvokerImpl(PortletDefinition portletDefinition,
javax.servlet.ServletConfig servletConfig)
action
public void action(ActionRequest request,
ActionResponse response)
throws PortletException,
java.io.IOException
- Description copied from interface:
PortletInvoker
- This method invokes the processAction method of a Java portlet (
javax.portlet.Portlet
).
- Specified by:
action
in interface PortletInvoker
- Parameters:
request
- Represents the request sent to a portlet to handle an action.response
- Represents the response provide by a portlet in handling an action.
- Throws:
PortletException
java.io.IOException
render
public void render(RenderRequest request,
RenderResponse response)
throws PortletException,
java.io.IOException
- Description copied from interface:
PortletInvoker
- This method invokes the render method of a Java portlet (
javax.portlet.Portlet
).
- Specified by:
render
in interface PortletInvoker
- Parameters:
request
- Represents the request sent to a portlet to handle rendering the portlet.response
- Represents the response provide by a portlet in rendering.
- Throws:
PortletException
java.io.IOException
load
public void load(PortletRequest request,
RenderResponse response)
throws PortletException
- Description copied from interface:
PortletInvoker
- This method invokes the optional load method of a portlet if supported.
This method is not yet standardized.
- Specified by:
load
in interface PortletInvoker
- Parameters:
request
- Represents the request sent to a portlet to handle initializing the portlet.response
- Represents the response sent to a portlet to handle initializing the portlet.
- Throws:
PortletException
invoke
protected void invoke(PortletRequest portletRequest,
PortletResponse portletResponse,
java.lang.Integer methodID)
throws PortletException,
java.io.IOException
- Throws:
PortletException
java.io.IOException
getLog
private Logger getLog()
- Provides lazy instantiation of the Logger.
This is usefull since the log is currently only
used when an error occurs. B/C of this, there is
no reason to retrieve the log until needed.
- Returns: