YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.upnp.protocol.sync.SendingSubscribe Class Reference

Establishing a GENA event subscription with a remote host. More...

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

Public Member Functions

 SendingSubscribe (Registry registry, HttpRequestSender httpRequestSender, RemoteGENASubscription subscription, NetworkAddress activeStreamServers)
 
- Public Member Functions inherited from de.yaacc.upnp.protocol.SendingSync< IN extends StreamRequestMessage, OUT extends StreamResponseMessage >
IN getInputMessage ()
 
OUT getOutputMessage ()
 
String toString ()
 
- Public Member Functions inherited from de.yaacc.upnp.protocol.SendingAsync
void run ()
 

Protected Member Functions

IncomingSubscribeResponseMessage executeSync () throws IOException
 
void onSubscriptionFailure ()
 
- Protected Member Functions inherited from de.yaacc.upnp.protocol.SendingSync< IN extends StreamRequestMessage, OUT extends StreamResponseMessage >
 SendingSync (IN inputMessage)
 
final void execute () throws IOException
 
- Protected Member Functions inherited from de.yaacc.upnp.protocol.SendingAsync

Protected Attributes

final RemoteGENASubscription subscription
 
- Protected Attributes inherited from de.yaacc.upnp.protocol.SendingSync< IN extends StreamRequestMessage, OUT extends StreamResponseMessage >
OUT outputMessage
 

Detailed Description

Establishing a GENA event subscription with a remote host.

Calls the RemoteGENASubscription#establish() method if the subscription request was responded to correctly.

The RemoteGENASubscription#fail(org.fourthline.cling.model.message.UpnpResponse) method will be called if the request failed. No response from the remote host is indicated with a null argument value. Note that this is also the response if the subscription has to be aborted early, when no local stream server for callback URL creation is available. This is the case when the local network transport layer is switched off, subscriptions will fail immediately with no response.

Author
Christian Bauer

Member Function Documentation

◆ executeSync()

IncomingSubscribeResponseMessage de.yaacc.upnp.protocol.sync.SendingSubscribe.executeSync ( ) throws IOException
protected

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