Class ImageFromHeadersFunction
- java.lang.Object
-
- org.openstack4j.openstack.image.domain.functions.ImageFromHeadersFunction
-
- All Implemented Interfaces:
Function<HttpResponse,Image>
public class ImageFromHeadersFunction extends Object implements Function<HttpResponse,Image>
When retrieving a specific image the Glance API returns headers in the response. This function is responsible for parsing the headers into an Image.- Author:
- Jeremy Unruh
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Imageapply(HttpResponse from)static ImageFromHeadersFunctioninstance()
-
-
-
Method Detail
-
instance
public static ImageFromHeadersFunction instance()
-
apply
@Nullable public Image apply(HttpResponse from)
- Specified by:
applyin interfaceFunction<HttpResponse,Image>
-
-