java.lang.Object | |
↳ | org.apache.http.message.BufferedHeader |
This class represents a raw HTTP header whose content is parsed 'on demand' only when the header value needs to be consumed.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new header from a buffer.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates and returns a copy of this
Object .
| |||||||||||
Obtains the buffer with the formatted header.
| |||||||||||
Obtains the start of the header value in the
buffer .
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.http.FormattedHeader
| |||||||||||
From interface
org.apache.http.Header
|
Creates a new header from a buffer. The name of the header will be parsed immediately, the value only if it is accessed.
buffer | the buffer containing the header to represent |
---|
ParseException | in case of a parse error |
---|
Creates and returns a copy of this Object
. The default
implementation returns a so-called "shallow" copy: It creates a new
instance of the same class and then copies the field values (including
object references) from this instance to the new instance. A "deep" copy,
in contrast, would also recursively clone nested objects. A subclass that
needs to implement this kind of cloning should call super.clone()
to create the new instance and then create deep copies of the nested,
mutable objects.
CloneNotSupportedException |
---|
Obtains the buffer with the formatted header. The returned buffer MUST NOT be modified.
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.