|
||||||||||
| 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.SubscribeToPushNotificationsRequest
public class SubscribeToPushNotificationsRequest
The Class SubscribeToPushNotificationsRequest.
| Constructor Summary | |
|---|---|
SubscribeToPushNotificationsRequest(ExchangeService service)
Instantiates a new subscribe to push notification request. |
|
| Method Summary | |
|---|---|
protected HttpWebRequest |
buildEwsHttpWebRequest()
Builds the HttpWebRequest object for current service request with exception handling. |
protected SubscribeResponse<PushSubscription> |
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. |
int |
getFrequency()
Gets the frequency. |
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. |
URI |
getUrl()
Gets the url. |
String |
getWatermark()
Gets the watermark. |
String |
getXmlElementName()
Gets the name of the XML element. |
protected void |
internalWriteElementsToXml(EwsServiceXmlWriter writer)
Internal method to write XML elements. |
void |
setFrequency(int frequency)
Sets the frequency. |
void |
setUrl(URI url)
Sets the url. |
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 SubscribeToPushNotificationsRequest(ExchangeService service)
throws Exception
service - the service
Exception| Method Detail |
|---|
protected void validate()
throws Exception
Exception - the exceptionprotected String getSubscriptionXmlElementName()
protected void internalWriteElementsToXml(EwsServiceXmlWriter writer)
throws XMLStreamException,
ServiceXmlSerializationException
writer - the writer
XMLStreamException - the XML stream exception
ServiceXmlSerializationException - the service xml serialization exception
protected SubscribeResponse<PushSubscription> createServiceResponse(ExchangeService service,
int responseIndex)
throws Exception
MultiResponseServiceRequest
createServiceResponse in class MultiResponseServiceRequest<SubscribeResponse<PushSubscription>>service - The service.responseIndex - Index of the response.
Exception - the exceptionprotected ExchangeVersion getMinimumRequiredServerVersion()
ServiceRequestBase
getMinimumRequiredServerVersion in class ServiceRequestBase<ServiceResponseCollection<SubscribeResponse<PushSubscription>>>public int getFrequency()
public void setFrequency(int frequency)
frequency - the new frequencypublic URI getUrl()
public void setUrl(URI url)
url - the new urlprotected 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 | |||||||||