Package pl.gsmservice.gateway.utils
Interface AsyncHook.AfterSuccess
-
- All Known Implementing Classes:
AsyncHooks
- Enclosing class:
- AsyncHook
- 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 AsyncHook.AfterSuccessSpecifies how a response is transformed before response processing.
-
-
Field Summary
Fields Modifier and Type Field Description static AsyncHook.AfterSuccessDEFAULT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.net.http.HttpResponse<Blob>>afterSuccess(Hook.AfterSuccessContext context, java.net.http.HttpResponse<Blob> response)Transforms the given response before response processing occurs.
-
-
-
Field Detail
-
DEFAULT
static final AsyncHook.AfterSuccess DEFAULT
-
-
Method Detail
-
afterSuccess
java.util.concurrent.CompletableFuture<java.net.http.HttpResponse<Blob>> afterSuccess(Hook.AfterSuccessContext context, java.net.http.HttpResponse<Blob> response)
Transforms the given response before response processing occurs.- Parameters:
context- context for the hook callresponse- response to be transformed- Returns:
- transformed response
-
-