Package com.vaadin.hilla
Class EndpointUtil
java.lang.Object
com.vaadin.hilla.EndpointUtil
- All Implemented Interfaces:
com.vaadin.flow.internal.hilla.EndpointRequestUtil,Serializable
@Component
public class EndpointUtil
extends Object
implements com.vaadin.flow.internal.hilla.EndpointRequestUtil
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 TypeMethodDescriptionbooleanisAnonymousEndpoint(jakarta.servlet.http.HttpServletRequest request) Checks if the given request goes to an anonymous (public) endpoint.booleanisEndpointRequest(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:
isEndpointRequestin interfacecom.vaadin.flow.internal.hilla.EndpointRequestUtil- Parameters:
request- the HTTP request- Returns:
trueif the request is for an endpoint,falseotherwise
-
isAnonymousEndpoint
public boolean isAnonymousEndpoint(jakarta.servlet.http.HttpServletRequest request) Checks if the given request goes to an anonymous (public) endpoint.- Specified by:
isAnonymousEndpointin interfacecom.vaadin.flow.internal.hilla.EndpointRequestUtil- Parameters:
request- the HTTP request to check- Returns:
trueif the request goes to an anonymous endpoint,falseotherwise
-