com.vaadin.hilla.

Class EndpointUtil

java.lang.Object
com.vaadin.hilla.EndpointUtil

All Implemented Interfaces:

EndpointRequestUtil, Serializable

@Component public class EndpointUtil extends Object implements EndpointRequestUtil

A util class related to classes available to the browser.

See Also:

  • Constructor Details

    • EndpointUtil

      public EndpointUtil()
  • Method Details

    • isEndpointRequest

      public boolean isEndpointRequest(jakarta.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.

      Specified by:

      isEndpointRequest in interface EndpointRequestUtil

      Parameters:

      request - the HTTP request

      Returns:

      true if the request is for an endpoint, false otherwise

    • isAnonymousEndpoint

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

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

      Specified by:

      isAnonymousEndpoint in interface EndpointRequestUtil

      Parameters:

      request - the HTTP request to check

      Returns:

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