Class MimeField
java.lang.Object
org.apache.hc.client5.http.entity.mime.MimeField
Minimal MIME field.
- Since:
- 4.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
name
-
value
-
parameters
-
-
Constructor Details
-
MimeField
Constructs a new instance.- Parameters:
name- the field name.value- the field value.
-
MimeField
public MimeField(String name, String value, List<org.apache.hc.core5.http.NameValuePair> parameters) Constructs a new instance.- Parameters:
name- the field name.value- the field value.parameters- the field parameters.- Since:
- 4.6
-
MimeField
Constructs a new instance by copying another's properties.- Parameters:
from- the source field.
-
-
Method Details
-
getName
Gets the field name.- Returns:
- the field name.
-
getValue
Gets the field value.- Returns:
- the field value.
- Since:
- 4.6
-
getBody
Converts this instance to a body String.- Returns:
- this instance as a body String.
-
getParameters
Gets the field parameters.- Returns:
- the field parameters.
-
toString
-