Package com.vaadin.flow.spring.security
Class RequestUtil
- java.lang.Object
-
- com.vaadin.flow.spring.security.RequestUtil
-
@Component public class RequestUtil extends Object
Contains utility methods related to request handling.
-
-
Constructor Summary
Constructors Constructor Description RequestUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAnonymousEndpoint(javax.servlet.http.HttpServletRequest request)Checks whether the request targets an endpoint that is public, i.e.booleanisAnonymousRoute(javax.servlet.http.HttpServletRequest request)Checks whether the request targets a Flow route that is public, i.e.booleanisEndpointRequest(javax.servlet.http.HttpServletRequest request)Checks whether the request targets an endpoint.booleanisFrameworkInternalRequest(javax.servlet.http.HttpServletRequest request)Checks whether the request is an internal request.
-
-
-
Method Detail
-
isFrameworkInternalRequest
public boolean isFrameworkInternalRequest(javax.servlet.http.HttpServletRequest request)
Checks whether the request is an internal request. An internal request is one that is needed for all Vaadin applications to function, e.g. UIDL or init requests. Note that bootstrap requests for any route or static resource requests are not internal, neither are resource requests for the JS bundle.- Parameters:
request- the servlet request- Returns:
trueif the request is Vaadin internal,falseotherwise
-
isEndpointRequest
public boolean isEndpointRequest(javax.servlet.http.HttpServletRequest request)
Checks whether the request targets an endpoint.- Parameters:
request- the servlet request- Returns:
trueif the request is targeting an enpoint,falseotherwise
-
isAnonymousEndpoint
public boolean isAnonymousEndpoint(javax.servlet.http.HttpServletRequest request)
Checks whether the request targets an endpoint that is public, i.e. marked as @AnonymousAllowed.- Parameters:
request- the servlet request- Returns:
trueif the request is targeting an anonymous enpoint,falseotherwise
-
isAnonymousRoute
public boolean isAnonymousRoute(javax.servlet.http.HttpServletRequest request)
Checks whether the request targets a Flow route that is public, i.e. marked as @AnonymousAllowed.- Parameters:
request- the servlet request- Returns:
trueif the request is targeting an anonymous route,falseotherwise
-
-