Class ToActionResponseFunction
- java.lang.Object
-
- org.openstack4j.openstack.compute.functions.ToActionResponseFunction
-
- All Implemented Interfaces:
Function<HttpResponse,ActionResponse>
public class ToActionResponseFunction extends Object implements 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 interfaceFunction<HttpResponse,ActionResponse>
-
apply
public ActionResponse apply(HttpResponse response, String action)
-
-