Interface JerseyClientObjectMapperConfigurer

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface JerseyClientObjectMapperConfigurer
    Hook for customizing the Jackson object mapper used by Jersey clients that are made available from JerseyClientFactorys.

    Beans that implement this interface will be picked up and their configure() methods will be run when a Jersey client is initialized. This allows object mapper features to be easily configured from Spring Boot applications for Jersey clients.

    Configurers only affect Jersey client object mappers, which are actually copied from the 'standard' object mapper in Spring Boot. This allows the standard object mapper to be used for other purposes while Jersey client ones can be customized specifically.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void configure​(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      Customize an object mapper that is used for Jersey clients.
    • Method Detail

      • configure

        void configure​(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Customize an object mapper that is used for Jersey clients.
        Parameters:
        objectMapper - the object mapper to configure.