com.veriplace.client
Class AsyncRequestStatus

java.lang.Object
  extended by com.veriplace.client.AsyncRequestStatus
Direct Known Subclasses:
InvitationStatus, LocationRequestStatus

public abstract class AsyncRequestStatus
extends java.lang.Object

Base class for asynchronous requests created by a subclass of AsyncCapableAPI.

Since:
2.6

Method Summary
 VeriplaceException getException()
          An exception indicating the reason that the request failed, if it failed.
 java.lang.String getId()
          Returns a unique identifier that the platform assigned to this request.
 boolean isFailed()
          True if the request failed, in which case getException() will return the corresponding exception.
 boolean isReady()
          True if the request either was successfully completed or failed; false if it is still being processed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getId

public java.lang.String getId()
Returns a unique identifier that the platform assigned to this request. When you receive a result callback, it will contain a "nonce" parameter matching this value.


getException

public VeriplaceException getException()
An exception indicating the reason that the request failed, if it failed. The exception is wrapped in this status object, rather than immediately thrown, to allow the error to be associated with the request ID.


isReady

public boolean isReady()
True if the request either was successfully completed or failed; false if it is still being processed.


isFailed

public boolean isFailed()
True if the request failed, in which case getException() will return the corresponding exception.