HDIV API 2.0.4

org.hdiv.webflow.listener
Class HDIVFlowExecutionListener

java.lang.Object
  extended by org.springframework.webflow.execution.FlowExecutionListenerAdapter
      extended by org.hdiv.webflow.listener.HDIVFlowExecutionListener
All Implemented Interfaces:
org.springframework.webflow.execution.FlowExecutionListener

public class HDIVFlowExecutionListener
extends org.springframework.webflow.execution.FlowExecutionListenerAdapter

HDIV listener for webflow to delete HDIV pages from session in order to optimize memory consumption.

Since:
2.0.3
Author:
Gorka Vicente

Constructor Summary
HDIVFlowExecutionListener()
           
 
Method Summary
 void addFlowId(org.springframework.webflow.execution.RequestContext context)
          Adds the flow identifier to the page of type IPage.
 void requestProcessed(org.springframework.webflow.execution.RequestContext context)
          Called when a client request has completed processing.
 void sessionEnded(org.springframework.webflow.execution.RequestContext context, org.springframework.webflow.execution.FlowSession session, org.springframework.webflow.core.collection.AttributeMap output)
          Called when a flow execution session ends.
 
Methods inherited from class org.springframework.webflow.execution.FlowExecutionListenerAdapter
eventSignaled, exceptionThrown, paused, requestSubmitted, resumed, sessionCreated, sessionEnding, sessionStarted, sessionStarting, stateEntered, stateEntering
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HDIVFlowExecutionListener

public HDIVFlowExecutionListener()
Method Detail

requestProcessed

public void requestProcessed(org.springframework.webflow.execution.RequestContext context)
Called when a client request has completed processing.

Specified by:
requestProcessed in interface org.springframework.webflow.execution.FlowExecutionListener
Overrides:
requestProcessed in class org.springframework.webflow.execution.FlowExecutionListenerAdapter
Parameters:
context - the source of the event

addFlowId

public void addFlowId(org.springframework.webflow.execution.RequestContext context)
Adds the flow identifier to the page of type IPage.

Parameters:
request - HTTP servlet request
Since:
HDIV 2.0.3

sessionEnded

public void sessionEnded(org.springframework.webflow.execution.RequestContext context,
                         org.springframework.webflow.execution.FlowSession session,
                         org.springframework.webflow.core.collection.AttributeMap output)
Called when a flow execution session ends. If the ended session was the root session of the flow execution, the entire flow execution also ends.

Specified by:
sessionEnded in interface org.springframework.webflow.execution.FlowExecutionListener
Overrides:
sessionEnded in class org.springframework.webflow.execution.FlowExecutionListenerAdapter
Parameters:
context - the source of the event
session - ending flow session
output - final, unmodifiable output returned by the ended session

HDIV 2.0.4

Copyright © 2008 hdiv.org. All Rights Reserved.