org.apache.cocoon.mail
Class MailContextHttpSession

java.lang.Object
  extended by org.apache.avalon.framework.context.DefaultContext
      extended by org.apache.cocoon.mail.MailContext
          extended by org.apache.cocoon.mail.MailContextHttpSession
All Implemented Interfaces:
Serializable, EventListener, HttpSessionBindingListener, Context, LogEnabled

public class MailContextHttpSession
extends MailContext
implements HttpSessionBindingListener

An extension of MailContext.

It implments HttpSessionBindingListener for manging MailContext resources in case of valueUnbound - ie. session removal.

Since:
02 January 2003
Version:
$Id: MailContextHttpSession.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Bernhard Huber
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.cocoon.mail.MailContext
MAIL_CURRENT_WORKING_COMMAND_ENTRY, MAIL_CURRENT_WORKING_FOLDER_ENTRY, MAIL_SESSION_ENTRY, MAIL_STORE_ENTRY, SESSION_MAIL_CONTEXT
 
Constructor Summary
MailContextHttpSession(Context parent)
          Constructor for the MailContextHttpSession object
 
Method Summary
 void valueBound(HttpSessionBindingEvent event)
          Notifies the object that it is being bound to a session and identifies the session.
 void valueUnbound(HttpSessionBindingEvent event)
          Notifies the object that it is being unbound from a session and identifies the session.
 
Methods inherited from class org.apache.cocoon.mail.MailContext
canoncializeFoldername, enableLogging, get, getFolder, getLogger, getParameter, getParameterAsInteger, getTheFolder, putFolder, putFolder, removeAllFolders, removeStore, setRequest
 
Methods inherited from class org.apache.avalon.framework.context.DefaultContext
checkWriteable, equals, getContextData, getParent, hashCode, hide, makeReadOnly, put
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailContextHttpSession

public MailContextHttpSession(Context parent)
Constructor for the MailContextHttpSession object

Parameters:
parent - Description of the Parameter
Method Detail

valueBound

public void valueBound(HttpSessionBindingEvent event)
Notifies the object that it is being bound to a session and identifies the session.

Specified by:
valueBound in interface HttpSessionBindingListener
Parameters:
event - Description of the Parameter

valueUnbound

public void valueUnbound(HttpSessionBindingEvent event)
Notifies the object that it is being unbound from a session and identifies the session.

Specified by:
valueUnbound in interface HttpSessionBindingListener
Parameters:
event - Description of the Parameter


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