org.teleal.cling.protocol
Class ReceivingAsync<M extends UpnpMessage>

java.lang.Object
  extended by org.teleal.cling.protocol.ReceivingAsync<M>
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
ReceivingNotification, ReceivingSearch, ReceivingSearchResponse, ReceivingSync

public abstract class ReceivingAsync<M extends UpnpMessage>
extends Object
implements Runnable


Constructor Summary
protected ReceivingAsync(UpnpService upnpService, M inputMessage)
           
 
Method Summary
protected abstract  void execute()
           
protected
<H extends UpnpHeader>
H
getFirstHeader(UpnpHeader.Type headerType, Class<H> subtype)
           
 M getInputMessage()
           
 UpnpService getUpnpService()
           
 void run()
           
 String toString()
           
protected  boolean waitBeforeExecution()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReceivingAsync

protected ReceivingAsync(UpnpService upnpService,
                         M inputMessage)
Method Detail

getUpnpService

public UpnpService getUpnpService()

getInputMessage

public M getInputMessage()

run

public void run()
Specified by:
run in interface Runnable

waitBeforeExecution

protected boolean waitBeforeExecution()
                               throws InterruptedException
Throws:
InterruptedException

execute

protected abstract void execute()

getFirstHeader

protected <H extends UpnpHeader> H getFirstHeader(UpnpHeader.Type headerType,
                                                  Class<H> subtype)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.