org.mmbase.remote
Class MMHttpHandler

java.lang.Object
  |
  +--org.mmbase.remote.MMHttpHandler
All Implemented Interfaces:
java.lang.Runnable

public class MMHttpHandler
extends java.lang.Object
implements java.lang.Runnable

Version:
$Revision: 1.13 $ $Date: 2001/07/02 16:57:56 $
Author:
Daniel Ockeloen

Field Summary
static java.lang.String CONTENT_TYPE
           
static java.lang.String REMOTE_REQUEST_URI_FILE
           
 
Constructor Summary
MMHttpHandler(java.net.Socket clientsocket, java.util.Hashtable listeners)
           
 
Method Summary
 void init()
           
 byte[] readContentLength(int len, java.io.DataInputStream in)
          read a block into a array of ContentLenght size from the users networksocket
 void run()
          Connects and retrieves HTTP method and checks for GET and POST to react to.
 void start()
          Starts the admin Thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REMOTE_REQUEST_URI_FILE

public static final java.lang.String REMOTE_REQUEST_URI_FILE

CONTENT_TYPE

public static final java.lang.String CONTENT_TYPE
Constructor Detail

MMHttpHandler

public MMHttpHandler(java.net.Socket clientsocket,
                     java.util.Hashtable listeners)
Method Detail

init

public void init()

start

public void start()
Starts the admin Thread.

run

public void run()
Connects and retrieves HTTP method and checks for GET and POST to react to. Before handling request first a shared secret check is done.
Specified by:
run in interface java.lang.Runnable

readContentLength

public byte[] readContentLength(int len,
                                java.io.DataInputStream in)
read a block into a array of ContentLenght size from the users networksocket
Parameters:
table - the hashtable that is used as the source for the mapping process
Returns:
byte[] buffer of length defined in the content-length mimeheader


MMBase 2002