Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public abstract class

AbstractMessageParser

extends Object
implements HttpMessageParser
java.lang.Object
   ↳ org.apache.http.impl.io.AbstractMessageParser
Known Direct Subclasses

Class Overview

Message parser base class.

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)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.http.io.HttpMessageParser

Fields

protected final LineParser lineParser

Added in API level 1

Public Constructors

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

Added in API level 1

Public Methods

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

Added in API level 1

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