fmewebservices.FMEBasicConnection
Retrieves the authentication method associated with this connection. |
|
Returns the authorization header associated with this named connection: utf-8 format expected for header. |
|
Gets the database generated id for this connection. |
|
Retrieves the name of this named connection, which is unique for the given authorized users. |
|
Gets the owner (user) of this named connection. |
|
Retrieves the user password associated with this connection. |
|
Gets the owner (user) of this named connection. |
|
Retrieves the type of the named connection. |
|
Retrieves the user name associated with this connection. |
|
Returns whether or not this named connection should verify ssl certificates. |
|
Return the associated Web Service, which contains a general description of the type of Web Service as well as other details. |
|
Sets the authentication method associated with this connection. |
|
|
Sets the database generated id for this connection. |
Sets the name of this named connection, which is not committed to the DB until this named connection is passed back to the manager. |
|
Sets the owner (user) of this named connection. |
|
Sets the user password associated with this connection. |
|
Sets the user name associated with this connection. |
- class FMEBasicConnection
FME Basic Connection class.
init(serviceName)
Create an instance of a basic connection object.
- Parameters:
serviceName (str) – The service name of the connection.
- __init__(*args, **kwargs)
- getAuthenticationMethod()
Retrieves the authentication method associated with this connection. This is expected to be
FME_HTTP_AUTH_METHOD_BASIC
,FME_HTTP_AUTH_METHOD_DIGEST
,FME_HTTP_AUTH_METHOD_NTLM
, orFME_HTTP_AUTH_METHOD_NONE
. If the connection has no associated authentication method, the associated Web Service’s authentication method will be used.- Return type:
- Returns:
The authentication method.
- getAuthorizationHeader()
Returns the authorization header associated with this named connection: utf-8 format expected for header.
- Return type:
- Returns:
The authorization header.
- getId()
Gets the database generated id for this connection.
- Return type:
- Returns:
The database generated id for the named connection.
- getName()
Retrieves the name of this named connection, which is unique for the given authorized users. This is the name given to the connection by the user.
- Return type:
- Returns:
The name of the named connection.
- getOwnerName()
Gets the owner (user) of this named connection.
- Return type:
- Returns:
The owner of the named connection.
- getPassword()
Retrieves the user password associated with this connection.
- Return type:
- Returns:
The user password.
- getServiceName()
Gets the owner (user) of this named connection.
- Return type:
- Returns:
The owner of the named connection.
- getType()
Retrieves the type of the named connection.
Returns one of
FME_NAMEDCONNECTION_DATABASE
,FME_NAMEDCONNECTION_BASIC
,FME_NAMEDCONNECTION_OAUTH
,FME_NAMEDCONNECTION_TOKEN
, orFME_NAMEDCONNECTION_WEBSERVICE
.- Return type:
- Returns:
The type of the named connection.
- getUserName()
Retrieves the user name associated with this connection.
- Return type:
- Returns:
The user name.
- getVerifySslCertificate()
Returns whether or not this named connection should verify ssl certificates.
- Return type:
- Returns:
Whether or not this named connection should verify ssl certificates.
- getWebService()
Return the associated Web Service, which contains a general description of the type of Web Service as well as other details. Returns
None
if the Web Service does no exist.- Return type:
- Returns:
The Web Service.
- setAuthenticationMethod(authMethod)
Sets the authentication method associated with this connection. This is expected to be
FME_HTTP_AUTH_METHOD_BASIC
,FME_HTTP_AUTH_METHOD_DIGEST
,FME_HTTP_AUTH_METHOD_NTLM
, orFME_HTTP_AUTH_METHOD_NONE
.
- setId(name)
Sets the database generated id for this connection.
- setName(name)
Sets the name of this named connection, which is not committed to the DB until this named connection is passed back to the manager.
- setOwnerName(name)
Sets the owner (user) of this named connection.
- setPassword(name)
Sets the user password associated with this connection.