org.jclouds.http.functions
Class ReturnTrueIf2xx

java.lang.Object
  extended by org.jclouds.http.functions.ReturnTrueIf2xx
All Implemented Interfaces:
com.google.common.base.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.

Author:
Adrian Cole

Constructor Summary
ReturnTrueIf2xx()
           
 
Method Summary
 Boolean apply(HttpResponse from)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Constructor Detail

ReturnTrueIf2xx

public ReturnTrueIf2xx()
Method Detail

apply

public Boolean apply(HttpResponse from)
Specified by:
apply in interface com.google.common.base.Function<HttpResponse,Boolean>


Copyright © 2009-2012 jclouds. All Rights Reserved.