|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tranche.httpd.Http
public class Http
Utility method for writting the HTTP protocol.
| Field Summary | |
|---|---|
static boolean |
DEBUG
Debug flag reserved for midium level of stdout vebrocity. |
static boolean |
DEBUG_VERBOSE
Debug flag reserver for a higher level of stdout vebrocity. |
static boolean |
ECHO
Flag for debugging an input stream. |
static int |
READ_AHEAD
Size to be used in marking an input stream. |
| Fields inherited from interface org.tranche.httpd.IFileResources |
|---|
HTTP_PAGE_DIRECTORY, HTTP_PROPERTIES_DIRECTORY, HTTP_RESPONSE_MESSAGES_PROP_FILE, LOCALE |
| Constructor Summary | |
|---|---|
Http()
|
|
| Method Summary | |
|---|---|
static void |
print(java.io.PrintStream os,
HttpConstant contentType,
byte[] content)
|
static void |
print(java.io.PrintStream os,
HttpConstant status,
HttpConstant contentType,
byte[] content)
|
static void |
printError(java.io.PrintStream os,
HttpConstant errorNumber,
java.lang.String errorDetails)
Method for reporting to the browser an error |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean DEBUG
public static final boolean DEBUG_VERBOSE
public static final boolean ECHO
public static final int READ_AHEAD
| Constructor Detail |
|---|
public Http()
| Method Detail |
|---|
public static final void print(java.io.PrintStream os,
HttpConstant status,
HttpConstant contentType,
byte[] content)
throws java.io.IOException
java.io.IOException
public static final void print(java.io.PrintStream os,
HttpConstant contentType,
byte[] content)
throws java.io.IOException
java.io.IOException
public static final void printError(java.io.PrintStream os,
HttpConstant errorNumber,
java.lang.String errorDetails)
throws java.io.IOException
os - errorNumber - errorDetails -
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||