We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.server.connect.
Class EndpointUtil
- java.lang.Object
-
- com.vaadin.flow.server.connect.EndpointUtil
-
-
Constructor Summary
Constructors Constructor and Description EndpointUtil()
-
Method Summary
All Methods Modifier and Type Method and 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
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.Parameters:
request
- the HTTP requestReturns:
true
if the request is for an endpoint,false
otherwise
-
isAnonymousEndpoint
public 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
-
-