Package com.styra.opa.openapi.utils
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
FieldsModifier and TypeFieldDescriptionstatic final Hook.AfterSuccess
The default action is to return the response untouched. -
Method Summary
Modifier and TypeMethodDescriptionafterSuccess
(Hook.AfterSuccessContext context, HttpResponse<InputStream> response) Transforms the given response before response processing occurs.
-
Field Details
-
DEFAULT
The default action is to return the response untouched.
-
-
Method Details
-
afterSuccess
HttpResponse<InputStream> afterSuccess(Hook.AfterSuccessContext context, HttpResponse<InputStream> response) throws Exception Transforms the given response before response processing occurs.- Parameters:
context
- context for the hook callresponse
- response to be transformed- Returns:
- transformed response
- Throws:
Exception
- on error
-