Class 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 Detail

      • MultipartFormDataContent

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

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