com.vaadin.flow.internal.hilla.
Interface EndpointRequestUtil
-
All Superinterfaces:
public interface EndpointRequestUtil extends Serializable
A container for utility methods related with Hilla endpoints.
For internal use only. May be renamed or removed in a future release.
Since:
23.2
Author:
Vaadin Ltd
-
-
Method Summary
All Methods Modifier and Type Method Description boolean
isAnonymousEndpoint(javax.servlet.http.HttpServletRequest request)
Checks if the given request goes to an anonymous (public) endpoint.
boolean
isEndpointRequest(javax.servlet.http.HttpServletRequest request)
Checks if the request is for an endpoint.
-
-
-
Method Detail
-
isEndpointRequest
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 requestReturns:
true
if the request is for an endpoint,false
otherwise
-
isAnonymousEndpoint
boolean isAnonymousEndpoint(javax.servlet.http.HttpServletRequest request)
Checks if the given request goes to an anonymous (public) endpoint.
Parameters:
request
- the HTTP request to checkReturns:
true
if the request goes to an anonymous endpoint,false
otherwise
-
-