public class HttpTransportServer extends Object implements TransportServer<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(ServerHttpExchange http) |
HttpTransportServer |
ontransport(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(ServerHttpExchange http)
on in interface Action<ServerHttpExchange>public HttpTransportServer ontransport(Action<ServerTransport> action)
TransportServerontransport in interface TransportServer<ServerHttpExchange>Copyright 2015, The Cettia Project