|
||||||||||
| 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.SimpleServiceRequestBase<ServiceResponseCollection<TResponse>>
microsoft.exchange.webservices.data.core.request.MultiResponseServiceRequest<SubscribeResponse<TSubscription>>
microsoft.exchange.webservices.data.core.request.SubscribeToPullNotificationsRequest
public class SubscribeToPullNotificationsRequest
Represents a "pull" Subscribe request.
| Constructor Summary | |
|---|---|
SubscribeToPullNotificationsRequest(ExchangeService service)
Instantiates a new subscribe to pull notification request. |
|
| Method Summary | |
|---|---|
protected HttpWebRequest |
buildEwsHttpWebRequest()
Builds the HttpWebRequest object for current service request with exception handling. |
protected SubscribeResponse<PullSubscription> |
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 minimum server version required to process this request. |
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. |
int |
getTimeout()
Gets the timeout. |
String |
getWatermark()
Gets the watermark. |
String |
getXmlElementName()
Gets the name of the XML element. |
protected void |
internalWriteElementsToXml(EwsServiceXmlWriter writer)
Reads response elements from XML. |
void |
setTimeOut(int timeout)
Sets the time out. |
void |
setWatermark(String watermark)
Sets the watermark. |
protected void |
validate()
Validate request. |
protected void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes XML elements. |
| Methods inherited from class microsoft.exchange.webservices.data.core.request.MultiResponseServiceRequest |
|---|
endExecute, execute, getErrorHandlingMode, parseResponse |
| Methods inherited from class microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase |
|---|
beginExecute, endInternalExecute, internalExecute |
| Methods inherited from class microsoft.exchange.webservices.data.core.request.ServiceRequestBase |
|---|
buildEwsHttpPoolingWebRequest, getEwsHttpWebResponse, getResponseStream, getService, processWebException, readPreamble, readResponse, readResponse, readSoapFault, throwIfNotSupportedByRequestedServerVersion, traceResponse, validateAndEmitRequest, writeAttributesToXml, writeBodyToXml, writeToXml |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubscribeToPullNotificationsRequest(ExchangeService service)
throws Exception
service - the service
Exception - the exception| Method Detail |
|---|
public int getTimeout()
public void setTimeOut(int timeout)
timeout - the new time out
protected void validate()
throws Exception
Exception - the exception
protected SubscribeResponse<PullSubscription> createServiceResponse(ExchangeService service,
int responseIndex)
throws Exception
createServiceResponse in class MultiResponseServiceRequest<SubscribeResponse<PullSubscription>>service - The service.responseIndex - Index of the response.
Exception - the exceptionprotected ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion in class ServiceRequestBase<ServiceResponseCollection<SubscribeResponse<PullSubscription>>>protected String getSubscriptionXmlElementName()
protected void internalWriteElementsToXml(EwsServiceXmlWriter writer)
throws XMLStreamException,
ServiceXmlSerializationException
writer - the writer
XMLStreamException - the XML stream exception
ServiceXmlSerializationException - the service xml serialization exceptionprotected 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 writer
Exception - the exceptionpublic FolderIdWrapperList getFolderIds()
public List<EventType> getEventTypes()
public String getWatermark()
public void setWatermark(String watermark)
watermark - the new watermark
protected HttpWebRequest buildEwsHttpWebRequest()
throws Exception
ServiceRequestBase
buildEwsHttpWebRequest in class ServiceRequestBase<ServiceResponseCollection<SubscribeResponse<TSubscription extends SubscriptionBase>>>Exception - on error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||