public final class CreateAttachmentRequest extends MultiResponseServiceRequest<CreateAttachmentResponse>
Constructor and Description |
---|
CreateAttachmentRequest(ExchangeService service,
ServiceErrorHandling errorHandlingMode)
Initializes a new instance of the class.
|
Modifier and Type | Method and Description |
---|---|
protected CreateAttachmentResponse |
createServiceResponse(ExchangeService service,
int responseIndex)
Creates the service response.
|
protected boolean |
emitTimeZoneHeader()
Gets a value indicating whether the TimeZoneContext SOAP header should be
emitted.
|
ArrayList<Attachment> |
getAttachments()
Gets the attachments.
|
protected int |
getExpectedResponseMessageCount()
Gets the expected response message count.
|
protected ExchangeVersion |
getMinimumRequiredServerVersion()
Gets the request version.
|
String |
getParentItemId()
Gets the parent item id.
|
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.
|
void |
setParentItemId(String parentItemId)
Sets the parent item id.
|
protected void |
validate()
Validate request..
|
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, writeAttributesToXml, writeBodyToXml, writeToXml
public CreateAttachmentRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) throws Exception
service
- the serviceerrorHandlingMode
- the error handling modeException
public ArrayList<Attachment> getAttachments()
protected void validate() throws Exception
validate
in class ServiceRequestBase<ServiceResponseCollection<CreateAttachmentResponse>>
Exception
- the exceptionprotected int getExpectedResponseMessageCount()
getExpectedResponseMessageCount
in class MultiResponseServiceRequest<CreateAttachmentResponse>
public String getXmlElementName()
getXmlElementName
in class ServiceRequestBase<ServiceResponseCollection<CreateAttachmentResponse>>
protected String getResponseXmlElementName()
getResponseXmlElementName
in class ServiceRequestBase<ServiceResponseCollection<CreateAttachmentResponse>>
protected String getResponseMessageXmlElementName()
getResponseMessageXmlElementName
in class MultiResponseServiceRequest<CreateAttachmentResponse>
protected ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion
in class ServiceRequestBase<ServiceResponseCollection<CreateAttachmentResponse>>
protected boolean emitTimeZoneHeader() throws ServiceLocalException, Exception
ServiceLocalException
Exception
public String getParentItemId()
public void setParentItemId(String parentItemId)
parentItemId
- the new parent item idprotected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
writeElementsToXml
in class ServiceRequestBase<ServiceResponseCollection<CreateAttachmentResponse>>
writer
- the writerException
- the exceptionprotected CreateAttachmentResponse createServiceResponse(ExchangeService service, int responseIndex)
createServiceResponse
in class MultiResponseServiceRequest<CreateAttachmentResponse>
service
- the serviceresponseIndex
- the response indexCopyright © 2012–2015 Microsoft. All rights reserved.