- Enclosing class:
- HttpRequest
public static class HttpRequest.Param
extends java.lang.Object
Provides a multi-part Param.
- Since:
- 5.0.1
Field Summary
Fields
Modifier and Type |
Field |
Description |
org.apache.http.entity.ContentType |
contentType |
Param Content Type.
|
java.lang.String |
value |
Param Value.
|
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type |
Method |
Description |
boolean |
equals(java.lang.Object obj) |
Indicates whether some other object is "equal to" this one.
|
int |
hashCode() |
Returns a hash code value for the object.
|
java.lang.String |
toString() |
|
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Field Detail
value
public final java.lang.String value
Param Value.
contentType
public final org.apache.http.entity.ContentType contentType
Param Content Type.
Method Detail
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
hashCode
public int hashCode()
Returns a hash code value for the object. This method is supported for the
benefit of hash tables such as those provided by
HashMap
. Implementation calculates hash code based on 'value' and
'contentType' fields with the help of HashCodeBuilder
- Overrides:
hashCode
in class java.lang.Object
- Returns:
- a hash code value for this object.
equals
public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. Implementation
relies that the object is of same type and compares 'value' and
'contentType.toString()' with the help of
EqualsBuilder
in order to return 'true'
- Overrides:
equals
in class java.lang.Object
- Parameters:
obj
- an object.
- Returns:
-
true
if this object is the same as the obj argument;
false
otherwise.