public HttpRequestEvent fireHttpRequestEvent(String request,OutputStream output) throws IOException {
  HttpRequestEvent event=new HttpRequestEvent(this,request,output);
  HttpRequestListener listener;
  Vector list=(Vector)listeners.clone();
  Enumeration e=list.elements();
  while (e.hasMoreElements()) {
    listener=(HttpRequestListener)e.nextElement();
    listener.httpRequest(event);
  }
  return event;
}

public HttpRequestEvent fireHttpRequestEvent ( String request , OutputStream output ) throws IOException { HttpRequestEvent event = new HttpRequestEvent ( this , request , output ) ; HttpRequestListener listener ; Vector list = ( Vector ) listeners . clone ( ) ; Enumeration e = list . elements ( ) ; while ( e . hasMoreElements ( ) ) { listener = ( HttpRequestListener ) e . nextElement ( ) ; listener . httpRequest ( event ) ; } return event ; }
creates a httprequestevent and sends it to all registered listeners .
