All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jayway.restassured.internal.MultiPartSpecificationImpl.groovy Maven / Gradle / Ivy

There is a newer version: 2.9.0
Show newest version
package com.jayway.restassured.internal

import com.jayway.restassured.specification.MultiPartSpecification


class MultiPartSpecificationImpl implements MultiPartSpecification {
  private static final String NONE = ''
  private static final String INPUT_STREAM = ''

  def content
  def String controlName
  def String mimeType
  def String charset
  def String fileName

  def Object getContent() {
    return content
  }

  def String getControlName() {
    return controlName
  }

  def String getMimeType() {
    return mimeType
  }

  def String getCharset() {
    return charset
  }

  def String getFileName() {
    return fileName
  }

  public String toString() {
    return """controlName=${controlName ?: NONE}, mimeType=${mimeType ?: NONE}, charset=${charset ?: NONE}, fileName=${fileName ?: NONE}, content=${content instanceof InputStream ? INPUT_STREAM : content}"""
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy