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
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.
-
Field Summary
Fields inherited from interface org.gatein.pc.api.PortletInvoker
LOCAL_PORTLET_INVOKER_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.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 Details
-
ValveInterceptor
public ValveInterceptor() -
ValveInterceptor
-
-
Method Details
-
getPortletApplicationRegistry
-
setPortletApplicationRegistry
-
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
-