public final class CreateItemRequest extends MultiResponseServiceRequest<TResponse>
Constructor and Description |
---|
CreateItemRequest(ExchangeService service,
ServiceErrorHandling errorHandlingMode)
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected ServiceResponse |
createServiceResponse(ExchangeService service,
int responseIndex)
Creates the service response.
|
protected int |
getExpectedResponseMessageCount()
Gets the expected response message count.
|
Iterable<TServiceObject> |
getItems()
Gets the item.
|
MessageDisposition |
getMessageDisposition()
Gets the message disposition.
|
protected ExchangeVersion |
getMinimumRequiredServerVersion()
Gets the request version.
|
protected String |
getObjectCollectionXmlElementName()
Gets the name of the object collection XML element.
|
protected Iterable<TServiceObject> |
getObjects()
Gets the service objects.
|
FolderId |
getParentFolderId()
Gets the parent folder id.
|
protected String |
getParentFolderXmlElementName()
Gets the name of the parent folder XML element.
|
protected String |
getResponseMessageXmlElementName()
Gets the name of the response message XML element.
|
protected String |
getResponseXmlElementName()
Gets the name of the response XML element.
|
SendInvitationsMode |
getSendInvitationsMode()
Gets the send invitations mode.
|
String |
getXmlElementName()
Gets the name of the XML element.
|
void |
setItems(Collection<TServiceObject> value)
Gets the item.
|
void |
setMessageDisposition(MessageDisposition value)
Sets the message disposition.
|
protected void |
setObjects(Collection<TServiceObject> value)
Sets the service objects.
|
void |
setParentFolderId(FolderId value)
Sets the parent folder id.
|
void |
setSendInvitationsMode(SendInvitationsMode value)
Sets the send invitations mode.
|
protected void |
validate()
Validate request..
|
protected void |
writeAttributesToXml(EwsServiceXmlWriter writer)
Writes the attribute to XML.
|
protected void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes XML elements.
|
endExecute, execute, getErrorHandlingMode, parseResponse
beginExecute, endInternalExecute, internalExecute
buildEwsHttpPoolingWebRequest, buildEwsHttpWebRequest, getEwsHttpWebResponse, getResponseStream, getService, processWebException, readPreamble, readResponse, readResponse, readSoapFault, throwIfNotSupportedByRequestedServerVersion, traceResponse, validateAndEmitRequest, writeBodyToXml, writeToXml
public CreateItemRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) throws Exception
service
- The service.errorHandlingMode
- Indicates how errors should be handled.Exception
protected ServiceResponse createServiceResponse(ExchangeService service, int responseIndex)
createServiceResponse
in class MultiResponseServiceRequest<ServiceResponse>
service
- the serviceresponseIndex
- the response indexprotected void validate() throws ServiceLocalException, Exception
ServiceLocalException
- the service local exceptionException
- the exceptionprotected ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion
in class ServiceRequestBase<ServiceResponseCollection<ServiceResponse>>
public String getXmlElementName()
getXmlElementName
in class ServiceRequestBase<ServiceResponseCollection<TResponse extends ServiceResponse>>
protected String getResponseXmlElementName()
getResponseXmlElementName
in class ServiceRequestBase<ServiceResponseCollection<TResponse extends ServiceResponse>>
protected String getResponseMessageXmlElementName()
getResponseMessageXmlElementName
in class MultiResponseServiceRequest<TResponse extends ServiceResponse>
protected String getParentFolderXmlElementName()
protected String getObjectCollectionXmlElementName()
protected void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
writeAttributesToXml
in class ServiceRequestBase<ServiceResponseCollection<TResponse extends ServiceResponse>>
writer
- The writer.ServiceXmlSerializationException
- the service xml serialization exceptionpublic MessageDisposition getMessageDisposition()
public void setMessageDisposition(MessageDisposition value)
value
- the new message dispositionpublic SendInvitationsMode getSendInvitationsMode()
public void setSendInvitationsMode(SendInvitationsMode value)
value
- the new send invitations modepublic void setItems(Collection<TServiceObject> value)
value
- the new itemprotected int getExpectedResponseMessageCount()
getExpectedResponseMessageCount
in class MultiResponseServiceRequest<TResponse extends ServiceResponse>
protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
ServiceRequestBase
writeElementsToXml
in class ServiceRequestBase<ServiceResponseCollection<TResponse extends ServiceResponse>>
writer
- The writer.Exception
- the exceptionprotected Iterable<TServiceObject> getObjects()
protected void setObjects(Collection<TServiceObject> value)
value
- Iteratorpublic FolderId getParentFolderId()
public void setParentFolderId(FolderId value)
value
- FolderId.Copyright © 2012–2015 Microsoft. All rights reserved.