Class GetDelegateRequest
- java.lang.Object
-
- microsoft.exchange.webservices.data.core.request.ServiceRequestBase<T>
-
- microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase<TResponse>
-
- microsoft.exchange.webservices.data.core.request.GetDelegateRequest
-
public class GetDelegateRequest extends SimpleServiceRequestBase<TResponse>
Represents a GetDelegate request.
-
-
Constructor Summary
Constructors Constructor Description GetDelegateRequest(ExchangeService service)Initializes a new instance of the class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GetDelegateResponsecreateResponse()Creates the response.TResponseexecute()Executes this request.booleangetIncludePermissions()Gets a value indicating whether permissions are included.MailboxgetMailbox()Gets the mailbox.protected ExchangeVersiongetMinimumRequiredServerVersion()Gets the request version.protected StringgetResponseXmlElementName()Gets the name of the response XML element.List<UserId>getUserIds()Gets the user ids.StringgetXmlElementName()Gets the name of the XML element.protected TResponseparseResponse(EwsServiceXmlReader reader)Parses the response.voidsetIncludePermissions(boolean includePermissions)Sets the include permissions.voidsetMailbox(Mailbox mailbox)Sets the mailbox.protected voidvalidate()Validate request.protected voidwriteAttributesToXml(EwsServiceXmlWriter writer)Writes XML attribute.protected voidwriteElementsToXml(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
-
-
-
-
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:
writeAttributesToXmlin classServiceRequestBase<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:
getResponseXmlElementNamein classServiceRequestBase<GetDelegateResponse>- Returns:
- XML element name
-
getXmlElementName
public String getXmlElementName()
Gets the name of the XML element.- Specified by:
getXmlElementNamein classServiceRequestBase<GetDelegateResponse>- Returns:
- XML element name
-
getMinimumRequiredServerVersion
protected ExchangeVersion getMinimumRequiredServerVersion()
Gets the request version.- Specified by:
getMinimumRequiredServerVersionin classServiceRequestBase<GetDelegateResponse>- Returns:
- Earliest Exchange version in which this request is supported
-
getUserIds
public List<UserId> getUserIds()
Gets 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, ExceptionValidate request.- Overrides:
validatein classServiceRequestBase<TResponse extends DelegateManagementResponse>- Throws:
ServiceLocalException- the service local exceptionException- the exception
-
parseResponse
protected TResponse parseResponse(EwsServiceXmlReader reader) throws Exception
Parses the response.- Specified by:
parseResponsein classServiceRequestBase<TResponse extends DelegateManagementResponse>- Parameters:
reader- The reader.- Returns:
- the Response Object.
- Throws:
Exception- the exception
-
execute
public TResponse execute() throws ExceptionExecutes this request.- Returns:
- Response object.
- Throws:
Exception- the exception
-
getMailbox
public Mailbox getMailbox()
Gets the mailbox.- Returns:
- the mailbox
-
setMailbox
public void setMailbox(Mailbox mailbox)
Sets the mailbox.- Parameters:
mailbox- the new mailbox
-
-