public interface ProtocolFactory
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.
UpnpService getUpnpService()
ReceivingAsync createReceivingAsync(IncomingDatagramMessage message) throws ProtocolCreationException
message - The incoming message, either UpnpRequest or
UpnpResponse.null if the message should be dropped.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) throws ProtocolCreationException
ControlPoint, creates a protocol for GENA subscription.ProtocolCreationExceptionSendingRenewal 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.Copyright © 2023 jUPnP.org. All rights reserved.