public abstract class WebJSonAPI extends WebServer<WebConnection>
Modifier and Type | Class and Description |
---|---|
class |
WebJSonAPI.RequestListener
|
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
WebJSonAPI(int port,
String webContentRoot)
|
Modifier and Type | Method and Description |
---|---|
WebConnection |
createConnection(Socket socket)
|
protected APICollector |
getCollector(String id)
|
protected abstract String |
getContent()
|
protected abstract String |
getInvalidUseMessage()
|
void |
registerCollector(@NotNull
APICollector collector)
|
addConnection,
callEvent,
get404,
getConnectionPool,
getDefaultFileName,
getMethodNotSupportedFileName,
getPort,
getWebRootFolder,
hasConnections,
isDebug,
registerListener,
removeConnection,
run, shutDown
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler,
getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler,
setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public WebJSonAPI(int port, String webContentRoot)
public void registerCollector(@NotNull @NotNull APICollector collector)
protected APICollector getCollector(String id)
protected abstract String getInvalidUseMessage()
protected abstract String getContent()
public WebConnection createConnection(Socket socket)
createConnection
in
class WebServer<WebConnection>
socket
- The socketCopyright © 2020. All rights reserved.