applications.webServer
Class HttpRequestHandler

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--applications.webServer.HttpRequestHandler

public class HttpRequestHandler
extends Thread

Description of the Class

Author:
igasp
created January 30, 2001

Field Summary
 final static StringDEFAULT_CONTENT_TYPE
          Description of the Field
 private SockethttpSocket
           
 (package private) static CategoryLog
           
 private WebServerparentWebServer
           

Fields inherited from class java.lang.Thread
MIN_PRIORITY, NORM_PRIORITY, MAX_PRIORITY

Constructor Summary
HttpRequestHandler(Socket httpSocket, WebServer parentWebServer)
          Constructor for the HttpRequestHandler object

Method Summary
 protected voidhandleGetDirectory(String directoryUri)
          Description of the Method
 protected voidhandleGetFile(String requestedUri)
          Description of the Method
 protected voidhandleMamServletRequest(HttpRequest httpRequest, String servletUri)
          Description of the Method
 protected voidhandleNotFound()
          Description of the Method
 protected voidhandleRequestGet(HttpRequest httpRequest)
          Description of the Method
 protected voidhandleRequestPost(HttpRequest httpRequest)
          Description of the Method
 voidrun()
          Main processing method for the HttpRequestHandler object

Methods inherited from class java.lang.Thread
currentThread, yield, sleep, sleep, start, stop, stop, interrupt, interrupted, isInterrupted, destroy, isAlive, suspend, resume, setPriority, getPriority, setName, getName, getThreadGroup, activeCount, enumerate, countStackFrames, join, join, join, dumpStack, setDaemon, isDaemon, checkAccess, toString, getContextClassLoader, setContextClassLoader

Methods inherited from class java.lang.Object
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize

Field Detail

DEFAULT_CONTENT_TYPE

public final static String DEFAULT_CONTENT_TYPE
Description of the Field
Since:

httpSocket

private Socket httpSocket

Log

static Category Log

parentWebServer

private WebServer parentWebServer
Constructor Detail

HttpRequestHandler

public HttpRequestHandler(Socket httpSocket, WebServer parentWebServer)
Constructor for the HttpRequestHandler object
Parameters:
httpSocket - Description of Parameter
parentWebServer - Description of Parameter
Since:
Method Detail

handleGetDirectory

protected void handleGetDirectory(String directoryUri)
Description of the Method
Parameters:
directoryUri - Description of Parameter
Since:

handleGetFile

protected void handleGetFile(String requestedUri)
Description of the Method
Parameters:
requestedUri - Description of Parameter
Since:

handleMamServletRequest

protected void handleMamServletRequest(HttpRequest httpRequest, String servletUri)
Description of the Method
Parameters:
httpRequest - Description of Parameter
servletUri - Description of Parameter
Since:

handleNotFound

protected void handleNotFound()
Description of the Method
Since:

handleRequestGet

protected void handleRequestGet(HttpRequest httpRequest)
Description of the Method
Parameters:
httpRequest - Description of Parameter
Since:

handleRequestPost

protected void handleRequestPost(HttpRequest httpRequest)
Description of the Method
Parameters:
httpRequest - Description of Parameter
Since:

run

public void run()
Main processing method for the HttpRequestHandler object
Since: