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
Nested Classes Modifier and Type Class Description static class
MultipartFormDataContent.Part
Single part of a multi-part request.
-
Constructor Summary
Constructors Constructor Description MultipartFormDataContent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultipartFormDataContent
addPart(MultipartFormDataContent.Part part)
Adds an HTTP multipart part.java.lang.String
getBoundary()
Returns the boundary string to use.java.util.Collection<MultipartFormDataContent.Part>
getParts()
Returns an unmodifiable view of the parts of the HTTP multipart request.boolean
retrySupported()
MultipartFormDataContent
setBoundary(java.lang.String boundary)
Sets the boundary string to use.MultipartFormDataContent
setMediaType(com.google.api.client.http.HttpMediaType mediaType)
MultipartFormDataContent
setParts(java.util.Collection<MultipartFormDataContent.Part> parts)
Sets the parts of the HTTP multipart request.void
writeTo(java.io.OutputStream out)
-
-
-
Method Detail
-
writeTo
public void writeTo(java.io.OutputStream out) throws java.io.IOException
- Throws:
java.io.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
public MultipartFormDataContent setMediaType(com.google.api.client.http.HttpMediaType mediaType)
- Overrides:
setMediaType
in classcom.google.api.client.http.AbstractHttpContent
-
getParts
public final java.util.Collection<MultipartFormDataContent.Part> getParts()
Returns an unmodifiable view of the parts of the HTTP multipart request.
-
setParts
public MultipartFormDataContent setParts(java.util.Collection<MultipartFormDataContent.Part> parts)
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
public MultipartFormDataContent addPart(MultipartFormDataContent.Part part)
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
public final java.lang.String getBoundary()
Returns the boundary string to use.
-
setBoundary
public MultipartFormDataContent setBoundary(java.lang.String boundary)
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.
-
-