Compoze Software, Inc.

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
           
 
Constructor Summary
AcknowledgeResponse(int iType)
          Constructor.
AcknowledgeResponse(int iType, java.lang.Throwable exception)
          Constructor.
 
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
 

Field Detail

ACK


public static final int ACK

NAK


public static final int NAK
Constructor Detail

AcknowledgeResponse


public AcknowledgeResponse(int iType)
Constructor.
Parameters:
iType - the acknowledge type
exception - the exception (if an exception occurred)

AcknowledgeResponse


public AcknowledgeResponse(int iType,
                           java.lang.Throwable exception)
Constructor.
Parameters:
iType - the acknowledge type
exception - the exception (if an exception occurred)
Method Detail

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

Compoze Software, Inc.

Copyright ©1999-2001 Compoze Software, Inc. All rights reserved.