public abstract class EWSMethod extends org.apache.http.client.methods.HttpPost implements org.apache.http.client.ResponseHandler<EWSMethod>
Modifier and Type | Class and Description |
---|---|
static class |
EWSMethod.Attendee
Meeting attendee object
|
static class |
EWSMethod.Item
Item
|
static class |
EWSMethod.Occurrence
Recurring event occurrence
|
Constructor and Description |
---|
EWSMethod(String itemType,
String methodName)
Build EWS method
|
EWSMethod(String itemType,
String methodName,
String responseCollectionName)
Build EWS method
|
Modifier and Type | Method and Description |
---|---|
protected void |
addAdditionalProperty(FieldURI additionalProperty) |
protected void |
addExtendedPropertyValue(XMLStreamReader reader,
EWSMethod.Item item) |
protected void |
addMethodOption(AttributeOption attributeOption) |
void |
checkSuccess()
Check method success.
|
protected void |
endChanges(Writer writer) |
protected byte[] |
generateSoapEnvelope() |
protected String |
getAttributeValue(XMLStreamReader reader,
String attributeName) |
byte[] |
getMimeContent()
Get response mime content.
|
EWSMethod.Item |
getResponseItem()
Get single response item.
|
List<EWSMethod.Item> |
getResponseItems()
Get response items.
|
String |
getServerVersion()
Get Exchange server version, Exchange2013, Exchange2010 or Exchange2007_SP1
|
int |
getStatusCode() |
protected String |
getTagContent(XMLStreamReader reader) |
protected List<FileAttachment> |
handleAttachments(XMLStreamReader reader) |
protected void |
handleAttendee(XMLStreamReader reader,
EWSMethod.Item item,
String attendeeType) |
protected void |
handleAttendees(XMLStreamReader reader,
EWSMethod.Item item,
String attendeeType) |
protected void |
handleCustom(XMLStreamReader reader) |
protected void |
handleEmailAddresses(XMLStreamReader reader,
EWSMethod.Item item) |
protected void |
handleErrors(XMLStreamReader reader) |
protected FileAttachment |
handleFileAttachment(XMLStreamReader reader) |
protected EWSMethod.Item |
handleItem(XMLStreamReader reader) |
protected void |
handleMember(XMLStreamReader reader,
EWSMethod.Item responseItem) |
protected void |
handleMembers(XMLStreamReader reader,
EWSMethod.Item responseItem) |
protected void |
handleMimeContent(XMLStreamReader reader,
EWSMethod.Item responseItem) |
protected void |
handleModifiedOccurrences(XMLStreamReader reader,
EWSMethod.Item item) |
protected void |
handleOccurrence(XMLStreamReader reader,
EWSMethod.Item item) |
EWSMethod |
handleResponse(org.apache.http.HttpResponse response) |
protected String |
handleTag(XMLStreamReader reader,
String localName) |
protected void |
processResponseStream(InputStream inputStream) |
static String |
responseTypeToPartstat(String responseType)
Convert response type to partstat value
|
protected void |
setFieldOrder(FieldOrder fieldOrder) |
protected void |
setSearchExpression(SearchExpression searchExpression) |
void |
setServerVersion(String serverVersion)
Set Exchange server version, Exchange2010 or Exchange2007_SP1
|
void |
setTimezoneContext(String timezoneContext)
Set Exchange timezone context
|
protected void |
startChanges(Writer writer) |
protected void |
writeAttachmentId(Writer writer) |
protected void |
writeAttachments(Writer writer) |
protected void |
writeFolderId(Writer writer) |
protected void |
writeIndexedPageView(Writer writer) |
protected void |
writeItem(Writer writer) |
protected void |
writeItemId(Writer writer) |
protected void |
writeParentFolderId(Writer writer) |
protected void |
writeParentItemId(Writer writer) |
protected void |
writeRestriction(Writer writer) |
protected void |
writeSavedItemFolderId(Writer writer) |
protected void |
writeShape(Writer writer) |
protected void |
writeSoapBody(Writer writer) |
protected void |
writeSortOrder(Writer writer) |
protected void |
writeToFolderId(Writer writer) |
protected void |
writeUnresolvedEntry(Writer writer) |
protected void |
writeUpdates(Writer writer) |
clone, expectContinue, getEntity, setEntity
getConfig, getProtocolVersion, getRequestLine, getURI, releaseConnection, setConfig, setProtocolVersion, setURI, started, toString
abort, completed, isAborted, reset, setCancellable, setConnectionRequest, setReleaseTrigger
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
protected static final String CONTENT_TYPE
protected static final org.apache.log4j.Logger LOGGER
protected static final int CHUNK_LENGTH
protected FolderQueryTraversal traversal
protected BaseShape baseShape
protected boolean includeMimeContent
protected FolderId folderId
protected FolderId savedItemFolderId
protected FolderId toFolderId
protected FolderId parentFolderId
protected ItemId itemId
protected ItemId parentItemId
protected Disposal deleteType
protected Set<AttributeOption> methodOptions
protected ElementOption unresolvedEntry
protected int maxCount
protected int offset
protected boolean includesLastItemInRange
protected List<FieldUpdate> updates
protected FileAttachment attachment
protected String attachmentId
protected final String itemType
protected final String methodName
protected final String responseCollectionName
protected List<EWSMethod.Item> responseItems
protected String errorDetail
protected String errorDescription
protected String errorValue
protected long backOffMilliseconds
protected EWSMethod.Item item
protected SearchExpression searchExpression
protected FieldOrder fieldOrder
protected String serverVersion
protected String timezoneContext
public EWSMethod(String itemType, String methodName)
itemType
- item typemethodName
- method nameprotected void addAdditionalProperty(FieldURI additionalProperty)
protected void addMethodOption(AttributeOption attributeOption)
protected void setSearchExpression(SearchExpression searchExpression)
protected void setFieldOrder(FieldOrder fieldOrder)
protected void writeShape(Writer writer) throws IOException
IOException
protected void writeItemId(Writer writer) throws IOException
IOException
protected void writeParentItemId(Writer writer) throws IOException
IOException
protected void writeFolderId(Writer writer) throws IOException
IOException
protected void writeSavedItemFolderId(Writer writer) throws IOException
IOException
protected void writeToFolderId(Writer writer) throws IOException
IOException
protected void writeParentFolderId(Writer writer) throws IOException
IOException
protected void writeItem(Writer writer) throws IOException
IOException
protected void writeRestriction(Writer writer) throws IOException
IOException
protected void writeSortOrder(Writer writer) throws IOException
IOException
protected void startChanges(Writer writer) throws IOException
IOException
protected void writeUpdates(Writer writer) throws IOException
IOException
protected void writeUnresolvedEntry(Writer writer) throws IOException
IOException
protected void endChanges(Writer writer) throws IOException
IOException
protected byte[] generateSoapEnvelope()
protected void writeSoapBody(Writer writer) throws IOException
IOException
protected void writeIndexedPageView(Writer writer) throws IOException
IOException
protected void writeAttachmentId(Writer writer) throws IOException
IOException
protected void writeAttachments(Writer writer) throws IOException
IOException
public String getServerVersion()
public void setServerVersion(String serverVersion)
serverVersion
- server versionpublic void setTimezoneContext(String timezoneContext)
timezoneContext
- user timezone contextpublic void checkSuccess() throws EWSException
EWSException
- on errorpublic int getStatusCode()
public List<EWSMethod.Item> getResponseItems() throws EWSException
EWSException
- on errorpublic EWSMethod.Item getResponseItem() throws EWSException
EWSException
- on errorpublic byte[] getMimeContent() throws EWSException
EWSException
- on errorprotected String handleTag(XMLStreamReader reader, String localName) throws XMLStreamException
XMLStreamException
protected void handleErrors(XMLStreamReader reader) throws XMLStreamException
XMLStreamException
protected EWSMethod.Item handleItem(XMLStreamReader reader) throws XMLStreamException
XMLStreamException
protected void handleEmailAddresses(XMLStreamReader reader, EWSMethod.Item item) throws XMLStreamException
XMLStreamException
protected void handleAttendees(XMLStreamReader reader, EWSMethod.Item item, String attendeeType) throws XMLStreamException
XMLStreamException
protected void handleModifiedOccurrences(XMLStreamReader reader, EWSMethod.Item item) throws XMLStreamException
XMLStreamException
protected void handleOccurrence(XMLStreamReader reader, EWSMethod.Item item) throws XMLStreamException
XMLStreamException
protected void handleMembers(XMLStreamReader reader, EWSMethod.Item responseItem) throws XMLStreamException
XMLStreamException
protected void handleMember(XMLStreamReader reader, EWSMethod.Item responseItem) throws XMLStreamException
XMLStreamException
public static String responseTypeToPartstat(String responseType)
responseType
- response typeprotected void handleAttendee(XMLStreamReader reader, EWSMethod.Item item, String attendeeType) throws XMLStreamException
XMLStreamException
protected List<FileAttachment> handleAttachments(XMLStreamReader reader) throws XMLStreamException
XMLStreamException
protected FileAttachment handleFileAttachment(XMLStreamReader reader) throws XMLStreamException
XMLStreamException
protected void handleMimeContent(XMLStreamReader reader, EWSMethod.Item responseItem) throws XMLStreamException
XMLStreamException
protected void addExtendedPropertyValue(XMLStreamReader reader, EWSMethod.Item item) throws XMLStreamException
XMLStreamException
protected String getTagContent(XMLStreamReader reader) throws XMLStreamException
XMLStreamException
protected String getAttributeValue(XMLStreamReader reader, String attributeName)
public EWSMethod handleResponse(org.apache.http.HttpResponse response)
handleResponse
in interface org.apache.http.client.ResponseHandler<EWSMethod>
protected void processResponseStream(InputStream inputStream)
protected void handleCustom(XMLStreamReader reader) throws XMLStreamException
XMLStreamException
Copyright © 2001–2024 MickaĆ«l Guessant. All rights reserved.