org.subethamail.smtp
Interface MessageContext

All Known Implementing Classes:
Session

public interface MessageContext

Interface which provides context to the message handlers.

Author:
Jeff Schnitzer

Method Summary
 AuthenticationHandler getAuthenticationHandler()
           
 java.net.SocketAddress getRemoteAddress()
           
 SMTPServer getSMTPServer()
           
 

Method Detail

getSMTPServer

SMTPServer getSMTPServer()
Returns:
the SMTPServer object.

getRemoteAddress

java.net.SocketAddress getRemoteAddress()
Returns:
the IP address of the remote server.

getAuthenticationHandler

AuthenticationHandler getAuthenticationHandler()
Returns:
the handler that was used to authenticate. You will probably want to upcast this object to the actual implementation to pull out information like user identity.


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