microsoft.exchange.webservices.data.core.request
Class AddDelegateRequest

java.lang.Object
  extended by microsoft.exchange.webservices.data.core.request.ServiceRequestBase<T>
      extended by microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase<TResponse>
          extended by microsoft.exchange.webservices.data.core.request.AddDelegateRequest

public class AddDelegateRequest
extends SimpleServiceRequestBase<TResponse>

Represents an AddDelegate request.


Constructor Summary
AddDelegateRequest(ExchangeService service)
          Initializes a new instance of the class.
 
Method Summary
protected  DelegateManagementResponse createResponse()
          Creates the response.
 TResponse execute()
          Executes this request.
 List<DelegateUser> getDelegateUsers()
          Gets the delegate users.
 Mailbox getMailbox()
          Gets the mailbox.
 MeetingRequestsDeliveryScope getMeetingRequestsDeliveryScope()
          Gets the meeting request delivery scope.
protected  ExchangeVersion getMinimumRequiredServerVersion()
          Gets the request version.
protected  String getResponseXmlElementName()
          Gets the name of the response XML element.
 String getXmlElementName()
          Gets the name of the XML element.
protected  TResponse parseResponse(EwsServiceXmlReader reader)
          Parses the response.
 void setMailbox(Mailbox mailbox)
          Sets the mailbox.
 void setMeetingRequestsDeliveryScope(MeetingRequestsDeliveryScope meetingRequestsDeliveryScope)
          Sets the meeting request delivery scope.
protected  void validate()
          Initializes a new instance of the class.
protected  void writeElementsToXml(EwsServiceXmlWriter writer)
          Writes the elements to XML.
 
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, getResponseStream, getService, processWebException, readPreamble, readResponse, readResponse, readSoapFault, throwIfNotSupportedByRequestedServerVersion, traceResponse, validateAndEmitRequest, writeAttributesToXml, writeBodyToXml, writeToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddDelegateRequest

public AddDelegateRequest(ExchangeService service)
                   throws Exception
Initializes a new instance of the class.

Parameters:
service - the service
Throws:
Exception
Method Detail

validate

protected void validate()
                 throws Exception
Initializes a new instance of the class.

Throws:
Exception - the exception

writeElementsToXml

protected void writeElementsToXml(EwsServiceXmlWriter writer)
                           throws Exception
Writes the elements to XML.

Parameters:
writer - the writer
Throws:
Exception - the exception

getXmlElementName

public String getXmlElementName()
Gets the name of the XML element.

Specified by:
getXmlElementName in class ServiceRequestBase<DelegateManagementResponse>
Returns:
XML element name.

getResponseXmlElementName

protected String getResponseXmlElementName()
Gets the name of the response XML element.

Specified by:
getResponseXmlElementName in class ServiceRequestBase<DelegateManagementResponse>
Returns:
XML element name.

createResponse

protected DelegateManagementResponse createResponse()
Creates the response.

Returns:
Service response.

getMinimumRequiredServerVersion

protected ExchangeVersion getMinimumRequiredServerVersion()
Gets the request version.

Specified by:
getMinimumRequiredServerVersion in class ServiceRequestBase<DelegateManagementResponse>
Returns:
Earliest Exchange version in which this request is supported.

getMeetingRequestsDeliveryScope

public MeetingRequestsDeliveryScope getMeetingRequestsDeliveryScope()
Gets the meeting request delivery scope. The meeting request delivery scope.

Returns:
the meeting request delivery scope

setMeetingRequestsDeliveryScope

public void setMeetingRequestsDeliveryScope(MeetingRequestsDeliveryScope meetingRequestsDeliveryScope)
Sets the meeting request delivery scope.

Parameters:
meetingRequestsDeliveryScope - the new meeting request delivery scope

getDelegateUsers

public List<DelegateUser> getDelegateUsers()
Gets the delegate users. The delegate users.

Returns:
the delegate users

parseResponse

protected TResponse parseResponse(EwsServiceXmlReader reader)
                                                              throws Exception
Parses the response.

Specified by:
parseResponse in class ServiceRequestBase<TResponse extends DelegateManagementResponse>
Parameters:
reader - The reader.
Returns:
the Response Object.
Throws:
Exception - the exception

execute

public TResponse execute()
                                                     throws Exception
Executes this request.

Returns:
Response object.
Throws:
Exception - the exception

getMailbox

public Mailbox getMailbox()
Gets the mailbox. The mailbox.

Returns:
the mailbox

setMailbox

public void setMailbox(Mailbox mailbox)
Sets the mailbox.

Parameters:
mailbox - the new mailbox


Copyright © 2012–2015 Microsoft. All rights reserved.