org.teleal.cling.protocol.async
Class ReceivingSearch

java.lang.Object
  extended by org.teleal.cling.protocol.ReceivingAsync<IncomingSearchRequest>
      extended by org.teleal.cling.protocol.async.ReceivingSearch
All Implemented Interfaces:
java.lang.Runnable

public class ReceivingSearch
extends ReceivingAsync<IncomingSearchRequest>


Field Summary
protected  int localStreamPort
           
protected  java.util.Random randomGenerator
           
 
Constructor Summary
ReceivingSearch(UpnpService upnpService, IncomingDatagramMessage<UpnpRequest> inputMessage)
           
 
Method Summary
protected  java.util.List<OutgoingSearchResponse> createDeviceMessages(LocalDevice device)
           
protected  java.util.List<OutgoingSearchResponse> createServiceTypeMessages(LocalDevice device)
           
protected  void execute()
           
protected  byte[] getLocalHardwareAddress()
           
protected  void sendResponses(UpnpHeader searchTarget)
           
protected  void sendSearchResponseAll()
           
protected  void sendSearchResponseDeviceType(DeviceType deviceType)
           
protected  void sendSearchResponseRootDevices()
           
protected  void sendSearchResponseServiceType(ServiceType serviceType)
           
protected  void sendSearchResponseUDN(UDN udn)
           
protected  boolean waitBeforeExecution()
           
 
Methods inherited from class org.teleal.cling.protocol.ReceivingAsync
getFirstHeader, getInputMessage, getUpnpService, run, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

randomGenerator

protected final java.util.Random randomGenerator

localStreamPort

protected final int localStreamPort
Constructor Detail

ReceivingSearch

public ReceivingSearch(UpnpService upnpService,
                       IncomingDatagramMessage<UpnpRequest> inputMessage)
Method Detail

execute

protected void execute()
Specified by:
execute in class ReceivingAsync<IncomingSearchRequest>

waitBeforeExecution

protected boolean waitBeforeExecution()
                               throws java.lang.InterruptedException
Overrides:
waitBeforeExecution in class ReceivingAsync<IncomingSearchRequest>
Throws:
java.lang.InterruptedException

sendResponses

protected void sendResponses(UpnpHeader searchTarget)

sendSearchResponseAll

protected void sendSearchResponseAll()

createDeviceMessages

protected java.util.List<OutgoingSearchResponse> createDeviceMessages(LocalDevice device)

createServiceTypeMessages

protected java.util.List<OutgoingSearchResponse> createServiceTypeMessages(LocalDevice device)

sendSearchResponseRootDevices

protected void sendSearchResponseRootDevices()

sendSearchResponseUDN

protected void sendSearchResponseUDN(UDN udn)

sendSearchResponseDeviceType

protected void sendSearchResponseDeviceType(DeviceType deviceType)

sendSearchResponseServiceType

protected void sendSearchResponseServiceType(ServiceType serviceType)

getLocalHardwareAddress

protected byte[] getLocalHardwareAddress()


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