public class StravaConfig extends Object
Configuration and paging utilities
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTH_ENDPOINT
API endpoint for the Strava authorisation API
|
static String |
DATE_FORMAT
Date format to use in query parameters and in (de)serialisation of JSON
|
static Integer |
DEFAULT_PAGE_SIZE
Strava's default page size.
|
static String |
ENDPOINT
API endpoint for the Strava data API
|
static Integer |
MAX_PAGE_SIZE
Maximum page size that is returned by Strava
|
static int |
RATE_LIMIT
Request rate limit every 15 minutes (default is 600)
|
static int |
RATE_LIMIT_DAILY
Daily request rate limit (default is 30,000)
|
static String |
SESSION_COOKIE_NAME
Name of the Strava session cookie
|
static int |
WARN_AT_REQUEST_LIMIT_PERCENT
The percentage of request limits that, if exceeded, should log a warning
|
| Constructor and Description |
|---|
StravaConfig() |
| Modifier and Type | Method and Description |
|---|---|
static Integer |
integer(String key) |
static String |
string(String property)
Get the value of a String property
|
public static final Integer DEFAULT_PAGE_SIZE
public static final Integer MAX_PAGE_SIZE
public static final String ENDPOINT
API endpoint for the Strava data API
public static final String AUTH_ENDPOINT
API endpoint for the Strava authorisation API
public static final String SESSION_COOKIE_NAME
public static final String DATE_FORMAT
public static int RATE_LIMIT
public static int RATE_LIMIT_DAILY
public static final int WARN_AT_REQUEST_LIMIT_PERCENT
Copyright © 2015 Dan Shannon. All rights reserved.