Class SyncResponse<TServiceObject extends ServiceObject,TChange extends Change>
- java.lang.Object
-
- microsoft.exchange.webservices.data.core.response.ServiceResponse
-
- microsoft.exchange.webservices.data.core.response.SyncResponse<TServiceObject,TChange>
-
- Type Parameters:
TServiceObject- ServiceObject type.TChange- Change type.
- Direct Known Subclasses:
SyncFolderHierarchyResponse,SyncFolderItemsResponse
public abstract class SyncResponse<TServiceObject extends ServiceObject,TChange extends Change> extends ServiceResponse
Represents the base response class for synchronuization operations.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSyncResponse(PropertySet propertySet)Initializes a new instance of the class.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract TChangecreateChangeInstance()Creates the change instance.ChangeCollection<TChange>getChanges()Gets a list of changes that occurred on the synchronized folder.protected abstract StringgetIncludesLastInRangeXmlElementName()Gets the name of the includes last in range XML element.protected abstract booleangetSummaryPropertiesOnly()Gets a value indicating whether this request returns full or summary property.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, loaded, loadExtraErrorDetailsFromXml, loadFromXml, mapErrorCodeToErrorMessage, parseMessageXml, setErrorMessage, throwIfNecessary
-
-
-
-
Constructor Detail
-
SyncResponse
protected SyncResponse(PropertySet propertySet)
Initializes a new instance of the class.- Parameters:
propertySet- the property set
-
-
Method Detail
-
getIncludesLastInRangeXmlElementName
protected abstract String getIncludesLastInRangeXmlElementName()
Gets the name of the includes last in range XML element.- Returns:
- XML element name.
-
createChangeInstance
protected abstract TChange createChangeInstance()
Creates the change instance.- Returns:
- TChange instance
-
readElementsFromXml
protected void readElementsFromXml(EwsServiceXmlReader reader) throws ServiceLocalException, Exception
Reads response elements from XML.- Overrides:
readElementsFromXmlin classServiceResponse- Parameters:
reader- the reader- Throws:
ServiceLocalException- the service local exceptionException- the exception
-
getChanges
public ChangeCollection<TChange> getChanges()
Gets a list of changes that occurred on the synchronized folder.- Returns:
- the changes
-
getSummaryPropertiesOnly
protected abstract boolean getSummaryPropertiesOnly()
Gets a value indicating whether this request returns full or summary property.- Returns:
- the summary property only
-
-