HeaderElement
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final NameValuePair[] | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | BasicHeaderElement(final String
header element name name, final String header element value. May be value, final NameValuePair[] nullheader element parameters. May be parameters)null.
Parameters are copied by reference, not by valueConstructor with name, value and parameters. |
| public | BasicHeaderElement(final String
header element name name, final String header element value. May be value)nullConstructor with name and value. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public boolean | equals(final Object
the reference object with which to compare. object)Overrides java. |
| public String | |
| public NameValuePair | getParameter(final int
index index)Implements org. |
| public NameValuePair | getParameterByName(final String
parameter name name)Implements org. |
| public int | getParameterCount()
Implements org. |
| public NameValuePair[] | getParameters()
Implements org. |
| public String | |
| public int | |
| public String |
| name | back to summary |
|---|---|
| private final String name | |
| parameters | back to summary |
|---|---|
| private final NameValuePair[] parameters | |
| value | back to summary |
|---|---|
| private final String value | |
| BasicHeaderElement | back to summary |
|---|---|
| public BasicHeaderElement(final String name, final String value, final NameValuePair[] parameters) Constructor with name, value and parameters.
| |
| BasicHeaderElement | back to summary |
|---|---|
| public BasicHeaderElement(final String name, final String value) Constructor with name and value. | |
| clone | back to summary |
|---|---|
| public Object clone() throws CloneNotSupportedException Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object object) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Returns header element name. | |
| getParameter | back to summary |
|---|---|
| public NameValuePair getParameter(final int index) Implements org. Doc from org. Returns parameter with the given index.
| |
| getParameterByName | back to summary |
|---|---|
| public NameValuePair getParameterByName(final String name) Implements org. Doc from org. Returns the first parameter with the given name.
| |
| getParameterCount | back to summary |
|---|---|
| public int getParameterCount() Implements org. Doc from org. Returns the total count of parameters.
| |
| getParameters | back to summary |
|---|---|
| public NameValuePair[] getParameters() Implements org. Doc from org. Returns an array of name / value pairs.
| |
| getValue | back to summary |
|---|---|
| public String getValue() Implements org. Doc from org. Returns header element value. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |