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 Object
Single part of a multi-part request.Implementation is not thread-safe.
-
-
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 HttpContentgetContent()Returns the HTTP content ornullfor none.HttpEncodinggetEncoding()Returns the HTTP encoding ornullfor none.HttpHeadersgetHeaders()Returns the HTTP headers ornullfor none.MultipartContent.PartsetContent(HttpContent content)Sets the HTTP content ornullfor none.MultipartContent.PartsetEncoding(HttpEncoding encoding)Sets the HTTP encoding ornullfor none.MultipartContent.PartsetHeaders(HttpHeaders headers)Sets the HTTP headers ornullfor none.
-
-
-
Constructor Detail
-
Part
public Part()
-
Part
public Part(HttpContent content)
- Parameters:
content- HTTP content ornullfor none
-
Part
public Part(HttpHeaders headers, HttpContent content)
- Parameters:
headers- HTTP headers ornullfor nonecontent- HTTP content ornullfor none
-
-
Method Detail
-
setContent
public MultipartContent.Part setContent(HttpContent content)
Sets the HTTP content ornullfor none.
-
getContent
public HttpContent getContent()
Returns the HTTP content ornullfor none.
-
setHeaders
public MultipartContent.Part setHeaders(HttpHeaders headers)
Sets the HTTP headers ornullfor none.
-
getHeaders
public HttpHeaders getHeaders()
Returns the HTTP headers ornullfor none.
-
setEncoding
public MultipartContent.Part setEncoding(HttpEncoding encoding)
Sets the HTTP encoding ornullfor none.
-
getEncoding
public HttpEncoding getEncoding()
Returns the HTTP encoding ornullfor none.
-
-