Package org.jupnp.protocol
Klasse ProtocolFactoryImpl
java.lang.Object
org.jupnp.protocol.ProtocolFactoryImpl
- Alle implementierten Schnittstellen:
ProtocolFactory
Default implementation, directly instantiates the appropriate protocols.
- Autor:
- Christian Bauer
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected ReceivingActionprotected ReceivingEventcreateReceivingEvent(StreamRequestMessage message) protected ReceivingAsynccreateReceivingNotification(IncomingDatagramMessage<UpnpRequest> incomingRequest) protected ReceivingRetrievalprotected ReceivingAsynccreateReceivingSearch(IncomingDatagramMessage<UpnpRequest> incomingRequest) protected ReceivingAsynccreateReceivingSearchResponse(IncomingDatagramMessage<UpnpResponse> incomingResponse) protected ReceivingSubscribecreateReceivingSync(StreamRequestMessage message) Creates aReceivingRetrieval,ReceivingAction,ReceivingSubscribe,ReceivingUnsubscribe, orReceivingEventprotocol.protected ReceivingUnsubscribecreateSendingAction(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.protected booleanisByeBye(IncomingDatagramMessage message) protected boolean
-
Felddetails
-
upnpService
-
-
Konstruktordetails
-
ProtocolFactoryImpl
protected ProtocolFactoryImpl() -
ProtocolFactoryImpl
-
-
Methodendetails
-
getUpnpService
- Angegeben von:
getUpnpServicein SchnittstelleProtocolFactory
-
createReceivingAsync
public ReceivingAsync createReceivingAsync(IncomingDatagramMessage message) throws ProtocolCreationException Beschreibung aus Schnittstelle kopiert:ProtocolFactory- Angegeben von:
createReceivingAsyncin SchnittstelleProtocolFactory- 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.
-
createReceivingNotification
protected ReceivingAsync createReceivingNotification(IncomingDatagramMessage<UpnpRequest> incomingRequest) -
createReceivingSearch
protected ReceivingAsync createReceivingSearch(IncomingDatagramMessage<UpnpRequest> incomingRequest) -
createReceivingSearchResponse
protected ReceivingAsync createReceivingSearchResponse(IncomingDatagramMessage<UpnpResponse> incomingResponse) -
isByeBye
-
isSupportedServiceAdvertisement
-
createReceivingSync
public ReceivingSync createReceivingSync(StreamRequestMessage message) throws ProtocolCreationException Beschreibung aus Schnittstelle kopiert:ProtocolFactoryCreates aReceivingRetrieval,ReceivingAction,ReceivingSubscribe,ReceivingUnsubscribe, orReceivingEventprotocol.- Angegeben von:
createReceivingSyncin SchnittstelleProtocolFactory- Parameter:
message- 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
Beschreibung aus Schnittstelle kopiert:ProtocolFactoryCalled by theRegistry, creates a protocol for announcing local devices.- Angegeben von:
createSendingNotificationAlivein SchnittstelleProtocolFactory
-
createSendingNotificationByebye
Beschreibung aus Schnittstelle kopiert:ProtocolFactoryCalled by theRegistry, creates a protocol for announcing local devices.- Angegeben von:
createSendingNotificationByebyein SchnittstelleProtocolFactory
-
createSendingSearch
Beschreibung aus Schnittstelle kopiert:ProtocolFactoryCalled by theControlPoint, creates a protocol for a multicast search.- Angegeben von:
createSendingSearchin SchnittstelleProtocolFactory
-
createSendingAction
Beschreibung aus Schnittstelle kopiert:ProtocolFactoryCalled by theControlPoint, creates a protocol for executing an action.- Angegeben von:
createSendingActionin SchnittstelleProtocolFactory
-
createSendingSubscribe
public SendingSubscribe createSendingSubscribe(RemoteGENASubscription subscription) throws ProtocolCreationException Beschreibung aus Schnittstelle kopiert:ProtocolFactoryCalled by theControlPoint, creates a protocol for GENA subscription.- Angegeben von:
createSendingSubscribein SchnittstelleProtocolFactory- Löst aus:
ProtocolCreationException
-
createSendingRenewal
Beschreibung aus Schnittstelle kopiert:ProtocolFactoryCalled by theControlPoint, creates a protocol for GENA renewal.- Angegeben von:
createSendingRenewalin SchnittstelleProtocolFactory
-
createSendingUnsubscribe
Beschreibung aus Schnittstelle kopiert:ProtocolFactoryCalled by theControlPoint, creates a protocol for GENA unsubscription.- Angegeben von:
createSendingUnsubscribein SchnittstelleProtocolFactory
-
createSendingEvent
Beschreibung aus Schnittstelle kopiert:ProtocolFactoryCalled by theGENASubscription, creates a protocol for sending GENA events.- Angegeben von:
createSendingEventin SchnittstelleProtocolFactory
-
createReceivingRetrieval
-
createReceivingAction
-
createReceivingSubscribe
-
createReceivingUnsubscribe
-
createReceivingEvent
-