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);
addSessionHandler(new SendingSessionState(sessions), sessions.get(pathParams.sessionId()), ctx);
break;
case WEBSOCKET:
addTransportHandler(new WebSocketTransport(factory.config()), ctx);
addSessionHandler(new WebSocketSessionState(), new SockJsSession(randomUUID().toString(), factory.create()),