Package org.jupnp.protocol
Klasse ReceivingAsync<M extends UpnpMessage>
java.lang.Object
org.jupnp.protocol.ReceivingAsync<M>
- Typparameter:
M- The type of UPnP message handled by this protocol.
- Alle implementierten Schnittstellen:
Runnable
- Bekannte direkte Unterklassen:
ReceivingNotification,ReceivingSearch,ReceivingSearchResponse,ReceivingSync
Supertype for all asynchronously executing protocols, handling reception of UPnP messages.
After instantiation by the ProtocolFactory, this protocol run()s and
calls its own waitBeforeExecution() method. By default, the protocol does not wait
before then proceeding with execute().
- Autor:
- Christian Bauer
-
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedReceivingAsync(UpnpService upnpService, M inputMessage) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected abstract voidexecute()protected <H extends UpnpHeader>
HgetFirstHeader(UpnpHeader.Type headerType, Class<H> subtype) voidrun()toString()protected booleanProvides an opportunity to pause before executing the protocol.
-
Konstruktordetails
-
ReceivingAsync
-
-
Methodendetails
-
getUpnpService
-
getInputMessage
-
run
public void run() -
waitBeforeExecution
Provides an opportunity to pause before executing the protocol.- Gibt zurück:
true(default) if execution should continue after waiting.- Löst aus:
InterruptedException- If waiting has been interrupted, which also stops execution.
-
execute
- Löst aus:
RouterException
-
getFirstHeader
-
toString
-