Class ToActionResponseFunction
- java.lang.Object
-
- org.openstack4j.openstack.compute.functions.ToActionResponseFunction
-
- All Implemented Interfaces:
com.google.common.base.Function<HttpResponse,ActionResponse>,Function<HttpResponse,ActionResponse>
public class ToActionResponseFunction extends Object implements com.google.common.base.Function<HttpResponse,ActionResponse>
A Function which consumes the input of an HttpResponse and returns the corresponding ActionResponse- Author:
- Jeremy Unruh
-
-
Field Summary
Fields Modifier and Type Field Description static ToActionResponseFunctionINSTANCE
-
Constructor Summary
Constructors Constructor Description ToActionResponseFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionResponseapply(HttpResponse response)ActionResponseapply(HttpResponse response, String action)
-
-
-
Field Detail
-
INSTANCE
public static final ToActionResponseFunction INSTANCE
-
-
Method Detail
-
apply
public ActionResponse apply(HttpResponse response)
- Specified by:
applyin interfacecom.google.common.base.Function<HttpResponse,ActionResponse>- Specified by:
applyin interfaceFunction<HttpResponse,ActionResponse>
-
apply
public ActionResponse apply(HttpResponse response, String action)
-
-