this.bayeuxClient = createBayeuxClient(builder);
this.eventExecutor = builder.eventExecutor;
}
private static BayeuxClient createBayeuxClient(Setup builder) {
final Authentication authentication = builder.authentication;
HashMap<String, Object> longPollingOptions = new HashMap<>();
LongPollingTransport longPollingTransport = new LongPollingTransport(longPollingOptions, builder.client.httpClient) {
@Override protected void customize(ContentExchange exchange) {
super.customize(exchange);
HttpRequest request = new Jetty769HttpRequest(exchange);
authentication.setupRequest(request);
logRequest(exchange);
}
@Override protected void debug(String message, Object... args) {
LOG_EVENT_TRANSPORT.debug(message, args);