|
||||||||||
| 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 String |
CURRENT_HELO_MODE
HELO or EHLO |
static String |
CURRENT_HELO_NAME
|
static String |
RCPT_LIST
The message recipients |
static String |
SENDER
Sender's email address |
| Method Summary | |
|---|---|
String |
getHelloName()
Returns the service wide hello name |
long |
getMaxMessageSize()
Returns the service wide maximum message size in bytes. |
int |
getPushedLineHandlerCount()
Return the size of the pushed LineHandler |
int |
getRcptCount()
Returns the recipient count |
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 |
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.ProtocolSession |
|---|
getConnectionState, getLogger, getRemoteHost, getRemoteIPAddress, getSessionID, getState, getUser, isStartTLSSupported, isTLSStarted, newFatalErrorResponse, newLineTooLongResponse, resetState, setUser |
| Field Detail |
|---|
static final String SENDER
static final String RCPT_LIST
static final String CURRENT_HELO_MODE
static final String CURRENT_HELO_NAME
| Method Detail |
|---|
String getHelloName()
boolean useHeloEhloEnforcement()
String getSMTPGreeting()
long getMaxMessageSize()
boolean useAddressBracketsEnforcement()
boolean isRelayingAllowed()
void setRelayingAllowed(boolean relayingAllowed)
relayingAllowed - boolean isAuthSupported()
int getRcptCount()
void pushLineHandler(LineHandler<SMTPSession> overrideCommandHandler)
overrideCommandHandler - void popLineHandler()
int getPushedLineHandlerCount()
LineHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||