case XHR:
addTransportHandler(new XhrPollingTransport(factory.config(), request), ctx);
addSessionHandler(new PollingSessionState(sessions, getSession(factory, pathParams.sessionId())), ctx);
break;
case JSONP:
addTransportHandler(new JsonpPollingTransport(factory.config(), request), ctx);
addSessionHandler(new PollingSessionState(sessions, getSession(factory, pathParams.sessionId())), ctx);
break;
case XHR_SEND:
checkSessionExists(pathParams.sessionId(), request);
addTransportHandler(new XhrSendTransport(factory.config()), ctx);