Package fi.iki.elonen.samples.echo
Class DebugWebSocketServer
- java.lang.Object
-
- fi.iki.elonen.NanoHTTPD
-
- fi.iki.elonen.NanoWSD
-
- fi.iki.elonen.samples.echo.DebugWebSocketServer
-
public class DebugWebSocketServer extends NanoWSD
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
DebugWebSocketServer.DebugWebSocket
-
Nested classes/interfaces inherited from class fi.iki.elonen.NanoWSD
NanoWSD.State, NanoWSD.WebSocket, NanoWSD.WebSocketException, NanoWSD.WebSocketFrame
-
Nested classes/interfaces inherited from class fi.iki.elonen.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
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
debug
private static java.util.logging.Logger
LOG
logger to log to.-
Fields inherited from class fi.iki.elonen.NanoWSD
HEADER_CONNECTION, HEADER_CONNECTION_VALUE, HEADER_UPGRADE, HEADER_UPGRADE_VALUE, HEADER_WEBSOCKET_ACCEPT, HEADER_WEBSOCKET_KEY, HEADER_WEBSOCKET_PROTOCOL, HEADER_WEBSOCKET_VERSION, HEADER_WEBSOCKET_VERSION_VALUE
-
Fields inherited from class fi.iki.elonen.NanoHTTPD
asyncRunner, MIME_HTML, MIME_PLAINTEXT, MIME_TYPES, SOCKET_READ_TIMEOUT
-
-
Constructor Summary
Constructors Constructor Description DebugWebSocketServer(int port, boolean debug)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NanoWSD.WebSocket
openWebSocket(NanoHTTPD.IHTTPSession handshake)
-
Methods inherited from class fi.iki.elonen.NanoWSD
isWebsocketRequested, makeAcceptKey, serve, serveHttp, useGzipWhenAccepted
-
Methods inherited from class fi.iki.elonen.NanoHTTPD
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, start, stop, wasStarted
-
-
-
-
Method Detail
-
openWebSocket
protected NanoWSD.WebSocket openWebSocket(NanoHTTPD.IHTTPSession handshake)
- Specified by:
openWebSocket
in classNanoWSD
-
-