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.
  • Constructor Details

    • MultipartFormDataContent

      public MultipartFormDataContent()
  • Method Details

    • writeTo

      public void writeTo(OutputStream out) throws IOException
      Throws:
      IOException
    • retrySupported

      public boolean retrySupported()
      Specified by:
      retrySupported in interface com.google.api.client.http.HttpContent
      Overrides:
      retrySupported in class com.google.api.client.http.AbstractHttpContent
    • setMediaType

      public MultipartFormDataContent setMediaType(com.google.api.client.http.HttpMediaType mediaType)
      Overrides:
      setMediaType in class com.google.api.client.http.AbstractHttpContent
    • getParts

      public final Collection<MultipartFormDataContent.Part> 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

      public final String getBoundary()
      Returns the boundary string to use.
    • setBoundary

      public MultipartFormDataContent setBoundary(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.