public class UndertowHttpServerConnector extends AbstractHttpServerConnector implements io.undertow.server.HttpHandler
actorServer, conf, connectionVerifier, facade, factory, isClosed, REQUEST_RESULTING_FUTURE_TIMEOUT, SESSION_TIMEOUT_MS, sessions, sessionTimeout| Constructor and Description |
|---|
UndertowHttpServerConnector(org.nustaq.kontraktor.Actor facade) |
| Modifier and Type | Method and Description |
|---|---|
protected org.nustaq.kontraktor.util.Pair<Runnable,KHttpExchange> |
createLongPollTask(KHttpExchange exchange,
HttpObjectSocket httpObjectSocket,
org.xnio.channels.StreamSinkChannel sinkchannel) |
void |
handleClientRequest(io.undertow.server.HttpServerExchange exchange,
HttpObjectSocket httpObjectSocket,
byte[] postData,
String lastSeenSequence) |
protected void |
handleRegularRequest(io.undertow.server.HttpServerExchange exchange,
HttpObjectSocket httpObjectSocket,
Object[] received,
org.xnio.channels.StreamSinkChannel sinkchannel)
handle a remote method call (not a long poll)
|
void |
handleRequest(io.undertow.server.HttpServerExchange exchange)
if relpath is empty, this is considered as a connect/open and a session id is sent back.
|
protected void |
replyFromHistory(io.undertow.server.HttpServerExchange exchange,
org.xnio.channels.StreamSinkChannel sinkchannel,
byte[] msg) |
protected void |
requestReceived(io.undertow.server.HttpServerExchange exchange,
byte[] postData,
String path) |
closeServer, closeSession, connect, getActorServer, getConnectionVerifier, getSessionTimeout, handleNewSession, houseKeeping, restoreSessionFromId, setActorServer, setConnectionVerifier, setSessionTimeoutpublic UndertowHttpServerConnector(org.nustaq.kontraktor.Actor facade)
public void handleRequest(io.undertow.server.HttpServerExchange exchange)
throws Exception
handleRequest in interface io.undertow.server.HttpHandlerexchange - Exceptionprotected void requestReceived(io.undertow.server.HttpServerExchange exchange,
byte[] postData,
String path)
public void handleClientRequest(io.undertow.server.HttpServerExchange exchange,
HttpObjectSocket httpObjectSocket,
byte[] postData,
String lastSeenSequence)
protected org.nustaq.kontraktor.util.Pair<Runnable,KHttpExchange> createLongPollTask(KHttpExchange exchange, HttpObjectSocket httpObjectSocket, org.xnio.channels.StreamSinkChannel sinkchannel)
protected void replyFromHistory(io.undertow.server.HttpServerExchange exchange,
org.xnio.channels.StreamSinkChannel sinkchannel,
byte[] msg)
protected void handleRegularRequest(io.undertow.server.HttpServerExchange exchange,
HttpObjectSocket httpObjectSocket,
Object[] received,
org.xnio.channels.StreamSinkChannel sinkchannel)
exchange - httpObjectSocket - received - sinkchannel - Copyright © 2017. All rights reserved.