public class ServerConnectionBlock extends ServerConnection
Channel
to pass information and a ServerHandler
to process the message.channel, HTTPGSTART, HTTPMEND, HTTPPSTART, port, serverHandler, syncOn, timeOut
Constructor and Description |
---|
ServerConnectionBlock(java.nio.channels.SocketChannel theChannel,
long timeOut,
ServerHandler serverHandler)
Create a new instance of ServerConnectionBlock.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Start the message processing
|
convertRequest, httpHeaders
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 ServerConnectionBlock(java.nio.channels.SocketChannel theChannel, long timeOut, ServerHandler serverHandler) throws java.lang.Exception
theChannel
- the listener channel.timeOut
- timeout for recieving continuous message.serverHandler
- the server handler that processes the message.java.lang.Exception
- any error.