public class OPClient
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
OPClient(java.lang.String loginAtDomain,
java.lang.String password,
java.lang.String devId,
java.lang.String devType,
java.lang.String userAgent,
java.lang.String url) |
Modifier and Type | Method and Description |
---|---|
void |
autodiscover() |
void |
destroy() |
EstimateResponse |
estimate(Folder f) |
SyncResponse |
fetch(java.lang.String sk,
Folder f,
java.lang.String serverId) |
SyncResponse |
fetch(java.lang.String sk,
Folder f,
java.lang.String serverId,
int msEmailBodyType) |
FolderSyncResponse |
folderSync(java.lang.String key) |
ProtocolVersion |
getProtocolVersion() |
SyncResponse |
initialSync(Folder... folders) |
boolean |
isDumpMode() |
void |
options() |
byte[] |
post(java.lang.String namespace,
org.w3c.dom.Document doc,
java.lang.String cmd,
java.lang.String policyKey,
boolean multipart) |
byte[] |
postGetAttachment(java.lang.String attachmentName) |
org.w3c.dom.Document |
postXml(java.lang.String namespace,
org.w3c.dom.Document doc,
java.lang.String cmd) |
org.w3c.dom.Document |
postXml(java.lang.String namespace,
org.w3c.dom.Document doc,
java.lang.String cmd,
java.util.Map<java.lang.String,java.lang.String> headers) |
org.w3c.dom.Document |
postXml(java.lang.String namespace,
org.w3c.dom.Document doc,
java.lang.String cmd,
java.lang.String policyKey,
boolean multipart) |
org.w3c.dom.Document |
postXml(java.lang.String namespace,
org.w3c.dom.Document doc,
java.lang.String cmd,
java.lang.String policyKey,
boolean multipart,
java.util.Map<java.lang.String,java.lang.String> addHeaders) |
void |
setDevType(java.lang.String type) |
void |
setDumpMode(boolean dumpMode) |
void |
setProtocolVersion(ProtocolVersion protocolVersion) |
SettingsResponse |
settings() |
SyncResponse |
sync(org.w3c.dom.Document doc) |
SyncResponse |
syncChanges(java.lang.String sk,
Folder f,
int pageSize) |
SyncResponse |
syncChanges(java.lang.String sk,
Folder f,
int pageSize,
boolean asHTML) |
SyncResponse |
syncChanges(java.lang.String sk,
Folder f,
int pageSize,
java.util.List<java.lang.Long> toFlag) |
public OPClient(java.lang.String loginAtDomain, java.lang.String password, java.lang.String devId, java.lang.String devType, java.lang.String userAgent, java.lang.String url) throws java.lang.Exception
java.lang.Exception
public void setDevType(java.lang.String type)
public void destroy() throws java.lang.Exception
java.lang.Exception
public void autodiscover() throws java.lang.Exception
java.lang.Exception
public void options() throws java.lang.Exception
java.lang.Exception
public FolderSyncResponse folderSync(java.lang.String key) throws java.lang.Exception
java.lang.Exception
public SyncResponse initialSync(Folder... folders) throws java.lang.Exception
java.lang.Exception
public SyncResponse sync(org.w3c.dom.Document doc) throws java.lang.Exception
java.lang.Exception
public EstimateResponse estimate(Folder f) throws java.lang.Exception
java.lang.Exception
public org.w3c.dom.Document postXml(java.lang.String namespace, org.w3c.dom.Document doc, java.lang.String cmd) throws java.lang.Exception
java.lang.Exception
public org.w3c.dom.Document postXml(java.lang.String namespace, org.w3c.dom.Document doc, java.lang.String cmd, java.util.Map<java.lang.String,java.lang.String> headers) throws java.lang.Exception
java.lang.Exception
public org.w3c.dom.Document postXml(java.lang.String namespace, org.w3c.dom.Document doc, java.lang.String cmd, java.lang.String policyKey, boolean multipart) throws java.lang.Exception
java.lang.Exception
public org.w3c.dom.Document postXml(java.lang.String namespace, org.w3c.dom.Document doc, java.lang.String cmd, java.lang.String policyKey, boolean multipart, java.util.Map<java.lang.String,java.lang.String> addHeaders) throws java.lang.Exception
java.lang.Exception
public byte[] post(java.lang.String namespace, org.w3c.dom.Document doc, java.lang.String cmd, java.lang.String policyKey, boolean multipart) throws java.lang.Exception
java.lang.Exception
public byte[] postGetAttachment(java.lang.String attachmentName) throws java.lang.Exception
java.lang.Exception
public ProtocolVersion getProtocolVersion()
public void setProtocolVersion(ProtocolVersion protocolVersion)
public SyncResponse syncChanges(java.lang.String sk, Folder f, int pageSize) throws java.lang.Exception
java.lang.Exception
public SyncResponse syncChanges(java.lang.String sk, Folder f, int pageSize, java.util.List<java.lang.Long> toFlag) throws java.lang.Exception
java.lang.Exception
public SyncResponse syncChanges(java.lang.String sk, Folder f, int pageSize, boolean asHTML) throws java.lang.Exception
java.lang.Exception
public SyncResponse fetch(java.lang.String sk, Folder f, java.lang.String serverId) throws java.lang.Exception
java.lang.Exception
public SyncResponse fetch(java.lang.String sk, Folder f, java.lang.String serverId, int msEmailBodyType) throws java.lang.Exception
java.lang.Exception
public boolean isDumpMode()
public void setDumpMode(boolean dumpMode)
public SettingsResponse settings() throws java.lang.Exception
java.lang.Exception
Copyright © 2021. All Rights Reserved.