|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.message.BasicHeaderElement
public class BasicHeaderElement
Basic implementation of HeaderElement
Constructor Summary | |
---|---|
BasicHeaderElement(String name,
String value)
Constructor with name and value. |
|
BasicHeaderElement(String name,
String value,
NameValuePair[] parameters)
Constructor with name, value and parameters. |
Method Summary | |
---|---|
Object |
clone()
|
boolean |
equals(Object object)
|
String |
getName()
Returns header element name. |
NameValuePair |
getParameter(int index)
Returns parameter with the given index. |
NameValuePair |
getParameterByName(String name)
Returns the first parameter with the given name. |
int |
getParameterCount()
Returns the total count of parameters. |
NameValuePair[] |
getParameters()
Returns an array of name / value pairs. |
String |
getValue()
Returns header element value. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BasicHeaderElement(String name, String value, NameValuePair[] parameters)
name
- header element namevalue
- header element value. May be null
parameters
- header element parameters. May be null
.
Parameters are copied by reference, not by valuepublic BasicHeaderElement(String name, String value)
name
- header element namevalue
- header element value. May be null
Method Detail |
---|
public String getName()
HeaderElement
getName
in interface HeaderElement
public String getValue()
HeaderElement
getValue
in interface HeaderElement
public NameValuePair[] getParameters()
HeaderElement
getParameters
in interface HeaderElement
public int getParameterCount()
HeaderElement
getParameterCount
in interface HeaderElement
public NameValuePair getParameter(int index)
HeaderElement
getParameter
in interface HeaderElement
index
- index
public NameValuePair getParameterByName(String name)
HeaderElement
getParameterByName
in interface HeaderElement
name
- parameter name
public boolean equals(Object object)
equals
in class Object
public int hashCode()
hashCode
in class Object
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 |