YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
de.yaacc.upnp.protocol.async.ReceivingSearch Class Reference

Handles reception of search requests, responds for local registered devices. More...

Inheritance diagram for de.yaacc.upnp.protocol.async.ReceivingSearch:
Inheritance graph
Collaboration diagram for de.yaacc.upnp.protocol.async.ReceivingSearch:
Collaboration graph

Public Member Functions

 ReceivingSearch (Context context, Registry registry, UdpTransiver udpTransiver, IncomingDatagramMessage< UpnpRequest > inputMessage)
 
- Public Member Functions inherited from de.yaacc.upnp.protocol.ReceivingAsync< IncomingSearchRequest >
getInputMessage ()
 
void run ()
 
String toString ()
 

Protected Member Functions

void execute () throws IOException
 
boolean waitBeforeExecution () throws InterruptedException
 
void sendResponses (UpnpHeader searchTarget) throws IOException
 
void sendSearchResponseAll (NetworkAddress activeStreamServer) throws IOException
 
List< OutgoingSearchResponse > createDeviceMessages (LocalDevice device, NetworkAddress activeStreamServer)
 
List< OutgoingSearchResponse > createServiceTypeMessages (LocalDevice device, NetworkAddress activeStreamServer)
 
void sendSearchResponseRootDevices (NetworkAddress activeStreamServer) throws IOException
 
void sendSearchResponseUDN (UDN udn, NetworkAddress activeStreamServer) throws IOException
 
void sendSearchResponseDeviceType (DeviceType deviceType, NetworkAddress activeStreamServer) throws IOException
 
void sendSearchResponseServiceType (ServiceType serviceType, NetworkAddress activeStreamServer) throws IOException
 
Location getDescriptorLocation (NetworkAddress activeStreamServer, LocalDevice device)
 
boolean isAdvertisementDisabled (LocalDevice device)
 
void prepareOutgoingSearchResponse (OutgoingSearchResponse message)
 Override this to edit the outgoing message, e.g.
 
- Protected Member Functions inherited from de.yaacc.upnp.protocol.ReceivingAsync< IncomingSearchRequest >
 ReceivingAsync (M inputMessage)
 
boolean waitBeforeExecution () throws InterruptedException
 Provides an opportunity to pause before executing the protocol.
 
abstract void execute () throws IOException
 

Detailed Description

Handles reception of search requests, responds for local registered devices.

Waits a random time between 0 and the requested MX (maximum 120 seconds) before executing. Only waits if there are actually any registered local devices.

Extracts the search target, builds and sends the dozens of messages required by the UPnP specification, depending on the search target and what local devices and services are found in the org.fourthline.cling.registry.Registry.

Author
Christian Bauer

Member Function Documentation

◆ prepareOutgoingSearchResponse()

void de.yaacc.upnp.protocol.async.ReceivingSearch.prepareOutgoingSearchResponse ( OutgoingSearchResponse  message)
protected

Override this to edit the outgoing message, e.g.

by adding headers.


The documentation for this class was generated from the following file: