org.fishwife.jrugged.httpclient
Interface ResponseFailureAssessor
- All Known Implementing Classes:
- DefaultResponseFailureAssessor
public interface ResponseFailureAssessor
A ResponseFailureAssessor is used by the FailureExposingHttpClient
to determine whether a given response should be considered a
"failure" or not.
|
Method Summary |
boolean |
isFailure(org.apache.http.HttpResponse response)
Returns true if the given response should be
treated as a failure. |
isFailure
boolean isFailure(org.apache.http.HttpResponse response)
- Returns
true if the given response should be
treated as a failure. N.B.: implementors should
not consume the response body unless they check
that the underlying HttpEntity is
repeatable first.
- Parameters:
response -
Copyright © 2013. All Rights Reserved.