Class Rice::Subscriber::Subscriber
In: subscriber/subscriber.rb
Parent: ICEMachine
Methods
makeRequestPackage    new    requestSubscriptionContents    retrieveContentFrom    serviceRequest   
Public Class methods
new(session, response=nil)

If we have a session object, reads id and subscriptions from session. If not, generate a new uuid.

Public Instance methods
requestSubscriptionContents(subscriptionId)

Request, receive, and return contents of subscription with specified subscription id.

makeRequestPackage(subscriptionId)
retrieveContentFrom(reply, requestId)

Returns the content to which we have subscribed. Handles either ice-item-ref (a URL) or ice-item (the actual text). If an error code other than 2XX is returned, text containing the error message is returned instead.

serviceRequest(xml)

Services the request contained in the specified xml and replies with XML that is either the reply we want to send or an error message.