org.subethamail.smtp.server
Class Session

java.lang.Object
  extended by org.subethamail.smtp.server.Session

public class Session
extends java.lang.Object

A session describes events which happen during a SMTP session. It keeps track of all of the recipients who will receive the message.

Author:
Ian McFarland <ian@neo.com>, Jon Stevens, Jeff Schnitzer

Constructor Summary
Session(MessageHandler exchange)
           
 
Method Summary
 void addRecipient()
           
 boolean getHasSeenHelo()
           
 boolean getHasSender()
           
 MessageHandler getMessageHandler()
           
 int getRecipientCount()
           
 boolean isActive()
           
 boolean isAuthenticated()
           
 boolean isAuthenticating()
           
 boolean isDataMode()
           
 void quit()
           
 void reset()
          Executes a full reset() of the session which requires a new HELO command to be sent
 void reset(boolean hasSeenHelo)
           
 void setAuthenticated(boolean authenticated)
           
 void setAuthenticating(boolean authenticating)
           
 void setDataMode(boolean dataMode)
           
 void setHasSeenHelo(boolean hasSeenHelo)
           
 void setHasSender(boolean value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Session

public Session(MessageHandler exchange)
Method Detail

isActive

public boolean isActive()

quit

public void quit()

getHasSender

public boolean getHasSender()

setHasSender

public void setHasSender(boolean value)

getHasSeenHelo

public boolean getHasSeenHelo()

setHasSeenHelo

public void setHasSeenHelo(boolean hasSeenHelo)

isDataMode

public boolean isDataMode()

setDataMode

public void setDataMode(boolean dataMode)

addRecipient

public void addRecipient()

getRecipientCount

public int getRecipientCount()

getMessageHandler

public MessageHandler getMessageHandler()

isAuthenticated

public boolean isAuthenticated()

setAuthenticated

public void setAuthenticated(boolean authenticated)

isAuthenticating

public boolean isAuthenticating()

setAuthenticating

public void setAuthenticating(boolean authenticating)

reset

public void reset()
Executes a full reset() of the session which requires a new HELO command to be sent


reset

public void reset(boolean hasSeenHelo)


Copyright © 2011 SubEthaSMTP. All Rights Reserved. Build version: UNVERSIONED