Class HateoasErrorResponseProcessorReplacement
- java.lang.Object
-
- io.micronaut.http.server.exceptions.response.HateoasErrorResponseProcessorReplacement
-
- All Implemented Interfaces:
ErrorResponseProcessor<io.micronaut.http.hateoas.JsonError>
@Deprecated @Singleton @Secondary @Requires(classes=io.micronaut.context.env.groovy.GroovyPropertySourceLoader.class) @Replaces(HateoasErrorResponseProcessor.class) public class HateoasErrorResponseProcessorReplacement extends java.lang.Object implements ErrorResponseProcessor<io.micronaut.http.hateoas.JsonError>
Deprecated.Replacement is no longer necessary for Micronaut Framework 4.0 sinceHateoasErrorResponseProcessorjackson constructor will be removed.- Since:
- 3.7.3
-
-
Constructor Summary
Constructors Constructor Description HateoasErrorResponseProcessorReplacement(io.micronaut.json.JsonConfiguration jacksonConfiguration)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description io.micronaut.http.MutableHttpResponse<io.micronaut.http.hateoas.JsonError>processResponse(ErrorContext errorContext, io.micronaut.http.MutableHttpResponse<?> response)Deprecated.Modifies the http response representing the error.
-
-
-
Method Detail
-
processResponse
@NonNull public io.micronaut.http.MutableHttpResponse<io.micronaut.http.hateoas.JsonError> processResponse(@NonNull ErrorContext errorContext, @NonNull io.micronaut.http.MutableHttpResponse<?> response)Deprecated.Description copied from interface:ErrorResponseProcessorModifies the http response representing the error. Callers of this method should return the response that was passed in baseResponse parameter, however that isn't required. Error response processors should not set the body or content type if the request method is HEAD.- Specified by:
processResponsein interfaceErrorResponseProcessor<io.micronaut.http.hateoas.JsonError>- Parameters:
errorContext- The error contextresponse- The base response to retrieve information or mutate- Returns:
- An error response
-
-