org.jclouds.openstack.nova.v2_0.functions
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>>
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."
}
}
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.common.base.Function |
equals |
OverLimitParser
@Inject
public OverLimitParser(org.jclouds.json.Json json)
apply
public Map<String,String> apply(String in)
- parses or returns an empty map.
- Specified by:
apply in interface com.google.common.base.Function<String,Map<String,String>>
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.