checkSessionExists(pathParams.sessionId(), request);
addTransportHandler(new XhrSendTransport(factory.config()), ctx);
addSessionHandler(new SendingSessionState(sessions, sessions.get(pathParams.sessionId())), ctx);
break;
case XHR_STREAMING:
addTransportHandler(new XhrStreamingTransport(factory.config(), request), ctx);
addSessionHandler(new StreamingSessionState(sessions, getSession(factory, pathParams.sessionId())), ctx);
break;
case EVENTSOURCE:
addTransportHandler(new EventSourceTransport(factory.config(), request), ctx);
addSessionHandler(new StreamingSessionState(sessions, getSession(factory, pathParams.sessionId())), ctx);