Package dev.hilla
Class EndpointUtil
- java.lang.Object
-
- dev.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 toEndpoint.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EndpointUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAnonymousEndpoint(javax.servlet.http.HttpServletRequest request)Checks if the given request goes to an anonymous (public) endpoint.booleanisEndpointRequest(javax.servlet.http.HttpServletRequest request)Checks if the request is for an endpoint.
-
-
-
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.- 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(javax.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
-
-