Class JaxRsAdapterRestEasyBuilder
- java.lang.Object
-
- de.xima.fc.api.rest.pub.client.form.JaxRsAdapterRestEasyBuilder
-
@Generated("de.xima.openapi.codegen.java_jaxrs.XimaJavaJaxrsGenerator") public class JaxRsAdapterRestEasyBuilder extends ObjectSimple builder for configuring a JaxRS RestEASY adapter.
-
-
Field Summary
Fields Modifier and Type Field Description protected Function<? super org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder,? extends javax.ws.rs.client.Client>buildClientprotected org.jboss.resteasy.client.jaxrs.ClientHttpEngineclientHttpEngineprotected Consumer<? super org.jboss.resteasy.client.jaxrs.internal.ClientConfiguration>configClientprotected booleanloggingprotected Function<DateFormat,javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>>objectMapperResolverFactoryprotected Supplier<org.jboss.resteasy.spi.ResteasyProviderFactory>providerFactorySupplierprotected StringtempFolderPath
-
Constructor Summary
Constructors Constructor Description JaxRsAdapterRestEasyBuilder()A new builder for configuring a JaxRS RESTEasy adapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JaxRsAdapterRestEasybuild()JaxRsAdapterRestEasyBuilderbuildClient(Function<? super org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder,? extends javax.ws.rs.client.Client> buildClient)Optional function that takes aResteasyClientBuilderand returns the built client.JaxRsAdapterRestEasyBuilderclientHttpEngine(org.jboss.resteasy.client.jaxrs.ClientHttpEngine clientHttpEngine)Optional HTTP client engine to use with the client.JaxRsAdapterRestEasyBuilderconfigureClient(Consumer<? super org.jboss.resteasy.client.jaxrs.internal.ClientConfiguration> configClient)Optional consumer that is passed theClientConfigurationwhen a new client is created.JaxRsAdapterRestEasyBuilderlogging(boolean logging)When enabled, adds a default logger to the JaxRS client.JaxRsAdapterRestEasyBuilderobjectMapperResolverFactory(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.JaxRsAdapterRestEasyBuilderproviderFactorySupplier(Supplier<org.jboss.resteasy.spi.ResteasyProviderFactory> providerFactorySupplier)Sets the supplier for creating a new ResteasyProviderFactory.JaxRsAdapterRestEasyBuildertempFolderPath(String tempFolderPath)Sets the path for storing uploaded files.
-
-
-
Field Detail
-
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
-
-
Method Detail
-
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 aResteasyClientBuilderand 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 theClientConfigurationwhen 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.
-
-