com.ibm.streamsx.rest.internal

Class AbstractConnection

  • java.lang.Object
    • com.ibm.streamsx.rest.internal.AbstractConnection
  • Direct Known Subclasses:
    ICP4DServiceImpl


    public abstract class AbstractConnection
    extends java.lang.Object
    This class represents an abstract connection.
    • Constructor Summary

      Constructors 
      Constructor and Description
      AbstractConnection(boolean allowInsecure)
      Connection to a REST API
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean allowInsecureHosts(boolean allowInsecure) 
      abstract java.lang.String getAuthorization()
      Returns the Authorization header without the Authorization: keyword.
      org.apache.http.client.fluent.Executor getExecutor()
      access to the Executor.
      java.lang.String getResponseString(java.lang.String url)
      Gets a response to an HTTP call
      • Methods inherited from class java.lang.Object

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

      • AbstractConnection

        public AbstractConnection(boolean allowInsecure)
        Connection to a REST API
        Parameters:
        allowInsecure - Flag to allow insecure TLS/SSL connections. This is not recommended in a production environment
    • Method Detail

      • getAuthorization

        public abstract java.lang.String getAuthorization()
        Returns the Authorization header without the Authorization: keyword. Subclasses must implement this method.
        Returns:
        the the Authorization header value.
      • allowInsecureHosts

        public boolean allowInsecureHosts(boolean allowInsecure)
      • getExecutor

        public org.apache.http.client.fluent.Executor getExecutor()
        access to the Executor.
      • getResponseString

        public java.lang.String getResponseString(java.lang.String url)
                                           throws java.io.IOException
        Gets a response to an HTTP call
        Parameters:
        inputString - REST call to make
        Returns:
        response from the inputString
        Throws:
        java.io.IOException
streamsx.topology 2.1 @ IBMStreams GitHub