All Downloads are FREE. Search and download functionalities are using the official Maven repository.

spark.embeddedserver.jetty.websocket.WebSocketHandlerInstanceWrapper Maven / Gradle / Ivy

Go to download

A micro framework for creating web applications in Kotlin and Java 8 with minimal effort

There is a newer version: 2.9.4
Show newest version
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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy