things.data.processing.http
Class HttpResponseProcessor

java.lang.Object
  extended by things.data.processing.http.HttpResponseProcessor

public class HttpResponseProcessor
extends java.lang.Object

A response processor. Does not handle trailing headers!

Version:
1.0

Version History

EPG - Initial - 12 FEB 07
 
Author:
Erich P. Gatejen

Constructor Summary
HttpResponseProcessor()
           
 
Method Summary
 HttpResponse process(java.io.InputStream input)
          Process a response from a stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpResponseProcessor

public HttpResponseProcessor()
                      throws java.lang.Throwable
Throws:
java.lang.Throwable
Method Detail

process

public HttpResponse process(java.io.InputStream input)
                     throws ThingsException,
                            java.lang.InterruptedException,
                            java.io.IOException
Process a response from a stream.

Only one thread per object at a time, so we synchronize it.

Parameters:
input - the source input. It should be buffered already.
Returns:
the request
Throws:
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
See Also:
HttpResponse


Things.