org.cometd.server.transport
Class JSONPTransport
java.lang.Object
org.cometd.common.AbstractTransport
org.cometd.server.AbstractServerTransport
org.cometd.server.transport.HttpTransport
org.cometd.server.transport.LongPollingTransport
org.cometd.server.transport.JSONPTransport
- All Implemented Interfaces:
- ServerTransport, Transport
public class JSONPTransport
- extends LongPollingTransport
| Methods inherited from class org.cometd.server.AbstractServerTransport |
destroy, getAdvice, getBayeux, getInterval, getMaxInterval, getMaxLazyTimeout, getTimeout, isMetaConnectDeliveryOnly, parseMessages, parseMessages, setAdvice, setInterval, setMaxInterval, setMaxLazyTimeout, setMetaConnectDeliveryOnly, setTimeout |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
NAME
public static final String NAME
- See Also:
- Constant Field Values
MIME_TYPE_OPTION
public static final String MIME_TYPE_OPTION
- See Also:
- Constant Field Values
CALLBACK_PARAMETER_OPTION
public static final String CALLBACK_PARAMETER_OPTION
- See Also:
- Constant Field Values
JSONPTransport
public JSONPTransport(BayeuxServerImpl bayeux)
isAlwaysFlushingAfterHandle
protected boolean isAlwaysFlushingAfterHandle()
- Specified by:
isAlwaysFlushingAfterHandle in class LongPollingTransport
- Returns:
- true if the transport always flushes at the end of a call to
LongPollingTransport.handle(HttpServletRequest, HttpServletResponse). - See Also:
LongPollingTransport.isAlwaysFlushingAfterHandle()
init
protected void init()
- Description copied from class:
AbstractServerTransport
- Initialise the transport, resolving default and direct options.
- Overrides:
init in class LongPollingTransport
- See Also:
JSONTransport.init()
accept
public boolean accept(javax.servlet.http.HttpServletRequest request)
- Specified by:
accept in class HttpTransport
getCallbackParameter
public String getCallbackParameter()
send
protected PrintWriter send(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
PrintWriter writer,
ServerMessage message)
throws IOException
- Specified by:
send in class LongPollingTransport
- Throws:
IOException
complete
protected void complete(PrintWriter writer)
throws IOException
- Specified by:
complete in class LongPollingTransport
- Throws:
IOException
Copyright © 2008-2011 Dojo Foundation. All Rights Reserved.