public class NetActionEvent extends EventObject
| Modifier and Type | Field and Description |
|---|---|
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. |
source| Modifier | Constructor and Description |
|---|---|
protected |
NetActionEvent(Object request,
Object response,
int error,
int status)
Two argument constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getSource, toStringpublic 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 Valuesprotected 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 actionpublic 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.Copyright © 2012 CableLabs. All Rights Reserved.