public class SMTPSessionImpl extends ProtocolSessionImpl implements SMTPSession
SMTPSession
implementationProtocolSession.State
config
CURRENT_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, setUser
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttachment, getCharset, getConnectionState, getLineDelimiter, getLocalAddress, getLogger, getPushedLineHandlerCount, getRemoteAddress, getSessionID, getState, getUser, isStartTLSSupported, isTLSStarted, popLineHandler, pushLineHandler, setAttachment, setUser
public SMTPSessionImpl(Logger logger, ProtocolTransport transport, SMTPConfiguration config)
public boolean isRelayingAllowed()
SMTPSession
isRelayingAllowed
in interface SMTPSession
SMTPSession.isRelayingAllowed()
public void resetState()
ProtocolSessionImpl
resetState
in interface ProtocolSession
resetState
in class ProtocolSessionImpl
public int getRcptCount()
getRcptCount
in interface SMTPSession
SMTPSession.getRcptCount()
public boolean isAuthSupported()
SMTPSession
isAuthSupported
in interface SMTPSession
SMTPSession.isAuthSupported()
public void setRelayingAllowed(boolean relayingAllowed)
SMTPSession
setRelayingAllowed
in interface SMTPSession
SMTPSession.setRelayingAllowed(boolean)
public Response newLineTooLongResponse()
ProtocolSessionImpl
null
. Sub-classes should
overwrite this if needednewLineTooLongResponse
in interface ProtocolSession
newLineTooLongResponse
in class ProtocolSessionImpl
public Response newFatalErrorResponse()
ProtocolSessionImpl
null
. Sub-classes should
overwrite this if needednewFatalErrorResponse
in interface ProtocolSession
newFatalErrorResponse
in class ProtocolSessionImpl
public SMTPConfiguration getConfiguration()
ProtocolSession
ProtocolConfiguration
getConfiguration
in interface ProtocolSession
getConfiguration
in interface SMTPSession
getConfiguration
in class ProtocolSessionImpl
ProtocolSession.getConfiguration()
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.