Interface RouteAccessControl
- All Known Implementing Classes:
- AccessCombinerAllRequired,- AccessCombinerAnyRequired
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Controls access to a mounted route. Each request must first pass through the route's route access control and
 get a true response, otherwise the request is handled by the
 
handleAccessDenied(RequestContext, HttpServletResponse) method.- 
Method SummaryModifier and TypeMethodDescriptionbooleancanAccess(RequestContext context) Return true if access is granted.default voidhandleAccessDenied(RequestContext context, javax.servlet.http.HttpServletResponse response) What to do if the access is denied.static RouteAccessControlrequireAll(RouteAccessControl... multiple) Static convenience combiner to require all of any number of different access controlsstatic RouteAccessControlrequireAny(RouteAccessControl... multiple) Static convenience combiner to require at least one of any number of different access controls
- 
Method Details- 
canAccessReturn true if access is granted.
- 
handleAccessDenieddefault void handleAccessDenied(RequestContext context, javax.servlet.http.HttpServletResponse response) throws IOException What to do if the access is denied. Default implementation simply returns error code 403- Throws:
- IOException
 
- 
requireAllStatic convenience combiner to require all of any number of different access controls
- 
requireAnyStatic convenience combiner to require at least one of any number of different access controls
 
-