|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.core.request.ServiceRequestBase<T>
microsoft.exchange.webservices.data.core.request.HangingServiceRequestBase<T>
public abstract class HangingServiceRequestBase<T>
Represents an abstract, hanging service request.
| Nested Class Summary | |
|---|---|
static interface |
HangingServiceRequestBase.IHandleResponseObject
|
static interface |
HangingServiceRequestBase.IHangingRequestDisconnectHandler
|
| Field Summary | |
|---|---|
static int |
BUFFER_SIZE
|
protected int |
heartbeatFrequencyMilliseconds
Expected minimum frequency in response, in milliseconds. |
| Constructor Summary | |
|---|---|
protected |
HangingServiceRequestBase(ExchangeService service,
HangingServiceRequestBase.IHandleResponseObject handler,
int heartbeatFrequency)
Initializes a new instance of the HangingServiceRequestBase class. |
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class microsoft.exchange.webservices.data.core.request.ServiceRequestBase |
|---|
buildEwsHttpPoolingWebRequest, buildEwsHttpWebRequest, getEwsHttpWebResponse, getMinimumRequiredServerVersion, getResponseStream, getResponseXmlElementName, getService, getXmlElementName, parseResponse, processWebException, readResponse, readResponse, readSoapFault, throwIfNotSupportedByRequestedServerVersion, traceResponse, validate, validateAndEmitRequest, writeAttributesToXml, writeBodyToXml, writeElementsToXml, writeToXml |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BUFFER_SIZE
protected int heartbeatFrequencyMilliseconds
| Constructor Detail |
|---|
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| Method Detail |
|---|
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
Exceptionpublic 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||