|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.ocap.hn.NetActionEvent
public class NetActionEvent
This class represents an event generated in response to an action. NetActionEvent instances can only be created by the implementation.
| Field Summary | |
|---|---|
static int |
ACTION_CANCELED
ACTION_CANCELED is returned by getActionStatus()
when the action has been canceled. |
static int |
ACTION_COMPLETED
Action status for a completed action |
static int |
ACTION_FAILED
ACTION_FAILED is returned by getActionStatus()
when the action has failed. |
static int |
ACTION_IN_PROGRESS
ACTION_IN_PROGRESS is returned by getActionStatus()
when the action is currently on going. |
static int |
ACTION_STATUS_NOT_AVAILABLE
ACTION_STATUS_NOT_AVAILABLE is returned by
getActionStatus() when the transaction has completed
successfully or failed sometime before this method was called and the
implementation is no longer maintaining a status for it. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
protected |
NetActionEvent(Object request,
Object response,
int error,
int status)
Two argument constructor. |
| Method Summary | |
|---|---|
NetActionRequest |
getActionRequest()
Returns the ActionRequest which identifies the action instance. |
int |
getActionStatus()
Returns the status of the requested action. |
int |
getError()
Gets the error value when getActionStatus returns NetActionEvent.ACTION_FAILED. |
Object |
getResponse()
Returns the response of the Action. |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ACTION_COMPLETED
getActionStatus(),
Constant Field Valuespublic static final int ACTION_CANCELED
ACTION_CANCELED is returned by getActionStatus()
when the action has been canceled.
getActionStatus(),
Constant Field Valuespublic static final int ACTION_FAILED
ACTION_FAILED is returned by getActionStatus()
when the action has failed.
getActionStatus(),
Constant Field Valuespublic static final int ACTION_STATUS_NOT_AVAILABLE
ACTION_STATUS_NOT_AVAILABLE is returned by
getActionStatus() when the transaction has completed
successfully or failed sometime before this method was called and the
implementation is no longer maintaining a status for it.
public static final int ACTION_IN_PROGRESS
ACTION_IN_PROGRESS is returned by getActionStatus()
when the action is currently on going.
getActionStatus(),
Constant Field Values| Constructor Detail |
|---|
protected NetActionEvent(Object request,
Object response,
int error,
int status)
request - - NetActionRequest that instigated the response.response - - An object representing the response to the action and
which is specific to the action.error - - error code for this event if action failedstatus - - status of the associated net action| Method Detail |
|---|
public Object getResponse()
public NetActionRequest getActionRequest()
public int getActionStatus()
public int getError()
NetActionEvent.ACTION_FAILED. If the action is not in
error this method SHALL return -1. Error code values are dependent
on the underlying network protocol error code values.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||