Package org.jupnp
Klasse UpnpServiceImpl
java.lang.Object
org.jupnp.UpnpServiceImpl
- Alle implementierten Schnittstellen:
UpnpService
Default implementation of
UpnpService, starts immediately on construction.
If no UpnpServiceConfiguration is provided it will automatically instantiate
DefaultUpnpServiceConfiguration. This configuration does not work on Android! Use the
AndroidUpnpService application component instead
Override the various create...() methods to customize instantiation of protocol factory, router, etc.
- Autor:
- Christian Bauer, Kai Kreuzer - OSGiified the service
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenVon Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.jupnp.UpnpService
UpnpService.Shutdown, UpnpService.Start -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected UpnpServiceConfigurationprotected ControlPointprotected booleanprotected booleanprotected ProtocolFactoryprotected Registryprotected Routerprotected ScheduledExecutorServiceprotected ScheduledFuture<?> -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidactivate(UpnpServiceImpl.Config config) protected ControlPointcreateControlPoint(ProtocolFactory protocolFactory, Registry registry) protected ProtocolFactoryprotected RegistrycreateRegistry(ProtocolFactory protocolFactory) protected RoutercreateRouter(ProtocolFactory protocolFactory, Registry registry) voidvoidsetHttpService(org.osgi.service.http.HttpService httpService) voidsetUpnpServiceConfiguration(UpnpServiceConfiguration configuration) voidshutdown()Stopping the UPnP stack.protected voidshutdown(boolean separateThread) protected voidprotected voidprotected voidvoidstartup()voidunsetHttpService(org.osgi.service.http.HttpService httpService) voidunsetUpnpServiceConfiguration(UpnpServiceConfiguration configuration)
-
Felddetails
-
isConfigured
protected boolean isConfigured -
isRunning
protected boolean isRunning -
configuration
-
protocolFactory
-
registry
-
controlPoint
-
router
-
scheduledExecutorService
-
scheduledFuture
-
-
Konstruktordetails
-
UpnpServiceImpl
public UpnpServiceImpl() -
UpnpServiceImpl
-
-
Methodendetails
-
activate
-
deactivate
public void deactivate() -
setUpnpServiceConfiguration
-
unsetUpnpServiceConfiguration
-
setHttpService
public void setHttpService(org.osgi.service.http.HttpService httpService) -
unsetHttpService
public void unsetHttpService(org.osgi.service.http.HttpService httpService) -
createProtocolFactory
-
createRegistry
-
createRouter
-
createControlPoint
-
getConfiguration
- Angegeben von:
getConfigurationin SchnittstelleUpnpService
-
getControlPoint
- Angegeben von:
getControlPointin SchnittstelleUpnpService
-
getProtocolFactory
- Angegeben von:
getProtocolFactoryin SchnittstelleUpnpService
-
getRegistry
- Angegeben von:
getRegistryin SchnittstelleUpnpService
-
getRouter
- Angegeben von:
getRouterin SchnittstelleUpnpService
-
shutdown
public void shutdown()Beschreibung aus Schnittstelle kopiert:UpnpServiceStopping the UPnP stack.Clients are required to stop the UPnP stack properly. Notifications for disappearing devices will be multicast'ed, existing event subscriptions cancelled.
- Angegeben von:
shutdownin SchnittstelleUpnpService
-
shutdown
protected void shutdown(boolean separateThread) -
shutdownRegistry
protected void shutdownRegistry() -
shutdownRouter
protected void shutdownRouter() -
shutdownConfiguration
protected void shutdownConfiguration() -
startup
public void startup()- Angegeben von:
startupin SchnittstelleUpnpService
-