| |
|
| org.apache.james.smtpserver.SMTPSession
All known Subclasses: org.apache.james.smtpserver.SMTPHandler,
SMTPSession | public interface SMTPSession (Code) | | All the handlers access this interface to communicate with
SMTPHandler object
|
CURRENT_HELO_MODE | final public static String CURRENT_HELO_MODE(Code) | | |
abortMessage | void abortMessage()(Code) | | this makes the message to be dropped inprotocol
|
clearResponseBuffer | String clearResponseBuffer()(Code) | | Clears the response buffer, returning the String of characters in the buffer.
the data in the response buffer |
endSession | void endSession()(Code) | | this makes the session to close
|
getCommandArgument | String getCommandArgument()(Code) | | Returns currently process command argument
current command argument |
getCommandName | String getCommandName()(Code) | | Returns currently process command name
current command name |
getInputStream | InputStream getInputStream()(Code) | | Returns Inputstream for handling messages and commands
InputStream object |
getMail | Mail getMail()(Code) | | Returns Mail object for message handlers to process
Mail object |
getRemoteHost | String getRemoteHost()(Code) | | Returns host name of the client
hostname of the client |
getRemoteIPAddress | String getRemoteIPAddress()(Code) | | Returns host ip address of the client
host ip address of the client |
getResponseBuffer | StringBuffer getResponseBuffer()(Code) | | Returns ResponseBuffer, this optimizes the unecessary creation of resources
by each handler object
responseBuffer |
getSessionID | String getSessionID()(Code) | | Returns the SMTP session id
SMTP session id |
getState | HashMap getState()(Code) | | Returns Map that consists of the state of the SMTPSession
map of the current SMTPSession state |
getUser | String getUser()(Code) | | Returns the user name associated with this SMTP interaction.
the user name |
getWatchdog | Watchdog getWatchdog()(Code) | | Returns Watchdog object used for handling timeout
Watchdog object |
isAuthRequired | boolean isAuthRequired()(Code) | | Returns whether Authentication is required or not
authentication required or not |
isBlockListed | boolean isBlockListed()(Code) | | Returns the blocklisted status
blocklisted |
isRelayingAllowed | boolean isRelayingAllowed()(Code) | | Returns whether Relaying is allowed or not
the relaying status |
isSessionEnded | boolean isSessionEnded()(Code) | | Returns the session status
if the session is open or closed |
readCommandLine | String readCommandLine() throws IOException(Code) | | Reads a line of characters off the command line.
the trimmed input line throws: IOException - if an exception is generated reading in the input characters |
resetState | void resetState()(Code) | | Resets message-specific, but not authenticated user, state.
|
setBlockListed | void setBlockListed(boolean blocklisted)(Code) | | Sets the blocklisted value
Parameters: blocklisted - |
setMail | void setMail(Mail mail)(Code) | | Sets the MailImpl object for further processing
Parameters: mail - MailImpl object |
setUser | void setUser(String user)(Code) | | Sets the user name associated with this SMTP interaction.
Parameters: userID - the user name |
useHeloEhloEnforcement | boolean useHeloEhloEnforcement()(Code) | | Returns whether remote server needs to send HELO/EHLO
HELO/EHLO required or not |
writeResponse | void writeResponse(String respString)(Code) | | Writes response string to the client
Parameters: respString - String that needs to send to the client |
|
|
|