Class CreateItemResponse
- java.lang.Object
-
- microsoft.exchange.webservices.data.core.response.ServiceResponse
-
- microsoft.exchange.webservices.data.core.response.CreateItemResponse
-
- All Implemented Interfaces:
IGetObjectInstanceDelegate<ServiceObject>
public final class CreateItemResponse extends ServiceResponse
Represents the response to an individual item creation operation.
-
-
Constructor Summary
Constructors Constructor Description CreateItemResponse(Item item)Initializes a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Item>getItems()Gets the item.protected ItemgetObjectInstance(ExchangeService service, String xmlElementName)Gets Item instance.ServiceObjectgetObjectInstanceDelegate(ExchangeService service, String xmlElementName)Gets the object instance delegate.protected voidloaded()Clears the change log of the created folder if the creation succeeded.protected voidreadElementsFromXml(EwsServiceXmlReader reader)Reads response elements from XML.-
Methods inherited from class microsoft.exchange.webservices.data.core.response.ServiceResponse
getBatchProcessingStopped, getErrorCode, getErrorDetails, getErrorMessage, getErrorProperties, getResult, internalThrowIfNecessary, loadExtraErrorDetailsFromXml, loadFromXml, mapErrorCodeToErrorMessage, parseMessageXml, setErrorMessage, throwIfNecessary
-
-
-
-
Constructor Detail
-
CreateItemResponse
public CreateItemResponse(Item item)
Initializes a new instance.- Parameters:
item- The item.
-
-
Method Detail
-
getObjectInstance
protected Item getObjectInstance(ExchangeService service, String xmlElementName)
Gets Item instance.- Parameters:
service- The service.xmlElementName- Name of the XML element.- Returns:
- the object instance
-
loaded
protected void loaded()
Clears the change log of the created folder if the creation succeeded.- Overrides:
loadedin classServiceResponse
-
getObjectInstanceDelegate
public ServiceObject getObjectInstanceDelegate(ExchangeService service, String xmlElementName) throws Exception
Gets the object instance delegate.- Specified by:
getObjectInstanceDelegatein interfaceIGetObjectInstanceDelegate<ServiceObject>- Parameters:
service- accepts ExchangeServicexmlElementName- accepts String- Returns:
- object
- Throws:
Exception- throws Exception
-
readElementsFromXml
protected void readElementsFromXml(EwsServiceXmlReader reader) throws Exception
Reads response elements from XML.- Overrides:
readElementsFromXmlin classServiceResponse- Parameters:
reader- the reader- Throws:
Exception- the exception
-
-