Class UpdateDelegateRequest
- 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.UpdateDelegateRequest
-
public class UpdateDelegateRequest extends SimpleServiceRequestBase<TResponse>
Represents an UpdateDelegate request.
-
-
Constructor Summary
Constructors Constructor Description UpdateDelegateRequest(ExchangeService service)Initializes a new instance of the class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DelegateManagementResponsecreateResponse()Creates the response.TResponseexecute()Executes this request.List<DelegateUser>getDelegateUsers()Gets the delegate users.MailboxgetMailbox()Gets the mailbox.MeetingRequestsDeliveryScopegetMeetingRequestsDeliveryScope()Gets the meeting request delivery scope.protected ExchangeVersiongetMinimumRequiredServerVersion()Gets the request version.protected StringgetResponseXmlElementName()Gets the name of the response XML element.StringgetXmlElementName()Gets the name of the XML element.protected TResponseparseResponse(EwsServiceXmlReader reader)Parses the response.voidsetMailbox(Mailbox mailbox)Sets the mailbox.voidsetMeetingRequestsDeliveryScope(MeetingRequestsDeliveryScope value)Sets the meeting request delivery scope.protected voidvalidate()Validate request.protected voidwriteElementsToXml(EwsServiceXmlWriter writer)Writes XML elements.-
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
-
-
-
-
Constructor Detail
-
UpdateDelegateRequest
public UpdateDelegateRequest(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
Validate request.- Throws:
Exception- the exception
-
writeElementsToXml
protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
Writes XML elements.- Parameters:
writer- the writer- Throws:
Exception- the exception
-
getResponseXmlElementName
protected String getResponseXmlElementName()
Gets the name of the response XML element.- Specified by:
getResponseXmlElementNamein classServiceRequestBase<DelegateManagementResponse>- Returns:
- XML element name.
-
createResponse
protected DelegateManagementResponse createResponse()
Creates the response.- Returns:
- Response object.
-
getXmlElementName
public String getXmlElementName()
Gets the name of the XML element.- Specified by:
getXmlElementNamein classServiceRequestBase<DelegateManagementResponse>- Returns:
- Xml element name.
-
getMinimumRequiredServerVersion
protected ExchangeVersion getMinimumRequiredServerVersion()
Gets the request version.- Specified by:
getMinimumRequiredServerVersionin classServiceRequestBase<DelegateManagementResponse>- Returns:
- Earliest Exchange version in which this request is supported.
-
getMeetingRequestsDeliveryScope
public MeetingRequestsDeliveryScope getMeetingRequestsDeliveryScope()
Gets the meeting request delivery scope.- Returns:
- the meeting request delivery scope
-
setMeetingRequestsDeliveryScope
public void setMeetingRequestsDeliveryScope(MeetingRequestsDeliveryScope value)
Sets the meeting request delivery scope.- Parameters:
value- the new meeting request delivery scope
-
getDelegateUsers
public List<DelegateUser> getDelegateUsers()
Gets the delegate users.- Returns:
- the delegate users
-
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
-
-