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

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

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


Constructor Summary
protected ReceivingAsync(UpnpService upnpService, M inputMessage)
           
 
Method Summary
protected abstract  void execute()
           
protected
<H extends UpnpHeader>
H
getFirstHeader(UpnpHeader.Type headerType, java.lang.Class<H> subtype)
           
 M getInputMessage()
           
 UpnpService getUpnpService()
           
 void run()
           
 java.lang.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 java.lang.Runnable

waitBeforeExecution

protected boolean waitBeforeExecution()
                               throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

execute

protected abstract void execute()

getFirstHeader

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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