Class ParseMetadata
- java.lang.Object
-
- org.jclouds.http.functions.ParseJson<Metadata>
-
- org.jclouds.rackspace.cloudloadbalancers.v1.functions.ParseMetadata
-
- All Implemented Interfaces:
com.google.common.base.Function<HttpResponse,Metadata>
,Function<HttpResponse,Metadata>
public class ParseMetadata extends ParseJson<Metadata>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ParseMetadata.CLBMetadata
This class is here only to deal with the metadata format in CLB.
-
Constructor Summary
Constructors Constructor Description ParseMetadata(Json json, com.google.inject.TypeLiteral<Metadata> type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Metadata
apply(HttpResponse response)
parses the http response body to create a new<T>
.static Metadata
transformCLBMetadataToMetadata(List<ParseMetadata.CLBMetadata> clbMetadatum)
-
-
-
Method Detail
-
apply
public Metadata apply(HttpResponse response)
Description copied from class:ParseJson
parses the http response body to create a new<T>
.- Specified by:
apply
in interfacecom.google.common.base.Function<HttpResponse,Metadata>
- Specified by:
apply
in interfaceFunction<HttpResponse,Metadata>
- Overrides:
apply
in classParseJson<Metadata>
-
transformCLBMetadataToMetadata
public static Metadata transformCLBMetadataToMetadata(List<ParseMetadata.CLBMetadata> clbMetadatum)
-
-