TResponse
- The type of the response.public abstract class MultiResponseServiceRequest<TResponse extends ServiceResponse> extends SimpleServiceRequestBase<ServiceResponseCollection<TResponse>>
Modifier | Constructor and Description |
---|---|
protected |
MultiResponseServiceRequest(ExchangeService service,
ServiceErrorHandling errorHandlingMode)
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected abstract TResponse |
createServiceResponse(ExchangeService service,
int responseIndex)
Creates the service response.
|
ServiceResponseCollection<TResponse> |
endExecute(IAsyncResult asyncResult)
Ends executing this async request.
|
ServiceResponseCollection<TResponse> |
execute()
Executes this request.
|
protected ServiceErrorHandling |
getErrorHandlingMode()
Gets a value indicating how errors should be handled.
|
protected abstract int |
getExpectedResponseMessageCount()
Gets the expected response message count.
|
protected abstract String |
getResponseMessageXmlElementName()
Gets the name of the response message XML element.
|
protected ServiceResponseCollection<TResponse> |
parseResponse(EwsServiceXmlReader reader)
Parses the response.
|
beginExecute, endInternalExecute, internalExecute
buildEwsHttpPoolingWebRequest, buildEwsHttpWebRequest, getEwsHttpWebResponse, getMinimumRequiredServerVersion, getResponseStream, getResponseXmlElementName, getService, getXmlElementName, processWebException, readPreamble, readResponse, readResponse, readSoapFault, throwIfNotSupportedByRequestedServerVersion, traceResponse, validate, validateAndEmitRequest, writeAttributesToXml, writeBodyToXml, writeElementsToXml, writeToXml
protected MultiResponseServiceRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) throws Exception
service
- The service.errorHandlingMode
- Indicates how errors should be handled.Exception
protected ServiceResponseCollection<TResponse> parseResponse(EwsServiceXmlReader reader) throws Exception
parseResponse
in class ServiceRequestBase<ServiceResponseCollection<TResponse extends ServiceResponse>>
reader
- The reader.Exception
- the exceptionprotected abstract TResponse createServiceResponse(ExchangeService service, int responseIndex) throws Exception
service
- The service.responseIndex
- Index of the response.Exception
- the exceptionprotected abstract String getResponseMessageXmlElementName()
protected abstract int getExpectedResponseMessageCount()
public ServiceResponseCollection<TResponse> execute() throws Exception
Exception
- the exceptionpublic ServiceResponseCollection<TResponse> endExecute(IAsyncResult asyncResult) throws Exception
asyncResult
- The async resultException
- on errorprotected ServiceErrorHandling getErrorHandlingMode()
Copyright © 2012–2015 Microsoft. All rights reserved.