Class JaxRsAdapterRestEasyBuilder

java.lang.Object
de.xima.fc.api.rest.pub.client.user_portal.JaxRsAdapterRestEasyBuilder

@Generated("de.xima.openapi.codegen.java_jaxrs.XimaJavaJaxrsGenerator") public class JaxRsAdapterRestEasyBuilder extends Object
Simple builder for configuring a JaxRS RestEASY adapter.
  • Field Details

    • objectMapperResolverFactory

      protected Function<DateFormat, javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>> objectMapperResolverFactory
    • tempFolderPath

      protected String tempFolderPath
    • logging

      protected boolean logging
    • buildClient

      protected Function<? super org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder, ? extends javax.ws.rs.client.Client> buildClient
    • configClient

      protected Consumer<? super org.jboss.resteasy.client.jaxrs.internal.ClientConfiguration> configClient
    • clientHttpEngine

      protected org.jboss.resteasy.client.jaxrs.ClientHttpEngine clientHttpEngine
    • providerFactorySupplier

      protected Supplier<org.jboss.resteasy.spi.ResteasyProviderFactory> providerFactorySupplier
  • Constructor Details

    • JaxRsAdapterRestEasyBuilder

      public JaxRsAdapterRestEasyBuilder()
      A new builder for configuring a JaxRS RESTEasy adapter.
  • Method Details

    • build

      public JaxRsAdapterRestEasy build()
      Returns:
      A new JaxRS RestEASY adapter with the current configuration.
    • objectMapperResolverFactory

      public JaxRsAdapterRestEasyBuilder objectMapperResolverFactory(Function<DateFormat, javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>> objectMapperResolverFactory)
      Factory for the context resolver for the object mapper to use for serialization and deserialization. When not set, uses the default object mapper resolver.
      Parameters:
      objectMapperResolverFactory - The factory for the context resolver for resolving the object mapper.
      Returns:
      This builder instance for chaining method calls.
    • tempFolderPath

      public JaxRsAdapterRestEasyBuilder tempFolderPath(String tempFolderPath)
      Sets the path for storing uploaded files. When not set, the default temp dir is used.
      Parameters:
      tempFolderPath - The path for storing uploaded files.
      Returns:
      This builder instance for chaining method calls.
    • providerFactorySupplier

      public JaxRsAdapterRestEasyBuilder providerFactorySupplier(Supplier<org.jboss.resteasy.spi.ResteasyProviderFactory> providerFactorySupplier)
      Sets the supplier for creating a new ResteasyProviderFactory. When not set, ResteasyProviderFactory.getInstance() is used.
      Parameters:
      providerFactorySupplier - The factory for obtaining a provider factory.
      Returns:
      This builder instance for chaining method calls.
    • logging

      public JaxRsAdapterRestEasyBuilder logging(boolean logging)
      When enabled, adds a default logger to the JaxRS client.
      Parameters:
      logging - Whether to enable the default logger.
      Returns:
      This builder instance for chaining method calls.
    • buildClient

      public JaxRsAdapterRestEasyBuilder buildClient(Function<? super org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder, ? extends javax.ws.rs.client.Client> buildClient)
      Optional function that takes a ResteasyClientBuilder and returns the built client. Can be used to apply additional configuration.
      Parameters:
      buildClient - Function that builds the client.
      Returns:
      This builder instance for chaining method calls.
    • configureClient

      public JaxRsAdapterRestEasyBuilder configureClient(Consumer<? super org.jboss.resteasy.client.jaxrs.internal.ClientConfiguration> configClient)
      Optional consumer that is passed the ClientConfiguration when a new client is created. Can be used to apply additional configuration.
      Parameters:
      configClient - Consumer for configuring the client.
      Returns:
      This builder instance for chaining method calls.
    • clientHttpEngine

      public JaxRsAdapterRestEasyBuilder clientHttpEngine(org.jboss.resteasy.client.jaxrs.ClientHttpEngine clientHttpEngine)
      Optional HTTP client engine to use with the client. When not set, the default HTTP engine is used.
      Parameters:
      clientHttpEngine - HTTP engine to use with the client.
      Returns:
      This builder instance for chaining method calls.