Class NtlmHttpConnection

java.lang.Object
com.aquima.web.communication.NtlmHttpConnection
All Implemented Interfaces:
com.aquima.interactions.foundation.connectivity.IConnection, com.aquima.interactions.foundation.connectivity.IHttpConnection

public class NtlmHttpConnection extends Object
Http connection implementation that uses apache commons classes to provide a custom NTLM connection.
Since:
9.0
Author:
Jon van Leuven
  • Field Details

    • name

      protected final String name
    • url

      protected String url
    • timeout

      protected int timeout
    • domain

      protected String domain
    • username

      protected String username
    • password

      protected String password
  • Constructor Details

  • Method Details

    • fill

      public com.aquima.interactions.foundation.connectivity.IHttpConnectionFiller fill()
    • createHttpClient

      protected org.apache.http.client.HttpClient createHttpClient()
    • setTimeout

      public void setTimeout(int timeout)
      Sets the read timeout to a specified timeout, in milliseconds. A non-zero value specifies the timeout when reading from Input stream when a connection is established to a resource. If the timeout expires before there is data available for read, a java.net.SocketTimeoutException is raised. A timeout of zero is interpreted as an infinite timeout. Some non-standard implementation of this method ignores the specified timeout.
    • setUserName

      public void setUserName(String username)
      A user identifier used for authentication purposes. When no username is set, this implementation will not attempt to authenticate.
    • setPassword

      public void setPassword(String password)
      A secret to prove the identity of the supplied user. Not used when no username is provided.
    • setDomain

      public void setDomain(String domain)
      An authentication domain (not used when no username is provided).
    • getName

      public String getName()
      Specified by:
      getName in interface com.aquima.interactions.foundation.connectivity.IConnection
    • getType

      public com.aquima.interactions.foundation.connectivity.ConnectionType getType()
      Specified by:
      getType in interface com.aquima.interactions.foundation.connectivity.IConnection
    • getUrl

      public String getUrl()
      Specified by:
      getUrl in interface com.aquima.interactions.foundation.connectivity.IHttpConnection
    • invoke

      public void invoke(com.aquima.interactions.foundation.connectivity.IHttpRequest request, com.aquima.interactions.foundation.connectivity.IHttpResponseHandler handler) throws IOException
      Specified by:
      invoke in interface com.aquima.interactions.foundation.connectivity.IHttpConnection
      Throws:
      IOException
    • fillUrl

      protected void fillUrl(String url)
    • fillTimeout

      protected void fillTimeout(int timeout)
    • fillDomain

      protected void fillDomain(String domain)
    • fillUsername

      protected void fillUsername(String username)
    • fillPassword

      protected void fillPassword(String password)