|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SMTPSession
All the handlers access this interface to communicate with SMTPHandler object
Field Summary | |
---|---|
static java.lang.String |
CURRENT_HELO_MODE
|
static java.lang.String |
MESG_FAILED
|
static java.lang.String |
RCPT_LIST
|
static java.lang.String |
SENDER
|
Method Summary | |
---|---|
void |
abortMessage()
this makes the message to be dropped inprotocol |
java.lang.String |
clearResponseBuffer()
Clears the response buffer, returning the String of characters in the buffer. |
void |
endSession()
this makes the session to close |
java.lang.String |
getCommandArgument()
Returns currently process command argument |
java.lang.String |
getCommandName()
Returns currently process command name |
SMTPHandlerConfigurationData |
getConfigurationData()
Returns SMTPHandler service wide configuration |
java.io.InputStream |
getInputStream()
Returns Inputstream for handling messages and commands |
Mail |
getMail()
Returns Mail object for message handlers to process |
java.lang.String |
getRemoteHost()
Returns host name of the client |
java.lang.String |
getRemoteIPAddress()
Returns host ip address of the client |
java.lang.StringBuffer |
getResponseBuffer()
Returns ResponseBuffer, this optimizes the unecessary creation of resources by each handler object |
java.lang.String |
getSessionID()
Returns the SMTP session id |
java.util.HashMap |
getState()
Returns Map that consists of the state of the SMTPSession |
java.lang.String |
getUser()
Returns the user name associated with this SMTP interaction. |
Watchdog |
getWatchdog()
Returns Watchdog object used for handling timeout |
boolean |
isAuthRequired()
Returns whether Authentication is required or not |
boolean |
isBlockListed()
Returns the blocklisted status |
boolean |
isRelayingAllowed()
Returns whether Relaying is allowed or not |
boolean |
isSessionEnded()
Returns the session status |
java.lang.String |
readCommandLine()
Reads a line of characters off the command line. |
void |
resetState()
Resets message-specific, but not authenticated user, state. |
void |
setBlockListed(boolean blocklisted)
Sets the blocklisted value |
void |
setMail(Mail mail)
Sets the MailImpl object for further processing |
void |
setUser(java.lang.String user)
Sets the user name associated with this SMTP interaction. |
boolean |
useHeloEhloEnforcement()
Returns whether remote server needs to send HELO/EHLO |
void |
writeResponse(java.lang.String respString)
Writes response string to the client |
Field Detail |
---|
static final java.lang.String MESG_FAILED
static final java.lang.String SENDER
static final java.lang.String RCPT_LIST
static final java.lang.String CURRENT_HELO_MODE
Method Detail |
---|
void writeResponse(java.lang.String respString)
respString
- String that needs to send to the clientjava.lang.String readCommandLine() throws java.io.IOException
java.io.IOException
- if an exception is generated reading in the input charactersjava.lang.StringBuffer getResponseBuffer()
java.lang.String clearResponseBuffer()
java.io.InputStream getInputStream()
java.lang.String getCommandName()
java.lang.String getCommandArgument()
Mail getMail()
void setMail(Mail mail)
mail
- MailImpl objectjava.lang.String getRemoteHost()
java.lang.String getRemoteIPAddress()
void abortMessage()
void endSession()
boolean isSessionEnded()
java.util.HashMap getState()
void resetState()
SMTPHandlerConfigurationData getConfigurationData()
void setBlockListed(boolean blocklisted)
blocklisted
- boolean isBlockListed()
boolean isRelayingAllowed()
boolean isAuthRequired()
boolean useHeloEhloEnforcement()
java.lang.String getUser()
void setUser(java.lang.String user)
userID
- the user nameWatchdog getWatchdog()
java.lang.String getSessionID()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |