Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
WebConnection(Socket socket,
WebServer<? extends WebConnection> webServer)
|
Modifier and Type | Method and Description |
---|---|
void |
fileNotFound(PrintWriter out,
OutputStream dataOut,
String fileRequested)
|
Socket |
getConnector()
|
String |
getContentType(String fileRequested)
|
WebServer<? extends WebConnection> |
getServer()
|
boolean |
isDebug()
|
void |
outPrinter(PrintWriter out,
OutputStream dataOut,
int fileLength,
String content,
byte[] fileData)
|
byte[] |
readFileData(File file,
int fileLength)
|
void |
run()
|
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 WebConnection(Socket socket, WebServer<? extends WebConnection> webServer)
public boolean isDebug()
public Socket getConnector()
public WebServer<? extends WebConnection> getServer()
public byte[] readFileData(File file, int fileLength) throws IOException
IOException
public void fileNotFound(PrintWriter out, OutputStream dataOut, String fileRequested) throws IOException
IOException
public void outPrinter(PrintWriter out, OutputStream dataOut, int fileLength, String content, byte[] fileData) throws IOException
IOException
Copyright © 2020. All rights reserved.