|
YAACC - UPNP Client and Server
|
Handles reception of search requests, responds for local registered devices. More...


Public Member Functions | |
| ReceivingSearch (Context context, Registry registry, UdpTransiver udpTransiver, IncomingDatagramMessage< UpnpRequest > inputMessage) | |
Public Member Functions inherited from de.yaacc.upnp.protocol.ReceivingAsync< IncomingSearchRequest > | |
| M | 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 |
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.
|
protected |
Override this to edit the outgoing message, e.g.
by adding headers.