|
||||||||||
| 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 AbstractJamesHandlertheData - Configuration Bean.
public void handleProtocol()
throws java.io.IOException
handleProtocol in class AbstractJamesHandlerjava.io.IOException - get thrown if an IO error is detectedpublic void resetHandler()
resetHandler in class AbstractJamesHandlerprotected void errorHandler(java.lang.RuntimeException e)
AbstractJamesHandler
errorHandler in class AbstractJamesHandlere - the RuntimeExceptionAbstractJamesHandler.errorHandler(java.lang.RuntimeException)public void defaultErrorHandler(java.lang.RuntimeException e)
ProtocolHandlerHelper
defaultErrorHandler in interface ProtocolHandlerHelpere - the runtimeexceptionProtocolHandlerHelper.defaultErrorHandler(java.lang.RuntimeException)public java.lang.String getRemoteIP()
ProtocolHandlerHelper
getRemoteIP in interface ProtocolHandlerHelperProtocolHandlerHelper.getRemoteIP()public CRLFTerminatedReader getInputReader()
ProtocolHandlerHelper
getInputReader in interface ProtocolHandlerHelperProtocolHandlerHelper.getInputReader()public java.io.InputStream getInputStream()
ProtocolHandlerHelper
getInputStream in interface ProtocolHandlerHelperProtocolHandlerHelper.getInputStream()public java.io.OutputStream getOutputStream()
ProtocolHandlerHelper
getOutputStream in interface ProtocolHandlerHelperProtocolHandlerHelper.getOutputStream()public java.io.PrintWriter getOutputWriter()
ProtocolHandlerHelper
getOutputWriter in interface ProtocolHandlerHelperProtocolHandlerHelper.getOutputWriter()public java.lang.String getRemoteHost()
ProtocolHandlerHelper
getRemoteHost in interface ProtocolHandlerHelperProtocolHandlerHelper.getRemoteHost()public org.apache.avalon.framework.logger.Logger getAvalonLogger()
ProtocolHandlerHelper
getAvalonLogger in interface ProtocolHandlerHelperProtocolHandlerHelper.getAvalonLogger()public Watchdog getWatchdog()
ProtocolHandlerHelper
getWatchdog in interface ProtocolHandlerHelperProtocolHandlerHelper.getWatchdog()public java.net.Socket getSocket()
ProtocolHandlerHelper
getSocket in interface ProtocolHandlerHelperProtocolHandlerHelper.getSocket()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||