@Component public class RequestUtil extends Object
| Constructor and Description |
|---|
RequestUtil() |
| Modifier and Type | Method and Description |
|---|---|
void |
init() |
boolean |
isAnonymousEndpoint(javax.servlet.http.HttpServletRequest request)
Checks whether the request targets an endpoint that is public, i.e.
|
boolean |
isAnonymousRoute(javax.servlet.http.HttpServletRequest request)
Checks whether the request targets a Flow route that is public, i.e.
|
boolean |
isEndpointRequest(javax.servlet.http.HttpServletRequest request)
Checks whether the request targets an endpoint.
|
boolean |
isFrameworkInternalRequest(javax.servlet.http.HttpServletRequest request)
Checks whether the request is an internal request.
|
@PostConstruct public void init()
public boolean isFrameworkInternalRequest(javax.servlet.http.HttpServletRequest request)
request - the servlet requesttrue if the request is Vaadin internal, false
otherwisepublic boolean isEndpointRequest(javax.servlet.http.HttpServletRequest request)
request - the servlet requesttrue if the request is targeting an enpoint,
false otherwisepublic boolean isAnonymousEndpoint(javax.servlet.http.HttpServletRequest request)
AnonymousAllowed.request - the servlet requesttrue if the request is targeting an anonymous enpoint,
false otherwisepublic boolean isAnonymousRoute(javax.servlet.http.HttpServletRequest request)
AnonymousAllowed.request - the servlet requesttrue if the request is targeting an anonymous route,
false otherwiseCopyright © 2021 Vaadin Ltd. All Rights Reserved.