Class SessionServiceImpl

java.lang.Object
esendex.sdk.java.service.impl.AbstractService
esendex.sdk.java.service.impl.SessionServiceImpl
All Implemented Interfaces:
SessionService

public class SessionServiceImpl extends AbstractService implements SessionService
A concrete SessionService.
  • Constructor Details

    • SessionServiceImpl

      public SessionServiceImpl(BasicAuthenticator authenticator)
      Instantiates a new session service.
      Parameters:
      authenticator - the authenticator
  • Method Details

    • getSession

      public SessionResponse getSession() throws EsendexException
      Obtains a session for authentication of subsequent resources by session authentication.
      Specified by:
      getSession in interface SessionService
      Returns:
      a session object that wraps the session id
      Throws:
      EsendexException - to indicate a problem during the underlying connection or there was a none okay response.