public class SsdpServer extends NanoHTTPD
NanoHTTPD.AsyncRunner, NanoHTTPD.ClientHandler, NanoHTTPD.ContentType, NanoHTTPD.Cookie, NanoHTTPD.CookieHandler, NanoHTTPD.DefaultAsyncRunner, NanoHTTPD.DefaultServerSocketFactory, NanoHTTPD.DefaultTempFile, NanoHTTPD.DefaultTempFileManager, NanoHTTPD.HTTPSession, NanoHTTPD.IHTTPSession, NanoHTTPD.Method, NanoHTTPD.Response, NanoHTTPD.ResponseException, NanoHTTPD.SecureServerSocketFactory, NanoHTTPD.ServerRunnable, NanoHTTPD.ServerSocketFactory, NanoHTTPD.TempFile, NanoHTTPD.TempFileManager, NanoHTTPD.TempFileManagerFactoryasyncRunner, MIME_HTML, MIME_PLAINTEXT, MIME_TYPES, SOCKET_READ_TIMEOUT| コンストラクタと説明 |
|---|
SsdpServer(Device device) |
SsdpServer(Device device,
java.lang.String server) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static java.util.List<java.net.InterfaceAddress> |
getInterfaceAddresses() |
protected java.util.Map<java.lang.String,java.lang.String> |
parseSearchHeaders(java.net.DatagramPacket packet) |
NanoHTTPD.Response |
serve(NanoHTTPD.IHTTPSession session)
Override this to customize the server.
|
protected void |
ssdpRun() |
void |
start(int timeout,
boolean daemon)
Start the server.
|
void |
stop()
Stop the server.
|
closeAllConnections, createClientHandler, createServerRunnable, decodeParameters, decodeParameters, decodePercent, getHostname, getListeningPort, getMimeTypeForFile, getServerSocketFactory, getTempFileManagerFactory, isAlive, makeSecure, makeSSLSocketFactory, makeSSLSocketFactory, makeSSLSocketFactory, mimeTypes, newChunkedResponse, newFixedLengthResponse, newFixedLengthResponse, newFixedLengthResponse, serve, setAsyncRunner, setServerSocketFactory, setTempFileManagerFactory, start, start, useGzipWhenAccepted, wasStartedpublic SsdpServer(Device device)
public SsdpServer(Device device, java.lang.String server)
public void start(int timeout,
boolean daemon)
throws java.io.IOException
NanoHTTPDpublic NanoHTTPD.Response serve(NanoHTTPD.IHTTPSession session)
NanoHTTPDprotected void ssdpRun()
throws java.io.IOException
java.io.IOExceptionprotected java.util.Map<java.lang.String,java.lang.String> parseSearchHeaders(java.net.DatagramPacket packet)
throws java.io.IOException
java.io.IOExceptionpublic static java.util.List<java.net.InterfaceAddress> getInterfaceAddresses()
throws java.net.SocketException
java.net.SocketException