net.sf.jportlet.portlet.application
Interface Interceptor

All Known Implementing Classes:
CacheInterceptor, ClientInterceptor, SecurityInterceptor

public interface Interceptor

A PortletInterceptor is an object that is called prior and after Portlet#service() is called

Author:
Herve Tchepannou

Field Summary
static int CONTINUE
           
static int SKIP
           
 
Method Summary
 void afterActionPerformed(net.sf.jportlet.portlet.application.PortletProxy proxy, net.sf.jportlet.portlet.event.ActionEvent event)
          This method is called after the ActionListener#actionPerformed(net.sf.jportlet.portlet.event.ActionEvent)
 void afterService(net.sf.jportlet.portlet.application.PortletProxy proxy, net.sf.jportlet.portlet.PortletRequest request, net.sf.jportlet.portlet.PortletResponse response)
          This method is called after Portlet#service(net.sf.jportlet.portlet.PortletRequest, net.sf.jportlet.portlet.PortletResponse)
 int beforeActionPerformed(net.sf.jportlet.portlet.application.PortletProxy proxy, net.sf.jportlet.portlet.event.ActionEvent event)
          This method is called before the ActionListener#actionPerformed(net.sf.jportlet.portlet.event.ActionEvent) of a portlet is invoed
 int beforeService(net.sf.jportlet.portlet.application.PortletProxy proxy, net.sf.jportlet.portlet.PortletRequest request, net.sf.jportlet.portlet.PortletResponse response)
          This method is called before Portlet#service
 

Field Detail

CONTINUE

public static final int CONTINUE
See Also:
Constant Field Values

SKIP

public static final int SKIP
See Also:
Constant Field Values
Method Detail

afterActionPerformed

public void afterActionPerformed(net.sf.jportlet.portlet.application.PortletProxy proxy,
                                 net.sf.jportlet.portlet.event.ActionEvent event)
                          throws PortletException
This method is called after the ActionListener#actionPerformed(net.sf.jportlet.portlet.event.ActionEvent)

Parameters:
proxy - Portlet proxy
event - Action event to perform
Throws:
PortletException - if any error occurs
java.io.IOException - if any IO error occurs

afterService

public void afterService(net.sf.jportlet.portlet.application.PortletProxy proxy,
                         net.sf.jportlet.portlet.PortletRequest request,
                         net.sf.jportlet.portlet.PortletResponse response)
                  throws PortletException,
                         java.io.IOException
This method is called after Portlet#service(net.sf.jportlet.portlet.PortletRequest, net.sf.jportlet.portlet.PortletResponse)

Parameters:
proxy - portlet proxy
request - portlet request
response - portlet response
Returns:
CONTINUE or SKIP
PortletException
java.io.IOException

beforeActionPerformed

public int beforeActionPerformed(net.sf.jportlet.portlet.application.PortletProxy proxy,
                                 net.sf.jportlet.portlet.event.ActionEvent event)
                          throws PortletException
This method is called before the ActionListener#actionPerformed(net.sf.jportlet.portlet.event.ActionEvent) of a portlet is invoed

Parameters:
proxy - Portlet proxy
event - Action event to perform
Returns:
CONTINUE or SKIP
Throws:
PortletException - if any error occurs
java.io.IOException - if any IO error occurs

beforeService

public int beforeService(net.sf.jportlet.portlet.application.PortletProxy proxy,
                         net.sf.jportlet.portlet.PortletRequest request,
                         net.sf.jportlet.portlet.PortletResponse response)
                  throws PortletException,
                         java.io.IOException
This method is called before Portlet#service

Parameters:
proxy - portlet proxy
request - portlet request
response - portlet response
PortletException
java.io.IOException


Copyright © 2002 Herve Tchepannou. All Rights Reserved.