public class GetStreamingEventsRequest extends HangingServiceRequestBase<GetStreamingEventsResponse>
HangingServiceRequestBase.IHandleResponseObject, HangingServiceRequestBase.IHangingRequestDisconnectHandler
Modifier and Type | Field and Description |
---|---|
protected static int |
HeartbeatFrequencyDefault |
BUFFER_SIZE, heartbeatFrequencyMilliseconds
Constructor and Description |
---|
GetStreamingEventsRequest(ExchangeService service,
HangingServiceRequestBase.IHandleResponseObject serviceObjectHandler,
Iterable<String> subscriptionIds,
int connectionTimeout)
Initializes a new instance of the GetStreamingEventsRequest class.
|
Modifier and Type | Method and Description |
---|---|
protected HttpWebRequest |
buildEwsHttpWebRequest()
Builds the HttpWebRequest object for current service request with exception handling.
|
protected ExchangeVersion |
getMinimumRequiredServerVersion()
Gets the request version.
|
protected String |
getResponseXmlElementName()
Gets the name of the response XML element.
|
String |
getXmlElementName()
Gets the name of the XML element.
|
protected GetStreamingEventsResponse |
parseResponse(EwsServiceXmlReader reader)
Parses the response.
|
protected static void |
setHeartbeatFrequency(int heartbeatFrequency)
region Test hooks
Allow test code to change heartbeat value
|
protected void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes the elements to XML writer.
|
addOnDisconnectEvent, clearDisconnectEvents, disconnect, disconnect, internalExecute, isConnected, isLogAllWireBytes, readPreamble, removeDisconnectEvent, setLogAllWireBytes
buildEwsHttpPoolingWebRequest, getEwsHttpWebResponse, getResponseStream, getService, processWebException, readResponse, readResponse, readSoapFault, throwIfNotSupportedByRequestedServerVersion, traceResponse, validate, validateAndEmitRequest, writeAttributesToXml, writeBodyToXml, writeToXml
protected static final int HeartbeatFrequencyDefault
public GetStreamingEventsRequest(ExchangeService service, HangingServiceRequestBase.IHandleResponseObject serviceObjectHandler, Iterable<String> subscriptionIds, int connectionTimeout) throws ServiceVersionException
service
- The serviceserviceObjectHandler
- The serviceObjectHandlersubscriptionIds
- The subscriptionIdsconnectionTimeout
- The connectionTimeoutServiceVersionException
public String getXmlElementName()
getXmlElementName
in class ServiceRequestBase<GetStreamingEventsResponse>
protected String getResponseXmlElementName()
getResponseXmlElementName
in class ServiceRequestBase<GetStreamingEventsResponse>
protected void writeElementsToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException, XMLStreamException
writeElementsToXml
in class ServiceRequestBase<GetStreamingEventsResponse>
writer
- the writerXMLStreamException
- the XML stream exceptionServiceXmlSerializationException
protected ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion
in class ServiceRequestBase<GetStreamingEventsResponse>
protected GetStreamingEventsResponse parseResponse(EwsServiceXmlReader reader) throws Exception
parseResponse
in class ServiceRequestBase<GetStreamingEventsResponse>
reader
- The reader.Exception
- the exceptionprotected static void setHeartbeatFrequency(int heartbeatFrequency)
protected HttpWebRequest buildEwsHttpWebRequest() throws Exception
ServiceRequestBase
buildEwsHttpWebRequest
in class ServiceRequestBase<GetStreamingEventsResponse>
Exception
- on errorCopyright © 2012–2015 Microsoft. All rights reserved.