Android APIs
public abstract class

AbstractMessageParser

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

This class is deprecated.
Please use openConnection() instead. Please visit this webpage for further details.

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 HttpMessage parse ()

Added in API level 1

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

protected abstract HttpMessage parseHead (SessionInputBuffer sessionBuffer)

Added in API level 1