org.shredzone.flattr4j.connector.impl
Class FlattrConnector

java.lang.Object
  extended by org.shredzone.flattr4j.connector.impl.FlattrConnector
All Implemented Interfaces:
Connector

public class FlattrConnector
extends Object
implements Connector

A Connector that connects to the Flattr web service.

Author:
Richard "Shred" Körber

Constructor Summary
FlattrConnector()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlattrConnector

public FlattrConnector()
Method Detail

create

public Connection create()
                  throws FlattrException
Description copied from interface: Connector
Creates a new Connection for a call with request type RequestType.GET.

Specified by:
create in interface Connector
Returns:
Connection that was created
Throws:
FlattrException

create

public Connection create(RequestType type)
                  throws FlattrException
Description copied from interface: Connector
Creates a new Connection for a call with the given request type.

Specified by:
create in interface Connector
Parameters:
type - RequestType to be used
Returns:
Connection that was created
Throws:
FlattrException

getBaseUrl

public String getBaseUrl()
Base URL of the API. Must end with a trailing slash!


setBaseUrl

public void setBaseUrl(String baseUrl)

getAccessToken

public AccessToken getAccessToken()
AccessToken to be used for authorized calls.


setAccessToken

public void setAccessToken(AccessToken accessToken)


Copyright © 2010-2012. All Rights Reserved.