org.cometd.server.transports
Class HttpTransport
java.lang.Object
org.cometd.server.ServerTransport
org.cometd.server.transports.HttpTransport
- All Implemented Interfaces:
- Transport
- Direct Known Subclasses:
- LongPollingTransport, WebSocketTransport
public abstract class HttpTransport
- extends ServerTransport
Fields inherited from class org.cometd.server.ServerTransport |
_advice, _bayeux, _interval, _maxInterval, _maxLazyTimeout, _metaConnectDeliveryOnly, _prefix, _timeout, INTERVAL_OPTION, MAX_INTERVAL_OPTION, MAX_LAZY_OPTION, META_CONNECT_DELIVERY_OPTION, TIMEOUT_OPTION |
Constructor Summary |
protected |
HttpTransport(BayeuxServerImpl bayeux,
java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> options)
|
Method Summary |
javax.servlet.http.HttpServletRequest |
getCurrentRequest()
|
abstract void |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected void |
init()
Initialise the transport. |
protected ServerMessage.Mutable[] |
parseMessages(javax.servlet.http.HttpServletRequest request)
|
void |
setCurrentRequest(javax.servlet.http.HttpServletRequest request)
|
Methods inherited from class org.cometd.server.ServerTransport |
getAdvice, getInterval, getMaxInterval, getMaxLazyTimeout, getName, getOption, getOption, getOption, getOption, getOption, getOptionNames, getOptionPrefix, getTimeout, isMetaConnectDeliveryOnly, setMetaConnectDeliveryOnly, setOption |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MESSAGE_PARAM
public static final java.lang.String MESSAGE_PARAM
- See Also:
- Constant Field Values
HttpTransport
protected HttpTransport(BayeuxServerImpl bayeux,
java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> options)
init
protected void init()
- Description copied from class:
ServerTransport
- Initialise the transport.
Initialise the transport, resolving default and direct options.
After the call to init, the
#getMutableOptions()
set should
be reset to reflect only the options that can be changed on a running
transport.
This implementation clears the mutable options set.
- Overrides:
init
in class ServerTransport
handle
public abstract void handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- Throws:
java.io.IOException
javax.servlet.ServletException
parseMessages
protected ServerMessage.Mutable[] parseMessages(javax.servlet.http.HttpServletRequest request)
throws java.io.IOException
- Throws:
java.io.IOException
setCurrentRequest
public void setCurrentRequest(javax.servlet.http.HttpServletRequest request)
getCurrentRequest
public javax.servlet.http.HttpServletRequest getCurrentRequest()
Copyright © 2010 Dojo Foundation. All Rights Reserved.