ilog.rules.teamserver.client.remoting

Class DefaultRemoteConnectionContext

  • java.lang.Object
    • ilog.rules.teamserver.client.remoting.DefaultRemoteConnectionContext
    • Constructor Summary

      Constructors 
      Constructor and Description
      DefaultRemoteConnectionContext(java.lang.String username, java.lang.String password)
      Creates a credential given a username and a password.
      DefaultRemoteConnectionContext(java.lang.String username, java.lang.String password, java.util.Properties properties)
      Creates a credential given a username and a password.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.util.Map<java.lang.String,java.lang.String> getHeaders()
      Returns a map of key/value properties to add to the header of HTTP requests
      com.ibm.odm.httpclient.OdmHttpClientFactory getOdmHttpClientFactory()
      Returns a factory to build and customize a connection to Decision Center
      java.lang.String getPassword()
      Returns the password of the user.
      java.lang.String getUsername()
      Returns the name of the user.
      • Methods inherited from class java.lang.Object

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

      • DefaultRemoteConnectionContext

        public DefaultRemoteConnectionContext(java.lang.String username,
                                      java.lang.String password)
        Creates a credential given a username and a password. The properties to initialize the factory to build an HTTP connection to Decision Center are retrieve with a call to System.getProperties()
        Parameters:
        username - The name of the user.
        password - The password.
      • DefaultRemoteConnectionContext

        public DefaultRemoteConnectionContext(java.lang.String username,
                                      java.lang.String password,
                                      java.util.Properties properties)
        Creates a credential given a username and a password.
        Parameters:
        username - The name of the user.
        password - The password.
        properties - The properties to initialize the factory to build an HTTP connection to Decision Center
    • Method Detail

      • getUsername

        public java.lang.String getUsername()
        Returns the name of the user.
        Returns:
        The name of the user.
      • getPassword

        public java.lang.String getPassword()
        Returns the password of the user.
        Returns:
        The password of the user.
      • getOdmHttpClientFactory

        public com.ibm.odm.httpclient.OdmHttpClientFactory getOdmHttpClientFactory()
        Description copied from interface: RemoteConnectionContext
        Returns a factory to build and customize a connection to Decision Center
        Specified by:
        getOdmHttpClientFactory in interface RemoteConnectionContext
        Returns:
        A factory to build an HTTP connection
        See Also:
        OdmHttpClientFactory
      • getHeaders

        public java.util.Map<java.lang.String,java.lang.String> getHeaders()
        Description copied from interface: RemoteConnectionContext
        Returns a map of key/value properties to add to the header of HTTP requests
        Specified by:
        getHeaders in interface RemoteConnectionContext
        Returns:
        A map of key/value properties

© Copyright IBM Corp. 1987, 2017