java.lang.Object
org.fourthline.cling.protocol.SendingAsync
org.fourthline.cling.protocol.SendingSync<IN,OUT>
- Type Parameters:
IN
- The type of request UPnP message send by this protocol.OUT
- The type of response UPnP message expected by this protocol.
- All Implemented Interfaces:
- Runnable
- Direct Known Subclasses:
- SendingAction, SendingEvent, SendingRenewal, SendingSubscribe, SendingUnsubscribe
public abstract class SendingSync<IN extends StreamRequestMessage,OUT extends StreamResponseMessage>
- extends SendingAsync
Supertype for all synchronously executing protocols, sending UPnP messages.
After instantiation by the ProtocolFactory
, this protocol run()
s and
calls its executeSync()
method.
- Author:
- Christian Bauer
outputMessage
protected OUT extends StreamResponseMessage outputMessage
SendingSync
protected SendingSync(UpnpService upnpService,
IN inputMessage)
getInputMessage
public IN getInputMessage()
getOutputMessage
public OUT getOutputMessage()
execute
protected final void execute()
throws RouterException
- Specified by:
execute
in class SendingAsync
- Throws:
RouterException
executeSync
protected abstract OUT executeSync()
throws RouterException
- Throws:
RouterException
toString
public String toString()
- Overrides:
toString
in class SendingAsync
Copyright © 2013 4th Line GmbH, Switzerland. All Rights Reserved.