@Singleton @Secondary public class HateoasErrorResponseProcessor extends Object implements ErrorResponseProcessor<JsonError>
| Constructor and Description |
|---|
HateoasErrorResponseProcessor(JacksonConfiguration jacksonConfiguration)
Constructor for binary compatibility.
|
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)
public HateoasErrorResponseProcessor(JacksonConfiguration jacksonConfiguration)
HateoasErrorResponseProcessor(JsonConfiguration)jacksonConfiguration - the configuration to use for processing.@NonNull public MutableHttpResponse<JsonError> processResponse(@NonNull ErrorContext errorContext, @NonNull MutableHttpResponse<?> response)
ErrorResponseProcessorprocessResponse in interface ErrorResponseProcessor<JsonError>errorContext - The error contextresponse - The base response to retrieve information or
mutate