org.apache.james.smtpserver
Class AbstractSMTPSession
java.lang.Object
org.apache.james.smtpserver.AbstractSMTPSession
- All Implemented Interfaces:
- org.apache.james.smtpserver.SMTPSession
public class AbstractSMTPSession
- extends java.lang.Object
- implements org.apache.james.smtpserver.SMTPSession
Abstract class to simplify the mocks
Fields inherited from interface org.apache.james.smtpserver.SMTPSession |
CURRENT_HELO_MODE, CURRENT_HELO_NAME, CURRENT_RECIPIENT, MESG_FAILED, RCPT_LIST, SENDER |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSMTPSession
public AbstractSMTPSession()
abortMessage
public void abortMessage()
- Specified by:
abortMessage
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.abortMessage()
clearResponseBuffer
public java.lang.String clearResponseBuffer()
- Specified by:
clearResponseBuffer
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.clearResponseBuffer()
endSession
public void endSession()
- Specified by:
endSession
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.endSession()
getCommandArgument
public java.lang.String getCommandArgument()
- Specified by:
getCommandArgument
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.getCommandArgument()
getCommandName
public java.lang.String getCommandName()
- Specified by:
getCommandName
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.getCommandName()
getConfigurationData
public org.apache.james.smtpserver.SMTPHandlerConfigurationData getConfigurationData()
- Specified by:
getConfigurationData
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.getConfigurationData()
getConnectionState
public java.util.Map getConnectionState()
- Specified by:
getConnectionState
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.getConnectionState()
getInputStream
public java.io.InputStream getInputStream()
- Specified by:
getInputStream
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.getInputStream()
getMail
public org.apache.mailet.Mail getMail()
- Specified by:
getMail
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.getMail()
getRcptCount
public int getRcptCount()
- Specified by:
getRcptCount
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.getRcptCount()
getRemoteHost
public java.lang.String getRemoteHost()
- Specified by:
getRemoteHost
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.getRemoteHost()
getRemoteIPAddress
public java.lang.String getRemoteIPAddress()
- Specified by:
getRemoteIPAddress
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.getRemoteIPAddress()
getResponseBuffer
public java.lang.StringBuffer getResponseBuffer()
- Specified by:
getResponseBuffer
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.getResponseBuffer()
getSessionID
public java.lang.String getSessionID()
- Specified by:
getSessionID
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.getSessionID()
getState
public java.util.Map getState()
- Specified by:
getState
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.getState()
getStopHandlerProcessing
public boolean getStopHandlerProcessing()
- Specified by:
getStopHandlerProcessing
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.getStopHandlerProcessing()
getUser
public java.lang.String getUser()
- Specified by:
getUser
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.getUser()
getWatchdog
public org.apache.james.util.watchdog.Watchdog getWatchdog()
- See Also:
org.apache.james.smtpserver.SMTPSession#getWatchdog()
isAuthRequired
public boolean isAuthRequired()
- Specified by:
isAuthRequired
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.isAuthRequired()
isRelayingAllowed
public boolean isRelayingAllowed()
- Specified by:
isRelayingAllowed
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.isRelayingAllowed()
isSessionEnded
public boolean isSessionEnded()
- Specified by:
isSessionEnded
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.isSessionEnded()
readCommandLine
public java.lang.String readCommandLine()
throws java.io.IOException
- Specified by:
readCommandLine
in interface org.apache.james.smtpserver.SMTPSession
- Throws:
java.io.IOException
- See Also:
SMTPSession.readCommandLine()
resetConnectionState
public void resetConnectionState()
- Specified by:
resetConnectionState
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.resetConnectionState()
resetState
public void resetState()
- Specified by:
resetState
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.resetState()
setMail
public void setMail(org.apache.mailet.Mail mail)
- Specified by:
setMail
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.setMail(org.apache.mailet.Mail)
setRelayingAllowed
public void setRelayingAllowed(boolean relayingAllowed)
- Specified by:
setRelayingAllowed
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.setRelayingAllowed(boolean)
setStopHandlerProcessing
public void setStopHandlerProcessing(boolean b)
- Specified by:
setStopHandlerProcessing
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.setStopHandlerProcessing(boolean)
setUser
public void setUser(java.lang.String user)
- Specified by:
setUser
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.setUser(java.lang.String)
useHeloEhloEnforcement
public boolean useHeloEhloEnforcement()
- Specified by:
useHeloEhloEnforcement
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.useHeloEhloEnforcement()
writeResponse
public void writeResponse(java.lang.String respString)
- Specified by:
writeResponse
in interface org.apache.james.smtpserver.SMTPSession
- See Also:
SMTPSession.writeResponse(java.lang.String)
Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.