|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProtocolHandlerHelper
This is the helper interface provided to ProtocolHandlers to let them communicate with the outside world.
Method Summary | |
---|---|
void |
defaultErrorHandler(java.lang.RuntimeException e)
Provides basic errorhandling cleanup. |
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.lang.String |
getName()
The name of this handler. |
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 |
writeLoggedFlushedResponse(java.lang.String responseString)
Writes a response to the client and flush it. |
void |
writeLoggedResponse(java.lang.String responseString)
Writes a response to the client without flushing. |
Method Detail |
---|
void writeLoggedFlushedResponse(java.lang.String responseString)
responseString
- the response stringvoid writeLoggedResponse(java.lang.String responseString)
responseString
- the response stringWatchdog getWatchdog()
org.apache.avalon.framework.logger.Logger getAvalonLogger()
java.lang.String getRemoteHost()
java.lang.String getRemoteIP()
CRLFTerminatedReader getInputReader()
java.io.InputStream getInputStream()
java.io.OutputStream getOutputStream()
java.io.PrintWriter getOutputWriter()
void defaultErrorHandler(java.lang.RuntimeException e)
e
- the runtimeexceptionjava.net.Socket getSocket()
java.lang.String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |