Sea 0.4.0

gov.lbl.dsd.sea.demo
Class SimpleHTTPEventHandler

java.lang.Object
  extended bygov.lbl.dsd.sea.EventHandler
      extended bygov.lbl.dsd.sea.demo.SimpleHTTPEventHandler

public class SimpleHTTPEventHandler
extends EventHandler

Simple HTTP 1.1 handler with limited functionality; Internally uses the raw commons-httpclient library.

Version:
$Revision: 1.1 $, $Date: 2004/05/29 19:24:57 $

Constructor Summary
SimpleHTTPEventHandler(Stage sink)
          Creates a handler that enqueues HTTP responses onto the given sink
SimpleHTTPEventHandler(Stage sink, HttpClient client)
           
 
Method Summary
 void handle(Object object)
          Main entry point; called when an event handler should handle the given event.
 
Methods inherited from class gov.lbl.dsd.sea.EventHandler
onStart, onStop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleHTTPEventHandler

public SimpleHTTPEventHandler(Stage sink)
Creates a handler that enqueues HTTP responses onto the given sink

Parameters:
sink - the sink to enqueue responses onto

SimpleHTTPEventHandler

public SimpleHTTPEventHandler(Stage sink,
                              HttpClient client)
Method Detail

handle

public void handle(Object object)
Description copied from class: EventHandler
Main entry point; called when an event handler should handle the given event.

Specified by:
handle in class EventHandler

Sea 0.4.0