esendex.sdk.java.service.impl.BasicServiceFactoryImpl 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.service.impl;
import esendex.sdk.java.ServiceFactory;
import esendex.sdk.java.service.BasicServiceFactory;
import esendex.sdk.java.service.SessionService;
import esendex.sdk.java.service.auth.BasicAuthenticator;
import esendex.sdk.java.service.auth.UserPassword;
/**
* A basic authenticating Service Factory.
*/
public class BasicServiceFactoryImpl extends ServiceFactory implements BasicServiceFactory {
/**
* Instantiates a new basic service factory impl.
* @param userPassword the user password
*/
public BasicServiceFactoryImpl(UserPassword userPassword) {
super(new BasicAuthenticator(userPassword));
}
/**
* Gets the session service.
* @return the session service {@inheritDoc}
*/
public SessionService getSessionService() {
return new SessionServiceImpl((BasicAuthenticator)authenticator);
}
}