Interface IHttpConnection

All Superinterfaces:
IConnection
All Known Implementing Classes:
HttpConnection

public interface IHttpConnection extends IConnection
This interface describes a connection to send data over http.
Since:
9.0
Author:
Jon van Leuven
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns an object which can fill in the missing configurations of this connection.
    This method returns the url used for connecting to the endpoint.
    void
    This method should be called to transfer data over http and handle its response.

    Methods inherited from interface com.aquima.interactions.foundation.connectivity.IConnection

    getName, getType
  • Method Details

    • getUrl

      String getUrl()
      This method returns the url used for connecting to the endpoint.
      Returns:
      The url (never null).
    • fill

      Returns an object which can fill in the missing configurations of this connection.
      Returns:
      a filler for this connection's settings.
    • invoke

      void invoke(IHttpRequest request, IHttpResponseHandler handler) throws IOException
      This method should be called to transfer data over http and handle its response.
      Parameters:
      request - The object that is responsible for the http request data.
      handler - The object that is used to handle the http response.
      Throws:
      IOException - Is thrown when IO error occurs.