microsoft.exchange.webservices.data.core.request
Class SimpleServiceRequestBase<T>

java.lang.Object
  extended by microsoft.exchange.webservices.data.core.request.ServiceRequestBase<T>
      extended by microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase<T>
Direct Known Subclasses:
AddDelegateRequest, DisconnectPhoneCallRequest, FindConversationRequest, GetDelegateRequest, GetInboxRulesRequest, GetPasswordExpirationDateRequest, GetPhoneCallRequest, GetRoomListsRequest, GetRoomsRequest, GetUserAvailabilityRequest, GetUserOofSettingsRequest, MultiResponseServiceRequest, PlayOnPhoneRequest, RemoveDelegateRequest, SetUserOofSettingsRequest, UpdateDelegateRequest, UpdateInboxRulesRequest

public abstract class SimpleServiceRequestBase<T>
extends ServiceRequestBase<T>

Defines the SimpleServiceRequestBase class.


Constructor Summary
protected SimpleServiceRequestBase(ExchangeService service)
          Initializes a new instance of the SimpleServiceRequestBase class.
 
Method Summary
 AsyncRequestResult beginExecute(AsyncCallback callback)
          Begins executing this async request.
protected  T endInternalExecute(IAsyncResult asyncResult)
          Ends executing this async request.
protected  T internalExecute()
          Executes this request.
 
Methods inherited from class microsoft.exchange.webservices.data.core.request.ServiceRequestBase
buildEwsHttpPoolingWebRequest, buildEwsHttpWebRequest, getEwsHttpWebResponse, getMinimumRequiredServerVersion, getResponseStream, getResponseXmlElementName, getService, getXmlElementName, parseResponse, 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

SimpleServiceRequestBase

protected SimpleServiceRequestBase(ExchangeService service)
                            throws Exception
Initializes a new instance of the SimpleServiceRequestBase class.

Throws:
Exception
Method Detail

internalExecute

protected T internalExecute()
                     throws Exception
Executes this request.

Returns:
response object
Throws:
Exception - on error

endInternalExecute

protected T endInternalExecute(IAsyncResult asyncResult)
                        throws Exception
Ends executing this async request.

Parameters:
asyncResult - The async result
Returns:
Service response object
Throws:
Exception - on error

beginExecute

public AsyncRequestResult beginExecute(AsyncCallback callback)
                                throws Exception
Begins executing this async request.

Parameters:
callback - The AsyncCallback delegate.
Returns:
An IAsyncResult that references the asynchronous request.
Throws:
Exception - on error


Copyright © 2012–2015 Microsoft. All rights reserved.