Package org.jclouds.http.functions
Class ReturnTrueIf2xx
- java.lang.Object
-
- org.jclouds.http.functions.ReturnTrueIf2xx
-
- All Implemented Interfaces:
com.google.common.base.Function<HttpResponse,Boolean>
,Function<HttpResponse,Boolean>
@Singleton public class ReturnTrueIf2xx extends Object implements com.google.common.base.Function<HttpResponse,Boolean>
Simply returns true when the http response code is in the range 200-299.
-
-
Constructor Summary
Constructors Constructor Description ReturnTrueIf2xx()
-
-
-
Method Detail
-
apply
public Boolean apply(HttpResponse from)
- Specified by:
apply
in interfacecom.google.common.base.Function<HttpResponse,Boolean>
- Specified by:
apply
in interfaceFunction<HttpResponse,Boolean>
-
-