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.ObjectSingle part of a multi-part request.Implementation is not thread-safe.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) HttpContentcontentHTTP content ornullfor none.(package private) HttpEncodingencodingHTTP encoding ornullfor none.(package private) HttpHeadersheadersHTTP headers ornullfor 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 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.
-
-
-
Field Detail
-
content
HttpContent content
HTTP content ornullfor none.
-
headers
HttpHeaders headers
HTTP headers ornullfor none.
-
encoding
HttpEncoding encoding
HTTP encoding 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.
-
-