public abstract class AbstractStreamHttpTransport extends AbstractHttpTransport
The base class for HTTP transports that use blocking stream I/O.
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractStreamHttpTransport.DispatchingLongPollScheduler |
AbstractHttpTransport.HttpScheduler, AbstractHttpTransport.LongPollScheduler
AbstractServerTransport.Scheduler
_logger, AUTOBATCH_OPTION, BROWSER_COOKIE_DOMAIN_OPTION, BROWSER_COOKIE_HTTP_ONLY_OPTION, BROWSER_COOKIE_NAME_OPTION, BROWSER_COOKIE_PATH_OPTION, BROWSER_COOKIE_SECURE_OPTION, HTTP2_MAX_SESSIONS_PER_BROWSER_OPTION, JSON_DEBUG_OPTION, MAX_SESSIONS_PER_BROWSER_OPTION, MESSAGE_PARAM, MULTI_SESSION_INTERVAL_OPTION, PREFIX, TRUST_CLIENT_SESSION
ALLOW_MESSAGE_DELIVERY_DURING_HANDSHAKE, HANDSHAKE_RECONNECT_OPTION, INTERVAL_OPTION, JSON_CONTEXT_OPTION, MAX_INTERVAL_OPTION, MAX_LAZY_TIMEOUT_OPTION, MAX_PROCESSING_OPTION, MAX_QUEUE_OPTION, META_CONNECT_DELIVERY_OPTION, TIMEOUT_OPTION
Modifier | Constructor and Description |
---|---|
protected |
AbstractStreamHttpTransport(BayeuxServerImpl bayeux,
String name) |
Modifier and Type | Method and Description |
---|---|
protected abstract javax.servlet.ServletOutputStream |
beginWrite(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected abstract void |
endWrite(javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletOutputStream output) |
void |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected AbstractHttpTransport.HttpScheduler |
newHttpScheduler(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.AsyncContext asyncContext,
ServerSessionImpl session,
ServerMessage.Mutable reply,
long timeout) |
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 AbstractHttpTransport.HttpScheduler |
suspend(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ServerSessionImpl session,
ServerMessage.Mutable reply,
long timeout) |
protected void |
write(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ServerSessionImpl session,
boolean scheduleExpiration,
List<ServerMessage> messages,
ServerMessage.Mutable[] replies) |
protected void |
writeMessage(javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletOutputStream output,
ServerSessionImpl session,
ServerMessage message) |
accept, bayeuxServerHandle, decBrowserId, error, findBrowserId, findCurrentSessions, flush, getContext, getCurrentRequest, getMultiSessionInterval, handleJSONParseException, incBrowserId, init, isAutoBatch, isHTTP2, metaConnectResumed, metaConnectSuspended, processMessages, processMetaConnect, processMetaHandshake, resume, setBrowserId, setCurrentRequest, sweep
allowMessageDeliveryDuringHandshake, destroy, dump, dump, getAdvice, getBayeux, getInterval, getMaxInterval, getMaxLazyTimeout, getTimeout, isAllowMessageDeliveryDuringHandshake, isHandshakeReconnect, isMetaConnectDeliveryOnly, parseMessages, parseMessages, processReply, setAllowMessageDeliveryDuringHandshake, setHandshakeReconnect, setInterval, setMaxInterval, setMaxLazyTimeout, setMetaConnectDeliveryOnly, setTimeout, toJSONBytes, toString
getName, getOption, getOption, getOption, getOption, getOption, getOptionNames, getOptionPrefix, setOption, setOptionPrefix
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName, getOption, getOptionNames, getOptionPrefix
protected AbstractStreamHttpTransport(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 AbstractHttpTransport
IOException
javax.servlet.ServletException
protected void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
protected AbstractHttpTransport.HttpScheduler suspend(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ServerSessionImpl session, ServerMessage.Mutable reply, long timeout)
suspend
in class AbstractHttpTransport
protected AbstractHttpTransport.HttpScheduler newHttpScheduler(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.AsyncContext asyncContext, ServerSessionImpl session, ServerMessage.Mutable reply, long timeout)
protected abstract ServerMessage.Mutable[] parseMessages(javax.servlet.http.HttpServletRequest request) throws IOException, ParseException
IOException
ParseException
protected ServerMessage.Mutable[] parseMessages(String[] requestParameters) throws IOException, ParseException
IOException
ParseException
protected void write(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ServerSessionImpl session, boolean scheduleExpiration, List<ServerMessage> messages, ServerMessage.Mutable[] replies)
write
in class AbstractHttpTransport
protected void writeMessage(javax.servlet.http.HttpServletResponse response, javax.servlet.ServletOutputStream output, ServerSessionImpl session, ServerMessage message) throws IOException
IOException
protected abstract javax.servlet.ServletOutputStream beginWrite(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
IOException
protected abstract void endWrite(javax.servlet.http.HttpServletResponse response, javax.servlet.ServletOutputStream output) throws IOException
IOException
Copyright © 2008–2016 The CometD Project. All rights reserved.