@Singleton @Secondary public class HateoasErrorResponseProcessor extends Object implements ErrorResponseProcessor<JsonError>
Constructor and Description |
---|
HateoasErrorResponseProcessor(JacksonConfiguration jacksonConfiguration)
Deprecated.
Use
HateoasErrorResponseProcessor(JsonConfiguration) instead. |
HateoasErrorResponseProcessor(JsonConfiguration jacksonConfiguration) |
Modifier and Type | Method and Description |
---|---|
MutableHttpResponse<JsonError> |
processResponse(ErrorContext errorContext,
MutableHttpResponse<?> response)
Modifies the http response representing the error.
|
public HateoasErrorResponseProcessor(JsonConfiguration jacksonConfiguration)
@Deprecated public HateoasErrorResponseProcessor(JacksonConfiguration jacksonConfiguration)
HateoasErrorResponseProcessor(JsonConfiguration)
instead.HateoasErrorResponseProcessor(JsonConfiguration)
jacksonConfiguration
- the configuration to use for processing.@NonNull public MutableHttpResponse<JsonError> processResponse(@NonNull ErrorContext errorContext, @NonNull MutableHttpResponse<?> response)
ErrorResponseProcessor
processResponse
in interface ErrorResponseProcessor<JsonError>
errorContext
- The error contextresponse
- The base response to retrieve information or
mutate