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

java.lang.Object
  extended by com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient
      extended by com.google.code.linkedinapi.client.impl.LinkedInApiJaxbClient
All Implemented Interfaces:
LinkedInApiClient, LinkedInAuthenticationClient, LinkedInCommunicationClient

public class LinkedInApiJaxbClient
extends BaseLinkedInApiClient

Author:
Nabeel Mukhtar

Nested Class Summary
private static class LinkedInApiJaxbClient.JaxbElementFactory
           
 
Field Summary
private static javax.xml.bind.JAXBContext JAXB_CONTEXT
          Do not access directly.
private static java.lang.String JAXB_PACKAGE_NAME
          Field description
private static SchemaElementFactory<javax.xml.bind.JAXBElement<?>> OBJECT_FACTORY
          Field description
 
Fields inherited from class com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient
CONNECTION_FIELDS, LOG
 
Constructor Summary
LinkedInApiJaxbClient(java.lang.String consumerKey, java.lang.String consumerSecret)
          Constructs ...
 
Method Summary
protected  LinkedInApiUrls.LinkedInApiUrlBuilder createLinkedInApiUrlBuilder(java.lang.String urlFormat)
          Method description
protected  SchemaElementFactory<?> createObjectFactory()
          Method description
protected  javax.xml.bind.JAXBContext getJaxbContext()
          Method description
protected  java.lang.String marshallObject(java.lang.Object element)
          Method description
protected  void setJaxbContext(javax.xml.bind.JAXBContext context)
          Method description
protected
<T> T
unmarshallObject(java.lang.Class<T> clazz, java.io.InputStream xmlContent)
          Method description
 
Methods inherited from class com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient
addRequestHeader, assertNotNull, assertNotNullOrEmpty, assertNotNullOrEmpty, assertPositiveNumber, callApiMethod, callApiMethod, callApiMethod, callApiMethod, closeConnection, closeStream, convertStreamToString, createLinkedInApiClientException, deleteCurrentStatus, getAccessToken, getApiConsumer, getConnectionsById, getConnectionsById, getConnectionsById, getConnectionsById, getConnectionsById, getConnectionsById, getConnectionsById, getConnectionsById, getConnectionsByUrl, getConnectionsByUrl, getConnectionsByUrl, getConnectionsByUrl, getConnectionsByUrl, getConnectionsByUrl, getConnectionsByUrl, getConnectionsByUrl, getConnectionsForCurrentUser, getConnectionsForCurrentUser, getConnectionsForCurrentUser, getConnectionsForCurrentUser, getConnectionsForCurrentUser, getConnectionsForCurrentUser, getConnectionsForCurrentUser, getConnectionsForCurrentUser, getNetworkUpdateComments, getNetworkUpdateLikes, getNetworkUpdates, getNetworkUpdates, getNetworkUpdates, getNetworkUpdates, getNetworkUpdates, getNetworkUpdates, getNetworkUpdates, getNetworkUpdates, getProfileByApiRequest, getProfileById, getProfileById, getProfileById, getProfileById, getProfileByUrl, getProfileByUrl, getProfileForCurrentUser, getProfileForCurrentUser, getRequestHeaders, getUserUpdates, getUserUpdates, getUserUpdates, getUserUpdates, getUserUpdates, getUserUpdates, getUserUpdates, getWrappedInputStream, isNullOrEmpty, likePost, postComment, postNetworkUpdate, postShare, postShare, readResponse, removeRequestHeader, reShare, searchPeople, searchPeople, searchPeople, searchPeople, searchPeople, searchPeople, searchPeople, searchPeople, searchPeople, searchPeople, searchPeople, searchPeople, searchPeople, searchPeople, searchPeople, searchPeople, searchPeople, searchPeople, searchPeople, searchPeople, searchPeople, searchPeople, searchPeople, searchPeople, searchPeople, sendInviteByEmail, sendInviteById, sendInviteToPerson, sendMessage, setAccessToken, setApiConsumer, setRequestHeaders, unlikePost, updateCurrentStatus, updateCurrentStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAXB_PACKAGE_NAME

private static final java.lang.String JAXB_PACKAGE_NAME
Field description

See Also:
Constant Field Values

OBJECT_FACTORY

private static final SchemaElementFactory<javax.xml.bind.JAXBElement<?>> OBJECT_FACTORY
Field description


JAXB_CONTEXT

private static javax.xml.bind.JAXBContext JAXB_CONTEXT
Do not access directly. It may be null!!!. Use getJaxbContext()

Constructor Detail

LinkedInApiJaxbClient

public LinkedInApiJaxbClient(java.lang.String consumerKey,
                             java.lang.String consumerSecret)
Constructs ...

Parameters:
consumerKey -
consumerSecret -
Method Detail

unmarshallObject

protected <T> T unmarshallObject(java.lang.Class<T> clazz,
                                 java.io.InputStream xmlContent)
Method description

Specified by:
unmarshallObject in class BaseLinkedInApiClient
Type Parameters:
T -
Parameters:
xmlContent -
Returns:

marshallObject

protected java.lang.String marshallObject(java.lang.Object element)
Method description

Specified by:
marshallObject in class BaseLinkedInApiClient
Parameters:
element -
Returns:

createObjectFactory

protected SchemaElementFactory<?> createObjectFactory()
Method description

Specified by:
createObjectFactory in class BaseLinkedInApiClient
Returns:

createLinkedInApiUrlBuilder

protected LinkedInApiUrls.LinkedInApiUrlBuilder createLinkedInApiUrlBuilder(java.lang.String urlFormat)
Method description

Specified by:
createLinkedInApiUrlBuilder in class BaseLinkedInApiClient
Parameters:
urlFormat -
Returns:

getJaxbContext

protected javax.xml.bind.JAXBContext getJaxbContext()
                                             throws javax.xml.bind.JAXBException
Method description

Throws:
javax.xml.bind.JAXBException

setJaxbContext

protected void setJaxbContext(javax.xml.bind.JAXBContext context)
Method description