public final class SendItemRequest extends MultiResponseServiceRequest<ServiceResponse>
Constructor and Description |
---|
SendItemRequest(ExchangeService service,
ServiceErrorHandling errorHandlingMode)
Initializes a new instance of the class.
|
Modifier and Type | Method and Description |
---|---|
protected ServiceResponse |
createServiceResponse(ExchangeService service,
int responseIndex)
Creates the service response.
|
protected int |
getExpectedResponseMessageCount()
Gets the expected response message count.
|
Iterable<Item> |
getItems()
Gets the item.
|
protected ExchangeVersion |
getMinimumRequiredServerVersion()
Gets the request version.
|
protected String |
getResponseMessageXmlElementName()
Gets the name of the response message XML element.
|
protected String |
getResponseXmlElementName()
Gets the name of the response XML element.
|
FolderId |
getSavedCopyDestinationFolderId()
Gets the saved copy destination folder id.
|
String |
getXmlElementName()
Gets the name of the XML element.
|
void |
setItems(Iterable<Item> items)
Sets the item.
|
void |
setSavedCopyDestinationFolderId(FolderId savedCopyDestinationFolderId)
Sets the saved copy destination folder id.
|
protected void |
validate()
Asserts the valid.
|
protected void |
writeAttributesToXml(EwsServiceXmlWriter writer)
Writes the attribute to XML.
|
protected void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes the elements to XML.
|
endExecute, execute, getErrorHandlingMode, parseResponse
beginExecute, endInternalExecute, internalExecute
buildEwsHttpPoolingWebRequest, buildEwsHttpWebRequest, getEwsHttpWebResponse, getResponseStream, getService, processWebException, readPreamble, readResponse, readResponse, readSoapFault, throwIfNotSupportedByRequestedServerVersion, traceResponse, validateAndEmitRequest, writeBodyToXml, writeToXml
public SendItemRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) throws Exception
service
- the serviceerrorHandlingMode
- the error handling modeException
protected void validate() throws Exception
validate
in class ServiceRequestBase<ServiceResponseCollection<ServiceResponse>>
Exception
- the exceptionprotected ServiceResponse createServiceResponse(ExchangeService service, int responseIndex)
createServiceResponse
in class MultiResponseServiceRequest<ServiceResponse>
service
- the serviceresponseIndex
- the response indexprotected int getExpectedResponseMessageCount()
getExpectedResponseMessageCount
in class MultiResponseServiceRequest<ServiceResponse>
public String getXmlElementName()
getXmlElementName
in class ServiceRequestBase<ServiceResponseCollection<ServiceResponse>>
protected String getResponseXmlElementName()
getResponseXmlElementName
in class ServiceRequestBase<ServiceResponseCollection<ServiceResponse>>
protected String getResponseMessageXmlElementName()
getResponseMessageXmlElementName
in class MultiResponseServiceRequest<ServiceResponse>
protected void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
writeAttributesToXml
in class ServiceRequestBase<ServiceResponseCollection<ServiceResponse>>
writer
- the writerServiceXmlSerializationException
- the service xml serialization exceptionprotected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
writeElementsToXml
in class ServiceRequestBase<ServiceResponseCollection<ServiceResponse>>
writer
- the writerException
- the exceptionprotected ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion
in class ServiceRequestBase<ServiceResponseCollection<ServiceResponse>>
public FolderId getSavedCopyDestinationFolderId()
public void setSavedCopyDestinationFolderId(FolderId savedCopyDestinationFolderId)
savedCopyDestinationFolderId
- the new saved copy destination folder idCopyright © 2012–2015 Microsoft. All rights reserved.