Package org.gatein.pc.portlet.aspects
Class ValveInterceptor
- java.lang.Object
-
- org.gatein.pc.portlet.PortletInvokerInterceptor
-
- org.gatein.pc.portlet.aspects.ValveInterceptor
-
- All Implemented Interfaces:
org.gatein.pc.api.PortletInvoker
public class ValveInterceptor extends PortletInvokerInterceptor
This aspect has two responsabilities :
- continue the request only if the portlet container valve is open. When the valve is closed, it will return an unavailable response to the caller. When the valve is open then the current thread of execution enters the valve for the duration of the call.
- if the response from the next aspect is an unavailable result, stop the container in order to destroy the portlet and implement this part of the portlet specification.
- Version:
- $Revision: 7226 $
- Author:
- Julien Viet
-
-
Constructor Summary
Constructors Constructor Description ValveInterceptor()ValveInterceptor(PortletApplicationRegistry registry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PortletApplicationRegistrygetPortletApplicationRegistry()org.gatein.pc.api.invocation.response.PortletInvocationResponseinvoke(org.gatein.pc.api.invocation.PortletInvocation invocation)voidsetPortletApplicationRegistry(PortletApplicationRegistry portletApplicationRegistry)-
Methods inherited from class org.gatein.pc.portlet.PortletInvokerInterceptor
append, createClone, destroyClones, exportPortlet, getNext, getPortlet, getPortlets, getProperties, getProperties, getStatus, importPortlet, isActive, setNext, setProperties
-
-
-
-
Constructor Detail
-
ValveInterceptor
public ValveInterceptor()
-
ValveInterceptor
public ValveInterceptor(PortletApplicationRegistry registry)
-
-
Method Detail
-
getPortletApplicationRegistry
public PortletApplicationRegistry getPortletApplicationRegistry()
-
setPortletApplicationRegistry
public void setPortletApplicationRegistry(PortletApplicationRegistry portletApplicationRegistry)
-
invoke
public org.gatein.pc.api.invocation.response.PortletInvocationResponse invoke(org.gatein.pc.api.invocation.PortletInvocation invocation) throws IllegalArgumentException, org.gatein.pc.api.PortletInvokerException- Specified by:
invokein interfaceorg.gatein.pc.api.PortletInvoker- Overrides:
invokein classPortletInvokerInterceptor- Throws:
IllegalArgumentExceptionorg.gatein.pc.api.PortletInvokerException
-
-