public class AsyncServletStreamServerImpl extends Object implements StreamServer<AsyncServletStreamServerConfigurationImpl>
| Modifier and Type | Class and Description |
|---|---|
protected class |
AsyncServletStreamServerImpl.AsyncServletConnection |
| Modifier and Type | Field and Description |
|---|---|
protected AsyncServletStreamServerConfigurationImpl |
configuration |
protected String |
hostAddress |
protected int |
localPort |
| Constructor and Description |
|---|
AsyncServletStreamServerImpl(AsyncServletStreamServerConfigurationImpl configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected javax.servlet.Servlet |
createServlet(Router router) |
AsyncServletStreamServerConfigurationImpl |
getConfiguration() |
int |
getPort()
This method will be called potentially right after
StreamServer.init(java.net.InetAddress, org.fourthline.cling.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.
|
protected boolean |
isConnectionOpen(javax.servlet.http.HttpServletRequest request)
Override this method if you can check, at a low level, if the client connection is still open
for the given request.
|
void |
run() |
void |
stop()
Stops the service, closes any listening sockets.
|
protected final AsyncServletStreamServerConfigurationImpl configuration
protected int localPort
protected String hostAddress
public AsyncServletStreamServerImpl(AsyncServletStreamServerConfigurationImpl configuration)
public AsyncServletStreamServerConfigurationImpl getConfiguration()
getConfiguration in interface StreamServer<AsyncServletStreamServerConfigurationImpl>public void init(InetAddress bindAddress, Router router) throws InitializationException
StreamServerinit in interface StreamServer<AsyncServletStreamServerConfigurationImpl>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.fourthline.cling.transport.Router), the
actual assigned local port must be available before the server is started.getPort in interface StreamServer<AsyncServletStreamServerConfigurationImpl>public void stop()
StreamServerstop in interface StreamServer<AsyncServletStreamServerConfigurationImpl>protected javax.servlet.Servlet createServlet(Router router)
protected boolean isConnectionOpen(javax.servlet.http.HttpServletRequest request)
true.Copyright © 2015 4th Line GmbH, Switzerland. All rights reserved.