|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.message.BufferedHeader
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()
Returns a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver. |
CharArrayBuffer |
getBuffer()
Obtains the buffer with the formatted header. |
HeaderElement[] |
getElements()
|
String |
getName()
|
String |
getValue()
|
int |
getValuePos()
Obtains the start of the header value in the buffer. |
String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
| 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 error| Method Detail |
|---|
public String getName()
getName in interface Headerpublic String getValue()
getValue in interface Header
public HeaderElement[] getElements()
throws ParseException
getElements in interface HeaderParseExceptionpublic int getValuePos()
FormattedHeaderbuffer.
By accessing the value in the buffer, creation of a temporary string
can be avoided.
getValuePos in interface FormattedHeadergetBuffer.public CharArrayBuffer getBuffer()
FormattedHeader
getBuffer in interface FormattedHeaderpublic String toString()
Object
toString in class Object
public Object clone()
throws CloneNotSupportedException
ObjectClasses which wish to support cloning must specify that they implement the Cloneable interface, since the implementation checks for this.
clone in class ObjectCloneNotSupportedException - if the receiver's class does not
implement the interface Cloneable.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||