public class MimeField extends Object
| Constructor and Description |
|---|
MimeField(MimeField from)
Constructs a new instance by copying another's properties.
|
MimeField(String name,
String value)
Constructs a new instance.
|
MimeField(String name,
String value,
List<org.apache.hc.core5.http.NameValuePair> parameters)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBody()
Converts this instance to a body String.
|
String |
getName()
Gets the field name.
|
List<org.apache.hc.core5.http.NameValuePair> |
getParameters()
Gets the field parameters.
|
String |
getValue()
Gets the field value.
|
String |
toString() |
public MimeField(String name, String value)
name - the field name.value - the field value.public MimeField(String name, String value, List<org.apache.hc.core5.http.NameValuePair> parameters)
name - the field name.value - the field value.parameters - the field parameters.public MimeField(MimeField from)
from - the source field.public String getName()
public String getValue()
public String getBody()
public List<org.apache.hc.core5.http.NameValuePair> getParameters()
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.