
org.odata4j.jersey.consumer.DefaultJerseyClientFactory Maven / Gradle / Ivy
package org.odata4j.jersey.consumer;
import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.config.ClientConfig;
/**
* The default factory implementation for Jersey clients.
*
* Use {@link #INSTANCE} to obtain a reference to the singleton instance of this factory.
*/
public class DefaultJerseyClientFactory implements JerseyClientFactory {
public static final DefaultJerseyClientFactory INSTANCE = new DefaultJerseyClientFactory();
private DefaultJerseyClientFactory() {}
/**
* Creates a new default {@link Client} by calling: Client.create(clientConfig)
*/
@Override
public Client createClient(ClientConfig clientConfig) {
Client client = Client.create(clientConfig);
return client;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy