|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectHitman.HTTP.Server
public class Server
Simple HTTP daemon
Nested Class Summary | |
---|---|
private static class |
Server.ListenThread
Private listen thread |
Field Summary | |
---|---|
private static java.lang.String |
www_root
Document root |
Constructor Summary | |
---|---|
Server()
|
Method Summary | |
---|---|
private static void |
error(java.io.BufferedWriter out,
short errcode)
Handle errors |
private static void |
handle_cgi(java.io.BufferedWriter out,
java.io.File cgi)
Handle a CGI call request |
static void |
main(java.lang.String[] args)
Main program |
private static void |
reply(java.io.BufferedWriter out,
java.io.File file)
Reply to a GET request |
private static void |
reply(java.io.BufferedWriter out,
java.lang.String cntType,
java.lang.String cnt)
Reply to a POST request |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.lang.String www_root
Constructor Detail |
---|
public Server()
Method Detail |
---|
private static void error(java.io.BufferedWriter out, short errcode) throws java.io.IOException
out
- Output streamerrcode
- Error code
java.io.IOException
private static void reply(java.io.BufferedWriter out, java.lang.String cntType, java.lang.String cnt) throws java.io.IOException
out
- Output streamcntType
- Content typecnt
- Content
java.io.IOException
private static void reply(java.io.BufferedWriter out, java.io.File file) throws java.io.IOException
out
- Output streamfile
- Requested file
java.io.IOException
private static void handle_cgi(java.io.BufferedWriter out, java.io.File cgi) throws java.io.IOException
out
- Output streamcgi
- CGI to call
java.io.IOException
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |