Package com.styra.opa.openapi.utils
Interface Hook.AfterSuccess
-
-
Field Summary
Fields Modifier and Type Field Description static Hook.AfterSuccess
DEFAULT
The default action is to return the response untouched.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.net.http.HttpResponse<java.io.InputStream>
afterSuccess(Hook.AfterSuccessContext context, java.net.http.HttpResponse<java.io.InputStream> response)
Transforms the given response before response processing occurs.
-
-
-
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 callresponse
- response to be transformed- Returns:
- transformed response
- Throws:
java.lang.Exception
- on error
-
-