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 Detail

      • handle

        boolean handle​(Context context,
                       ResourcePath resourcePath)
        Handler called when a request has no resource API version. The handler may query the Context and the request's resourcePath. The handler should return true if a warning should be added to the response, otherwise false. should be included in the response
        Parameters:
        context - the Context as provided to the Filter
        resourcePath - the request's resource path
        Returns:
        handler should return true if a warning should be added to the response