Class SubscriptionBase
- java.lang.Object
-
- microsoft.exchange.webservices.data.notification.SubscriptionBase
-
- Direct Known Subclasses:
PullSubscription,PushSubscription,StreamingSubscription
public abstract class SubscriptionBase extends Object
Represents the base class for event subscriptions.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSubscriptionBase(ExchangeService service)Instantiates a new subscription base.protectedSubscriptionBase(ExchangeService service, String id)Instantiates a new subscription base.protectedSubscriptionBase(ExchangeService service, String id, String watermark)Instantiates a new subscription base.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()Gets the id.protected ExchangeServicegetService()Gets the session.protected booleangetUsesWatermark()Gets whether or not this subscription uses watermarks.StringgetWaterMark()Gets the water mark.voidloadFromXml(EwsServiceXmlReader reader)Load from xml.protected voidsetId(String id)Sets the id.protected voidsetWaterMark(String watermark)Sets the water mark.
-
-
-
Constructor Detail
-
SubscriptionBase
protected SubscriptionBase(ExchangeService service) throws Exception
Instantiates a new subscription base.- Parameters:
service- the service- Throws:
Exception- the exception
-
SubscriptionBase
protected SubscriptionBase(ExchangeService service, String id) throws Exception
Instantiates a new subscription base.- Parameters:
service- the serviceid- the id- Throws:
Exception- the exception
-
SubscriptionBase
protected SubscriptionBase(ExchangeService service, String id, String watermark) throws Exception
Instantiates a new subscription base.- Parameters:
service- the serviceid- the idwatermark- the watermark- Throws:
Exception- the exception
-
-
Method Detail
-
loadFromXml
public void loadFromXml(EwsServiceXmlReader reader) throws Exception
Load from xml.- Parameters:
reader- the reader- Throws:
Exception- the exception
-
getService
protected ExchangeService getService()
Gets the session.- Returns:
- the session
-
setWaterMark
protected void setWaterMark(String watermark)
Sets the water mark.- Parameters:
watermark- the new water mark
-
getWaterMark
public String getWaterMark()
Gets the water mark.- Returns:
- the water mark
-
getUsesWatermark
protected boolean getUsesWatermark()
Gets whether or not this subscription uses watermarks.
-
-