English | Site Directory

Android - An Open Handset Alliance Project

org.apache.http.impl.io
public abstract class

org.apache.http.impl.io.AbstractMessageParser

java.lang.Object
org.apache.http.impl.io.AbstractMessageParser HttpMessageParser

Summary

Fields

protected    final  LineParser  lineParser   

Public Constructors

            AbstractMessageParser(SessionInputBuffer buffer, LineParser parser, HttpParams params)

Public Methods

          HttpMessage  parse()
      static    Header[]  parseHeaders(SessionInputBuffer inbuffer, int maxHeaderCount, int maxLineLen, LineParser parser)
Parses HTTP headers from the data receiver stream according to the generic format as given in Section 3.1 of RFC 822, RFC-2616 Section 4 and 19.3.

Protected Methods

abstract          HttpMessage  parseHead(SessionInputBuffer sessionBuffer)
Methods inherited from class java.lang.Object
Methods inherited from interface org.apache.http.io.HttpMessageParser

Details

Fields

protected final LineParser lineParser

Public Constructors

public AbstractMessageParser(SessionInputBuffer buffer, LineParser parser, HttpParams params)

Public Methods

public HttpMessage parse()

public static Header[] parseHeaders(SessionInputBuffer inbuffer, int maxHeaderCount, int maxLineLen, LineParser parser)

Parses HTTP headers from the data receiver stream according to the generic format as given in Section 3.1 of RFC 822, RFC-2616 Section 4 and 19.3.

Parameters

inbuffer Session input buffer
maxHeaderCount maximum number of headers allowed. If the number of headers received from the data stream exceeds maxCount value, an IOException will be thrown. Setting this parameter to a negative value or zero will disable the check.
maxLineLen maximum number of characters for a header line, including the continuation lines

Returns

  • array of HTTP headers

Throws

HttpException
IOException
HttpException

Protected Methods

protected abstract HttpMessage parseHead(SessionInputBuffer sessionBuffer)

Build 111085-111085 - 25 Sep 2008 14:22