public abstract class MapboxBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
baseUrl |
protected String |
clientAppName |
Constructor and Description |
---|
MapboxBuilder() |
Modifier and Type | Method and Description |
---|---|
abstract Object |
build()
The builder.
|
abstract String |
getAccessToken() |
String |
getBaseUrl()
Get the base url of the API.
|
String |
getClientAppName() |
abstract MapboxBuilder |
setAccessToken(String accessToken) |
abstract <T extends MapboxBuilder> |
setBaseUrl(String baseUrl)
Set the base url of the API.
|
abstract <T extends MapboxBuilder> |
setClientAppName(String appName)
Set the App Name to identify
|
protected void |
validateAccessToken(String accessToken)
Method to validate a Mapbox Access token.
|
public abstract MapboxBuilder setAccessToken(String accessToken)
public abstract String getAccessToken()
public abstract <T extends MapboxBuilder> T setBaseUrl(String baseUrl)
T
- the concrete implementation of MapboxBuilderbaseUrl
- base url used as end pointpublic String getBaseUrl()
public abstract <T extends MapboxBuilder> T setClientAppName(String appName)
T
- The concrete implementation of MapboxBuilderappName
- base package name or other simple string identifierpublic String getClientAppName()
protected void validateAccessToken(String accessToken) throws ServicesException
accessToken
- A string containing a Mapbox Access TokenServicesException
- Generic Exception for all things Mapbox.public abstract Object build() throws ServicesException
MapboxBuilder
ServicesException
- Generic Exception for all things Mapbox.© 2015–2016 Mapbox. All rights reserved.