public ListenCookie addListenEndpoint (ListenEndpoint endpoint)
throws IOException{
Logger log = AbstractEndpointTest.getLogger();
RequestDispatcher rh = new SETRequestHandler();
log.finest("Calling listen on " + endpoint + "with RequestDispatcher "
+ rh);
ListenHandle lh = endpoint.listen(rh);
log.finest("Call to listen returns " + lh);
synchronized(endpointList){
endpointList.add(new EndpointHolder(endpoint,lh,rh));