org.fourthline.cling.registry.RegistryListener Java Examples

The following examples show how to use org.fourthline.cling.registry.RegistryListener. 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: UpnpServiceImpl.java    From TVRemoteIME with GNU General Public License v2.0 4 votes vote down vote up
public UpnpServiceImpl(RegistryListener... registryListeners) {
    this(new DefaultUpnpServiceConfiguration(), registryListeners);
}
 
Example #2
Source File: UpnpServiceImpl.java    From DroidDLNA with GNU General Public License v3.0 4 votes vote down vote up
public UpnpServiceImpl(RegistryListener... registryListeners) {
    this(new DefaultUpnpServiceConfiguration(), registryListeners);
}
 
Example #3
Source File: UpnpServiceImpl.java    From TVRemoteIME with GNU General Public License v2.0 3 votes vote down vote up
public UpnpServiceImpl(UpnpServiceConfiguration configuration, RegistryListener... registryListeners) {
    this.configuration = configuration;

    log.info(">>> Starting UPnP service...");

    log.info("Using configuration: " + getConfiguration().getClass().getName());

    // Instantiation order is important: Router needs to start its network services after registry is ready

    this.protocolFactory = createProtocolFactory();

    this.registry = createRegistry(protocolFactory);
    for (RegistryListener registryListener : registryListeners) {
        this.registry.addListener(registryListener);
    }

    this.router = createRouter(protocolFactory, registry);

    try {
        this.router.enable();
    } catch (RouterException ex) {
        throw new RuntimeException("Enabling network router failed: " + ex, ex);
    }

    this.controlPoint = createControlPoint(protocolFactory, registry);

    log.info("<<< UPnP service started successfully");
}
 
Example #4
Source File: UpnpServiceImpl.java    From DroidDLNA with GNU General Public License v3.0 3 votes vote down vote up
public UpnpServiceImpl(UpnpServiceConfiguration configuration, RegistryListener... registryListeners) {
    this.configuration = configuration;

    log.info(">>> Starting UPnP service...");

    log.info("Using configuration: " + getConfiguration().getClass().getName());

    // Instantiation order is important: Router needs to start its network services after registry is ready

    this.protocolFactory = createProtocolFactory();

    this.registry = createRegistry(protocolFactory);
    for (RegistryListener registryListener : registryListeners) {
        this.registry.addListener(registryListener);
    }

    this.router = createRouter(protocolFactory, registry);

    try {
        this.router.enable();
    } catch (RouterException ex) {
        throw new RuntimeException("Enabling network router failed: " + ex, ex);
    }

    this.controlPoint = createControlPoint(protocolFactory, registry);

    log.info("<<< UPnP service started successfully");
}