Back to project page android-rest-client.
The source code is released under:
Apache License
If you think the Android project android-rest-client listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.dg.libs.rest.handlers; /* w ww .jav a 2s. c om*/ import com.dg.libs.rest.domain.ResponseStatus; public class DefaultResponseStatusHandler implements ResponseStatusHandler { public DefaultResponseStatusHandler() { super(); } @Override public boolean hasErrorInStatus(ResponseStatus status) { return (status.getStatusCode() < 200 || status.getStatusCode() >= 300); } }