case EVENTSOURCE:
addTransportHandler(new EventSourceTransport(factory.config(), request), ctx);
addSessionHandler(new StreamingSessionState(sessions, getSession(factory, pathParams.sessionId())), ctx);
break;
case HTMLFILE:
addTransportHandler(new HtmlFileTransport(factory.config(), request), ctx);
addSessionHandler(new StreamingSessionState(sessions, getSession(factory, pathParams.sessionId())), ctx);
break;
case JSONP_SEND:
checkSessionExists(pathParams.sessionId(), request);
addTransportHandler(new JsonpSendTransport(factory.config()), ctx);