HateoasErrorResponseProcessor
jackson constructor will be removed.@Deprecated @Singleton @Secondary @Requires(classes=io.micronaut.context.env.groovy.GroovyPropertySourceLoader.class) @Replaces(value=HateoasErrorResponseProcessor.class) public class HateoasErrorResponseProcessorReplacement extends Object implements ErrorResponseProcessor<JsonError>
Constructor and Description |
---|
HateoasErrorResponseProcessorReplacement(JsonConfiguration jacksonConfiguration)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
MutableHttpResponse<JsonError> |
processResponse(ErrorContext errorContext,
MutableHttpResponse<?> response)
Deprecated.
Modifies the http response representing the error.
|
public HateoasErrorResponseProcessorReplacement(JsonConfiguration jacksonConfiguration)
@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