Package com.testdroid.api.http
Class MultipartFormDataContent.Part
java.lang.Object
com.testdroid.api.http.MultipartFormDataContent.Part
- Enclosing class:
- MultipartFormDataContent
Single part of a multi-part request.
Implementation is not thread-safe.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.client.http.HttpContent
Returns the HTTP content ornull
for none.com.google.api.client.http.HttpEncoding
Returns the HTTP encoding ornull
for none.com.google.api.client.http.HttpHeaders
Returns the HTTP headers ornull
for none.getName()
setContent
(com.google.api.client.http.HttpContent content) Sets the HTTP content ornull
for none.setEncoding
(com.google.api.client.http.HttpEncoding encoding) Sets the HTTP encoding ornull
for none.setFilename
(String filename) Set the HTTP form-part filename or null for none.setHeaders
(com.google.api.client.http.HttpHeaders headers) Sets the HTTP headers ornull
for none.
-
Constructor Details
-
Part
public Part() -
Part
- Parameters:
name
- HTTP headers ornull
for nonecontent
- HTTP content ornull
for none
-
-
Method Details
-
getContent
public com.google.api.client.http.HttpContent getContent()Returns the HTTP content ornull
for none. -
setContent
Sets the HTTP content ornull
for none. -
getName
-
setName
-
getFilename
-
setFilename
Set the HTTP form-part filename or null for none. -
getHeaders
public com.google.api.client.http.HttpHeaders getHeaders()Returns the HTTP headers ornull
for none. -
setHeaders
Sets the HTTP headers ornull
for none. -
getEncoding
public com.google.api.client.http.HttpEncoding getEncoding()Returns the HTTP encoding ornull
for none. -
setEncoding
Sets the HTTP encoding ornull
for none.
-