public class FlattrConnector extends Object implements Connector
Connector
that connects to the Flattr web service.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 FlattrConnector()
public Connection create() throws FlattrException
Connector
Connection
for a call with request type
RequestType.GET
.create
in interface Connector
Connection
that was createdFlattrException
public Connection create(RequestType type) throws FlattrException
Connector
Connection
for a call with the given request type.create
in interface Connector
type
- RequestType
to be usedConnection
that was createdFlattrException
public String getBaseUrl()
public void setBaseUrl(String baseUrl)
public AccessToken getAccessToken()
AccessToken
to be used for authorized calls.public void setAccessToken(AccessToken accessToken)
Copyright © 2010–2017. All rights reserved.