public final class DeleteAttachmentRequest extends MultiResponseServiceRequest<DeleteAttachmentResponse>
Constructor and Description |
---|
DeleteAttachmentRequest(ExchangeService service,
ServiceErrorHandling errorHandlingMode)
Initializes a new instance of the DeleteAttachmentRequest class.
|
Modifier and Type | Method and Description |
---|---|
protected DeleteAttachmentResponse |
createServiceResponse(ExchangeService service,
int responseIndex)
Creates the service response.
|
List<Attachment> |
getAttachments()
Gets the attachments.
|
protected int |
getExpectedResponseMessageCount()
Gets the expected response message count.
|
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.
|
String |
getXmlElementName()
Gets the name of the XML element.
|
protected void |
validate()
Validate request.
|
protected void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes XML elements.
|
endExecute, execute, getErrorHandlingMode, parseResponse
beginExecute, endInternalExecute, internalExecute
buildEwsHttpPoolingWebRequest, buildEwsHttpWebRequest, getEwsHttpWebResponse, getResponseStream, getService, processWebException, readPreamble, readResponse, readResponse, readSoapFault, throwIfNotSupportedByRequestedServerVersion, traceResponse, validateAndEmitRequest, writeAttributesToXml, writeBodyToXml, writeToXml
public DeleteAttachmentRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) throws Exception
service
- the serviceerrorHandlingMode
- the error handling modeException
protected void validate()
validate
in class ServiceRequestBase<ServiceResponseCollection<DeleteAttachmentResponse>>
protected DeleteAttachmentResponse createServiceResponse(ExchangeService service, int responseIndex)
createServiceResponse
in class MultiResponseServiceRequest<DeleteAttachmentResponse>
service
- the serviceresponseIndex
- the response indexprotected int getExpectedResponseMessageCount()
getExpectedResponseMessageCount
in class MultiResponseServiceRequest<DeleteAttachmentResponse>
public String getXmlElementName()
getXmlElementName
in class ServiceRequestBase<ServiceResponseCollection<DeleteAttachmentResponse>>
protected String getResponseXmlElementName()
getResponseXmlElementName
in class ServiceRequestBase<ServiceResponseCollection<DeleteAttachmentResponse>>
protected String getResponseMessageXmlElementName()
getResponseMessageXmlElementName
in class MultiResponseServiceRequest<DeleteAttachmentResponse>
protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
writeElementsToXml
in class ServiceRequestBase<ServiceResponseCollection<DeleteAttachmentResponse>>
writer
- the writerException
- the exceptionprotected ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion
in class ServiceRequestBase<ServiceResponseCollection<DeleteAttachmentResponse>>
public List<Attachment> getAttachments()
Copyright © 2012–2015 Microsoft. All rights reserved.