Interface Hook.AfterSuccess

  • All Known Implementing Classes:
    Hooks
    Enclosing class:
    Hook

    public static interface Hook.AfterSuccess
    Specifies how a response is transformed before response processing.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Hook.AfterSuccess DEFAULT
      The default action is to return the response untouched.
    • Field Detail

      • DEFAULT

        static final Hook.AfterSuccess DEFAULT
        The default action is to return the response untouched.
    • Method Detail

      • afterSuccess

        java.net.http.HttpResponse<java.io.InputStream> afterSuccess​(Hook.AfterSuccessContext context,
                                                                     java.net.http.HttpResponse<java.io.InputStream> response)
                                                              throws java.lang.Exception
        Transforms the given response before response processing occurs.
        Parameters:
        context - context for the hook call
        response - response to be transformed
        Returns:
        transformed response
        Throws:
        java.lang.Exception - on error