Class OverLimitParser
- java.lang.Object
-
- org.jclouds.openstack.nova.v2_0.functions.OverLimitParser
-
- All Implemented Interfaces:
com.google.common.base.Function<String,Map<String,String>>
,Function<String,Map<String,String>>
public class OverLimitParser extends Object implements com.google.common.base.Function<String,Map<String,String>>
The expected body contains the time as in this (real) response{ "overLimit" : { "code" : 413, "message" : "OverLimit Retry...", "details" : "Error Details...", "retryAt" : "2012-11-14T21:51:28UTC" } }
or{ "overLimit": { "message": "This request was rate-limited.", "code": 413, "retryAfter": "54", "details": "Only 1 POST request(s) can be made to \"*\" every minute." } }
-
-
Constructor Summary
Constructors Constructor Description OverLimitParser(Json json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
apply(String in)
parses or returns an empty map.
-
-
-
Constructor Detail
-
OverLimitParser
@Inject public OverLimitParser(Json json)
-
-