YAACC - UPNP Client and Server
|
Factory for UPnP protocols, the core implementation of the UPnP specification. More...
Public Member Functions | |
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 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. | |
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. | |
Factory for UPnP protocols, the core implementation of the UPnP specification.
This factory creates an executable protocol either based on the received UPnP messsage, or on local device/search/service metadata). A protocol is an aspect of the UPnP specification, you can override individual protocols to customize the behavior of the UPnP stack.
An implementation has to be thread-safe.
ReceivingAsync org.fourthline.cling.protocol.ProtocolFactory.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.
message | The incoming message, either org.fourthline.cling.model.message.UpnpRequest or org.fourthline.cling.model.message.UpnpResponse . |
null
if the message should be dropped. ProtocolCreationException | If no protocol could be found for the message. |
Implemented in org.fourthline.cling.protocol.ProtocolFactoryImpl.
ReceivingSync org.fourthline.cling.protocol.ProtocolFactory.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.
requestMessage | The incoming message, examime org.fourthline.cling.model.message.UpnpRequest.Method to determine the protocol. |
ProtocolCreationException | If no protocol could be found for the message. |
Implemented in org.fourthline.cling.protocol.ProtocolFactoryImpl.
SendingAction org.fourthline.cling.protocol.ProtocolFactory.createSendingAction | ( | ActionInvocation | actionInvocation, |
URL | controlURL | ||
) |
Called by the org.fourthline.cling.controlpoint.ControlPoint
, creates a protocol for executing an action.
Implemented in org.fourthline.cling.protocol.ProtocolFactoryImpl.
SendingEvent org.fourthline.cling.protocol.ProtocolFactory.createSendingEvent | ( | LocalGENASubscription | subscription | ) |
Called by the org.fourthline.cling.model.gena.GENASubscription
, creates a protocol for sending GENA events.
Implemented in org.fourthline.cling.protocol.ProtocolFactoryImpl.
SendingNotificationAlive org.fourthline.cling.protocol.ProtocolFactory.createSendingNotificationAlive | ( | LocalDevice | localDevice | ) |
Called by the org.fourthline.cling.registry.Registry
, creates a protocol for announcing local devices.
Implemented in org.fourthline.cling.protocol.ProtocolFactoryImpl.
SendingNotificationByebye org.fourthline.cling.protocol.ProtocolFactory.createSendingNotificationByebye | ( | LocalDevice | localDevice | ) |
Called by the org.fourthline.cling.registry.Registry
, creates a protocol for announcing local devices.
Implemented in org.fourthline.cling.protocol.ProtocolFactoryImpl.
SendingRenewal org.fourthline.cling.protocol.ProtocolFactory.createSendingRenewal | ( | RemoteGENASubscription | subscription | ) |
Called by the org.fourthline.cling.controlpoint.ControlPoint
, creates a protocol for GENA renewal.
Implemented in org.fourthline.cling.protocol.ProtocolFactoryImpl.
SendingSearch org.fourthline.cling.protocol.ProtocolFactory.createSendingSearch | ( | UpnpHeader | searchTarget, |
int | mxSeconds | ||
) |
Called by the org.fourthline.cling.controlpoint.ControlPoint
, creates a protocol for a multicast search.
Implemented in org.fourthline.cling.protocol.ProtocolFactoryImpl.
SendingSubscribe org.fourthline.cling.protocol.ProtocolFactory.createSendingSubscribe | ( | RemoteGENASubscription | subscription | ) | throws ProtocolCreationException |
Called by the org.fourthline.cling.controlpoint.ControlPoint
, creates a protocol for GENA subscription.
Implemented in org.fourthline.cling.protocol.ProtocolFactoryImpl.
SendingUnsubscribe org.fourthline.cling.protocol.ProtocolFactory.createSendingUnsubscribe | ( | RemoteGENASubscription | subscription | ) |
Called by the org.fourthline.cling.controlpoint.ControlPoint
, creates a protocol for GENA unsubscription.
Implemented in org.fourthline.cling.protocol.ProtocolFactoryImpl.