org.fourthline.cling.protocol.sync
Class ReceivingRetrieval
java.lang.Object
org.fourthline.cling.protocol.ReceivingAsync<IN>
org.fourthline.cling.protocol.ReceivingSync<StreamRequestMessage,StreamResponseMessage>
org.fourthline.cling.protocol.sync.ReceivingRetrieval
- All Implemented Interfaces:
- Runnable
public class ReceivingRetrieval
- extends ReceivingSync<StreamRequestMessage,StreamResponseMessage>
Handles reception of device/service descriptor and icon retrieval messages.
Requested device and service XML descriptors are generated on-the-fly for every request.
Descriptor XML is dynamically generated depending on the control point - some control
points require different metadata than others for the same device and services.
- Author:
- Christian Bauer
ReceivingRetrieval
public ReceivingRetrieval(UpnpService upnpService,
StreamRequestMessage inputMessage)
executeSync
protected StreamResponseMessage executeSync()
throws RouterException
- Specified by:
executeSync
in class ReceivingSync<StreamRequestMessage,StreamResponseMessage>
- Throws:
RouterException
createResponse
protected StreamResponseMessage createResponse(URI requestedURI,
Resource resource)
onResourceNotFound
protected Resource onResourceNotFound(URI requestedURIPath)
- Called if the
Registry
had no result.
- Parameters:
requestedURIPath
- The requested URI path
- Returns:
null
or your own Resource
Copyright © 2013 4th Line GmbH, Switzerland. All Rights Reserved.