YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
org.fourthline.cling.protocol.ProtocolFactoryImpl Class Reference

Default implementation, directly instantiates the appropriate protocols. More...

Inheritance diagram for org.fourthline.cling.protocol.ProtocolFactoryImpl:
Inheritance graph
Collaboration diagram for org.fourthline.cling.protocol.ProtocolFactoryImpl:
Collaboration graph

Public Member Functions

 ProtocolFactoryImpl (UpnpService upnpService)
 
UpnpService getUpnpService ()
 
ReceivingAsync createReceivingAsync (IncomingDatagramMessage message) throws ProtocolCreationException
 Creates a org.fourthline.cling.protocol.async.ReceivingNotification, org.fourthline.cling.protocol.async.ReceivingSearch, or org.fourthline.cling.protocol.async.ReceivingSearchResponse protocol.
 
ReceivingSync createReceivingSync (StreamRequestMessage message) throws ProtocolCreationException
 Creates a org.fourthline.cling.protocol.sync.ReceivingRetrieval, org.fourthline.cling.protocol.sync.ReceivingAction, org.fourthline.cling.protocol.sync.ReceivingSubscribe, org.fourthline.cling.protocol.sync.ReceivingUnsubscribe, or org.fourthline.cling.protocol.sync.ReceivingEvent protocol.
 
SendingNotificationAlive createSendingNotificationAlive (LocalDevice localDevice)
 Called by the org.fourthline.cling.registry.Registry, creates a protocol for announcing local devices.
 
SendingNotificationByebye createSendingNotificationByebye (LocalDevice localDevice)
 Called by the org.fourthline.cling.registry.Registry, creates a protocol for announcing local devices.
 
SendingSearch createSendingSearch (UpnpHeader searchTarget, int mxSeconds)
 Called by the org.fourthline.cling.controlpoint.ControlPoint, creates a protocol for a multicast search.
 
SendingAction createSendingAction (ActionInvocation actionInvocation, URL controlURL)
 Called by the org.fourthline.cling.controlpoint.ControlPoint, creates a protocol for executing an action.
 
SendingSubscribe createSendingSubscribe (RemoteGENASubscription subscription) throws ProtocolCreationException
 Called by the org.fourthline.cling.controlpoint.ControlPoint, creates a protocol for GENA subscription.
 
SendingRenewal createSendingRenewal (RemoteGENASubscription subscription)
 Called by the org.fourthline.cling.controlpoint.ControlPoint, creates a protocol for GENA renewal.
 
SendingUnsubscribe createSendingUnsubscribe (RemoteGENASubscription subscription)
 Called by the org.fourthline.cling.controlpoint.ControlPoint, creates a protocol for GENA unsubscription.
 
SendingEvent createSendingEvent (LocalGENASubscription subscription)
 Called by the org.fourthline.cling.model.gena.GENASubscription, creates a protocol for sending GENA events.
 

Protected Member Functions

ReceivingAsync createReceivingNotification (IncomingDatagramMessage< UpnpRequest > incomingRequest)
 
ReceivingAsync createReceivingSearch (IncomingDatagramMessage< UpnpRequest > incomingRequest)
 
ReceivingAsync createReceivingSearchResponse (IncomingDatagramMessage< UpnpResponse > incomingResponse)
 
boolean isByeBye (IncomingDatagramMessage message)
 
boolean isSsdpAlive (IncomingDatagramMessage message)
 
boolean isSupportedServiceAdvertisement (IncomingDatagramMessage message)
 
ReceivingRetrieval createReceivingRetrieval (StreamRequestMessage message)
 
ReceivingAction createReceivingAction (StreamRequestMessage message)
 
ReceivingSubscribe createReceivingSubscribe (StreamRequestMessage message)
 
ReceivingUnsubscribe createReceivingUnsubscribe (StreamRequestMessage message)
 
ReceivingEvent createReceivingEvent (StreamRequestMessage message)
 

Protected Attributes

final UpnpService upnpService
 

Detailed Description

Default implementation, directly instantiates the appropriate protocols.

Author
Christian Bauer

Member Function Documentation

◆ createReceivingAsync()

ReceivingAsync org.fourthline.cling.protocol.ProtocolFactoryImpl.createReceivingAsync ( IncomingDatagramMessage  message) throws ProtocolCreationException

Creates a org.fourthline.cling.protocol.async.ReceivingNotification, org.fourthline.cling.protocol.async.ReceivingSearch, or org.fourthline.cling.protocol.async.ReceivingSearchResponse protocol.

Parameters
messageThe incoming message, either org.fourthline.cling.model.message.UpnpRequest or org.fourthline.cling.model.message.UpnpResponse.
Returns
The appropriate protocol that handles the messages or null if the message should be dropped.
Exceptions
ProtocolCreationExceptionIf no protocol could be found for the message.

Implements org.fourthline.cling.protocol.ProtocolFactory.

◆ createReceivingSync()

ReceivingSync org.fourthline.cling.protocol.ProtocolFactoryImpl.createReceivingSync ( StreamRequestMessage  requestMessage) throws ProtocolCreationException

Creates a org.fourthline.cling.protocol.sync.ReceivingRetrieval, org.fourthline.cling.protocol.sync.ReceivingAction, org.fourthline.cling.protocol.sync.ReceivingSubscribe, org.fourthline.cling.protocol.sync.ReceivingUnsubscribe, or org.fourthline.cling.protocol.sync.ReceivingEvent protocol.

Parameters
requestMessageThe incoming message, examime org.fourthline.cling.model.message.UpnpRequest.Method to determine the protocol.
Returns
The appropriate protocol that handles the messages.
Exceptions
ProtocolCreationExceptionIf no protocol could be found for the message.

Implements org.fourthline.cling.protocol.ProtocolFactory.

◆ createSendingAction()

SendingAction org.fourthline.cling.protocol.ProtocolFactoryImpl.createSendingAction ( ActionInvocation  actionInvocation,
URL  controlURL 
)

Called by the org.fourthline.cling.controlpoint.ControlPoint, creates a protocol for executing an action.

Implements org.fourthline.cling.protocol.ProtocolFactory.

◆ createSendingEvent()

SendingEvent org.fourthline.cling.protocol.ProtocolFactoryImpl.createSendingEvent ( LocalGENASubscription  subscription)

Called by the org.fourthline.cling.model.gena.GENASubscription, creates a protocol for sending GENA events.

Implements org.fourthline.cling.protocol.ProtocolFactory.

◆ createSendingNotificationAlive()

SendingNotificationAlive org.fourthline.cling.protocol.ProtocolFactoryImpl.createSendingNotificationAlive ( LocalDevice  localDevice)

Called by the org.fourthline.cling.registry.Registry, creates a protocol for announcing local devices.

Implements org.fourthline.cling.protocol.ProtocolFactory.

◆ createSendingNotificationByebye()

SendingNotificationByebye org.fourthline.cling.protocol.ProtocolFactoryImpl.createSendingNotificationByebye ( LocalDevice  localDevice)

Called by the org.fourthline.cling.registry.Registry, creates a protocol for announcing local devices.

Implements org.fourthline.cling.protocol.ProtocolFactory.

◆ createSendingRenewal()

SendingRenewal org.fourthline.cling.protocol.ProtocolFactoryImpl.createSendingRenewal ( RemoteGENASubscription  subscription)

Called by the org.fourthline.cling.controlpoint.ControlPoint, creates a protocol for GENA renewal.

Implements org.fourthline.cling.protocol.ProtocolFactory.

◆ createSendingSearch()

SendingSearch org.fourthline.cling.protocol.ProtocolFactoryImpl.createSendingSearch ( UpnpHeader  searchTarget,
int  mxSeconds 
)

Called by the org.fourthline.cling.controlpoint.ControlPoint, creates a protocol for a multicast search.

Implements org.fourthline.cling.protocol.ProtocolFactory.

◆ createSendingSubscribe()

SendingSubscribe org.fourthline.cling.protocol.ProtocolFactoryImpl.createSendingSubscribe ( RemoteGENASubscription  subscription) throws ProtocolCreationException

Called by the org.fourthline.cling.controlpoint.ControlPoint, creates a protocol for GENA subscription.

Implements org.fourthline.cling.protocol.ProtocolFactory.

◆ createSendingUnsubscribe()

SendingUnsubscribe org.fourthline.cling.protocol.ProtocolFactoryImpl.createSendingUnsubscribe ( RemoteGENASubscription  subscription)

Called by the org.fourthline.cling.controlpoint.ControlPoint, creates a protocol for GENA unsubscription.

Implements org.fourthline.cling.protocol.ProtocolFactory.

◆ getUpnpService()

UpnpService org.fourthline.cling.protocol.ProtocolFactoryImpl.getUpnpService ( )

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