|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.protocols.api.AbstractSession
org.apache.james.protocols.smtp.SMTPSessionImpl
public class SMTPSessionImpl
SMTPSession implementation
| Field Summary | |
|---|---|
static String |
SMTP_SESSION
|
| Fields inherited from class org.apache.james.protocols.api.AbstractSession |
|---|
socketAddress, transport, user |
| Fields inherited from interface org.apache.james.protocols.smtp.SMTPSession |
|---|
CURRENT_HELO_MODE, CURRENT_HELO_NAME, RCPT_LIST, SENDER |
| Constructor Summary | |
|---|---|
SMTPSessionImpl(SMTPConfiguration theConfigData,
org.slf4j.Logger logger,
ProtocolTransport transport)
|
|
| 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 |
boolean |
isStartTLSSupported()
|
Response |
newFatalErrorResponse()
|
Response |
newLineTooLongResponse()
|
void |
popLineHandler()
Pop the last command handler |
void |
pushLineHandler(LineHandler<SMTPSession> overrideCommandHandler)
Put a new line handler in the chain |
void |
resetState()
|
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 class org.apache.james.protocols.api.AbstractSession |
|---|
getConnectionState, getLogger, getProtocolTransport, getRemoteHost, getRemoteIPAddress, getSessionID, getState, getUser, isTLSStarted, setUser |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.james.protocols.api.ProtocolSession |
|---|
getConnectionState, getLogger, getRemoteHost, getRemoteIPAddress, getSessionID, getState, getUser, isTLSStarted, setUser |
| Field Detail |
|---|
public static final String SMTP_SESSION
| Constructor Detail |
|---|
public SMTPSessionImpl(SMTPConfiguration theConfigData,
org.slf4j.Logger logger,
ProtocolTransport transport)
| Method Detail |
|---|
public boolean isRelayingAllowed()
SMTPSession
isRelayingAllowed in interface SMTPSessionSMTPSession.isRelayingAllowed()public void resetState()
resetState in interface ProtocolSessionProtocolSession.resetState()public void popLineHandler()
SMTPSession
popLineHandler in interface SMTPSessionSMTPSession.popLineHandler()public void pushLineHandler(LineHandler<SMTPSession> overrideCommandHandler)
SMTPSession
pushLineHandler in interface SMTPSessionSMTPSession.pushLineHandler(LineHandler)public String getHelloName()
SMTPSession
getHelloName in interface SMTPSessionSMTPSession.getHelloName()public long getMaxMessageSize()
SMTPSession
getMaxMessageSize in interface SMTPSessionSMTPSession.getMaxMessageSize()public int getRcptCount()
SMTPSession
getRcptCount in interface SMTPSessionSMTPSession.getRcptCount()public String getSMTPGreeting()
SMTPSession
getSMTPGreeting in interface SMTPSessionSMTPSession.getSMTPGreeting()public boolean isAuthSupported()
SMTPSession
isAuthSupported in interface SMTPSessionSMTPSession.isAuthSupported()public void setRelayingAllowed(boolean relayingAllowed)
SMTPSession
setRelayingAllowed in interface SMTPSessionSMTPSession.setRelayingAllowed(boolean)public boolean useAddressBracketsEnforcement()
SMTPSession
useAddressBracketsEnforcement in interface SMTPSessionSMTPSession.useAddressBracketsEnforcement()public boolean useHeloEhloEnforcement()
SMTPSession
useHeloEhloEnforcement in interface SMTPSessionSMTPSession.useHeloEhloEnforcement()public int getPushedLineHandlerCount()
SMTPSessionLineHandler
getPushedLineHandlerCount in interface SMTPSessionSMTPSession.getPushedLineHandlerCount()public Response newLineTooLongResponse()
newLineTooLongResponse in interface ProtocolSessionpublic Response newFatalErrorResponse()
newFatalErrorResponse in interface ProtocolSessionpublic boolean isStartTLSSupported()
isStartTLSSupported in interface ProtocolSessionisStartTLSSupported in class AbstractSession
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||