public class SubscribeToStreamingNotificationsRequest extends MultiResponseServiceRequest<SubscribeResponse<TSubscription>>
Constructor and Description |
---|
SubscribeToStreamingNotificationsRequest(ExchangeService service)
Initializes a new instance of the
SubscribeToStreamingNotificationsRequest class.
|
Modifier and Type | Method and Description |
---|---|
protected HttpWebRequest |
buildEwsHttpWebRequest()
Builds the HttpWebRequest object for current service request with exception handling.
|
protected SubscribeResponse<StreamingSubscription> |
createServiceResponse(ExchangeService service,
int responseIndex)
Creates the service response.
|
List<EventType> |
getEventTypes()
Gets the event types.
|
protected int |
getExpectedResponseMessageCount()
Gets the expected response message count.
|
FolderIdWrapperList |
getFolderIds()
Gets the folder ids.
|
protected ExchangeVersion |
getMinimumRequiredServerVersion()
Gets the request version.
|
protected String |
getResponseMessageXmlElementName()
Gets the name of the response message XML element.
|
protected String |
getResponseXmlElementName()
Gets the name of the response XML element.
|
protected String |
getSubscriptionXmlElementName()
Gets the name of the subscription XML element.
|
String |
getWatermark()
Gets the watermark.
|
String |
getXmlElementName()
Gets the name of the XML element.
|
protected void |
internalWriteElementsToXml(EwsServiceXmlWriter writer)
Internals the write elements to XML.
|
void |
setWatermark(String watermark)
Sets the watermark.
|
protected void |
validate()
Validate request.
|
protected void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes XML elements.
|
endExecute, execute, getErrorHandlingMode, parseResponse
beginExecute, endInternalExecute, internalExecute
buildEwsHttpPoolingWebRequest, getEwsHttpWebResponse, getResponseStream, getService, processWebException, readPreamble, readResponse, readResponse, readSoapFault, throwIfNotSupportedByRequestedServerVersion, traceResponse, validateAndEmitRequest, writeAttributesToXml, writeBodyToXml, writeToXml
public SubscribeToStreamingNotificationsRequest(ExchangeService service) throws Exception
service
- The serviceException
protected String getSubscriptionXmlElementName()
protected void internalWriteElementsToXml(EwsServiceXmlWriter writer)
writer
- The writerprotected SubscribeResponse<StreamingSubscription> createServiceResponse(ExchangeService service, int responseIndex) throws Exception
createServiceResponse
in class MultiResponseServiceRequest<SubscribeResponse<StreamingSubscription>>
service
- The serviceresponseIndex
- The responseIndexException
protected ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion
in class ServiceRequestBase<ServiceResponseCollection<SubscribeResponse<StreamingSubscription>>>
protected int getExpectedResponseMessageCount()
getExpectedResponseMessageCount
in class MultiResponseServiceRequest<SubscribeResponse<TSubscription extends SubscriptionBase>>
public String getXmlElementName()
getXmlElementName
in class ServiceRequestBase<ServiceResponseCollection<SubscribeResponse<TSubscription extends SubscriptionBase>>>
protected String getResponseXmlElementName()
getResponseXmlElementName
in class ServiceRequestBase<ServiceResponseCollection<SubscribeResponse<TSubscription extends SubscriptionBase>>>
protected String getResponseMessageXmlElementName()
getResponseMessageXmlElementName
in class MultiResponseServiceRequest<SubscribeResponse<TSubscription extends SubscriptionBase>>
protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
writeElementsToXml
in class ServiceRequestBase<ServiceResponseCollection<SubscribeResponse<TSubscription extends SubscriptionBase>>>
writer
- the writerException
- the exceptionpublic FolderIdWrapperList getFolderIds()
public List<EventType> getEventTypes()
public String getWatermark()
public void setWatermark(String watermark)
watermark
- the new watermarkprotected HttpWebRequest buildEwsHttpWebRequest() throws Exception
ServiceRequestBase
buildEwsHttpWebRequest
in class ServiceRequestBase<ServiceResponseCollection<SubscribeResponse<TSubscription extends SubscriptionBase>>>
Exception
- on errorCopyright © 2012–2015 Microsoft. All rights reserved.