YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
de.yaacc.upnp.protocol.sync.ReceivingSubscribe Class Reference

Handles reception of GENA event subscription (initial and renewal) messages. More...

Inheritance diagram for de.yaacc.upnp.protocol.sync.ReceivingSubscribe:
Inheritance graph
Collaboration diagram for de.yaacc.upnp.protocol.sync.ReceivingSubscribe:
Collaboration graph

Public Member Functions

 ReceivingSubscribe (Registry registry, HttpRequestSender httpRequestSender, StreamRequestMessage inputMessage)
 
void responseSent (StreamResponseMessage responseMessage)
 
void responseException (Throwable t)
 
- Public Member Functions inherited from de.yaacc.upnp.protocol.ReceivingSync< StreamRequestMessage, OutgoingSubscribeResponseMessage >
OUT getOutputMessage ()
 
void responseSent (StreamResponseMessage responseMessage)
 Called by the client of this protocol after the returned response has been successfully delivered.
 
void responseException (Throwable t)
 Called by the client of this protocol if the returned response was not delivered.
 
RemoteClientInfo getRemoteClientInfo ()
 
String toString ()
 

Protected Member Functions

OutgoingSubscribeResponseMessage executeSync () throws IOException
 
OutgoingSubscribeResponseMessage processRenewal (LocalService service, IncomingSubscribeRequestMessage requestMessage)
 
OutgoingSubscribeResponseMessage processNewSubscription (LocalService service, IncomingSubscribeRequestMessage requestMessage)
 
- Protected Member Functions inherited from de.yaacc.upnp.protocol.ReceivingSync< StreamRequestMessage, OutgoingSubscribeResponseMessage >
 ReceivingSync (IN inputMessage)
 
final void execute () throws IOException
 
abstract OUT executeSync () throws IOException
 

Protected Attributes

LocalGENASubscription subscription
 
- Protected Attributes inherited from de.yaacc.upnp.protocol.ReceivingSync< StreamRequestMessage, OutgoingSubscribeResponseMessage >
final RemoteClientInfo remoteClientInfo
 
OUT outputMessage
 

Detailed Description

Handles reception of GENA event subscription (initial and renewal) messages.

This protocol tries to find a local event subscription URI matching the requested URI, then creates a new LocalGENASubscription if no subscription identifer was supplied.

The subscription is however only registered with the local service, and monitoring of state changes is established, if the response of this protocol was successfully delivered to the client which requested the subscription.

Once registration and monitoring is active, an initial event with the current state of the service is send to the subscriber. This will only happen after the subscription response message was successfully delivered to the subscriber.

Author
Christian Bauer

The documentation for this class was generated from the following file: