com.ibm.commerce.foundation.dataload.http

Class CustomAuthHTTPConnector

  • java.lang.Object
    • com.ibm.commerce.foundation.dataload.http.AbstractHTTPConnector
      • com.ibm.commerce.foundation.dataload.http.CustomAuthHTTPConnector
  • All Implemented Interfaces:
    com.ibm.commerce.foundation.dataload.http.IHTTPConnector


    public abstract class CustomAuthHTTPConnector
    extends com.ibm.commerce.foundation.dataload.http.AbstractHTTPConnector
    This class extends the AbstractHTTPConnector and hence implements the IHTTPConnector interface. All classes that need to implement custom authentication mechanisms must extend from this class. Also, ensure that the class name of the extended class is supplied in the web feed configuration file. For example, com.ibm.commerce.foundation.dataload.http.test.MockCustomAuthenticator ....
    • Field Summary

      • Fields inherited from interface com.ibm.commerce.foundation.dataload.http.IHTTPConnector

        DEFAULT_PORT, DEFAULT_SECURE_PORT, HTTP_HEADER_DATE, HTTP_HEADER_ETAG, HTTP_IF_MODIFIED_SINCE, HTTP_IF_NONE_MATCH, MAX_PORT
    • Constructor Summary

      Constructors 
      Constructor and Description
      CustomAuthHTTPConnector()
      Default Constructor without any arguments.
      CustomAuthHTTPConnector(java.util.Map<java.lang.String,java.lang.String> propMap)
      Constructor which takes in the properties map as an argument.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      abstract org.apache.http.client.HttpClient createHttpClient()
      This abstract method must be implemented by classes extending this class.
      java.util.Map<java.lang.String,java.lang.String> getConfigProperties()
      Getter for the name-value properties specified in the web feed configuration file.
      void setConfigProperties(java.util.Map<java.lang.String,java.lang.String> propMap)
      Setter for the name-value properties as supplied in the web feed configuration file.
      • Methods inherited from class com.ibm.commerce.foundation.dataload.http.AbstractHTTPConnector

        getHttpClient, getUrl, isResourceUpdated, resourceConsumed, setHttpClient, setUrl
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomAuthHTTPConnector

        public CustomAuthHTTPConnector()
        Default Constructor without any arguments.
      • CustomAuthHTTPConnector

        public CustomAuthHTTPConnector(java.util.Map<java.lang.String,java.lang.String> propMap)
        Constructor which takes in the properties map as an argument.
        Parameters:
        propMap - Name-value pairs of properties
    • Method Detail

      • getConfigProperties

        public java.util.Map<java.lang.String,java.lang.String> getConfigProperties()
        Getter for the name-value properties specified in the web feed configuration file.
        Returns:
        Map
      • setConfigProperties

        public void setConfigProperties(java.util.Map<java.lang.String,java.lang.String> propMap)
        Setter for the name-value properties as supplied in the web feed configuration file.
        Parameters:
        propMap - - Name-value pairs of properties
      • createHttpClient

        public abstract org.apache.http.client.HttpClient createHttpClient()
                                                                    throws com.ibm.commerce.foundation.dataload.exception.HTTPConnectionException

        This abstract method must be implemented by classes extending this class. The method must return create an instance of org.apache.http.client.HttpClient using the various properties supplied during the creation of the instance.

        Specified by:
        createHttpClient in class com.ibm.commerce.foundation.dataload.http.AbstractHTTPConnector
        Returns:
        HttpClient
        Throws:
        com.ibm.commerce.foundation.dataload.exception.HTTPConnectionException