-
public final class HttpResponseThe response returned by a method in IHttpClient.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisSuccessprivate final IntegerstatusCodeprivate final Stringpayloadprivate final Throwablethrowableprivate final IntegerretryAfterSecondsprivate final IntegerretryLimit
-
Method Summary
Modifier and Type Method Description final BooleangetIsSuccess()final IntegergetStatusCode()The status code of the response (HttpURLConnection.HTTP_OK as an example). final StringgetPayload()The optional response payload. final ThrowablegetThrowable()When non-null, the throwable that was thrown during processing. final IntegergetRetryAfterSeconds()Optional Integer value maybe returned from the backend. final IntegergetRetryLimit()Optional Integer value may be returned from the backend. -
-
Method Detail
-
getIsSuccess
final Boolean getIsSuccess()
-
getStatusCode
final Integer getStatusCode()
The status code of the response (HttpURLConnection.HTTP_OK as an example).
-
getPayload
final String getPayload()
The optional response payload.
-
getThrowable
final Throwable getThrowable()
When non-null, the throwable that was thrown during processing.
-
getRetryAfterSeconds
final Integer getRetryAfterSeconds()
Optional Integer value maybe returned from the backend. The module handing this should delay any future requests by this time.
-
getRetryLimit
final Integer getRetryLimit()
Optional Integer value may be returned from the backend. The module handling this should not retry more than this number.
-
-
-
-