spark.embeddedserver.jetty.websocket.WebSocketHandlerInstanceWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spark-core Show documentation
Show all versions of spark-core Show documentation
A micro framework for creating web applications in Kotlin and Java 8 with minimal effort
package spark.embeddedserver.jetty.websocket;
import static java.util.Objects.requireNonNull;
public class WebSocketHandlerInstanceWrapper implements WebSocketHandlerWrapper {
private final Object handler;
public WebSocketHandlerInstanceWrapper(Object handler) {
requireNonNull(handler, "WebSocket handler cannot be null");
WebSocketHandlerWrapper.validateHandlerClass(handler.getClass());
this.handler = handler;
}
@Override
public Object getHandler() {
return handler;
}
}