public static final class MultipartContent.Part extends Object
Implementation is not thread-safe.
| Constructor and Description |
|---|
Part()
|
Part(HttpContent
|
Part(HttpHeaders
|
| Modifier and Type | Method and Description |
|---|---|
HttpContent |
getContent()
Returns the HTTP content or
null for none.
|
HttpEncoding |
getEncoding()
Returns the HTTP encoding or
null for none.
|
HttpHeaders |
getHeaders()
Returns the HTTP headers or
null for none.
|
MultipartContent |
setContent(HttpContent
Sets the HTTP content or
null for none.
|
MultipartContent |
setEncoding(HttpEncoding
Sets the HTTP encoding or
null for none.
|
MultipartContent |
setHeaders(HttpHeaders
Sets the HTTP headers or
null for none.
|
public Part()
public Part(HttpContentcontent)
content - HTTP content or
null for none
public Part(HttpHeadersheaders, HttpContent content)
headers - HTTP headers or
null for none
content - HTTP content or
null for none
public MultipartContent.Part setContent(HttpContent content)
null for none.
public HttpContentgetContent()
null for none.
public MultipartContent.Part setHeaders(HttpHeaders headers)
null for none.
public HttpHeadersgetHeaders()
null for none.
public MultipartContent.Part setEncoding(HttpEncoding encoding)
null for none.
public HttpEncodinggetEncoding()
null for none.