|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.evernote.clients.ClientFactory
public class ClientFactory
A class to produce User and Note store clients.
| Constructor Summary | |
|---|---|
ClientFactory(EvernoteAuth auth)
|
|
| Method Summary | |
|---|---|
BusinessNoteStoreClient |
createBusinessNoteStoreClient()
Create a new Business NoteStore client. |
LinkedNoteStoreClient |
createLinkedNoteStoreClient(LinkedNotebook linkedNotebook)
Creates a LinkedNoteStoreClient from a LinkedNotebook synchronously |
NoteStoreClient |
createNoteStoreClient()
Create a new NoteStore client. |
UserStoreClient |
createUserStoreClient()
Create a new UserStore client. |
void |
setCustomHeaders(Map<String,String> customHeaders)
Allows custom headers to be defined for the Client connection |
void |
setUserAgent(String userAgent)
Set a custom UserAgent String for the client connection |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientFactory(EvernoteAuth auth)
auth - | Method Detail |
|---|
public UserStoreClient createUserStoreClient()
throws TTransportException
url - to connect to
TTransportException - if an error occurs setting up the connection to the Evernote
service.
public NoteStoreClient createNoteStoreClient()
throws EDAMUserException,
EDAMSystemException,
TException
TException
EDAMSystemException
EDAMUserException
public LinkedNoteStoreClient createLinkedNoteStoreClient(LinkedNotebook linkedNotebook)
throws EDAMUserException,
EDAMSystemException,
TException,
EDAMNotFoundException
LinkedNotebook synchronously
linkedNotebook -
EDAMUserException
EDAMSystemException
TException
EDAMNotFoundException
public BusinessNoteStoreClient createBusinessNoteStoreClient()
throws TException,
EDAMUserException,
EDAMSystemException
TException
EDAMUserException
EDAMSystemException - User is not part of a businesspublic void setUserAgent(String userAgent)
userAgent - public void setCustomHeaders(Map<String,String> customHeaders)
customHeaders -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||