Class JDOA2Builder


  • public class JDOA2Builder
    extends Object
    Represents a JDOA2 builder.
    • Constructor Detail

      • JDOA2Builder

        public JDOA2Builder()
    • Method Detail

      • applicationInfo

        public JDOA2Builder applicationInfo​(@Nonnull
                                            ApplicationInfo applicationInfo)
        Sets a new application info.
        Parameters:
        applicationInfo - application info
        Returns:
        this instance for chaining
      • jsonMapper

        public com.fasterxml.jackson.databind.ObjectMapper jsonMapper()
        Returns the ObjectMapper set.
        Returns:
        json mapper
      • jsonMapper

        public JDOA2Builder jsonMapper​(@Nonnull
                                       com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
        Sets a new json mapper.
        Parameters:
        jsonMapper - json mapper
        Returns:
        this instance for chaining
      • httpClient

        public okhttp3.OkHttpClient httpClient()
        Returns the OkHttpClient set.
        Returns:
        http client
      • httpClient

        public JDOA2Builder httpClient​(@Nonnull
                                       okhttp3.OkHttpClient httpClient)
        Sets a new http client
        Parameters:
        httpClient - http client
        Returns:
        this instance for chaining
      • build

        public JDOA2 build()
        Builds this builder's parameters into a JDOA2 instance.
        Returns:
        jdoa2 instance