Android
org.apache.http.message
public abstract class

org.apache.http.message.AbstractHttpMessage

java.lang.Object
org.apache.http.message.AbstractHttpMessage HttpMessage

Basic implementation of an HTTP message that can be modified.

Known Direct Subclasses
Known Indirect Subclasses

Summary

Fields

protected      HeaderGroup  headergroup   
protected      HttpParams  params   

Protected Constructors

            AbstractHttpMessage(HttpParams params)
            AbstractHttpMessage()

Public Methods

          void  addHeader(String name, String value)
Adds a header to this message.
          void  addHeader(Header header)
Adds a header to this message.
          boolean  containsHeader(String name)
Checks if a certain header is present in this message.
          Header[]  getAllHeaders()
Returns all the headers of this message.
          Header  getFirstHeader(String name)
Returns the first header with a specified name of this message.
          Header[]  getHeaders(String name)
Returns all the headers with a specified name of this message.
          Header  getLastHeader(String name)
Returns the last header with a specified name of this message.
          HttpParams  getParams()
Returns the parameters effective for this message as set by setParams(HttpParams).
          HeaderIterator  headerIterator(String name)
Returns an iterator of the headers with a given name.
          HeaderIterator  headerIterator()
Returns an iterator of all the headers.
          void  removeHeader(Header header)
Removes a header from this message.
          void  removeHeaders(String name)
Removes all headers with a certain name from this message.
          void  setHeader(Header header)
Overwrites the first header with the same name.
          void  setHeader(String name, String value)
Overwrites the first header with the same name.
          void  setHeaders(Header[] headers)
Overwrites all the headers in the message.
          void  setParams(HttpParams params)
Provides parameters to be used for the processing of this message.
Methods inherited from class java.lang.Object
Methods inherited from interface org.apache.http.HttpMessage

Details

Fields

protected HeaderGroup headergroup

protected HttpParams params

Protected Constructors

protected AbstractHttpMessage(HttpParams params)

protected AbstractHttpMessage()

Public Methods

public void addHeader(String name, String value)

Adds a header to this message. The header will be appended to the end of the list.

public void addHeader(Header header)

Adds a header to this message. The header will be appended to the end of the list.

public boolean containsHeader(String name)

Checks if a certain header is present in this message. Header values are ignored.

public Header[] getAllHeaders()

Returns all the headers of this message. Headers are orderd in the sequence they will be sent over a connection.

public Header getFirstHeader(String name)

Returns the first header with a specified name of this message. Header values are ignored. If there is more than one matching header in the message the first element of getHeaders(String) is returned. If there is no matching header in the message null is returned.

public Header[] getHeaders(String name)

Returns all the headers with a specified name of this message. Header values are ignored. Headers are orderd in the sequence they will be sent over a connection.

public Header getLastHeader(String name)

Returns the last header with a specified name of this message. Header values are ignored. If there is more than one matching header in the message the last element of getHeaders(String) is returned. If there is no matching header in the message null is returned.

public HttpParams getParams()

Returns the parameters effective for this message as set by setParams(HttpParams).

public HeaderIterator headerIterator(String name)

Returns an iterator of the headers with a given name.

public HeaderIterator headerIterator()

Returns an iterator of all the headers.

public void removeHeader(Header header)

Removes a header from this message.

public void removeHeaders(String name)

Removes all headers with a certain name from this message.

public void setHeader(Header header)

Overwrites the first header with the same name. The new header will be appended to the end of the list, if no header with the given name can be found.

public void setHeader(String name, String value)

Overwrites the first header with the same name. The new header will be appended to the end of the list, if no header with the given name can be found.

public void setHeaders(Header[] headers)

Overwrites all the headers in the message.

public void setParams(HttpParams params)

Provides parameters to be used for the processing of this message.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48