Package com.google.api.client.http
Class MultipartContent.Part
- java.lang.Object
-
- com.google.api.client.http.MultipartContent.Part
-
- Enclosing class:
- MultipartContent
public static final class MultipartContent.Part extends java.lang.Object
Single part of a multi-part request.Implementation is not thread-safe.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) HttpContent
content
HTTP content ornull
for none.(package private) HttpEncoding
encoding
HTTP encoding ornull
for none.(package private) HttpHeaders
headers
HTTP headers ornull
for none.
-
Constructor Summary
Constructors Constructor Description Part()
Part(HttpContent content)
Part(HttpHeaders headers, HttpContent content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpContent
getContent()
Returns the HTTP content ornull
for none.HttpEncoding
getEncoding()
Returns the HTTP encoding ornull
for none.HttpHeaders
getHeaders()
Returns the HTTP headers ornull
for none.MultipartContent.Part
setContent(HttpContent content)
Sets the HTTP content ornull
for none.MultipartContent.Part
setEncoding(HttpEncoding encoding)
Sets the HTTP encoding ornull
for none.MultipartContent.Part
setHeaders(HttpHeaders headers)
Sets the HTTP headers ornull
for none.
-
-
-
Field Detail
-
content
HttpContent content
HTTP content ornull
for none.
-
headers
HttpHeaders headers
HTTP headers ornull
for none.
-
encoding
HttpEncoding encoding
HTTP encoding ornull
for none.
-
-
Constructor Detail
-
Part
public Part()
-
Part
public Part(HttpContent content)
- Parameters:
content
- HTTP content ornull
for none
-
Part
public Part(HttpHeaders headers, HttpContent content)
- Parameters:
headers
- HTTP headers ornull
for nonecontent
- HTTP content ornull
for none
-
-
Method Detail
-
setContent
public MultipartContent.Part setContent(HttpContent content)
Sets the HTTP content ornull
for none.
-
getContent
public HttpContent getContent()
Returns the HTTP content ornull
for none.
-
setHeaders
public MultipartContent.Part setHeaders(HttpHeaders headers)
Sets the HTTP headers ornull
for none.
-
getHeaders
public HttpHeaders getHeaders()
Returns the HTTP headers ornull
for none.
-
setEncoding
public MultipartContent.Part setEncoding(HttpEncoding encoding)
Sets the HTTP encoding ornull
for none.
-
getEncoding
public HttpEncoding getEncoding()
Returns the HTTP encoding ornull
for none.
-
-