Class ResponseToActionResponse
- java.lang.Object
-
- org.openstack4j.core.transport.functions.ResponseToActionResponse
-
- All Implemented Interfaces:
Function<HttpResponse,ActionResponse>
public class ResponseToActionResponse extends Object implements Function<HttpResponse,ActionResponse>
Takes an HttpResponse as input and returns an ActionResponse as an output- Author:
- Jeremy Unruh
-
-
Field Summary
Fields Modifier and Type Field Description static ResponseToActionResponseINSTANCE
-
Constructor Summary
Constructors Constructor Description ResponseToActionResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionResponseapply(HttpResponse response)ActionResponseapply(HttpResponse response, boolean returnNullIfNotMapped)
-
-
-
Field Detail
-
INSTANCE
public static final ResponseToActionResponse INSTANCE
-
-
Method Detail
-
apply
public ActionResponse apply(HttpResponse response)
- Specified by:
applyin interfaceFunction<HttpResponse,ActionResponse>
-
apply
public ActionResponse apply(HttpResponse response, boolean returnNullIfNotMapped)
-
-