com.google.code.linkedinapi.client.impl
Class AsyncHandlerLinkedInApiClientAdapter

java.lang.Object
  extended by com.google.code.linkedinapi.client.impl.AsyncHandlerLinkedInApiClientAdapter
All Implemented Interfaces:
AsyncHandlerLinkedInApiClient, LinkedInAuthenticationClient, LinkedInCommunicationClient

public class AsyncHandlerLinkedInApiClientAdapter
extends java.lang.Object
implements AsyncHandlerLinkedInApiClient

Author:
Nabeel Mukhtar

Field Summary
private  LinkedInApiClient client
          Field description
private  java.util.concurrent.ExecutorService taskExecutor
          Field description
 
Constructor Summary
AsyncHandlerLinkedInApiClientAdapter(LinkedInApiClient client, java.util.concurrent.ExecutorService taskExecutor)
          Constructs ...
 
Method Summary
 void addRequestHeader(java.lang.String headerName, java.lang.String headerValue)
          Adds the request header.
 void deleteCurrentStatus(AsyncResponseHandler<?> handler)
          Delete current status.
protected
<T> java.util.concurrent.Future<T>
execute(java.util.concurrent.Callable<T> task)
          Method description
protected  java.util.concurrent.Future execute(java.lang.Runnable task)
          Method description
 LinkedInAccessToken getAccessToken()
          Method description
 LinkedInApiConsumer getApiConsumer()
          Method description
 void getConnectionsById(java.lang.String id, AsyncResponseHandler<Connections> handler)
          Gets the connections by id.
 void getConnectionsById(java.lang.String id, int start, int count, AsyncResponseHandler<Connections> handler)
          Gets the connections by id.
 void getConnectionsById(java.lang.String id, java.util.Set<ProfileField> profileFields, AsyncResponseHandler<Connections> handler)
          Gets the connections by id.
 void getConnectionsById(java.lang.String id, java.util.Set<ProfileField> profileFields, int start, int count, AsyncResponseHandler<Connections> handler)
          Gets the connections by id.
 void getConnectionsByUrl(java.lang.String url, AsyncResponseHandler<Connections> handler)
          Gets the connections by url.
 void getConnectionsByUrl(java.lang.String url, int start, int count, AsyncResponseHandler<Connections> handler)
          Gets the connections by url.
 void getConnectionsByUrl(java.lang.String url, java.util.Set<ProfileField> profileFields, AsyncResponseHandler<Connections> handler)
          Gets the connections by url.
 void getConnectionsByUrl(java.lang.String url, java.util.Set<ProfileField> profileFields, int start, int count, AsyncResponseHandler<Connections> handler)
          Gets the connections by url.
 void getConnectionsForCurrentUser(AsyncResponseHandler<Connections> handler)
          Gets the connections for current user.
 void getConnectionsForCurrentUser(int start, int count, AsyncResponseHandler<Connections> handler)
          Gets the connections for current user.
 void getConnectionsForCurrentUser(java.util.Set<ProfileField> profileFields, AsyncResponseHandler<Connections> handler)
          Gets the connections for current user.
 void getConnectionsForCurrentUser(java.util.Set<ProfileField> profileFields, int start, int count, AsyncResponseHandler<Connections> handler)
          Gets the connections for current user.
 void getNetworkUpdateComments(java.lang.String networkUpdateId, AsyncResponseHandler<UpdateComments> handler)
          Gets the network update comments.
 void getNetworkUpdates(AsyncResponseHandler<Network> handler)
          Gets the network updates.
 void getNetworkUpdates(java.util.Date startDate, java.util.Date endDate, AsyncResponseHandler<Network> handler)
          Gets the network updates.
 void getNetworkUpdates(int start, int count, AsyncResponseHandler<Network> handler)
          Gets the network updates.
 void getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes, AsyncResponseHandler<Network> handler)
          Gets the network updates.
 void getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes, java.util.Date startDate, java.util.Date endDate, AsyncResponseHandler<Network> handler)
          Gets the network updates.
 void getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes, int start, int count, AsyncResponseHandler<Network> handler)
          Gets the network updates.
 void getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes, int start, int count, java.util.Date startDate, java.util.Date endDate, AsyncResponseHandler<Network> handler)
          Gets the network updates.
 void getProfileByApiRequest(ApiStandardProfileRequest apiRequest, AsyncResponseHandler<Person> handler)
          Gets the profile by API request.
 void getProfileById(java.lang.String id, AsyncResponseHandler<Person> handler)
          Gets the profile by id.
 void getProfileById(java.lang.String id, java.util.Set<ProfileField> profileFields, AsyncResponseHandler<Person> handler)
          Gets the profile by id.
 void getProfileByUrl(java.lang.String url, ProfileType profileType, AsyncResponseHandler<Person> handler)
          Gets the profile by url.
 void getProfileByUrl(java.lang.String url, ProfileType profileType, java.util.Set<ProfileField> profileFields, AsyncResponseHandler<Person> handler)
          Gets the profile by url.
 void getProfileForCurrentUser(AsyncResponseHandler<Person> handler)
          Gets the profile for current user.
 void getProfileForCurrentUser(java.util.Set<ProfileField> profileFields, AsyncResponseHandler<Person> handler)
          Gets the profile for current user.
 java.util.Map<java.lang.String,java.lang.String> getRequestHeaders()
          Gets the request headers.
 void postComment(java.lang.String networkUpdateId, java.lang.String commentText, AsyncResponseHandler<?> handler)
          Post comment.
 void postNetworkUpdate(java.lang.String updateText, AsyncResponseHandler<?> handler)
          Post network update.
 void removeRequestHeader(java.lang.String headerName)
          Removes the request header.
 void searchPeople(AsyncResponseHandler<People> handler)
          Search people.
 void searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, AsyncResponseHandler<People> handler)
          Search people.
 void searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, int start, int count, AsyncResponseHandler<People> handler)
          Search people.
 void searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, int start, int count, SearchSortOrder sortOrder, AsyncResponseHandler<People> handler)
          Search people.
 void searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, SearchSortOrder sortOrder, AsyncResponseHandler<People> handler)
          Search people.
 void sendInviteByEmail(java.lang.String email, java.lang.String firstName, java.lang.String lastName, java.lang.String subject, java.lang.String message, AsyncResponseHandler<?> handler)
          Send invite.
 void sendInviteById(java.lang.String recepientId, java.lang.String subject, java.lang.String message, java.lang.String authHeader, AsyncResponseHandler<?> handler)
          Send invite.
 void sendInviteToPerson(Person recepient, java.lang.String subject, java.lang.String message, AsyncResponseHandler<?> handler)
          Send invite.
 void sendMessage(java.util.List<java.lang.String> recepientIds, java.lang.String subject, java.lang.String message, AsyncResponseHandler<?> handler)
          Send message.
 void setAccessToken(LinkedInAccessToken accessToken)
          Method description
 void setApiConsumer(LinkedInApiConsumer apiConsumer)
          Method description
 void setRequestHeaders(java.util.Map<java.lang.String,java.lang.String> requestHeaders)
          Sets the request headers.
 void updateCurrentStatus(java.lang.String status, AsyncResponseHandler<?> handler)
          Update current status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

client

private LinkedInApiClient client
Field description


taskExecutor

private java.util.concurrent.ExecutorService taskExecutor
Field description

Constructor Detail

AsyncHandlerLinkedInApiClientAdapter

public AsyncHandlerLinkedInApiClientAdapter(LinkedInApiClient client,
                                            java.util.concurrent.ExecutorService taskExecutor)
Constructs ...

Parameters:
client -
Method Detail

execute

protected java.util.concurrent.Future execute(java.lang.Runnable task)
Method description

Parameters:
task -
Returns:

execute

protected <T> java.util.concurrent.Future<T> execute(java.util.concurrent.Callable<T> task)
Method description

Type Parameters:
T -
Parameters:
task -
Returns:

getConnectionsById

public void getConnectionsById(java.lang.String id,
                               AsyncResponseHandler<Connections> handler)
Gets the connections by id. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsById in interface AsyncHandlerLinkedInApiClient
Parameters:
id - the id

getConnectionsById

public void getConnectionsById(java.lang.String id,
                               java.util.Set<ProfileField> profileFields,
                               AsyncResponseHandler<Connections> handler)
Gets the connections by id. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsById in interface AsyncHandlerLinkedInApiClient
Parameters:
id - the id
profileFields - the profile fields

getConnectionsByUrl

public void getConnectionsByUrl(java.lang.String url,
                                AsyncResponseHandler<Connections> handler)
Gets the connections by url. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsByUrl in interface AsyncHandlerLinkedInApiClient
Parameters:
url - the url

getConnectionsByUrl

public void getConnectionsByUrl(java.lang.String url,
                                java.util.Set<ProfileField> profileFields,
                                AsyncResponseHandler<Connections> handler)
Gets the connections by url. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsByUrl in interface AsyncHandlerLinkedInApiClient
Parameters:
url - the url
profileFields - the profile fields

getConnectionsForCurrentUser

public void getConnectionsForCurrentUser(AsyncResponseHandler<Connections> handler)
Gets the connections for current user. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsForCurrentUser in interface AsyncHandlerLinkedInApiClient

getConnectionsForCurrentUser

public void getConnectionsForCurrentUser(java.util.Set<ProfileField> profileFields,
                                         AsyncResponseHandler<Connections> handler)
Gets the connections for current user. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsForCurrentUser in interface AsyncHandlerLinkedInApiClient
Parameters:
profileFields - the profile fields

getConnectionsById

public void getConnectionsById(java.lang.String id,
                               int start,
                               int count,
                               AsyncResponseHandler<Connections> handler)
Gets the connections by id. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsById in interface AsyncHandlerLinkedInApiClient
Parameters:
id - the id
start - the start
count - the count

getConnectionsById

public void getConnectionsById(java.lang.String id,
                               java.util.Set<ProfileField> profileFields,
                               int start,
                               int count,
                               AsyncResponseHandler<Connections> handler)
Gets the connections by id. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsById in interface AsyncHandlerLinkedInApiClient
Parameters:
id - the id
profileFields - the profile fields
start - the start
count - the count

getConnectionsByUrl

public void getConnectionsByUrl(java.lang.String url,
                                int start,
                                int count,
                                AsyncResponseHandler<Connections> handler)
Gets the connections by url. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsByUrl in interface AsyncHandlerLinkedInApiClient
Parameters:
url - the url
start - the start
count - the count

getConnectionsByUrl

public void getConnectionsByUrl(java.lang.String url,
                                java.util.Set<ProfileField> profileFields,
                                int start,
                                int count,
                                AsyncResponseHandler<Connections> handler)
Gets the connections by url. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsByUrl in interface AsyncHandlerLinkedInApiClient
Parameters:
url - the url
profileFields - the profile fields
start - the start
count - the count

getConnectionsForCurrentUser

public void getConnectionsForCurrentUser(int start,
                                         int count,
                                         AsyncResponseHandler<Connections> handler)
Gets the connections for current user. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsForCurrentUser in interface AsyncHandlerLinkedInApiClient
Parameters:
start - the start
count - the count

getConnectionsForCurrentUser

public void getConnectionsForCurrentUser(java.util.Set<ProfileField> profileFields,
                                         int start,
                                         int count,
                                         AsyncResponseHandler<Connections> handler)
Gets the connections for current user. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsForCurrentUser in interface AsyncHandlerLinkedInApiClient
Parameters:
profileFields - the profile fields
start - the start
count - the count

getNetworkUpdates

public void getNetworkUpdates(AsyncResponseHandler<Network> handler)
Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Specified by:
getNetworkUpdates in interface AsyncHandlerLinkedInApiClient

getNetworkUpdates

public void getNetworkUpdates(int start,
                              int count,
                              AsyncResponseHandler<Network> handler)
Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Specified by:
getNetworkUpdates in interface AsyncHandlerLinkedInApiClient
Parameters:
start - the start
count - the count

getNetworkUpdates

public void getNetworkUpdates(java.util.Date startDate,
                              java.util.Date endDate,
                              AsyncResponseHandler<Network> handler)
Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Specified by:
getNetworkUpdates in interface AsyncHandlerLinkedInApiClient
Parameters:
startDate - the start date
endDate - the end date

getNetworkUpdates

public void getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes,
                              AsyncResponseHandler<Network> handler)
Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Specified by:
getNetworkUpdates in interface AsyncHandlerLinkedInApiClient
Parameters:
updateTypes - the update types

getNetworkUpdates

public void getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes,
                              int start,
                              int count,
                              AsyncResponseHandler<Network> handler)
Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Specified by:
getNetworkUpdates in interface AsyncHandlerLinkedInApiClient
Parameters:
updateTypes - the update types
start - the start
count - the count

getNetworkUpdates

public void getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes,
                              java.util.Date startDate,
                              java.util.Date endDate,
                              AsyncResponseHandler<Network> handler)
Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Specified by:
getNetworkUpdates in interface AsyncHandlerLinkedInApiClient
Parameters:
updateTypes - the update types
startDate - the start date
endDate - the end date

getNetworkUpdates

public void getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes,
                              int start,
                              int count,
                              java.util.Date startDate,
                              java.util.Date endDate,
                              AsyncResponseHandler<Network> handler)
Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Specified by:
getNetworkUpdates in interface AsyncHandlerLinkedInApiClient
Parameters:
updateTypes - the update types
start - the start
count - the count
startDate - the start date
endDate - the end date

getNetworkUpdateComments

public void getNetworkUpdateComments(java.lang.String networkUpdateId,
                                     AsyncResponseHandler<UpdateComments> handler)
Gets the network update comments. For details see http://developer.linkedin.com/docs/DOC-1043

Specified by:
getNetworkUpdateComments in interface AsyncHandlerLinkedInApiClient
Parameters:
networkUpdateId - the network update id

getProfileById

public void getProfileById(java.lang.String id,
                           AsyncResponseHandler<Person> handler)
Gets the profile by id. For details see http://developer.linkedin.com/docs/DOC-1002

Specified by:
getProfileById in interface AsyncHandlerLinkedInApiClient
Parameters:
id - the id

getProfileById

public void getProfileById(java.lang.String id,
                           java.util.Set<ProfileField> profileFields,
                           AsyncResponseHandler<Person> handler)
Gets the profile by id. For details see http://developer.linkedin.com/docs/DOC-1002

Specified by:
getProfileById in interface AsyncHandlerLinkedInApiClient
Parameters:
id - the id
profileFields - the profile fields

getProfileByUrl

public void getProfileByUrl(java.lang.String url,
                            ProfileType profileType,
                            AsyncResponseHandler<Person> handler)
Gets the profile by url. For details see http://developer.linkedin.com/docs/DOC-1002

Specified by:
getProfileByUrl in interface AsyncHandlerLinkedInApiClient
Parameters:
url - the url
profileType - the profile type

getProfileByUrl

public void getProfileByUrl(java.lang.String url,
                            ProfileType profileType,
                            java.util.Set<ProfileField> profileFields,
                            AsyncResponseHandler<Person> handler)
Gets the profile by url. For details see http://developer.linkedin.com/docs/DOC-1002

Specified by:
getProfileByUrl in interface AsyncHandlerLinkedInApiClient
Parameters:
url - the url
profileType - the profile type
profileFields - the profile fields

getProfileByApiRequest

public void getProfileByApiRequest(ApiStandardProfileRequest apiRequest,
                                   AsyncResponseHandler<Person> handler)
Gets the profile by API request. For details see http://developer.linkedin.com/docs/DOC-1002

Specified by:
getProfileByApiRequest in interface AsyncHandlerLinkedInApiClient
Parameters:
apiRequest - the api request

getProfileForCurrentUser

public void getProfileForCurrentUser(AsyncResponseHandler<Person> handler)
Gets the profile for current user. For details see http://developer.linkedin.com/docs/DOC-1002

Specified by:
getProfileForCurrentUser in interface AsyncHandlerLinkedInApiClient

getProfileForCurrentUser

public void getProfileForCurrentUser(java.util.Set<ProfileField> profileFields,
                                     AsyncResponseHandler<Person> handler)
Gets the profile for current user. For details see http://developer.linkedin.com/docs/DOC-1002

Specified by:
getProfileForCurrentUser in interface AsyncHandlerLinkedInApiClient
Parameters:
profileFields - the profile fields

postComment

public void postComment(java.lang.String networkUpdateId,
                        java.lang.String commentText,
                        AsyncResponseHandler<?> handler)
Post comment. For details see http://developer.linkedin.com/docs/DOC-1043

Specified by:
postComment in interface AsyncHandlerLinkedInApiClient
Parameters:
networkUpdateId - the network update id
commentText - the comment text

postNetworkUpdate

public void postNetworkUpdate(java.lang.String updateText,
                              AsyncResponseHandler<?> handler)
Post network update. For details see http://developer.linkedin.com/docs/DOC-1009

Specified by:
postNetworkUpdate in interface AsyncHandlerLinkedInApiClient
Parameters:
updateText - the update text

searchPeople

public void searchPeople(AsyncResponseHandler<People> handler)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Specified by:
searchPeople in interface AsyncHandlerLinkedInApiClient

searchPeople

public void searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
                         AsyncResponseHandler<People> handler)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Specified by:
searchPeople in interface AsyncHandlerLinkedInApiClient
Parameters:
searchParameters - the search parameters

searchPeople

public void searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
                         int start,
                         int count,
                         AsyncResponseHandler<People> handler)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Specified by:
searchPeople in interface AsyncHandlerLinkedInApiClient
Parameters:
searchParameters - the search parameters
start - the start
count - the count

searchPeople

public void searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
                         SearchSortOrder sortOrder,
                         AsyncResponseHandler<People> handler)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Specified by:
searchPeople in interface AsyncHandlerLinkedInApiClient
Parameters:
searchParameters - the search parameters
sortOrder - the sort order

searchPeople

public void searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
                         int start,
                         int count,
                         SearchSortOrder sortOrder,
                         AsyncResponseHandler<People> handler)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Specified by:
searchPeople in interface AsyncHandlerLinkedInApiClient
Parameters:
searchParameters - the search parameters
start - the start
count - the count
sortOrder - the sort order

sendInviteByEmail

public void sendInviteByEmail(java.lang.String email,
                              java.lang.String firstName,
                              java.lang.String lastName,
                              java.lang.String subject,
                              java.lang.String message,
                              AsyncResponseHandler<?> handler)
Send invite. For details see http://developer.linkedin.com/docs/DOC-1012

Specified by:
sendInviteByEmail in interface AsyncHandlerLinkedInApiClient
Parameters:
email - the recepient email
firstName - the first name
lastName - the last name
subject - the subject
message - the message

sendInviteToPerson

public void sendInviteToPerson(Person recepient,
                               java.lang.String subject,
                               java.lang.String message,
                               AsyncResponseHandler<?> handler)
Send invite. For details see http://developer.linkedin.com/docs/DOC-1012

To call this method one needs an auth header parameter. This can be obtained by getting ApiStandardProfileRequest.getHeaders() from Person.getApiStandardProfileRequest() and then getting the value of header with name ApplicationConstants.AUTH_HEADER_NAME.

Specified by:
sendInviteToPerson in interface AsyncHandlerLinkedInApiClient
Parameters:
recepient - the recepient
subject - the subject
message - the message

sendInviteById

public void sendInviteById(java.lang.String recepientId,
                           java.lang.String subject,
                           java.lang.String message,
                           java.lang.String authHeader,
                           AsyncResponseHandler<?> handler)
Send invite. For details see http://developer.linkedin.com/docs/DOC-1012

To call this method one needs an auth header parameter. This can be obtained by getting ApiStandardProfileRequest.getHeaders() from Person.getApiStandardProfileRequest() and then getting the value of header with name ApplicationConstants.AUTH_HEADER_NAME.

Specified by:
sendInviteById in interface AsyncHandlerLinkedInApiClient
Parameters:
recepientId - the recepient id
subject - the subject
message - the message
authHeader - the auth header

sendMessage

public void sendMessage(java.util.List<java.lang.String> recepientIds,
                        java.lang.String subject,
                        java.lang.String message,
                        AsyncResponseHandler<?> handler)
Send message. For details see http://developer.linkedin.com/docs/DOC-1044

Specified by:
sendMessage in interface AsyncHandlerLinkedInApiClient
Parameters:
recepientIds - the recepient ids
subject - the subject
message - the message

updateCurrentStatus

public void updateCurrentStatus(java.lang.String status,
                                AsyncResponseHandler<?> handler)
Update current status. For details see http://developer.linkedin.com/docs/DOC-1007

Specified by:
updateCurrentStatus in interface AsyncHandlerLinkedInApiClient
Parameters:
status - the status

deleteCurrentStatus

public void deleteCurrentStatus(AsyncResponseHandler<?> handler)
Delete current status. For details see http://developer.linkedin.com/docs/DOC-1007

Specified by:
deleteCurrentStatus in interface AsyncHandlerLinkedInApiClient

getAccessToken

public LinkedInAccessToken getAccessToken()
Method description

Specified by:
getAccessToken in interface LinkedInAuthenticationClient
Returns:

getApiConsumer

public LinkedInApiConsumer getApiConsumer()
Method description

Specified by:
getApiConsumer in interface LinkedInAuthenticationClient
Returns:

setAccessToken

public void setAccessToken(LinkedInAccessToken accessToken)
Method description

Specified by:
setAccessToken in interface LinkedInAuthenticationClient

setApiConsumer

public void setApiConsumer(LinkedInApiConsumer apiConsumer)
Method description

Specified by:
setApiConsumer in interface LinkedInAuthenticationClient

setRequestHeaders

public void setRequestHeaders(java.util.Map<java.lang.String,java.lang.String> requestHeaders)
Sets the request headers.

Specified by:
setRequestHeaders in interface LinkedInCommunicationClient
Parameters:
requestHeaders - the request headers

getRequestHeaders

public java.util.Map<java.lang.String,java.lang.String> getRequestHeaders()
Gets the request headers.

Specified by:
getRequestHeaders in interface LinkedInCommunicationClient
Returns:
the request headers

addRequestHeader

public void addRequestHeader(java.lang.String headerName,
                             java.lang.String headerValue)
Adds the request header.

Specified by:
addRequestHeader in interface LinkedInCommunicationClient
Parameters:
headerName - the header name
headerValue - the header value

removeRequestHeader

public void removeRequestHeader(java.lang.String headerName)
Removes the request header.

Specified by:
removeRequestHeader in interface LinkedInCommunicationClient
Parameters:
headerName - the header name