public class DefaultRemoteConnectionContext extends java.lang.Object implements RemoteConnectionContext
| 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.
|
| 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.
|
public DefaultRemoteConnectionContext(java.lang.String username,
java.lang.String password)
System.getProperties()username - The name of the user.password - The password.public DefaultRemoteConnectionContext(java.lang.String username,
java.lang.String password,
java.util.Properties properties)
username - The name of the user.password - The password.properties - The properties to initialize the factory to build an HTTP connection to Decision Centerpublic java.lang.String getUsername()
public java.lang.String getPassword()
public com.ibm.odm.httpclient.OdmHttpClientFactory getOdmHttpClientFactory()
RemoteConnectionContextgetOdmHttpClientFactory in interface RemoteConnectionContextOdmHttpClientFactorypublic java.util.Map<java.lang.String,java.lang.String> getHeaders()
RemoteConnectionContextgetHeaders in interface RemoteConnectionContext© Copyright IBM Corp. 1987, 2017