Java Code Examples for org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder#providerFactory()
The following examples show how to use
org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder#providerFactory() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NexusITSupport.java From nexus-public with Eclipse Public License 1.0 | 5 votes |
/** * The jax-rs clients require ObjectMapper customizations to work with ComponentXO. */ private Customizer getObjectMapperCustomizer(final TestSuiteObjectMapperResolver testSuiteObjectMapperResolver) { return builder -> { ResteasyProviderFactory providerFactory = new LocalResteasyProviderFactory( ResteasyProviderFactory.newInstance()); providerFactory.registerProviderInstance(testSuiteObjectMapperResolver, null, 1000, false); ResteasyClientBuilder resteasyClientBuilder = (ResteasyClientBuilder) builder; resteasyClientBuilder.providerFactory(providerFactory); RegisterBuiltin.register(providerFactory); }; }
Example 2
Source File: NexusITSupport.java From nexus-public with Eclipse Public License 1.0 | 5 votes |
/** * The jax-rs clients require ObjectMapper customizations to work with ComponentXO. */ private Customizer getObjectMapperCustomizer(final TestSuiteObjectMapperResolver testSuiteObjectMapperResolver) { return builder -> { ResteasyProviderFactory providerFactory = new LocalResteasyProviderFactory( ResteasyProviderFactory.newInstance()); providerFactory.registerProviderInstance(testSuiteObjectMapperResolver, null, 1000, false); ResteasyClientBuilder resteasyClientBuilder = (ResteasyClientBuilder) builder; resteasyClientBuilder.providerFactory(providerFactory); RegisterBuiltin.register(providerFactory); }; }
Example 3
Source File: ClientBuilderReplacement.java From quarkus with Apache License 2.0 | 4 votes |
@Substitute public static ClientBuilder newBuilder() { ResteasyClientBuilder client = new ResteasyClientBuilderImpl(); client.providerFactory(new LocalResteasyProviderFactory(RestClientRecorder.providerFactory)); return client; }