Class UpdateItemRequest
- java.lang.Object
-
- microsoft.exchange.webservices.data.core.request.ServiceRequestBase<T>
-
- microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase<ServiceResponseCollection<TResponse>>
-
- microsoft.exchange.webservices.data.core.request.MultiResponseServiceRequest<UpdateItemResponse>
-
- microsoft.exchange.webservices.data.core.request.UpdateItemRequest
-
public final class UpdateItemRequest extends MultiResponseServiceRequest<UpdateItemResponse>
The Class UpdateItemRequest.
-
-
Constructor Summary
Constructors Constructor Description UpdateItemRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode)Instantiates a new update item request.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UpdateItemResponsecreateServiceResponse(ExchangeService service, int responseIndex)Creates the service response.ConflictResolutionModegetConflictResolutionMode()Gets the conflict resolution mode.protected intgetExpectedResponseMessageCount()Gets the expected response message count.List<Item>getItems()Gets the item.MessageDispositiongetMessageDisposition()Gets the message disposition.protected ExchangeVersiongetMinimumRequiredServerVersion()Gets the minimum server version required to process this request.protected StringgetResponseMessageXmlElementName()Gets the name of the response message XML element.protected StringgetResponseXmlElementName()Gets the name of the response XML element.FolderIdgetSavedItemsDestinationFolder()Gets the saved item destination folder.SendInvitationsOrCancellationsModegetSendInvitationsOrCancellationsMode()Gets the send invitations or cancellations mode.StringgetXmlElementName()Gets the name of the XML element.voidsetConflictResolutionMode(ConflictResolutionMode value)Sets the conflict resolution mode.voidsetMessageDisposition(MessageDisposition value)Sets the message disposition.voidsetSavedItemsDestinationFolder(FolderId value)Sets the saved item destination folder.voidsetSendInvitationsOrCancellationsMode(SendInvitationsOrCancellationsMode value)Sets the send invitations or cancellations mode.protected voidvalidate()Validate request.protected voidwriteAttributesToXml(EwsServiceXmlWriter writer)Writes XML attribute.protected voidwriteElementsToXml(EwsServiceXmlWriter writer)Writes XML elements.-
Methods inherited from class microsoft.exchange.webservices.data.core.request.MultiResponseServiceRequest
endExecute, execute, getErrorHandlingMode, parseResponse
-
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
-
UpdateItemRequest
public UpdateItemRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) throws Exception
Instantiates a new update item request.- Parameters:
service- the serviceerrorHandlingMode- the error handling mode- Throws:
Exception
-
-
Method Detail
-
validate
protected void validate() throws ServiceLocalException, Exception
Description copied from class:ServiceRequestBaseValidate request.- Overrides:
validatein classServiceRequestBase<ServiceResponseCollection<UpdateItemResponse>>- Throws:
ServiceLocalException- the service local exceptionException- the exception
-
createServiceResponse
protected UpdateItemResponse createServiceResponse(ExchangeService service, int responseIndex)
Description copied from class:MultiResponseServiceRequestCreates the service response.- Specified by:
createServiceResponsein classMultiResponseServiceRequest<UpdateItemResponse>- Parameters:
service- The service.responseIndex- Index of the response.- Returns:
- Service response.
-
getXmlElementName
public String getXmlElementName()
Description copied from class:ServiceRequestBaseGets the name of the XML element.- Specified by:
getXmlElementNamein classServiceRequestBase<ServiceResponseCollection<UpdateItemResponse>>- Returns:
- XML element name
-
getResponseXmlElementName
protected String getResponseXmlElementName()
Description copied from class:ServiceRequestBaseGets the name of the response XML element.- Specified by:
getResponseXmlElementNamein classServiceRequestBase<ServiceResponseCollection<UpdateItemResponse>>- Returns:
- XML element name
-
getResponseMessageXmlElementName
protected String getResponseMessageXmlElementName()
Description copied from class:MultiResponseServiceRequestGets the name of the response message XML element.- Specified by:
getResponseMessageXmlElementNamein classMultiResponseServiceRequest<UpdateItemResponse>- Returns:
- XML element name
-
getExpectedResponseMessageCount
protected int getExpectedResponseMessageCount()
Description copied from class:MultiResponseServiceRequestGets the expected response message count.- Specified by:
getExpectedResponseMessageCountin classMultiResponseServiceRequest<UpdateItemResponse>- Returns:
- Number of expected response messages.
-
writeAttributesToXml
protected void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
Description copied from class:ServiceRequestBaseWrites XML attribute. Subclass will override if it has XML attribute.- Overrides:
writeAttributesToXmlin classServiceRequestBase<ServiceResponseCollection<UpdateItemResponse>>- Parameters:
writer- The writer.- Throws:
ServiceXmlSerializationException- the service xml serialization exception
-
writeElementsToXml
protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
Description copied from class:ServiceRequestBaseWrites XML elements.- Specified by:
writeElementsToXmlin classServiceRequestBase<ServiceResponseCollection<UpdateItemResponse>>- Parameters:
writer- The writer.- Throws:
Exception- the exception
-
getMinimumRequiredServerVersion
protected ExchangeVersion getMinimumRequiredServerVersion()
Description copied from class:ServiceRequestBaseGets the minimum server version required to process this request.- Specified by:
getMinimumRequiredServerVersionin classServiceRequestBase<ServiceResponseCollection<UpdateItemResponse>>- Returns:
- Exchange server version.
-
getMessageDisposition
public MessageDisposition getMessageDisposition()
Gets the message disposition.- Returns:
- the message disposition
-
setMessageDisposition
public void setMessageDisposition(MessageDisposition value)
Sets the message disposition.- Parameters:
value- the new message disposition
-
getConflictResolutionMode
public ConflictResolutionMode getConflictResolutionMode()
Gets the conflict resolution mode.- Returns:
- the conflict resolution mode
-
setConflictResolutionMode
public void setConflictResolutionMode(ConflictResolutionMode value)
Sets the conflict resolution mode.- Parameters:
value- the new conflict resolution mode
-
getSendInvitationsOrCancellationsMode
public SendInvitationsOrCancellationsMode getSendInvitationsOrCancellationsMode()
Gets the send invitations or cancellations mode.- Returns:
- the send invitations or cancellations mode
-
setSendInvitationsOrCancellationsMode
public void setSendInvitationsOrCancellationsMode(SendInvitationsOrCancellationsMode value)
Sets the send invitations or cancellations mode.- Parameters:
value- the new send invitations or cancellations mode
-
getSavedItemsDestinationFolder
public FolderId getSavedItemsDestinationFolder()
Gets the saved item destination folder.- Returns:
- the saved item destination folder
-
setSavedItemsDestinationFolder
public void setSavedItemsDestinationFolder(FolderId value)
Sets the saved item destination folder.- Parameters:
value- the new saved item destination folder
-
-