Class MultipartFormDataContent.Part

java.lang.Object
com.testdroid.api.http.MultipartFormDataContent.Part
Enclosing class:
MultipartFormDataContent

public static final class MultipartFormDataContent.Part extends Object
Single part of a multi-part request.

Implementation is not thread-safe.

  • Constructor Details

    • Part

      public Part()
    • Part

      public Part(String name, com.google.api.client.http.HttpContent content)
      Parameters:
      name - HTTP headers or null for none
      content - HTTP content or null for none
  • Method Details

    • getContent

      public com.google.api.client.http.HttpContent getContent()
      Returns the HTTP content or null for none.
    • setContent

      public MultipartFormDataContent.Part setContent(com.google.api.client.http.HttpContent content)
      Sets the HTTP content or null for none.
    • getName

      public String getName()
    • setName

      public MultipartFormDataContent.Part setName(String name)
    • getFilename

      public String getFilename()
    • setFilename

      public MultipartFormDataContent.Part setFilename(String filename)
      Set the HTTP form-part filename or null for none.
    • getHeaders

      public com.google.api.client.http.HttpHeaders getHeaders()
      Returns the HTTP headers or null for none.
    • setHeaders

      public MultipartFormDataContent.Part setHeaders(com.google.api.client.http.HttpHeaders headers)
      Sets the HTTP headers or null for none.
    • getEncoding

      public com.google.api.client.http.HttpEncoding getEncoding()
      Returns the HTTP encoding or null for none.
    • setEncoding

      public MultipartFormDataContent.Part setEncoding(com.google.api.client.http.HttpEncoding encoding)
      Sets the HTTP encoding or null for none.