public class HttpTransportServer extends Object implements TransportServer<io.cettia.platform.http.ServerHttpExchange>
TransportServer.
It processes transport whose URI whose protocol is either http or
https and transport parameter is either stream or
longpoll like http://localhost:8080/cettia?transport=stream.
| Constructor and Description |
|---|
HttpTransportServer() |
| Modifier and Type | Method and Description |
|---|---|
static String |
formatQuery(Map<String,String> params)
For internal use only.
|
void |
on(io.cettia.platform.http.ServerHttpExchange http) |
HttpTransportServer |
ontransport(io.cettia.platform.action.Action<ServerTransport> action)
Registers an action to be called when the transport has been opened.
|
static Map<String,String> |
parseQuery(String uri)
For internal use only.
|
public void on(io.cettia.platform.http.ServerHttpExchange http)
on in interface io.cettia.platform.action.Action<io.cettia.platform.http.ServerHttpExchange>public HttpTransportServer ontransport(io.cettia.platform.action.Action<ServerTransport> action)
TransportServerontransport in interface TransportServer<io.cettia.platform.http.ServerHttpExchange>Copyright 2015, The Cettia Project