org.apache.james.smtpserver
Class AbstractSMTPSession

java.lang.Object
  extended by 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


Field Summary
 
Fields inherited from interface org.apache.james.smtpserver.SMTPSession
CURRENT_HELO_MODE, CURRENT_HELO_NAME, CURRENT_RECIPIENT, MESG_FAILED, RCPT_LIST, SENDER
 
Constructor Summary
AbstractSMTPSession()
           
 
Method Summary
 void abortMessage()
           
 java.lang.String clearResponseBuffer()
           
 void endSession()
           
 java.lang.String getCommandArgument()
           
 java.lang.String getCommandName()
           
 org.apache.james.smtpserver.SMTPHandlerConfigurationData getConfigurationData()
           
 java.util.Map getConnectionState()
           
 java.io.InputStream getInputStream()
           
 org.apache.mailet.Mail getMail()
           
 int getRcptCount()
           
 java.lang.String getRemoteHost()
           
 java.lang.String getRemoteIPAddress()
           
 java.lang.StringBuffer getResponseBuffer()
           
 java.lang.String getSessionID()
           
 java.util.Map getState()
           
 boolean getStopHandlerProcessing()
           
 java.lang.String getUser()
           
 org.apache.james.util.watchdog.Watchdog getWatchdog()
           
 boolean isAuthRequired()
           
 boolean isRelayingAllowed()
           
 boolean isSessionEnded()
           
 java.lang.String readCommandLine()
           
 void resetConnectionState()
           
 void resetState()
           
 void setMail(org.apache.mailet.Mail mail)
           
 void setRelayingAllowed(boolean relayingAllowed)
           
 void setStopHandlerProcessing(boolean b)
           
 void setUser(java.lang.String user)
           
 boolean useHeloEhloEnforcement()
           
 void writeResponse(java.lang.String respString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSMTPSession

public AbstractSMTPSession()
Method Detail

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.