Sun Java System Mobile Enterprise Platform 1.0 Developer's Guide for Enterprise Connectors

The SessionContext Class

Table 3–6 lists the constructor and methods belonging to the SessionContext class. This class stores contextual information about the session in which a BusinessObjectProvider is instantiated. This information includes credentials for logging into an EIS/EAI system or a database as well as well as properties associated with an Enterprise Connector..

Table 3–6 Class com.sun.mep.connector.api.SessionContext

Method 

Description 

public SessionContext(java.lang.String username, java.lang.String password)

Two-argument constructor that accepts username and password credentials. 

public java.util.Map<java.lang.String, java.lang.String> getParameters()

Returns all properties specified in the Admin Console's definition for this Enterprise Connector. 

public java.lang.String getPassword()

Returns the password used to log into the Enterprise Connector. 

public java.lang.String getUsername()

Returns the user name used to log into the Enterprise Connector. 

public void setParameter(java.lang.String name, java.lang.String value)

Stores a name and value pair in the internal map.