class HandlerHub extends HandlerCollection {
    Handler http;
    Handler websocket = new WebSocketHandlerImpl();

    final String SEC_WEBSOCKET_KEY = "Sec-WebSocket-Key";

    public HandlerHub(Handler http) {
        this.http = http;
        addHandler(http);
        addHandler(websocket);
    }

    @Override
    public void handle(String s, Request request, HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {<FILL_FUNCTION_BODY>}
}

        if(req.getHeader(SEC_WEBSOCKET_KEY) != null){
            websocket.handle(s, request, req, res);
        }else{
            http.handle(s, request, req, res);
        }
    
<methods>public void <init>() ,public transient void <init>(org.eclipse.jetty.server.Handler[]) ,public transient void <init>(boolean, org.eclipse.jetty.server.Handler[]) ,public void addHandler(org.eclipse.jetty.server.Handler) ,public void destroy() ,public org.eclipse.jetty.server.Handler[] getHandlers() ,public void handle(java.lang.String, org.eclipse.jetty.server.Request, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) throws java.io.IOException, javax.servlet.ServletException,public void prependHandler(org.eclipse.jetty.server.Handler) ,public void removeHandler(org.eclipse.jetty.server.Handler) ,public void setHandlers(org.eclipse.jetty.server.Handler[]) <variables>protected final AtomicReference<org.eclipse.jetty.server.handler.HandlerCollection.Handlers> _handlers,private final boolean _mutableWhenRunning