Class 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 since HateoasErrorResponseProcessor jackson constructor will be removed.
    Since:
    3.7.3
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HateoasErrorResponseProcessorReplacement

        public HateoasErrorResponseProcessorReplacement​(io.micronaut.json.JsonConfiguration jacksonConfiguration)
        Deprecated.
    • 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: ErrorResponseProcessor
        Modifies 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:
        processResponse in interface ErrorResponseProcessor<io.micronaut.http.hateoas.JsonError>
        Parameters:
        errorContext - The error context
        response - The base response to retrieve information or mutate
        Returns:
        An error response