|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Detail |
---|
UpnpService getUpnpService()
ReceivingAsync createReceivingAsync(IncomingDatagramMessage message) throws ProtocolCreationException
ReceivingNotification
,
ReceivingSearch
,
or ReceivingSearchResponse
protocol.
message
- The incoming message, either UpnpRequest
or
UpnpResponse
.
ProtocolCreationException
- If no protocol could be found for the message.ReceivingSync createReceivingSync(StreamRequestMessage requestMessage) throws ProtocolCreationException
ReceivingRetrieval
,
ReceivingAction
,
ReceivingSubscribe
,
ReceivingUnsubscribe
, or
ReceivingEvent
protocol.
requestMessage
- The incoming message, examime UpnpRequest.Method
to determine the protocol.
ProtocolCreationException
- If no protocol could be found for the message.SendingNotificationAlive createSendingNotificationAlive(LocalDevice localDevice)
Registry
, creates a protocol for announcing local devices.
SendingNotificationByebye createSendingNotificationByebye(LocalDevice localDevice)
Registry
, creates a protocol for announcing local devices.
SendingSearch createSendingSearch(UpnpHeader searchTarget, int mxSeconds)
ControlPoint
, creates a protocol for a multicast search.
SendingAction createSendingAction(ActionInvocation actionInvocation, URL controlURL)
ControlPoint
, creates a protocol for executing an action.
SendingSubscribe createSendingSubscribe(RemoteGENASubscription subscription)
ControlPoint
, creates a protocol for GENA subscription.
SendingRenewal createSendingRenewal(RemoteGENASubscription subscription)
ControlPoint
, creates a protocol for GENA renewal.
SendingUnsubscribe createSendingUnsubscribe(RemoteGENASubscription subscription)
ControlPoint
, creates a protocol for GENA unsubscription.
SendingEvent createSendingEvent(LocalGENASubscription subscription)
GENASubscription
, creates a protocol for sending GENA events.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |