Package org.forgerock.json.resource
Interface ResourceApiVersionSpecificationFilter.NoApiVersionHandler
-
- Enclosing class:
- ResourceApiVersionSpecificationFilter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface ResourceApiVersionSpecificationFilter.NoApiVersionHandler
Handler allowing products to extend behaviour when a request has no resource API version supplied.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
handle(Context context, ResourcePath resourcePath)
Handler called when a request has no resource API version.
-
-
-
Method Detail
-
handle
boolean handle(Context context, ResourcePath resourcePath)
Handler called when a request has no resource API version. The handler may query theContext
and the request'sresourcePath
. The handler should return true if a warning should be added to the response, otherwise false. should be included in the response- Parameters:
context
- theContext
as provided to theFilter
resourcePath
- the request's resource path- Returns:
- handler should return true if a warning should be added to the response
-
-