org.apache.cocoon.components.flow
Class ContinuationsManagerImpl.WebContinuationsHolder

java.lang.Object
  extended by org.apache.cocoon.components.flow.ContinuationsManagerImpl.WebContinuationsHolder
All Implemented Interfaces:
EventListener, HttpSessionBindingListener
Enclosing class:
ContinuationsManagerImpl

protected class ContinuationsManagerImpl.WebContinuationsHolder
extends Object
implements HttpSessionBindingListener

A holder for WebContinuations. When bound to session notifies the continuations manager of session invalidation. For thread-safe access you have to synchronize on the Map holder!


Constructor Summary
protected ContinuationsManagerImpl.WebContinuationsHolder()
           
 
Method Summary
 void addContinuation(WebContinuation wk)
           
 boolean contains(String continuationId)
           
 boolean contains(WebContinuation wk)
           
 WebContinuation get(Object id)
           
 void removeContinuation(WebContinuation wk)
           
 void valueBound(HttpSessionBindingEvent event)
           
 void valueUnbound(HttpSessionBindingEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContinuationsManagerImpl.WebContinuationsHolder

protected ContinuationsManagerImpl.WebContinuationsHolder()
Method Detail

get

public WebContinuation get(Object id)

addContinuation

public void addContinuation(WebContinuation wk)

removeContinuation

public void removeContinuation(WebContinuation wk)

contains

public boolean contains(String continuationId)

contains

public boolean contains(WebContinuation wk)

valueBound

public void valueBound(HttpSessionBindingEvent event)
Specified by:
valueBound in interface HttpSessionBindingListener

valueUnbound

public void valueUnbound(HttpSessionBindingEvent event)
Specified by:
valueUnbound in interface HttpSessionBindingListener


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.