public void addHttpRequestListener(HttpRequestListener l){
  listeners.addElement(l);
}

public void addHttpRequestListener ( HttpRequestListener l ) { listeners . addElement ( l ) ; }
adds a new http request listener . don ' t add multiple listeners when binary content responses are required ! one listener should handle binary responses , because the result length needs to be calculated . you can add multiple listeners that use the writer inside the httprequestevent to concatenate a complete text response .
