|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--sdlip.http.HTTPServer
An HTTP layer implementation.
Field Summary | |
static int |
DEFAULT_PORT
|
protected java.net.ServerSocket |
listen_socket
|
protected java.lang.ThreadGroup |
threadgroup
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
Constructor Summary | |
HTTPServer(HTTPCallback callback)
|
|
HTTPServer(HTTPCallback callback,
int port)
|
|
HTTPServer(java.lang.String name,
HTTPCallback callback,
int port)
|
Method Summary | |
void |
acceptConnections()
|
HTTPCallback |
getCallback()
|
void |
run()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Thread |
activeCount,
checkAccess,
countStackFrames,
currentThread,
destroy,
dumpStack,
enumerate,
getContextClassLoader,
getName,
getPriority,
getThreadGroup,
interrupt,
interrupted,
isAlive,
isDaemon,
isInterrupted,
join,
join,
join,
resume,
setContextClassLoader,
setDaemon,
setName,
setPriority,
sleep,
sleep,
start,
stop,
stop,
suspend,
yield |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int DEFAULT_PORT
protected java.net.ServerSocket listen_socket
protected java.lang.ThreadGroup threadgroup
Constructor Detail |
public HTTPServer(java.lang.String name, HTTPCallback callback, int port) throws java.io.IOException
public HTTPServer(HTTPCallback callback, int port) throws java.io.IOException
public HTTPServer(HTTPCallback callback) throws java.io.IOException
Method Detail |
public HTTPCallback getCallback()
public void acceptConnections() throws java.io.IOException
public void run()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |