public class

ConnectionManagementStrategy

extends Object
java.lang.Object
   ↳ com.computime.maximo.ConnectionManagementStrategy
Known Direct Subclasses

Summary

Fields
private String maxauth
private String username
private String webServicePrefix
private String webappurl
Public Constructors
ConnectionManagementStrategy()
Public Methods
void connect(String webAppUrl, String username, String password)
Creates the client to connect to web services exposed using Maximo MIF
String connectionId()
Are we connected
void disconnect()
Disconnect
String getMaxauth()
Getter of MaxAuth
String getUsername()
Username getter
String getWebServicePrefix()
Getter of Web Service URL Prefix
String getWebappurl()
Getter Maximo web service URL
boolean isConnected()
Are we connected
void setMaxauth(String maxauth)
Setter of MaxAuth
void setUsername(String username)
Username setter
void setWebServicePrefix(String webServicePrefix)
Setter of Web Service URL Prefix
void setWebappurl(String webappurl)
Setter of Maximo web service URL
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private String maxauth

private String username

private String webServicePrefix

private String webappurl

Public Constructors

public ConnectionManagementStrategy ()

Public Methods

public void connect (String webAppUrl, String username, String password)

Creates the client to connect to web services exposed using Maximo MIF

Parameters
webAppUrl The webAppUrl set in Maximo (mxe.int.webappurl) - e.g. http://localhost/meaweb
username A username that is going to use the service (used to identify the connection in the pool)
password The password of the user that is going to use the service
Throws
ConnectionException If cannot connect through this exception

public String connectionId ()

Are we connected

Returns
  • connection identifier

public void disconnect ()

Disconnect

public String getMaxauth ()

Getter of MaxAuth

Returns
  • base64 encoding of authentication

public String getUsername ()

Username getter

Returns
  • username

public String getWebServicePrefix ()

Getter of Web Service URL Prefix

Returns
  • Web Service URL Prefix

public String getWebappurl ()

Getter Maximo web service URL

Returns
  • Maximo web service URL

public boolean isConnected ()

Are we connected

Returns
  • True if connector is connected

public void setMaxauth (String maxauth)

Setter of MaxAuth

Parameters
maxauth Base64 encoding of authentication

public void setUsername (String username)

Username setter

Parameters
username Username

public void setWebServicePrefix (String webServicePrefix)

Setter of Web Service URL Prefix

Parameters
webServicePrefix Web Service URL Prefix

public void setWebappurl (String webappurl)

Setter of Maximo web service URL

Parameters
webappurl Maximo web service URL