Class MultipartContent.Part
java.lang.Object
com.google.api.client.http.MultipartContent.Part
- Enclosing class:
MultipartContent
Single part of a multi-part request.
Implementation is not thread-safe.
- Since:
- 1.14
- Author:
- Yaniv Inbar
-
Constructor Summary
ConstructorsConstructorDescriptionPart()Part(HttpContent content) Part(HttpHeaders headers, HttpContent content) -
Method Summary
Modifier and TypeMethodDescriptionReturns the HTTP content ornullfor none.Returns the HTTP encoding ornullfor none.Returns the HTTP headers ornullfor none.setContent(HttpContent content) Sets the HTTP content ornullfor none.setEncoding(HttpEncoding encoding) Sets the HTTP encoding ornullfor none.setHeaders(HttpHeaders headers) Sets the HTTP headers ornullfor none.
-
Constructor Details
-
Part
public Part() -
Part
- Parameters:
content- HTTP content ornullfor none
-
Part
- Parameters:
headers- HTTP headers ornullfor nonecontent- HTTP content ornullfor none
-
-
Method Details
-
setContent
Sets the HTTP content ornullfor none. -
getContent
Returns the HTTP content ornullfor none. -
setHeaders
Sets the HTTP headers ornullfor none. -
getHeaders
Returns the HTTP headers ornullfor none. -
setEncoding
Sets the HTTP encoding ornullfor none. -
getEncoding
Returns the HTTP encoding ornullfor none.
-