Email Answering System
Version 1.0

com.ninecode.email.connector
Class EmailManagedConnectionMetaData

java.lang.Object
  |
  +--com.ninecode.email.connector.EmailManagedConnectionMetaData
All Implemented Interfaces:
ManagedConnectionMetaData

public class EmailManagedConnectionMetaData
extends Object
implements ManagedConnectionMetaData

Provides meta information about a managed connection.

Author:
Derrick Oswald

Field Summary
protected  EmailManagedConnection mConnection
          The connection corresponding to this meta data.
protected  String[][] mVendorsVersions
          The vendors of JavaMail providers and the versions corresponding to the vendors.
 
Constructor Summary
EmailManagedConnectionMetaData(EmailManagedConnection connection)
          Creates a new instance of EmailManagedConnectionMetaData.
 
Method Summary
 String getEISProductName()
          Returns product name of the underlying EIS instance.
 String getEISProductVersion()
          Returns product version of the underlying EIS instance.
 int getMaxConnections()
          Returns maximum limit on number of active concurrent connections that an EIS instance can support across client processes.
 String getUserName()
          Returns name of the user associated with the ManagedConnection instance.
protected  String[][] getVendorsVersions()
          Get an array of distinct vendor and version pairs from the providers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mConnection

protected EmailManagedConnection mConnection
The connection corresponding to this meta data.


mVendorsVersions

protected String[][] mVendorsVersions
The vendors of JavaMail providers and the versions corresponding to the vendors. This is an [n][2] array.

Constructor Detail

EmailManagedConnectionMetaData

public EmailManagedConnectionMetaData(EmailManagedConnection connection)
Creates a new instance of EmailManagedConnectionMetaData.

Method Detail

getVendorsVersions

protected String[][] getVendorsVersions()
Get an array of distinct vendor and version pairs from the providers.

Returns:
The array of vendor and version pairs.

getEISProductName

public String getEISProductName()
                         throws ResourceException
Returns product name of the underlying EIS instance. The name of the EIS connected through the Connection that produced this metadata, is interrogated for product name.

Specified by:
getEISProductName in interface ManagedConnectionMetaData
Returns:
Product name of the EIS instance.
Throws:
ResourceException - Failed to get the information for the EIS instance.

getEISProductVersion

public String getEISProductVersion()
                            throws ResourceException
Returns product version of the underlying EIS instance.

Specified by:
getEISProductVersion in interface ManagedConnectionMetaData
Returns:
Product version of an EIS instance.
Throws:
ResourceException - Failed to get the information for the EIS instance.

getMaxConnections

public int getMaxConnections()
                      throws ResourceException
Returns maximum limit on number of active concurrent connections that an EIS instance can support across client processes. If an EIS instance does not know about (or does not have) any such limit, it returns a 0.

Specified by:
getMaxConnections in interface ManagedConnectionMetaData
Returns:
Maximum limit for number of active concurrent connections.
ResourceException

getUserName

public String getUserName()
                   throws ResourceException
Returns name of the user associated with the ManagedConnection instance. The name corresponds to the resource principal under whose whose security context, a connection to the EIS instance has been established.

Specified by:
getUserName in interface ManagedConnectionMetaData
Returns:
Name of the user.
ResourceException

Email Answering System
Version 1.0

Copyright © 2003 Derrick Oswald. All rights reserved.