Java Code Examples for org.fourthline.cling.model.meta.LocalDevice#findServiceTypes()

The following examples show how to use org.fourthline.cling.model.meta.LocalDevice#findServiceTypes() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ReceivingSearch.java    From TVRemoteIME with GNU General Public License v2.0 6 votes vote down vote up
protected List<OutgoingSearchResponse> createServiceTypeMessages(LocalDevice device,
                                                                 NetworkAddress activeStreamServer) {
    List<OutgoingSearchResponse> msgs = new ArrayList<OutgoingSearchResponse>();
    for (ServiceType serviceType : device.findServiceTypes()) {
        OutgoingSearchResponse message =
            new OutgoingSearchResponseServiceType(
                    getInputMessage(),
                    getDescriptorLocation(activeStreamServer, device),
                    device,
                    serviceType
            );
        prepareOutgoingSearchResponse(message);
        msgs.add(message);
    }
    return msgs;
}
 
Example 2
Source File: ReceivingSearch.java    From DroidDLNA with GNU General Public License v3.0 6 votes vote down vote up
protected List<OutgoingSearchResponse> createServiceTypeMessages(LocalDevice device,
                                                                 NetworkAddress activeStreamServer) {
    List<OutgoingSearchResponse> msgs = new ArrayList<OutgoingSearchResponse>();
    for (ServiceType serviceType : device.findServiceTypes()) {
        OutgoingSearchResponse message =
            new OutgoingSearchResponseServiceType(
                    getInputMessage(),
                    getDescriptorLocation(activeStreamServer, device),
                    device,
                    serviceType
            );
        prepareOutgoingSearchResponse(message);
        msgs.add(message);
    }
    return msgs;
}
 
Example 3
Source File: SendingNotification.java    From TVRemoteIME with GNU General Public License v2.0 5 votes vote down vote up
protected List<OutgoingNotificationRequest> createServiceTypeMessages(LocalDevice device,
                                                                      Location descriptorLocation) {
    List<OutgoingNotificationRequest> msgs = new ArrayList();

    for (ServiceType serviceType : device.findServiceTypes()) {
        msgs.add(
                new OutgoingNotificationRequestServiceType(
                        descriptorLocation, device,
                        getNotificationSubtype(), serviceType
                )
        );
    }

    return msgs;
}
 
Example 4
Source File: SendingNotification.java    From DroidDLNA with GNU General Public License v3.0 5 votes vote down vote up
protected List<OutgoingNotificationRequest> createServiceTypeMessages(LocalDevice device,
                                                                      Location descriptorLocation) {
    List<OutgoingNotificationRequest> msgs = new ArrayList();

    for (ServiceType serviceType : device.findServiceTypes()) {
        msgs.add(
                new OutgoingNotificationRequestServiceType(
                        descriptorLocation, device,
                        getNotificationSubtype(), serviceType
                )
        );
    }

    return msgs;
}