seda.sandStorm.lib.http
Class httpPacketReader

java.lang.Object
  extended by seda.sandStorm.lib.http.httpPacketReader
All Implemented Interfaces:
httpConst

 class httpPacketReader
extends java.lang.Object
implements httpConst

This is a package-internal class which reads HTTP request packets. An instance of this class is fed ATcpInPackets (via the parsePacket method). When a complete packet has been read, an httpRequest is pushed to the corresponding SinkIF. This is the bulk of the HTTP protocol implementation.

Author:
Matt Welsh

Field Summary
 
Fields inherited from interface seda.sandStorm.lib.http.httpConst
CRLF, DEFAULT_HTTP_PORT, HTTP_VERSION, WRITE_CLOG_THRESHOLD
 
Constructor Summary
httpPacketReader(httpConnection conn, SinkIF compQ)
          Create an httpPacketReader with the given httpConnection and completion queue.
 
Method Summary
(package private)  boolean parsePacket(ATcpInPacket pkt)
          Parse the given packet; returns true if a complete HTTP request has been received and parsed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

httpPacketReader

httpPacketReader(httpConnection conn,
                 SinkIF compQ)
Create an httpPacketReader with the given httpConnection and completion queue.

Method Detail

parsePacket

boolean parsePacket(ATcpInPacket pkt)
              throws java.io.IOException
Parse the given packet; returns true if a complete HTTP request has been received and parsed.

Throws:
java.io.IOException