com.vaadin.hilla.
Class EndpointUtil
All Implemented Interfaces:
A util class related to classes available to the browser.
See Also:
-
Field Summary
Fields inherited from interface com.vaadin.flow.internal.hilla.EndpointRequestUtil
HILLA_ENDPOINT_CLASS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isAnonymousEndpoint
(jakarta.servlet.http.HttpServletRequest request) Checks if the given request goes to an anonymous (public) endpoint.
boolean
isEndpointRequest
(jakarta.servlet.http.HttpServletRequest request) Checks if the request is for an endpoint.
-
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 interfaceEndpointRequestUtil
Parameters:
request
- the HTTP requestReturns:
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 interfaceEndpointRequestUtil
Parameters:
request
- the HTTP request to checkReturns:
true
if the request goes to an anonymous endpoint,false
otherwise
-