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

java.lang.Object
  extended by microsoft.exchange.webservices.data.core.request.ServiceRequestBase<T>
      extended by microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase<ServiceResponseCollection<TResponse>>
          extended by microsoft.exchange.webservices.data.core.request.MultiResponseServiceRequest<UpdateItemResponse>
              extended by microsoft.exchange.webservices.data.core.request.UpdateItemRequest

public final class UpdateItemRequest
extends MultiResponseServiceRequest<UpdateItemResponse>

The Class UpdateItemRequest.


Constructor Summary
UpdateItemRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode)
          Instantiates a new update item request.
 
Method Summary
protected  UpdateItemResponse createServiceResponse(ExchangeService service, int responseIndex)
          Creates the service response.
 ConflictResolutionMode getConflictResolutionMode()
          Gets the conflict resolution mode.
protected  int getExpectedResponseMessageCount()
          Gets the expected response message count.
 List<Item> getItems()
          Gets the item.
 MessageDisposition getMessageDisposition()
          Gets the message disposition.
protected  ExchangeVersion getMinimumRequiredServerVersion()
          Gets the minimum server version required to process this request.
protected  String getResponseMessageXmlElementName()
          Gets the name of the response message XML element.
protected  String getResponseXmlElementName()
          Gets the name of the response XML element.
 FolderId getSavedItemsDestinationFolder()
          Gets the saved item destination folder.
 SendInvitationsOrCancellationsMode getSendInvitationsOrCancellationsMode()
          Gets the send invitations or cancellations mode.
 String getXmlElementName()
          Gets the name of the XML element.
 void setConflictResolutionMode(ConflictResolutionMode value)
          Sets the conflict resolution mode.
 void setMessageDisposition(MessageDisposition value)
          Sets the message disposition.
 void setSavedItemsDestinationFolder(FolderId value)
          Sets the saved item destination folder.
 void setSendInvitationsOrCancellationsMode(SendInvitationsOrCancellationsMode value)
          Sets the send invitations or cancellations mode.
protected  void validate()
          Validate request.
protected  void writeAttributesToXml(EwsServiceXmlWriter writer)
          Writes XML attribute.
protected  void writeElementsToXml(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateItemRequest

public UpdateItemRequest(ExchangeService service,
                         ServiceErrorHandling errorHandlingMode)
                  throws Exception
Instantiates a new update item request.

Parameters:
service - the service
errorHandlingMode - the error handling mode
Throws:
Exception
Method Detail

validate

protected void validate()
                 throws ServiceLocalException,
                        Exception
Description copied from class: ServiceRequestBase
Validate request.

Overrides:
validate in class ServiceRequestBase<ServiceResponseCollection<UpdateItemResponse>>
Throws:
ServiceLocalException - the service local exception
Exception - the exception

createServiceResponse

protected UpdateItemResponse createServiceResponse(ExchangeService service,
                                                   int responseIndex)
Description copied from class: MultiResponseServiceRequest
Creates the service response.

Specified by:
createServiceResponse in class MultiResponseServiceRequest<UpdateItemResponse>
Parameters:
service - The service.
responseIndex - Index of the response.
Returns:
Service response.

getXmlElementName

public String getXmlElementName()
Description copied from class: ServiceRequestBase
Gets the name of the XML element.

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

getResponseXmlElementName

protected String getResponseXmlElementName()
Description copied from class: ServiceRequestBase
Gets the name of the response XML element.

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

getResponseMessageXmlElementName

protected String getResponseMessageXmlElementName()
Description copied from class: MultiResponseServiceRequest
Gets the name of the response message XML element.

Specified by:
getResponseMessageXmlElementName in class MultiResponseServiceRequest<UpdateItemResponse>
Returns:
XML element name

getExpectedResponseMessageCount

protected int getExpectedResponseMessageCount()
Description copied from class: MultiResponseServiceRequest
Gets the expected response message count.

Specified by:
getExpectedResponseMessageCount in class MultiResponseServiceRequest<UpdateItemResponse>
Returns:
Number of expected response messages.

writeAttributesToXml

protected void writeAttributesToXml(EwsServiceXmlWriter writer)
                             throws ServiceXmlSerializationException
Description copied from class: ServiceRequestBase
Writes XML attribute. Subclass will override if it has XML attribute.

Overrides:
writeAttributesToXml in class ServiceRequestBase<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: ServiceRequestBase
Writes XML elements.

Specified by:
writeElementsToXml in class ServiceRequestBase<ServiceResponseCollection<UpdateItemResponse>>
Parameters:
writer - The writer.
Throws:
Exception - the exception

getMinimumRequiredServerVersion

protected ExchangeVersion getMinimumRequiredServerVersion()
Description copied from class: ServiceRequestBase
Gets the minimum server version required to process this request.

Specified by:
getMinimumRequiredServerVersion in class ServiceRequestBase<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

getItems

public List<Item> getItems()
Gets the item.

Returns:
the item

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


Copyright © 2012–2015 Microsoft. All rights reserved.