Skip to content

Most visited

Recently visited

navigation

AbstractMessageParser | Android Developers

to top
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 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
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.