public abstract class LongPollingTransport extends HttpTransport
| Modifier and Type | Class and Description |
|---|---|
protected class |
LongPollingTransport.LongPollScheduler |
AbstractServerTransport.OneTimeScheduler, AbstractServerTransport.Scheduler_logger, ALLOW_MULTI_SESSIONS_NO_BROWSER_OPTION, AUTOBATCH_OPTION, BROWSER_COOKIE_DOMAIN_OPTION, BROWSER_COOKIE_NAME_OPTION, BROWSER_COOKIE_PATH_OPTION, JSON_DEBUG_OPTION, MAX_SESSIONS_PER_BROWSER_OPTION, MESSAGE_PARAM, MULTI_SESSION_INTERVAL_OPTION, PREFIXINTERVAL_OPTION, JSON_CONTEXT_OPTION, MAX_INTERVAL_OPTION, MAX_LAZY_TIMEOUT_OPTION, MAX_QUEUE_OPTION, META_CONNECT_DELIVERY_OPTION, TIMEOUT_OPTION| Modifier | Constructor and Description |
|---|---|
protected |
LongPollingTransport(BayeuxServerImpl bayeux,
String name) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
finishWrite(PrintWriter writer,
ServerSessionImpl session) |
void |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected abstract boolean |
isAlwaysFlushingAfterHandle() |
protected LongPollingTransport.LongPollScheduler |
newLongPollScheduler(ServerSessionImpl session,
javax.servlet.AsyncContext asyncContext,
ServerMessage.Mutable metaConnectReply,
String browserId) |
protected abstract ServerMessage.Mutable[] |
parseMessages(javax.servlet.http.HttpServletRequest request) |
protected ServerMessage.Mutable[] |
parseMessages(String[] requestParameters) |
protected void |
process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected abstract PrintWriter |
writeMessage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
PrintWriter writer,
ServerSessionImpl session,
ServerMessage message) |
accept, bayeuxServerHandle, decBrowserId, findBrowserId, getContext, getCurrentRequest, getMultiSessionInterval, handleJSONParseException, incBrowserId, init, isAllowMultiSessionsNoBrowser, isAutoBatch, metaConnectResumed, metaConnectSuspended, setBrowserId, setCurrentRequest, sweepdestroy, getAdvice, getBayeux, getInterval, getMaxInterval, getMaxLazyTimeout, getTimeout, isMetaConnectDeliveryOnly, parseMessages, parseMessages, setAdvice, setInterval, setMaxInterval, setMaxLazyTimeout, setMetaConnectDeliveryOnly, setTimeoutgetName, getOption, getOption, getOption, getOption, getOption, getOptionNames, getOptionPrefix, setOption, setOptionPrefixclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getOption, getOptionNames, getOptionPrefixprotected LongPollingTransport(BayeuxServerImpl bayeux, String name)
public void handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
handle in class HttpTransportIOExceptionjavax.servlet.ServletExceptionprotected void process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionprotected LongPollingTransport.LongPollScheduler newLongPollScheduler(ServerSessionImpl session, javax.servlet.AsyncContext asyncContext, ServerMessage.Mutable metaConnectReply, String browserId)
protected ServerMessage.Mutable[] parseMessages(String[] requestParameters) throws IOException, ParseException
IOExceptionParseExceptionprotected abstract ServerMessage.Mutable[] parseMessages(javax.servlet.http.HttpServletRequest request) throws IOException, ParseException
IOExceptionParseExceptionprotected abstract boolean isAlwaysFlushingAfterHandle()
handle(HttpServletRequest, HttpServletResponse).protected abstract PrintWriter writeMessage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, PrintWriter writer, ServerSessionImpl session, ServerMessage message) throws IOException
IOExceptionprotected abstract void finishWrite(PrintWriter writer, ServerSessionImpl session) throws IOException
IOExceptionCopyright © 2008–2014 Dojo Foundation. All rights reserved.