Interface ResponseMarshaler.Builder.PostProcessor
- Enclosing class:
ResponseMarshaler.Builder
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Function invoked once by
ResponseMarshaler.postProcess(MarshaledResponse) for each
selected response, after the interceptor returns and CORS customization, before all HEAD/bodyless
projection and framing. Body changes contribute to the GET representation used for HEAD.
Generating or rebuilding responses inside an interceptor does not invoke this hook early.
The hook need not be idempotent.
Owned predecessor channels remain available to replacement channels or streaming callbacks
until the resulting response is completed or abandoned; see MarshaledResponse.close().- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionpostProcess(@NonNull MarshaledResponse marshaledResponse) Applies an optional "post-process" hook for any final customization or processing before data goes over the wire.
-
Method Details
-
postProcess
Applies an optional "post-process" hook for any final customization or processing before data goes over the wire.- Parameters:
marshaledResponse- the response data generated by the appropriate handler function, but not yet sent over the wire- Returns:
- the response data (possibly customized) to be sent over the wire
-