|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.message.BufferedHeader
@NotThreadSafe public class BufferedHeader
This class represents a raw HTTP header whose content is parsed 'on demand' only when the header value needs to be consumed.
Constructor Summary | |
---|---|
BufferedHeader(CharArrayBuffer buffer)
Creates a new header from a buffer. |
Method Summary | |
---|---|
Object |
clone()
|
CharArrayBuffer |
getBuffer()
Obtains the buffer with the formatted header. |
HeaderElement[] |
getElements()
Parses the value. |
String |
getName()
Get the name of the Header. |
String |
getValue()
Get the value of the Header. |
int |
getValuePos()
Obtains the start of the header value in the buffer . |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BufferedHeader(CharArrayBuffer buffer) throws ParseException
buffer
- the buffer containing the header to represent
ParseException
- in case of a parse errorMethod Detail |
---|
public String getName()
Header
getName
in interface Header
null
public String getValue()
Header
getValue
in interface Header
null
public HeaderElement[] getElements() throws ParseException
Header
getElements
in interface Header
HeaderElement
entries, may be empty, but is never null
ParseException
public int getValuePos()
FormattedHeader
buffer
.
By accessing the value in the buffer, creation of a temporary string
can be avoided.
getValuePos
in interface FormattedHeader
getBuffer
.public CharArrayBuffer getBuffer()
FormattedHeader
getBuffer
in interface FormattedHeader
public String toString()
toString
in class Object
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |