|
Oracle Application Server 10g HTTPClient API Reference 10g Release 2(10.1.2) B14020-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
HTTPClient.HttpHeaderElement
This class holds a description of an http header element. It is used by Util.parseHeader
.
Util.parseHeader(java.lang.String)
, Util.getElement(java.util.Vector, java.lang.String)
, Util.assembleHeader(java.util.Vector)
Constructor Summary | |
HttpHeaderElement(java.lang.String name) Construct an element with the given name. |
|
HttpHeaderElement(java.lang.String name, java.lang.String value, NVPair[] params) |
Method Summary | |
void |
appendTo(java.lang.StringBuffer buf) Append this header element to the given buffer. |
boolean |
equals(java.lang.Object obj) Two elements are equal if they have the same name. |
java.lang.String |
getName() |
NVPair[] |
getParams() |
java.lang.String |
getValue() |
java.lang.String |
toString() Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public HttpHeaderElement(java.lang.String name)
name
- the name of the elementpublic HttpHeaderElement(java.lang.String name, java.lang.String value, NVPair[] params)
name
- the first token in the elementvalue
- the value part, or nullparams
- the parametersMethod Detail |
public java.lang.String getName()
public java.lang.String getValue()
public NVPair[] getParams()
public boolean equals(java.lang.Object obj)
obj
- the object to compare withObject.hashCode()
, Hashtable
public java.lang.String toString()
java.lang.Object
toString
method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@
', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
public void appendTo(java.lang.StringBuffer buf)
toString()
for assembling multiple elements.buf
- the StringBuffer to append this header totoString()
|
Oracle Application Server 10g HTTPClient API Reference 10g Release 2(10.1.2) B14020-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |