com.compoze.trigger
Class AcknowledgeResponse
java.lang.Object
|
+--com.compoze.trigger.AcknowledgeResponse
- All Implemented Interfaces:
- java.io.Serializable
- public class AcknowledgeResponse
- extends java.lang.Object
- implements java.io.Serializable
This class implements a response object that acknowledges either a success
or failure.
- See Also:
- Serialized Form
Field Summary |
static int |
ACK
|
static int |
NAK
|
Method Summary |
java.lang.Throwable |
getException()
Get any exception that may have occurred to cause a failure. |
int |
getType()
Get the acknowledgement type. |
java.lang.String |
toString()
Return a string representation of the acknowledgement response. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ACK
public static final int ACK
NAK
public static final int NAK
AcknowledgeResponse
public AcknowledgeResponse(int iType)
- Constructor.
- Parameters:
iType
- the acknowledge typeexception
- the exception (if an exception occurred)
AcknowledgeResponse
public AcknowledgeResponse(int iType,
java.lang.Throwable exception)
- Constructor.
- Parameters:
iType
- the acknowledge typeexception
- the exception (if an exception occurred)
getType
public int getType()
- Get the acknowledgement type.
- Returns:
- the acknowledgement type
getException
public java.lang.Throwable getException()
- Get any exception that may have occurred to cause a failure.
- Returns:
- the exception that occurred, or null if no exceptions occurred
toString
public java.lang.String toString()
- Return a string representation of the acknowledgement response.
- Overrides:
toString
in class java.lang.Object
- Returns:
- the string representation of the response
Copyright ©1999-2001 Compoze Software, Inc. All rights reserved.