public interface

FormattedHeader

implements Header
org.apache.http.FormattedHeader
Known Indirect Subclasses

Class Overview

An HTTP header which is already formatted. For example when headers are received, the original formatting can be preserved. This allows for the header to be sent without another formatting step.

Summary

Public Methods
abstract CharArrayBuffer getBuffer()
Obtains the buffer with the formatted header.
abstract int getValuePos()
Obtains the start of the header value in the buffer.
[Expand]
Inherited Methods
From interface org.apache.http.Header

Public Methods

public abstract CharArrayBuffer getBuffer ()

Since: API Level 1

Obtains the buffer with the formatted header. The returned buffer MUST NOT be modified.

Returns
  • the formatted header, in a buffer that must not be modified

public abstract int getValuePos ()

Since: API Level 1

Obtains the start of the header value in the buffer. By accessing the value in the buffer, creation of a temporary string can be avoided.

Returns
  • index of the first character of the header value in the buffer returned by getBuffer.