com.vaadin.server.communication.ServletUIInitHandler Maven / Gradle / Ivy
/*
* Copyright (C) 2000-2024 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See for the full
* license.
*/
package com.vaadin.server.communication;
import com.vaadin.server.VaadinRequest;
public class ServletUIInitHandler extends UIInitHandler {
@Override
protected boolean isInitRequest(VaadinRequest request) {
return isUIInitRequest(request);
}
public static boolean isUIInitRequest(VaadinRequest request) {
return "POST".equals(request.getMethod()) && request
.getParameter(UIInitHandler.BROWSER_DETAILS_PARAMETER) != null;
}
}