org.webbitserver.EventSourceConnection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webbit Show documentation
Show all versions of webbit Show documentation
A Java event based WebSocket and HTTP server
package org.webbitserver;
import org.webbitserver.netty.contrib.EventSourceMessage;
import java.util.concurrent.Executor;
public interface EventSourceConnection extends Executor, DataHolder {
HttpRequest httpRequest();
EventSourceConnection send(EventSourceMessage message);
/**
* @see #send(org.webbitserver.netty.contrib.EventSourceMessage)
*/
@Deprecated
EventSourceConnection send(String message);
EventSourceConnection close();
@Override
EventSourceConnection data(String key, Object value); // Override DataHolder to provide more specific return type.
Executor handlerExecutor();
}