public abstract class HangingServiceRequestBase<T> extends ServiceRequestBase<T>
Modifier and Type | Class and Description |
---|---|
static interface |
HangingServiceRequestBase.IHandleResponseObject |
static interface |
HangingServiceRequestBase.IHangingRequestDisconnectHandler |
Modifier and Type | Field and Description |
---|---|
static int |
BUFFER_SIZE |
protected int |
heartbeatFrequencyMilliseconds
Expected minimum frequency in response, in milliseconds.
|
Modifier | Constructor and Description |
---|---|
protected |
HangingServiceRequestBase(ExchangeService service,
HangingServiceRequestBase.IHandleResponseObject handler,
int heartbeatFrequency)
Initializes a new instance of the HangingServiceRequestBase class.
|
Modifier and Type | Method and Description |
---|---|
void |
addOnDisconnectEvent(HangingServiceRequestBase.IHangingRequestDisconnectHandler disconnect)
Set event to happen when property disconnect.
|
protected void |
clearDisconnectEvents()
Clears disconnect events list.
|
void |
disconnect()
Disconnects the request.
|
void |
disconnect(HangingRequestDisconnectReason reason,
Exception exception)
Disconnects the request with the specified reason and exception.
|
void |
internalExecute()
Exectures the request.
|
boolean |
isConnected()
Gets a value indicating whether this instance is connected.
|
static boolean |
isLogAllWireBytes() |
protected void |
readPreamble(EwsServiceXmlReader ewsXmlReader)
Reads any preamble data not part of the core response.
|
protected void |
removeDisconnectEvent(HangingServiceRequestBase.IHangingRequestDisconnectHandler disconnect)
Remove the event from happening when property disconnect.
|
static void |
setLogAllWireBytes(boolean logAllWireBytes) |
buildEwsHttpPoolingWebRequest, buildEwsHttpWebRequest, getEwsHttpWebResponse, getMinimumRequiredServerVersion, getResponseStream, getResponseXmlElementName, getService, getXmlElementName, parseResponse, processWebException, readResponse, readResponse, readSoapFault, throwIfNotSupportedByRequestedServerVersion, traceResponse, validate, validateAndEmitRequest, writeAttributesToXml, writeBodyToXml, writeElementsToXml, writeToXml
public static final int BUFFER_SIZE
protected int heartbeatFrequencyMilliseconds
protected HangingServiceRequestBase(ExchangeService service, HangingServiceRequestBase.IHandleResponseObject handler, int heartbeatFrequency) throws ServiceVersionException
service
- The service.handler
- Callback delegate to handle response objectsheartbeatFrequency
- Frequency at which we expect heartbeats, in milliseconds.ServiceVersionException
public static boolean isLogAllWireBytes()
public static void setLogAllWireBytes(boolean logAllWireBytes)
public void addOnDisconnectEvent(HangingServiceRequestBase.IHangingRequestDisconnectHandler disconnect)
disconnect
- disconnect eventprotected void removeDisconnectEvent(HangingServiceRequestBase.IHangingRequestDisconnectHandler disconnect)
disconnect
- disconnect eventprotected void clearDisconnectEvents()
public void internalExecute() throws Exception
Exception
public boolean isConnected()
public void disconnect()
public void disconnect(HangingRequestDisconnectReason reason, Exception exception)
reason
- The reason.exception
- The exception.protected void readPreamble(EwsServiceXmlReader ewsXmlReader) throws Exception
readPreamble
in class ServiceRequestBase<T>
ewsXmlReader
- The EwsServiceXmlReader.Exception
Copyright © 2012–2015 Microsoft. All rights reserved.