Class JaxRsAdapterRestEasyBuilder
java.lang.Object
de.xima.fc.api.rest.pub.client.security.JaxRsAdapterRestEasyBuilder
@Generated("de.xima.openapi.codegen.java_jaxrs.XimaJavaJaxrsGenerator")
public class JaxRsAdapterRestEasyBuilder
extends Object
Simple builder for configuring a JaxRS RestEASY adapter.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Function<? super org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder, ? extends javax.ws.rs.client.Client> protected org.jboss.resteasy.client.jaxrs.ClientHttpEngineprotected Consumer<? super org.jboss.resteasy.client.jaxrs.internal.ClientConfiguration> protected booleanprotected Function<DateFormat, javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>> protected Supplier<org.jboss.resteasy.spi.ResteasyProviderFactory> protected String -
Constructor Summary
ConstructorsConstructorDescriptionA new builder for configuring a JaxRS RESTEasy adapter. -
Method Summary
Modifier and TypeMethodDescriptionbuild()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.clientHttpEngine(org.jboss.resteasy.client.jaxrs.ClientHttpEngine clientHttpEngine) Optional HTTP client engine to use with the client.configureClient(Consumer<? super org.jboss.resteasy.client.jaxrs.internal.ClientConfiguration> configClient) Optional consumer that is passed theClientConfigurationwhen a new client is created.logging(boolean logging) When enabled, adds a default logger to the JaxRS client.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.providerFactorySupplier(Supplier<org.jboss.resteasy.spi.ResteasyProviderFactory> providerFactorySupplier) Sets the supplier for creating a new ResteasyProviderFactory.tempFolderPath(String tempFolderPath) Sets the path for storing uploaded files.
-
Field Details
-
objectMapperResolverFactory
protected Function<DateFormat, javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>> objectMapperResolverFactory -
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
-
-
Constructor Details
-
JaxRsAdapterRestEasyBuilder
public JaxRsAdapterRestEasyBuilder()A new builder for configuring a JaxRS RESTEasy adapter.
-
-
Method Details
-
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
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
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.
-