public static final class MultipartContent.Part extends Object
Implementation is not thread-safe.
Constructor and Description |
---|
Part() |
Part(HttpContent content) |
Part(HttpHeaders headers,
HttpContent content) |
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.Part |
setContent(HttpContent content)
Sets the HTTP content or
null for none. |
MultipartContent.Part |
setEncoding(HttpEncoding encoding)
Sets the HTTP encoding or
null for none. |
MultipartContent.Part |
setHeaders(HttpHeaders headers)
Sets the HTTP headers or
null for none. |
public Part()
public Part(HttpContent content)
content
- HTTP content or null
for nonepublic Part(HttpHeaders headers, HttpContent content)
headers
- HTTP headers or null
for nonecontent
- HTTP content or null
for nonepublic MultipartContent.Part setContent(HttpContent content)
null
for none.public HttpContent getContent()
null
for none.public MultipartContent.Part setHeaders(HttpHeaders headers)
null
for none.public HttpHeaders getHeaders()
null
for none.public MultipartContent.Part setEncoding(HttpEncoding encoding)
null
for none.public HttpEncoding getEncoding()
null
for none.Copyright © 2011–2023 Google. All rights reserved.