com.vaadin.flow.server.connect.

Class EndpointUtil


  • public class EndpointUtil
    extends Object

    A util class related to Endpoint.

    • Constructor Detail

      • EndpointUtil

        public EndpointUtil()
    • Method Detail

      • isEndpointRequest

        public boolean isEndpointRequest(javax.servlet.http.HttpServletRequest request)

        Checks if the request is for an endpoint.

        Note even if this method returns true, there is no guarantee that an endpoint method will actually be called, e.g. access might be denied.

        Parameters:

        request - the HTTP request

        Returns:

        true if the request is for an endpoint, false otherwise

      • isAnonymousEndpoint

        public boolean isAnonymousEndpoint(javax.servlet.http.HttpServletRequest request)

        Checks if the given request goes to an anonymous (public) endpoint.

        Parameters:

        request - the HTTP request to check

        Returns:

        true if the request goes to an anonymous endpoint, false otherwise