esendex.sdk.java.http.HttpConnectorFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.everit.osgi.bundles.com.esendex.javasdk Show documentation
Show all versions of org.everit.osgi.bundles.com.esendex.javasdk Show documentation
The Esendex Java SDK is an easy to use client for our REST API that you can use to integrate SMS and Voice messaging into your Java application.
The newest version!
package esendex.sdk.java.http;
/**
* Factory for the single HttpConnector of choice.
* @author Mike Whittaker
*/
public class HttpConnectorFactory {
private static HttpConnector defaultConnector = new HttpConnectorImpl();
private static HttpConnector connector = defaultConnector;
/**
* Gets the default connector.
* @return the connector
*/
public static HttpConnector getDefaultConnector() {
return defaultConnector;
}
/**
* Gets the connector of choice.
* @return the connector
*/
public static HttpConnector getConnector() {
return connector;
}
/**
* Sets the connector of choice.
* @param con the connector to set
*/
public static void setConnector(HttpConnector con) {
connector = con;
}
}