public class ServletStreamServerImpl extends Object implements StreamServer<ServletStreamServerConfigurationImpl>
| Modifier and Type | Field and Description |
|---|---|
protected ServletStreamServerConfigurationImpl |
configuration |
protected int |
localPort |
| Constructor and Description |
|---|
ServletStreamServerImpl(ServletStreamServerConfigurationImpl configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected javax.servlet.Servlet |
createAsyncServlet(Router router) |
protected javax.servlet.Servlet |
createBlockingServlet(Router router) |
ServletStreamServerConfigurationImpl |
getConfiguration() |
int |
getPort()
This method will be called potentially right after
StreamServer.init(java.net.InetAddress, org.jupnp.transport.Router), the
actual assigned local port must be available before the server is started. |
void |
init(InetAddress bindAddress,
Router router)
Configures the service and starts any listening sockets.
|
void |
run() |
void |
stop()
Stops the service, closes any listening sockets.
|
protected final ServletStreamServerConfigurationImpl configuration
protected int localPort
public ServletStreamServerImpl(ServletStreamServerConfigurationImpl configuration)
public ServletStreamServerConfigurationImpl getConfiguration()
getConfiguration in interface StreamServer<ServletStreamServerConfigurationImpl>public void init(InetAddress bindAddress, Router router) throws InitializationException
StreamServerinit in interface StreamServer<ServletStreamServerConfigurationImpl>bindAddress - The address to bind any sockets on.router - The router which handles the incoming UpnpStream.InitializationException - If the service could not be initialized or started.public int getPort()
StreamServerStreamServer.init(java.net.InetAddress, org.jupnp.transport.Router), the
actual assigned local port must be available before the server is started.getPort in interface StreamServer<ServletStreamServerConfigurationImpl>public void stop()
StreamServerstop in interface StreamServer<ServletStreamServerConfigurationImpl>protected javax.servlet.Servlet createAsyncServlet(Router router)
protected javax.servlet.Servlet createBlockingServlet(Router router)
Copyright © 2023 jUPnP.org. All rights reserved.