|
Sun Adapter for e-Mail API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.stc.connector.emailadapter.appconn.EmailApplicationConnection
public class EmailApplicationConnection
This class implements the ApplicationConnection interface for the Email application connection.
| Constructor Summary | |
|---|---|
EmailApplicationConnection(com.stc.connector.framework.eway.ManagedConnectionCallback mc,
com.stc.connector.framework.util.ConfigurationHelper aConfiguration)
Creates a new instance of EmailApplicationConnection. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the application connection handle. |
java.lang.Object |
createApplication(java.lang.String appName)
Creates an Application from the Application Connection. |
com.stc.connector.appconn.common.OutputHandler |
createOutputHandler()
Creates an OutputHandler for "sending" data to the EIS. |
boolean |
hasMessage(EmailConfiguration configuration)
Determines whether there are message(s) to be received. |
void |
invalidateConnection()
This is called by the ManagedConnection to invalidate the connection handle. |
protected boolean |
isClosed()
Check whether the Connection instance was already closed (if close was previously called). |
EmailConfiguration |
newConfiguration()
Return a new EmailConfiguration instance populated with the default configuration values. |
void |
reassociateConnection(com.stc.connector.framework.eway.ManagedConnectionCallback mc)
This is called by the ManagedConnection to associate the connection handle to the ManagedConnection. |
boolean |
receiveMessage(EmailConfiguration configuration,
EmailMessage emailMsg)
Receive the next available message. |
boolean |
sendMessage(EmailConfiguration configuration,
EmailMessage emailMsg)
Send the message specified in the end user properties. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmailApplicationConnection(com.stc.connector.framework.eway.ManagedConnectionCallback mc,
com.stc.connector.framework.util.ConfigurationHelper aConfiguration)
mc - The ManagedConnection which created this connection.| Method Detail |
|---|
public void close()
throws com.stc.connector.appconn.common.ApplicationConnectionException
close in interface com.stc.connector.appconn.common.ApplicationConnectioncom.stc.connector.appconn.common.ApplicationConnectionException - upon error.protected boolean isClosed()
public java.lang.Object createApplication(java.lang.String appName)
throws com.stc.connector.appconn.common.ApplicationException
createApplication in interface com.stc.connector.appconn.common.ApplicationConnectionappName - The name of the application to create.
com.stc.connector.appconn.common.ApplicationException - upon error.
public com.stc.connector.appconn.common.OutputHandler createOutputHandler()
throws com.stc.connector.appconn.common.ApplicationException
createOutputHandler in interface com.stc.connector.appconn.common.ApplicationConnectioncom.stc.connector.appconn.common.ApplicationException - upon error.
public void invalidateConnection()
throws javax.resource.ResourceException
invalidateConnection in interface com.stc.connector.framework.client.AssociateableHandlejavax.resource.ResourceException - upon error.
public void reassociateConnection(com.stc.connector.framework.eway.ManagedConnectionCallback mc)
throws javax.resource.ResourceException
reassociateConnection in interface com.stc.connector.framework.client.AssociateableHandlemc - The ManagedConnection instance with which the connection
handle will associate.
javax.resource.ResourceException - upon error.
public EmailConfiguration newConfiguration()
throws EmailApplicationException
EmailApplicationException - upon error.
public boolean sendMessage(EmailConfiguration configuration,
EmailMessage emailMsg)
throws EmailApplicationException
configuration - The EmailConfiguration instance which holds
the connection specific information.emailMsg - The EmailMessage instance which contains
the email message to be sent.
EmailApplicationException - upon error.
public boolean receiveMessage(EmailConfiguration configuration,
EmailMessage emailMsg)
throws EmailApplicationException
configuration - The EmailConfiguration instance containing
connection specific information.emailMsg - The EmailMessage to put the email message
that gets received.
EmailApplicationException - upon error.
public boolean hasMessage(EmailConfiguration configuration)
throws EmailApplicationException
configuration - The EmailConfiguration instance containing
connection specific information.
EmailApplicationException - upon error.
|
Sun Adapter for e-Mail API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||