| Constructor and Description |
|---|
FlattrConnector() |
| Modifier and Type | Method and Description |
|---|---|
Connection |
create()
Creates a new
Connection for a call with request type
RequestType.GET. |
Connection |
create(RequestType type)
Creates a new
Connection for a call with the given request type. |
AccessToken |
getAccessToken()
AccessToken to be used for authorized calls. |
String |
getBaseUrl()
Base URL of the API.
|
void |
setAccessToken(AccessToken accessToken) |
void |
setBaseUrl(String baseUrl) |
public Connection create() throws FlattrException
ConnectorConnection for a call with request type
RequestType.GET.create in interface ConnectorConnection that was createdFlattrExceptionpublic Connection create(RequestType type) throws FlattrException
ConnectorConnection for a call with the given request type.create in interface Connectortype - RequestType to be usedConnection that was createdFlattrExceptionpublic String getBaseUrl()
public void setBaseUrl(String baseUrl)
public AccessToken getAccessToken()
AccessToken to be used for authorized calls.public void setAccessToken(AccessToken accessToken)
Copyright © 2010–2014. All rights reserved.