public static class RateLimits.DefaultParser extends java.lang.Object implements RateLimits.Parser
HEADER_HOUR_LIMIT, HEADER_HOUR_REMAINING, HEADER_RESET, HEADER_SECOND_LIMIT, HEADER_SECOND_REMAINING
Constructor and Description |
---|
DefaultParser() |
Modifier and Type | Method and Description |
---|---|
RateLimits |
parse(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
Analyzes and converts a map of given headers to its rate limits.
|
public RateLimits parse(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
parse
in interface RateLimits.Parser
headers
- map of headers returned in an HTTP response from Contentful.Copyright © 2019 Contentful, GmbH.. All Rights Reserved.