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
Modifier and TypeMethodDescriptionbooleanhandle(Context context, ResourcePath resourcePath) Handler called when a request has no resource API version.
-
Method Details
-
handle
Handler called when a request has no resource API version. The handler may query theContextand 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- theContextas provided to theFilterresourcePath- the request's resource path- Returns:
- handler should return true if a warning should be added to the response
-