public class MoveFolderRequest extends MultiResponseServiceRequest<TResponse>
Constructor and Description |
---|
MoveFolderRequest(ExchangeService service,
ServiceErrorHandling errorHandlingMode)
Initializes a new instance of the MoveFolderRequest class.
|
Modifier and Type | Method and Description |
---|---|
protected MoveCopyFolderResponse |
createServiceResponse(ExchangeService service,
int responseIndex)
Creates the service response.
|
FolderId |
getDestinationFolderId()
Gets the destination folder id.
|
protected int |
getExpectedResponseMessageCount()
Gets the expected response message count.
|
FolderIdWrapperList |
getFolderIds()
Gets the folder ids.
|
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.
|
void |
setDestinationFolderId(FolderId destinationFolderId)
Sets the destination folder id.
|
protected void |
validate()
Validates request.
|
protected void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes XML elements.
|
protected void |
writeIdsToXml(EwsServiceXmlWriter writer)
Writes the ids as 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 MoveFolderRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) throws Exception
service
- The service.errorHandlingMode
- Indicates how errors should be handled.Exception
protected MoveCopyFolderResponse createServiceResponse(ExchangeService service, int responseIndex)
createServiceResponse
in class MultiResponseServiceRequest<MoveCopyFolderResponse>
service
- The service.responseIndex
- Index of the response.public String getXmlElementName()
getXmlElementName
in class ServiceRequestBase<ServiceResponseCollection<MoveCopyFolderResponse>>
protected String getResponseXmlElementName()
getResponseXmlElementName
in class ServiceRequestBase<ServiceResponseCollection<MoveCopyFolderResponse>>
protected String getResponseMessageXmlElementName()
getResponseMessageXmlElementName
in class MultiResponseServiceRequest<MoveCopyFolderResponse>
protected ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion
in class ServiceRequestBase<ServiceResponseCollection<MoveCopyFolderResponse>>
protected void validate() throws Exception
Exception
- the exceptionprotected void writeIdsToXml(EwsServiceXmlWriter writer)
writer
- the writerprotected int getExpectedResponseMessageCount()
getExpectedResponseMessageCount
in class MultiResponseServiceRequest<TResponse extends ServiceResponse>
public FolderIdWrapperList getFolderIds()
protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
writeElementsToXml
in class ServiceRequestBase<ServiceResponseCollection<TResponse extends ServiceResponse>>
writer
- the writerException
- the exceptionpublic FolderId getDestinationFolderId()
public void setDestinationFolderId(FolderId destinationFolderId)
destinationFolderId
- the new destination folder idCopyright © 2012–2015 Microsoft. All rights reserved.