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

org.umlg.jetty.websocket.UmlgWebsocketServlet Maven / Gradle / Ivy

There is a newer version: 2.0.16
Show newest version
package org.umlg.jetty.websocket;

/**
 * Date: 2014/04/04
 * Time: 6:50 PM
 */

import org.eclipse.jetty.websocket.servlet.WebSocketServlet;
import org.eclipse.jetty.websocket.servlet.WebSocketServletFactory;

import java.util.logging.Logger;

public class UmlgWebsocketServlet extends WebSocketServlet {

    private static Logger logger = Logger.getLogger(UmlgWebsocketServlet.class.getPackage().getName());
    @Override
    public void configure(WebSocketServletFactory factory) {
        logger.fine("UmlgWebsocketServlet start");
        factory.getPolicy().setIdleTimeout(10000);
        factory.register(UmlgWebsocket.class);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy