|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.core.request.ServiceRequestBase<T>
microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase<ServiceResponseCollection<TResponse>>
microsoft.exchange.webservices.data.core.request.MultiResponseServiceRequest<TResponse>
TResponse - The type of the response.public abstract class MultiResponseServiceRequest<TResponse extends ServiceResponse>
Represents a service request that can have multiple response.
| Constructor Summary | |
|---|---|
protected |
MultiResponseServiceRequest(ExchangeService service,
ServiceErrorHandling errorHandlingMode)
Initializes a new instance. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase |
|---|
beginExecute, endInternalExecute, internalExecute |
| Methods inherited from class microsoft.exchange.webservices.data.core.request.ServiceRequestBase |
|---|
buildEwsHttpPoolingWebRequest, buildEwsHttpWebRequest, getEwsHttpWebResponse, getMinimumRequiredServerVersion, getResponseStream, getResponseXmlElementName, getService, getXmlElementName, processWebException, readPreamble, readResponse, readResponse, readSoapFault, throwIfNotSupportedByRequestedServerVersion, traceResponse, validate, validateAndEmitRequest, writeAttributesToXml, writeBodyToXml, writeElementsToXml, writeToXml |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected MultiResponseServiceRequest(ExchangeService service,
ServiceErrorHandling errorHandlingMode)
throws Exception
service - The service.errorHandlingMode - Indicates how errors should be handled.
Exception| Method Detail |
|---|
protected ServiceResponseCollection<TResponse> parseResponse(EwsServiceXmlReader reader)
throws Exception
parseResponse in class ServiceRequestBase<ServiceResponseCollection<TResponse extends ServiceResponse>>reader - The reader.
Exception - the exception
protected 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 exception
public ServiceResponseCollection<TResponse> endExecute(IAsyncResult asyncResult)
throws Exception
asyncResult - The async result
Exception - on errorprotected ServiceErrorHandling getErrorHandlingMode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||