uk.co.lothianproductions.httpd.handler.impl
Class SocketRequestHandler

java.lang.Object
  extended byuk.co.lothianproductions.httpd.handler.impl.SocketRequestHandler
All Implemented Interfaces:
RequestHandler, java.lang.Runnable
Direct Known Subclasses:
HTTPRequestHandler

public class SocketRequestHandler
extends java.lang.Object
implements RequestHandler

Version:
$Revision: 1.5 $, $Date: 2004/01/02 19:00:37 $
Author:
Aidan Fitzpatrick

Field Summary
static int INTERNAL_BUFFER_SIZE
           
protected  java.net.Socket mServer
           
protected  XMLPluginConfig mXMLPluginConfig
           
 
Fields inherited from interface uk.co.lothianproductions.httpd.handler.RequestHandler
mLogger, RESPONSE_CANT_SERVICE, RESPONSE_ERROR, RESPONSE_NOT_FOUND, RESPONSE_OKAY
 
Constructor Summary
protected SocketRequestHandler()
           
  SocketRequestHandler(XMLPluginConfig config, java.net.Socket server)
           
 
Method Summary
 void closeRequest()
           
 Document handleProcessing(char[] method, char[] uri, char[][] header, char[] message)
           
 void handleRequest()
           
 void handleResponse(char[] method, char[] uri, char[][] header, char[] message)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTERNAL_BUFFER_SIZE

public static final int INTERNAL_BUFFER_SIZE
See Also:
Constant Field Values

mServer

protected java.net.Socket mServer

mXMLPluginConfig

protected XMLPluginConfig mXMLPluginConfig
Constructor Detail

SocketRequestHandler

protected SocketRequestHandler()

SocketRequestHandler

public SocketRequestHandler(XMLPluginConfig config,
                            java.net.Socket server)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

handleRequest

public void handleRequest()
Specified by:
handleRequest in interface RequestHandler

handleProcessing

public Document handleProcessing(char[] method,
                                 char[] uri,
                                 char[][] header,
                                 char[] message)
                          throws ConfigException,
                                 DocumentRenderException,
                                 DocumentNotFoundException,
                                 DocumentTimeoutException,
                                 DocumentRetrievalException
Specified by:
handleProcessing in interface RequestHandler
Throws:
ConfigException
DocumentRenderException
DocumentNotFoundException
DocumentTimeoutException
DocumentRetrievalException

handleResponse

public void handleResponse(char[] method,
                           char[] uri,
                           char[][] header,
                           char[] message)
                    throws java.io.IOException,
                           ConfigException
Specified by:
handleResponse in interface RequestHandler
Throws:
java.io.IOException
ConfigException

closeRequest

public void closeRequest()