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

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.GetDelegateRequest

public class GetDelegateRequest
extends SimpleServiceRequestBase<TResponse>

Represents a GetDelegate request.


Constructor Summary
GetDelegateRequest(ExchangeService service)
          Initializes a new instance of the class.
 
Method Summary
protected  GetDelegateResponse createResponse()
          Creates the response.
 TResponse execute()
          Executes this request.
 boolean getIncludePermissions()
          Gets a value indicating whether permissions are included.
 Mailbox getMailbox()
          Gets the mailbox.
protected  ExchangeVersion getMinimumRequiredServerVersion()
          Gets the request version.
protected  String getResponseXmlElementName()
          Gets the name of the response XML element.
 List<UserId> getUserIds()
          Gets the user ids.
 String getXmlElementName()
          Gets the name of the XML element.
protected  TResponse parseResponse(EwsServiceXmlReader reader)
          Parses the response.
 void setIncludePermissions(boolean includePermissions)
          Sets the include permissions.
 void setMailbox(Mailbox mailbox)
          Sets the mailbox.
protected  void validate()
          Validate request.
protected  void writeAttributesToXml(EwsServiceXmlWriter writer)
          Writes XML attribute.
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, writeBodyToXml, writeToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetDelegateRequest

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

Parameters:
service - the service
Throws:
Exception
Method Detail

createResponse

protected GetDelegateResponse createResponse()
Creates the response.

Returns:
Service response.

writeAttributesToXml

protected void writeAttributesToXml(EwsServiceXmlWriter writer)
                             throws ServiceXmlSerializationException
Writes XML attribute.

Overrides:
writeAttributesToXml in class ServiceRequestBase<GetDelegateResponse>
Parameters:
writer - the writer
Throws:
ServiceXmlSerializationException - the service xml serialization exception

writeElementsToXml

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

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

getResponseXmlElementName

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

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

getXmlElementName

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

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

getMinimumRequiredServerVersion

protected ExchangeVersion getMinimumRequiredServerVersion()
Gets the request version.

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

getUserIds

public List<UserId> getUserIds()
Gets the user ids. The user ids.

Returns:
the user ids

getIncludePermissions

public boolean getIncludePermissions()
Gets a value indicating whether permissions are included.

Returns:
the include permissions

setIncludePermissions

public void setIncludePermissions(boolean includePermissions)
Sets the include permissions.

Parameters:
includePermissions - the new include permissions

validate

protected void validate()
                 throws ServiceLocalException,
                        Exception
Validate request.

Overrides:
validate in class ServiceRequestBase<TResponse extends DelegateManagementResponse>
Throws:
ServiceLocalException - the service local exception
Exception - the exception

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.