|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dalsemi.tininet.http.HTTPWorker
HTTPWorker thread class This worker class is primarily used by HTTPServer to handle requests It handles parseing and URL encoding, decoding etc.
| Method Summary | |
byte[] |
encodeBody(int statusCode,
java.lang.String body,
java.lang.String contentType,
int size)
Encodes the body into a byte array. |
byte[] |
encodeContentType(java.lang.String contentType,
int size)
Encodes the content type into a byte array. |
void |
run()
Entry point for this worker thread |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public byte[] encodeContentType(java.lang.String contentType,
int size)
contentType - string representing the content type.size - size of the content type string.
public byte[] encodeBody(int statusCode,
java.lang.String body,
java.lang.String contentType,
int size)
body - string representing the body.size - size of the body string.
public void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||