public class SMTPSessionImpl extends ProtocolSessionImpl implements SMTPSession
SMTPSession implementationProtocolSession.StateconfigCURRENT_HELO_MODE, CURRENT_HELO_NAME, RCPT_LIST, SENDER| Constructor and Description |
|---|
SMTPSessionImpl(Logger logger,
ProtocolTransport transport,
SMTPConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
SMTPConfiguration |
getConfiguration()
Return the
ProtocolConfiguration |
int |
getRcptCount()
/**
|
boolean |
isAuthSupported()
Returns whether Authentication is required or not
|
boolean |
isRelayingAllowed()
Returns whether Relaying is allowed or not
|
Response |
newFatalErrorResponse()
This implementation just returns
null. |
Response |
newLineTooLongResponse()
This implementation just returns
null. |
void |
resetState()
This implementation just clears the sessions state.
|
void |
setRelayingAllowed(boolean relayingAllowed)
Set if reallying is allowed
|
getAttachment, getCharset, getConnectionState, getLineDelimiter, getLocalAddress, getLogger, getProtocolTransport, getPushedLineHandlerCount, getRemoteAddress, getSessionID, getState, getUser, isStartTLSSupported, isTLSStarted, popLineHandler, pushLineHandler, setAttachment, setUserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttachment, getCharset, getConnectionState, getLineDelimiter, getLocalAddress, getLogger, getPushedLineHandlerCount, getRemoteAddress, getSessionID, getState, getUser, isStartTLSSupported, isTLSStarted, popLineHandler, pushLineHandler, setAttachment, setUserpublic SMTPSessionImpl(Logger logger, ProtocolTransport transport, SMTPConfiguration config)
public boolean isRelayingAllowed()
SMTPSessionisRelayingAllowed in interface SMTPSessionSMTPSession.isRelayingAllowed()public void resetState()
ProtocolSessionImplresetState in interface ProtocolSessionresetState in class ProtocolSessionImplpublic int getRcptCount()
getRcptCount in interface SMTPSessionSMTPSession.getRcptCount()public boolean isAuthSupported()
SMTPSessionisAuthSupported in interface SMTPSessionSMTPSession.isAuthSupported()public void setRelayingAllowed(boolean relayingAllowed)
SMTPSessionsetRelayingAllowed in interface SMTPSessionSMTPSession.setRelayingAllowed(boolean)public Response newLineTooLongResponse()
ProtocolSessionImplnull. Sub-classes should
overwrite this if needednewLineTooLongResponse in interface ProtocolSessionnewLineTooLongResponse in class ProtocolSessionImplpublic Response newFatalErrorResponse()
ProtocolSessionImplnull. Sub-classes should
overwrite this if needednewFatalErrorResponse in interface ProtocolSessionnewFatalErrorResponse in class ProtocolSessionImplpublic SMTPConfiguration getConfiguration()
ProtocolSessionProtocolConfigurationgetConfiguration in interface ProtocolSessiongetConfiguration in interface SMTPSessiongetConfiguration in class ProtocolSessionImplProtocolSession.getConfiguration()Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.