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.TempFileManagerFactory| 修飾子とタイプ | フィールドと説明 |
|---|---|
static boolean |
DEBUG |
static int |
HTTP_PORT |
static java.net.InetSocketAddress |
MULTICAST_ADDR_IPv4 |
static java.net.InetSocketAddress |
MULTICAST_ADDR_IPv6 |
static int |
SSDP_PORT |
asyncRunner, MIME_HTML, MIME_PLAINTEXT, MIME_TYPES, SOCKET_READ_TIMEOUT| コンストラクタと説明 |
|---|
SsdpServer(java.net.Inet4Address ipv4addr,
java.net.Inet6Address ipv6addr,
Device device) |
SsdpServer(java.net.Inet4Address ipv4addr,
java.net.Inet6Address ipv6addr,
Device device,
java.lang.String server) |
SsdpServer(java.net.NetworkInterface netIf,
Device device) |
SsdpServer(java.net.NetworkInterface netIf,
Device device,
java.lang.String server) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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 static boolean DEBUG
public static final java.net.InetSocketAddress MULTICAST_ADDR_IPv4
public static final java.net.InetSocketAddress MULTICAST_ADDR_IPv6
public static final int SSDP_PORT
public static final int HTTP_PORT
public SsdpServer(java.net.NetworkInterface netIf,
Device device)
public SsdpServer(java.net.NetworkInterface netIf,
Device device,
java.lang.String server)
public SsdpServer(java.net.Inet4Address ipv4addr,
java.net.Inet6Address ipv6addr,
Device device)
public SsdpServer(java.net.Inet4Address ipv4addr,
java.net.Inet6Address ipv6addr,
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.IOException