Package org.jupnp.protocol
Schnittstelle ProtocolFactory
- Alle bekannten Implementierungsklassen:
ProtocolFactoryImpl
public interface ProtocolFactory
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.
- Autor:
- Christian Bauer
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcreateReceivingSync(StreamRequestMessage requestMessage) Creates aReceivingRetrieval,ReceivingAction,ReceivingSubscribe,ReceivingUnsubscribe, orReceivingEventprotocol.createSendingAction(ActionInvocation actionInvocation, URL controlURL) Called by theControlPoint, creates a protocol for executing an action.createSendingEvent(LocalGENASubscription subscription) Called by theGENASubscription, creates a protocol for sending GENA events.createSendingNotificationAlive(LocalDevice localDevice) Called by theRegistry, creates a protocol for announcing local devices.createSendingNotificationByebye(LocalDevice localDevice) Called by theRegistry, creates a protocol for announcing local devices.createSendingRenewal(RemoteGENASubscription subscription) Called by theControlPoint, creates a protocol for GENA renewal.createSendingSearch(UpnpHeader searchTarget, int mxSeconds) Called by theControlPoint, creates a protocol for a multicast search.createSendingSubscribe(RemoteGENASubscription subscription) Called by theControlPoint, creates a protocol for GENA subscription.createSendingUnsubscribe(RemoteGENASubscription subscription) Called by theControlPoint, creates a protocol for GENA unsubscription.
-
Methodendetails
-
getUpnpService
UpnpService getUpnpService() -
createReceivingAsync
ReceivingAsync createReceivingAsync(IncomingDatagramMessage message) throws ProtocolCreationException - Parameter:
message- The incoming message, eitherUpnpRequestorUpnpResponse.- Gibt zurück:
- The appropriate protocol that handles the messages or
nullif the message should be dropped. - Löst aus:
ProtocolCreationException- If no protocol could be found for the message.
-
createReceivingSync
ReceivingSync createReceivingSync(StreamRequestMessage requestMessage) throws ProtocolCreationException Creates aReceivingRetrieval,ReceivingAction,ReceivingSubscribe,ReceivingUnsubscribe, orReceivingEventprotocol.- Parameter:
requestMessage- The incoming message, examimeUpnpRequest.Methodto determine the protocol.- Gibt zurück:
- The appropriate protocol that handles the messages.
- Löst aus:
ProtocolCreationException- If no protocol could be found for the message.
-
createSendingNotificationAlive
Called by theRegistry, creates a protocol for announcing local devices. -
createSendingNotificationByebye
Called by theRegistry, creates a protocol for announcing local devices. -
createSendingSearch
Called by theControlPoint, creates a protocol for a multicast search. -
createSendingAction
Called by theControlPoint, creates a protocol for executing an action. -
createSendingSubscribe
SendingSubscribe createSendingSubscribe(RemoteGENASubscription subscription) throws ProtocolCreationException Called by theControlPoint, creates a protocol for GENA subscription.- Löst aus:
ProtocolCreationException
-
createSendingRenewal
Called by theControlPoint, creates a protocol for GENA renewal. -
createSendingUnsubscribe
Called by theControlPoint, creates a protocol for GENA unsubscription. -
createSendingEvent
Called by theGENASubscription, creates a protocol for sending GENA events.
-