Class JettyXhrTransport

  • All Implemented Interfaces:
    Lifecycle, InfoReceiver, Transport, XhrTransport

    public class JettyXhrTransport
    extends AbstractXhrTransport
    implements Lifecycle
    An XHR transport based on Jetty's HttpClient.

    When used for testing purposes (e.g. load testing) the HttpClient properties must be set to allow a larger than usual number of connections and threads. For example:

     HttpClient httpClient = new HttpClient();
     httpClient.setMaxConnectionsPerDestination(1000);
     httpClient.setExecutor(new QueuedThreadPool(500));
     
    Since:
    4.1
    Author:
    Rossen Stoyanchev