public class

LinkedInApiClientFactory

extends Object
java.lang.Object
   ↳ com.google.code.linkedinapi.client.LinkedInApiClientFactory

Class Overview

A factory for creating LinkedInApiClient objects.

Summary

Fields
private LinkedInApiConsumer apiConsumer The api consumer.
private Constructor<? extends LinkedInApiClient> defaultClientImpl The default client impl.
private static final Map<LinkedInApiConsumerLinkedInApiClientFactory> factoriesMap The Constant factoriesMap.
private ExecutorService taskExecutor The task executor.
Public Methods
AsyncLinkedInApiClient createAsyncLinkedInApiClient(String token, String tokenSecret)
Creates a new LinkedInApiClient object.
AsyncLinkedInApiClient createAsyncLinkedInApiClient(LinkedInAccessToken accessToken)
Creates a new LinkedInApiClient object.
LinkedInApiClient createLinkedInApiClient(LinkedInAccessToken accessToken)
Creates a new LinkedInApiClient object.
LinkedInApiClient createLinkedInApiClient(String token, String tokenSecret)
Creates a new LinkedInApiClient object.
LinkedInApiClient createLinkedInApiClient(Class<? extends LinkedInApiClient> implClass, LinkedInAccessToken accessToken)
Creates a new LinkedInApiClient object.
synchronized static LinkedInApiClientFactory newInstance(LinkedInApiConsumer apiConsumer)
New instance.
static LinkedInApiClientFactory newInstance(String consumerKey, String consumerSecret)
New instance.
void setTaskExecutor(ExecutorService taskExecutor)
Sets the task executor to be used for asynchronous API calls.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private LinkedInApiConsumer apiConsumer

The api consumer.

private Constructor<? extends LinkedInApiClient> defaultClientImpl

The default client impl.

private static final Map<LinkedInApiConsumerLinkedInApiClientFactory> factoriesMap

The Constant factoriesMap.

private ExecutorService taskExecutor

The task executor.

Public Methods

public AsyncLinkedInApiClient createAsyncLinkedInApiClient (String token, String tokenSecret)

Creates a new LinkedInApiClient object.

Parameters
token The token
tokenSecret The token secret
Returns
  • the async linked in api client

public AsyncLinkedInApiClient createAsyncLinkedInApiClient (LinkedInAccessToken accessToken)

Creates a new LinkedInApiClient object.

Parameters
accessToken The access token
Returns
  • the async linked in api client

public LinkedInApiClient createLinkedInApiClient (LinkedInAccessToken accessToken)

Creates a new LinkedInApiClient object.

Parameters
accessToken The access token
Returns
  • the linked in api client

public LinkedInApiClient createLinkedInApiClient (String token, String tokenSecret)

Creates a new LinkedInApiClient object.

Parameters
token The token
tokenSecret The token secret
Returns
  • the linked in api client

public LinkedInApiClient createLinkedInApiClient (Class<? extends LinkedInApiClient> implClass, LinkedInAccessToken accessToken)

Creates a new LinkedInApiClient object.

Parameters
implClass
accessToken The access token
Returns
  • the linked in api client

public static synchronized LinkedInApiClientFactory newInstance (LinkedInApiConsumer apiConsumer)

New instance.

Parameters
apiConsumer The api consumer
Returns
  • the linked in api client factory

public static LinkedInApiClientFactory newInstance (String consumerKey, String consumerSecret)

New instance.

Parameters
consumerKey The consumer key
consumerSecret The consumer secret
Returns
  • the linked in api client factory

public void setTaskExecutor (ExecutorService taskExecutor)

Sets the task executor to be used for asynchronous API calls.

Parameters
taskExecutor The task executor