public interface Condition
IOperation.getResponse()
Modifier and Type | Field and Description |
---|---|
static Condition |
ALWAYS
returns
true always, even if an exception is thrown |
static Condition |
FAILED
|
static Condition |
SUCCESSFUL
returns
true for all resultCodes that mark a request as
successful, e.g. |
static Condition |
UNSUCCESSFUL
returns the opposite of
SUCCESSFUL returns false for all resultCodes that mark a request as
successful, e.g. |
Modifier and Type | Method and Description |
---|---|
boolean |
isMatching(int resultCode) |
static final Condition ALWAYS
true
always, even if an exception is thrownstatic final Condition SUCCESSFUL
true
for all resultCodes that mark a request as
successful, e.g. HttpConnection.HTTP_OK
; false
otherwise.static final Condition UNSUCCESSFUL
SUCCESSFUL
false
for all resultCodes that mark a request as
successful, e.g. HttpConnection.HTTP_OK
; true
otherwise.SUCCESSFUL
static final Condition FAILED