Top Description Methods
org.apache.http

public Interface FormattedHeader

extends Header
Known Direct Implementers
org.apache.http.message.BufferedHeader
Imports
org.apache.http.util.CharArrayBuffer

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.
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public CharArrayBuffer

Returns:

the formatted header, in a buffer that must not be modified
getBuffer
()

Obtains the buffer with the formatted header.

public int

Returns:

index of the first character of the header value in the buffer returned by getBuffer.
getValuePos
()

Obtains the start of the header value in the buffer.

Inherited from org.apache.http.Header:
getElements

Method Detail

getBufferback to summary
public CharArrayBuffer getBuffer()

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

Returns:CharArrayBuffer

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

getValuePosback to summary
public int getValuePos()

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:int

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