|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.james.socket.AbstractJamesHandler
org.apache.james.socket.DelegatingJamesHandler
public class DelegatingJamesHandler
Common Handler code
Field Summary | |
---|---|
protected ProtocolHandler |
protocolHandler
|
Fields inherited from class org.apache.james.socket.AbstractJamesHandler |
---|
dnsServer, in, inReader, out, outs, remoteHost, remoteIP, socket, theWatchdog |
Constructor Summary | |
---|---|
DelegatingJamesHandler(ProtocolHandler delegated)
|
Method Summary | |
---|---|
void |
defaultErrorHandler(java.lang.RuntimeException e)
Provides basic errorhandling cleanup. |
protected void |
errorHandler(java.lang.RuntimeException e)
Method which will be colled on error |
org.apache.avalon.framework.logger.Logger |
getAvalonLogger()
Provides logging facility to the handler. |
CRLFTerminatedReader |
getInputReader()
Returns a CRLF terminated line reader |
java.io.InputStream |
getInputStream()
Returns the raw input stream |
java.io.OutputStream |
getOutputStream()
Returns the raw outputstream |
java.io.PrintWriter |
getOutputWriter()
Returns the printwriter. |
java.lang.String |
getRemoteHost()
getter for the remote hostname |
java.lang.String |
getRemoteIP()
getter for the remote ip |
java.net.Socket |
getSocket()
Provides access to the socket |
Watchdog |
getWatchdog()
The watchdog is used to deal with timeouts. |
void |
handleProtocol()
Handle the protocol |
void |
resetHandler()
Resets the handler data to a basic state. |
void |
setConfigurationData(java.lang.Object theData)
This method will be implemented checking for the correct class type. |
Methods inherited from class org.apache.james.socket.AbstractJamesHandler |
---|
getName, handleConnection, initHandler, service, setDnsServer, setName, setStreamDumpDir, setWatchdog, toString, writeLoggedFlushedResponse, writeLoggedResponse |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.james.socket.ProtocolHandlerHelper |
---|
getName, writeLoggedFlushedResponse, writeLoggedResponse |
Field Detail |
---|
protected ProtocolHandler protocolHandler
Constructor Detail |
---|
public DelegatingJamesHandler(ProtocolHandler delegated)
Method Detail |
---|
public void setConfigurationData(java.lang.Object theData)
setConfigurationData
in class AbstractJamesHandler
theData
- Configuration Bean.public void handleProtocol() throws java.io.IOException
handleProtocol
in class AbstractJamesHandler
java.io.IOException
- get thrown if an IO error is detectedpublic void resetHandler()
resetHandler
in class AbstractJamesHandler
protected void errorHandler(java.lang.RuntimeException e)
AbstractJamesHandler
errorHandler
in class AbstractJamesHandler
e
- the RuntimeExceptionAbstractJamesHandler.errorHandler(java.lang.RuntimeException)
public void defaultErrorHandler(java.lang.RuntimeException e)
ProtocolHandlerHelper
defaultErrorHandler
in interface ProtocolHandlerHelper
e
- the runtimeexceptionProtocolHandlerHelper.defaultErrorHandler(java.lang.RuntimeException)
public java.lang.String getRemoteIP()
ProtocolHandlerHelper
getRemoteIP
in interface ProtocolHandlerHelper
ProtocolHandlerHelper.getRemoteIP()
public CRLFTerminatedReader getInputReader()
ProtocolHandlerHelper
getInputReader
in interface ProtocolHandlerHelper
ProtocolHandlerHelper.getInputReader()
public java.io.InputStream getInputStream()
ProtocolHandlerHelper
getInputStream
in interface ProtocolHandlerHelper
ProtocolHandlerHelper.getInputStream()
public java.io.OutputStream getOutputStream()
ProtocolHandlerHelper
getOutputStream
in interface ProtocolHandlerHelper
ProtocolHandlerHelper.getOutputStream()
public java.io.PrintWriter getOutputWriter()
ProtocolHandlerHelper
getOutputWriter
in interface ProtocolHandlerHelper
ProtocolHandlerHelper.getOutputWriter()
public java.lang.String getRemoteHost()
ProtocolHandlerHelper
getRemoteHost
in interface ProtocolHandlerHelper
ProtocolHandlerHelper.getRemoteHost()
public org.apache.avalon.framework.logger.Logger getAvalonLogger()
ProtocolHandlerHelper
getAvalonLogger
in interface ProtocolHandlerHelper
ProtocolHandlerHelper.getAvalonLogger()
public Watchdog getWatchdog()
ProtocolHandlerHelper
getWatchdog
in interface ProtocolHandlerHelper
ProtocolHandlerHelper.getWatchdog()
public java.net.Socket getSocket()
ProtocolHandlerHelper
getSocket
in interface ProtocolHandlerHelper
ProtocolHandlerHelper.getSocket()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |