|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectthings.data.processing.http.HttpRequestProcessor
public class HttpRequestProcessor
A request processor. It handles just GET and POST for now.
This implementation assumes 8-bit characters throughout the header.
It only supports application/x-www-form-urlencoded bodies. We don't actually verify that is the format too! (Just that it isn't multipart).
Version History
EPG - Initial - 13 FEB 07
Constructor Summary | |
---|---|
HttpRequestProcessor()
|
Method Summary | |
---|---|
HttpRequest |
process(java.io.InputStream input)
Process a request from a stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpRequestProcessor() throws java.lang.Throwable
java.lang.Throwable
Method Detail |
---|
public HttpRequest process(java.io.InputStream input) throws ThingsException, java.lang.InterruptedException, java.io.IOException
Only one thread per object at a time, so we synchronize it.
input
- the source input. It should be buffered already.
ThingsException
- for any problem not related to the input source. Check the level to decide how fatal it is.
java.io.IOException
- if the input source has a problem. You can assume it is dead.
java.lang.InterruptedException
HttpRequest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |