|
|||||||||||
| ?PREV CLASS? ?NEXT CLASS | FRAMES ? ?NO FRAMES ? ? | ||||||||||
| SUMMARY:?NESTED?|?FIELD?|?CONSTR?|?METHOD | DETAIL:?FIELD?|?CONSTR?|?METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.client.toolkit.properties.RequestStatus
The status of a request.
| Field Summary | |
static?RequestStatus |
COMPLETED??????????The request has completed. |
private static?java.lang.String |
COPYRIGHT_NOTICE??????????Copyright statement |
static?RequestStatus |
ERROR??????????The request resulted in an error. |
static?RequestStatus |
INITIALISING??????????The request is initialising. |
private ?java.lang.String |
mText??????????The string representation of the status. |
static?RequestStatus |
PROCESSING??????????The request is being processed. |
static?RequestStatus |
TERMINATED??????????The request has terminated. |
static?RequestStatus |
TIMEDOUT??????????The request has timed out. |
static?RequestStatus |
UNSTARTED??????????The request has yet to be started. |
| Constructor Summary | |
private |
RequestStatus(java.lang.String?text)??????????Private constructor. |
| Method Summary | |
static?RequestStatus |
createFromProperty(Property?property)??????????Creates a RequestStatus object from a property holding a value representing the request status. |
static?RequestStatus |
createFromResponse(org.w3c.dom.Document?response)??????????Creates a RequestStatus object by extracting the status from the given response document. |
?boolean |
isFinished()??????????Returns flag indicating whether the status indicates a finished state, where a finished state equals RequestStatus.COMPLETE, RequestStatus.ERROR, RequestStatus.TIMEDOUT or RequestStatus.TERMINATED. |
?boolean |
isStopped()??????????Returns flag indicating whether the status indicates a stopped state, where a stopped state equals RequestStatus.ERROR or RequestStatus.TERMINATED or RequestStatus.TIMEDOUT. |
?boolean |
isUnfinished()??????????Returns flag indicating whether the status indicates an incomplete state, where an incomplete state equals RequestStatus.UNSTARTED, RequestStatus.INITIALISING or RequestStatus.PROCESSING. |
?boolean |
isUnstarted()??????????Returns flag indicating whether the status indicates an unstarted state, where an unstarted state equals RequestStatus.UNSTARTED. |
?java.lang.String |
toString()??????????Gets the status in a displayable string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
public static final RequestStatus UNSTARTED
public static final RequestStatus INITIALISING
public static final RequestStatus PROCESSING
public static final RequestStatus COMPLETED
public static final RequestStatus ERROR
public static final RequestStatus TERMINATED
public static final RequestStatus TIMEDOUT
private final java.lang.String mText
| Constructor Detail |
private RequestStatus(java.lang.String?text)
text - The name of the status.| Method Detail |
public java.lang.String toString()
toString in class java.lang.Object
public boolean isStopped()
RequestStatus.ERROR or RequestStatus.TERMINATED or RequestStatus.TIMEDOUT.
true if stopped, false otherwise.public boolean isFinished()
RequestStatus.COMPLETE, RequestStatus.ERROR, RequestStatus.TIMEDOUT or RequestStatus.TERMINATED.
true if finished, false otherwise.public boolean isUnfinished()
RequestStatus.UNSTARTED, RequestStatus.INITIALISING or RequestStatus.PROCESSING.
true if incomplete, false otherwise.public boolean isUnstarted()
RequestStatus.UNSTARTED.
true if unstarted, false otherwise.
public static RequestStatus createFromProperty(Property?property)
throws DataFormatException
RequestStatus object from a property holding a value representing the request status.
The property's getValue method is assumed to return an org.w3c.dom.Element representing the request status as provided by a data service resource.
property - Property holding request status from data service resource.RequestStatus object corresponding to the request status in the property.DataFormatException - If the value of the property cannot be parsed into a request status.
public static RequestStatus createFromResponse(org.w3c.dom.Document?response)
throws DataFormatException
RequestStatus object by extracting the status from the given response document.
response - Response document.RequestStatus object corresponding to the status in the given response document.DataFormatException - If the response document cannot be parsed to access the request status.
|
|||||||||||
| ?PREV CLASS? ?NEXT CLASS | FRAMES ? ?NO FRAMES ? ? | ||||||||||
| SUMMARY:?NESTED?|?FIELD?|?CONSTR?|?METHOD | DETAIL:?FIELD?|?CONSTR?|?METHOD | ||||||||||