Email Answering System
Version 1.0

com.ninecode.email.connector
Class EmailInteractionSpec

java.lang.Object
  |
  +--com.ninecode.email.connector.EmailInteractionSpec
All Implemented Interfaces:
InteractionSpec, Serializable

public class EmailInteractionSpec
extends Object
implements InteractionSpec

Client interaction object for the email connector.

Author:
Derrick Oswald
See Also:
Serialized Form

Field Summary
protected  long mExecutionTimeout
          The timeout value for this interaction.
protected  String mFunctionName
          The function name for this interaction.
protected  PropertyChangeSupport mPropertyChangeSupport
          Utility field used by bound properties.
protected  int mVerb
          The nature of this interaction.
 
Fields inherited from interface javax.resource.cci.InteractionSpec
SYNC_RECEIVE, SYNC_SEND, SYNC_SEND_RECEIVE
 
Constructor Summary
EmailInteractionSpec()
          Creates a new instance of EmailInteractionSpec
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Adds a PropertyChangeListener to the listener list.
 long getExecutionTimeout()
          Getter for property executionTimeout.
 String getFunctionName()
          Getter for property functionName.
 int getVerb()
          Getter for property verb.
 void removePropertyChangeListener(PropertyChangeListener listener)
          Removes a PropertyChangeListener from the listener list.
 void setExecutionTimeout(long timeout)
          Setter for property executionTimeout.
 void setFunctionName(String function)
          Setter for property functionName.
 void setVerb(int verb)
          Setter for property verb.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mFunctionName

protected String mFunctionName
The function name for this interaction.


mVerb

protected int mVerb
The nature of this interaction. Must be one of SYNC_SEND, SYNC_SEND_RECEIVE or SYNC_RECEIVE.


mExecutionTimeout

protected long mExecutionTimeout
The timeout value for this interaction. If zero, there is no timeout.


mPropertyChangeSupport

protected PropertyChangeSupport mPropertyChangeSupport
Utility field used by bound properties.

Constructor Detail

EmailInteractionSpec

public EmailInteractionSpec()
Creates a new instance of EmailInteractionSpec

Method Detail

getFunctionName

public String getFunctionName()
Getter for property functionName.

Returns:
Value of property functionName.

setFunctionName

public void setFunctionName(String function)
                     throws IllegalArgumentException
Setter for property functionName. The allowed values of this property are set by the underlying EIS.

Parameters:
function - Fucntion name for this interaction.
Throws:
IllegalArgumentException - If the function name is null.

getVerb

public int getVerb()
Getter for property verb.

Returns:
Value of property verb.

setVerb

public void setVerb(int verb)
Setter for property verb.

Parameters:
verb - New value of property verb.

getExecutionTimeout

public long getExecutionTimeout()
Getter for property executionTimeout.

Returns:
Value of property executionTimeout.

setExecutionTimeout

public void setExecutionTimeout(long timeout)
Setter for property executionTimeout.

Parameters:
timeout - New value of property executionTimeout.

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list.

Parameters:
listener - The listener to add.

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list.

Parameters:
listener - The listener to remove.

Email Answering System
Version 1.0

Copyright © 2003 Derrick Oswald. All rights reserved.