|
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.BasicHeader
public class BasicHeader
Represents an HTTP header field.
The HTTP header fields follow the same generic format as that given in Section 3.1 of RFC 822. Each header field consists of a name followed by a colon (":") and the field value. Field names are case-insensitive. The field value MAY be preceded by any amount of LWS, though a single SP is preferred.
message-header = field-name ":" [ field-value ]
field-name = token
field-value = *( field-content | LWS )
field-content = <the OCTETs making up the field-value
and consisting of either *TEXT or combinations
of token, separators, and quoted-string>
| Constructor Summary | |
|---|---|
BasicHeader(String name,
String value)
Constructor with name and value |
|
| 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. |
HeaderElement[] |
getElements()
Returns an array of HeaderElements constructed from my value. |
String |
getName()
Returns the header name. |
String |
getValue()
Returns the header value. |
String |
toString()
Returns a String representation of the header. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BasicHeader(String name,
String value)
name - the header namevalue - the header value| Method Detail |
|---|
public String getName()
getName in interface Headerpublic String getValue()
getValue in interface Headerpublic String toString()
String representation of the header.
toString in class Object
public HeaderElement[] getElements()
throws ParseException
HeaderElements constructed from my value.
getElements in interface HeaderParseException - in case of a parse errorBasicHeaderValueParser.parseElements(String, HeaderValueParser)
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 | |||||||||