com.infoengine.email
Class EMailAdapterImpl

java.lang.Object
  extended bycom.infoengine.email.EMailAdapterImpl
All Implemented Interfaces:
IeMultithreadedProcessor, IeProcessor

public class EMailAdapterImpl
extends Object
implements IeMultithreadedProcessor


Field Summary
private static Hashtable busyStores
           
private  String domain
           
private static Hashtable freeStores
           
private static Hashtable freeStoresLastUse
           
private  com.infoengine.log.LogWriter logWriter
           
private  int maxStoreAge
           
private  int maxStoreCacheSize
           
private  String serviceName
           
private static Hashtable storeSessions
           
 
Constructor Summary
EMailAdapterImpl()
           
 
Method Summary
private  void closeStore(javax.mail.Store store, boolean force)
           
private  javax.mail.Store getFreeStore(Hashtable ctx)
           
static javax.mail.Session getSession(javax.mail.Store store)
           
private  javax.mail.Store getStore(Webject webject, Hashtable ctx)
           
 void initialize(String serviceName, com.infoengine.log.LogWriter log)
          Initialize the adapter implementation class.
 IeRequest processRequest(Request request)
          Process a request received from the Info*Engine server.
private  String toClassName(String oldstring)
          Converts the request to the classname syntax.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

domain

private String domain

logWriter

private com.infoengine.log.LogWriter logWriter

maxStoreAge

private int maxStoreAge

maxStoreCacheSize

private int maxStoreCacheSize

serviceName

private String serviceName

busyStores

private static Hashtable busyStores

freeStores

private static Hashtable freeStores

freeStoresLastUse

private static Hashtable freeStoresLastUse

storeSessions

private static Hashtable storeSessions
Constructor Detail

EMailAdapterImpl

public EMailAdapterImpl()
Method Detail

initialize

public void initialize(String serviceName,
                       com.infoengine.log.LogWriter log)
Description copied from interface: IeProcessor
Initialize the adapter implementation class.

Specified by:
initialize in interface IeProcessor
Parameters:
serviceName - Logical name defined for this implementation
log - file to write informational and debug messages.

processRequest

public IeRequest processRequest(Request request)
                         throws IEException
Description copied from interface: IeProcessor
Process a request received from the Info*Engine server. This method is called when a adapter request if received on the Info*Engine socket.

Specified by:
processRequest in interface IeProcessor
Parameters:
request - The request to perform
Throws:
IEException

getSession

public static javax.mail.Session getSession(javax.mail.Store store)

getStore

private javax.mail.Store getStore(Webject webject,
                                  Hashtable ctx)
                           throws IEException
Throws:
IEException

getFreeStore

private javax.mail.Store getFreeStore(Hashtable ctx)

closeStore

private void closeStore(javax.mail.Store store,
                        boolean force)

toClassName

private String toClassName(String oldstring)
Converts the request to the classname syntax.

Parameters:
oldstring - The request in original form
Returns:
The request in the converted form