Package com.testdroid.api.http
Class MultipartFormDataContent
java.lang.Object
com.google.api.client.http.AbstractHttpContent
com.testdroid.api.http.MultipartFormDataContent
- All Implemented Interfaces:
com.google.api.client.http.HttpContent
,com.google.api.client.util.StreamingContent
public class MultipartFormDataContent
extends com.google.api.client.http.AbstractHttpContent
Created by sakari on 6/10/13.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Single part of a multi-part request. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds an HTTP multipart part.final String
Returns the boundary string to use.getParts()
Returns an unmodifiable view of the parts of the HTTP multipart request.boolean
setBoundary
(String boundary) Sets the boundary string to use.setMediaType
(com.google.api.client.http.HttpMediaType mediaType) Sets the parts of the HTTP multipart request.void
writeTo
(OutputStream out) Methods inherited from class com.google.api.client.http.AbstractHttpContent
computeLength, computeLength, getCharset, getLength, getMediaType, getType
-
Constructor Details
-
MultipartFormDataContent
public MultipartFormDataContent()
-
-
Method Details
-
writeTo
- Throws:
IOException
-
retrySupported
public boolean retrySupported()- Specified by:
retrySupported
in interfacecom.google.api.client.http.HttpContent
- Overrides:
retrySupported
in classcom.google.api.client.http.AbstractHttpContent
-
setMediaType
- Overrides:
setMediaType
in classcom.google.api.client.http.AbstractHttpContent
-
getParts
Returns an unmodifiable view of the parts of the HTTP multipart request. -
setParts
Sets the parts of the HTTP multipart request.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
addPart
Adds an HTTP multipart part.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
getBoundary
Returns the boundary string to use. -
setBoundary
Sets the boundary string to use.Defaults to
"__END_OF_PART__"
.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-