microsoft.exchange.webservices.data
Class SubscriptionBase

java.lang.Object
  extended by microsoft.exchange.webservices.data.SubscriptionBase
Direct Known Subclasses:
PullSubscription, PushSubscription, StreamingSubscription

public abstract class SubscriptionBase
extends java.lang.Object

Represents the base class for event subscriptions.


Constructor Summary
protected SubscriptionBase(ExchangeService service)
          Instantiates a new subscription base.
protected SubscriptionBase(ExchangeService service, java.lang.String id)
          Instantiates a new subscription base.
protected SubscriptionBase(ExchangeService service, java.lang.String id, java.lang.String watermark)
          Instantiates a new subscription base.
 
Method Summary
 java.lang.String getId()
          Gets the id.
protected  ExchangeService getService()
          Gets the session.
protected  boolean getUsesWatermark()
          Gets whether or not this subscription uses watermarks.
 java.lang.String getWaterMark()
          Gets the water mark.
protected  void loadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          Load from xml.
protected  void setId(java.lang.String id)
          Sets the id.
protected  void setWaterMark(java.lang.String watermark)
          Sets the water mark.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscriptionBase

protected SubscriptionBase(ExchangeService service)
                    throws java.lang.Exception
Instantiates a new subscription base.

Parameters:
service - the service
Throws:
java.lang.Exception - the exception

SubscriptionBase

protected SubscriptionBase(ExchangeService service,
                           java.lang.String id)
                    throws java.lang.Exception
Instantiates a new subscription base.

Parameters:
service - the service
id - the id
Throws:
java.lang.Exception - the exception

SubscriptionBase

protected SubscriptionBase(ExchangeService service,
                           java.lang.String id,
                           java.lang.String watermark)
                    throws java.lang.Exception
Instantiates a new subscription base.

Parameters:
service - the service
id - the id
watermark - the watermark
Throws:
java.lang.Exception - the exception
Method Detail

loadFromXml

protected void loadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
                    throws java.lang.Exception
Load from xml.

Parameters:
reader - the reader
Throws:
java.lang.Exception - the exception

getService

protected ExchangeService getService()
Gets the session.

Returns:
the session

getId

public java.lang.String getId()
Gets the id.

Returns:
the id

setId

protected void setId(java.lang.String id)
Sets the id.

Parameters:
id - the new id

setWaterMark

protected void setWaterMark(java.lang.String watermark)
Sets the water mark.

Parameters:
watermark - the new water mark

getWaterMark

public java.lang.String getWaterMark()
Gets the water mark.

Returns:
the water mark

getUsesWatermark

protected boolean getUsesWatermark()
Gets whether or not this subscription uses watermarks.