|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.shredzone.flattr4j.spring.DefaultFlattrServiceFactory
public class DefaultFlattrServiceFactory
Default implementation of FlattrServiceFactory
.
Constructor Summary | |
---|---|
DefaultFlattrServiceFactory(ConsumerKey consumerKey)
Creates a new DefaultFlattrServiceFactory with the given
ConsumerKey . |
|
DefaultFlattrServiceFactory(ConsumerKey consumerKey,
AccessToken accessToken)
Creates a new DefaultFlattrServiceFactory with the given
ConsumerKey and AccessToken . |
Method Summary | |
---|---|
FlattrAuthenticator |
getFlattrAuthenticator()
Creates a new FlattrAuthenticator . |
FlattrService |
getFlattrService()
Creates a new FlattrService instance, using a default access token. |
FlattrService |
getFlattrService(AccessToken at)
Creates a new FlattrService instance. |
OpenService |
getOpenService()
Creates a new OpenService instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultFlattrServiceFactory(ConsumerKey consumerKey)
DefaultFlattrServiceFactory
with the given
ConsumerKey
.
consumerKey
- ConsumerKey
to be used by this factorypublic DefaultFlattrServiceFactory(ConsumerKey consumerKey, AccessToken accessToken)
DefaultFlattrServiceFactory
with the given
ConsumerKey
and AccessToken
.
consumerKey
- ConsumerKey
to be used by this factoryaccessToken
- AccessToken
to be used by this factoryMethod Detail |
---|
public OpenService getOpenService()
FlattrServiceFactory
OpenService
instance.
getOpenService
in interface FlattrServiceFactory
OpenService
instance. Each invocation creates a new instance.public FlattrService getFlattrService()
FlattrServiceFactory
FlattrService
instance, using a default access token. If no
default access token is set, an exception will be thrown.
getFlattrService
in interface FlattrServiceFactory
FlattrService
instance. Each invocation creates a new instance.public FlattrService getFlattrService(AccessToken at)
FlattrServiceFactory
FlattrService
instance.
getFlattrService
in interface FlattrServiceFactory
at
- AccessToken
to be used by the FlattrService
FlattrService
instance. Each invocation creates a new instance.public FlattrAuthenticator getFlattrAuthenticator()
FlattrServiceFactory
FlattrAuthenticator
.
getFlattrAuthenticator
in interface FlattrServiceFactory
FlattrAuthenticator
instance. Each invocation creates a new
instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |