Class JerseyHttpClientModule

java.lang.Object
com.google.inject.PrivateModule
dev.getelements.elements.rt.jersey.guice.JerseyHttpClientModule
All Implemented Interfaces:
com.google.inject.Module

public class JerseyHttpClientModule extends com.google.inject.PrivateModule
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    withDefaultObjectMapperProvider(jakarta.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper> objectMapperProvider)
    Specifies a jakarta.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper> which will be used to provide the underlying HTTP client's ObjectMapper.
    withNamedObjectMapperProvider(String name, jakarta.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper> objectMapperProvider)
    Specifies a jakarta.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper> which will be bound with the supplied name using the Named annotation.
    Adds a type to be passed to Configurable.register(Object).

    Methods inherited from class com.google.inject.PrivateModule

    addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, expose, expose, expose, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • JerseyHttpClientModule

      public JerseyHttpClientModule()
  • Method Details

    • configure

      protected void configure()
      Specified by:
      configure in class com.google.inject.PrivateModule
    • withRegisteredComponent

      public <T> JerseyHttpClientModule withRegisteredComponent(Class<T> cls)
      Adds a type to be passed to Configurable.register(Object).
      Type Parameters:
      T - the type to register
      Returns:
      this instance
    • withDefaultObjectMapperProvider

      public JerseyHttpClientModule withDefaultObjectMapperProvider(jakarta.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper> objectMapperProvider)
      Specifies a jakarta.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper> which will be used to provide the underlying HTTP client's ObjectMapper.
      Parameters:
      objectMapperProvider - the jakarta.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper>
      Returns:
      this instance
    • withNamedObjectMapperProvider

      public JerseyHttpClientModule withNamedObjectMapperProvider(String name, jakarta.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper> objectMapperProvider)
      Specifies a jakarta.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper> which will be bound with the supplied name using the Named annotation.
      Parameters:
      name - the name
      objectMapperProvider - the jakarta.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper>
      Returns:
      this instance