|
||||||||||
| 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
HELO or EHLO |
static java.lang.String |
CURRENT_HELO_NAME
|
static java.lang.String |
RCPT_LIST
The message recipients |
static java.lang.String |
SENDER
Sender's email address |
static java.lang.String |
SESSION_STATE_MAP
the Session state |
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getConnectionState()
Returns Map that consists of the state of the SMTPSession per connection |
java.lang.String |
getHelloName()
Returns the service wide hello name |
long |
getMaxMessageSize()
Returns the service wide maximum message size in bytes. |
int |
getRcptCount()
Returns the recipient count |
java.lang.String |
getSessionID()
Returns the SMTP session id |
java.lang.String |
getSMTPGreeting()
Return the SMTPGreeting which should used. |
boolean |
isAuthSupported()
Returns whether Authentication is required or not |
boolean |
isRelayingAllowed()
Returns whether Relaying is allowed or not |
void |
popLineHandler()
Pop the last command handler |
void |
pushLineHandler(LineHandler<SMTPSession> overrideCommandHandler)
Put a new line handler in the chain |
void |
setRelayingAllowed(boolean relayingAllowed)
Set if reallying is allowed |
void |
sleep(long ms)
Sleep for the given ms |
boolean |
useAddressBracketsEnforcement()
Return wheter the mailserver will accept addresses without brackets enclosed. |
boolean |
useHeloEhloEnforcement()
Returns whether the remote server needs to send a HELO/EHLO of its senders. |
| Methods inherited from interface org.apache.james.protocols.api.TLSSupportedSession |
|---|
getUser, isStartTLSSupported, isTLSStarted, setUser, startTLS |
| Methods inherited from interface org.apache.james.protocols.api.ProtocolSession |
|---|
getLogger, getRemoteHost, getRemoteIPAddress, getState, resetState, writeResponse, writeStream |
| Field Detail |
|---|
static final java.lang.String SENDER
static final java.lang.String RCPT_LIST
static final java.lang.String CURRENT_HELO_MODE
static final java.lang.String CURRENT_HELO_NAME
static final java.lang.String SESSION_STATE_MAP
| Method Detail |
|---|
java.lang.String getHelloName()
boolean useHeloEhloEnforcement()
java.lang.String getSMTPGreeting()
long getMaxMessageSize()
boolean useAddressBracketsEnforcement()
boolean isRelayingAllowed()
void setRelayingAllowed(boolean relayingAllowed)
relayingAllowed - boolean isAuthSupported()
java.lang.String getSessionID()
int getRcptCount()
java.util.Map<java.lang.String,java.lang.Object> getConnectionState()
void pushLineHandler(LineHandler<SMTPSession> overrideCommandHandler)
overrideCommandHandler - void popLineHandler()
void sleep(long ms)
ms - the time to sleep in milliseconds
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||