/** * Instantiates a named {@link FormDataBodyPart} with a * media type of {@code text/plain} and String value. * * @param name the control name for this body part. * @param value the value for this body part. */ public FormDataBodyPart(String name, String value) { super(value, MediaType.TEXT_PLAIN_TYPE); this.fileNameFix = false; setName(name); }
/** * Instantiates a named {@link FormDataBodyPart} with the * specified characteristics. * * @param name the control name for this body part. * @param entity the entity for this body part. * @param mediaType the {@link MediaType} for this body part. */ public FormDataBodyPart(String name, Object entity, MediaType mediaType) { super(entity, mediaType); this.fileNameFix = false; setName(name); }
/** * Constructs the body part with all the attributes set for its proper * function. If this constructor is used to construct the body part then it * is not required to set any other attributes for proper behavior. * * @param name the name of body part. * @param fileEntity the file that represents the entity. * @param mediaType the {@link MediaType} of the body part. * @throws java.lang.IllegalArgumentException if the fileEntity is {@code null}. */ public FileDataBodyPart(final String name, final File fileEntity, final MediaType mediaType) throws IllegalArgumentException { super(); super.setName(name); if (mediaType != null) { setFileEntity(fileEntity, mediaType); } else { setFileEntity(fileEntity, predictMediaType(fileEntity)); } }
super.setName(name);
/** * Instantiates a named {@link FormDataBodyPart} with a * media type of {@code text/plain} and String value. * * @param name the control name for this body part. * @param value the value for this body part. */ public FormDataBodyPart(String name, String value) { super(value, MediaType.TEXT_PLAIN_TYPE); this.fileNameFix = false; setName(name); }
/** * Instantiates a named {@link FormDataBodyPart} with a * media type of {@code text/plain} and String value. * * @param name the control name for this body part. * @param value the value for this body part. */ public FormDataBodyPart(String name, String value) { super(value, MediaType.TEXT_PLAIN_TYPE); this.fileNameFix = false; setName(name); }
/** * Instantiates a named {@link FormDataBodyPart} with a * media type of {@code text/plain} and String value. * * @param name the control name for this body part. * @param value the value for this body part. */ public FormDataBodyPart(String name, String value) { super(value, MediaType.TEXT_PLAIN_TYPE); this.fileNameFix = false; setName(name); }
/** * Instantiates a named {@link FormDataBodyPart} with a * media type of {@code text/plain} and String value. * * @param name the control name for this body part. * @param value the value for this body part. */ public FormDataBodyPart(String name, String value) { super(value, MediaType.TEXT_PLAIN_TYPE); this.fileNameFix = false; setName(name); }
/** * Instantiates a named {@link FormDataBodyPart} with the * specified characteristics. * * @param name the control name for this body part. * @param entity the entity for this body part. * @param mediaType the {@link MediaType} for this body part. */ public FormDataBodyPart(String name, Object entity, MediaType mediaType) { super(entity, mediaType); this.fileNameFix = false; setName(name); }
/** * Instantiates a named {@link FormDataBodyPart} with the * specified characteristics. * * @param name the control name for this body part. * @param entity the entity for this body part. * @param mediaType the {@link MediaType} for this body part. */ public FormDataBodyPart(String name, Object entity, MediaType mediaType) { super(entity, mediaType); this.fileNameFix = false; setName(name); }
/** * Instantiates a named {@link FormDataBodyPart} with the * specified characteristics. * * @param name the control name for this body part. * @param entity the entity for this body part. * @param mediaType the {@link MediaType} for this body part. */ public FormDataBodyPart(String name, Object entity, MediaType mediaType) { super(entity, mediaType); this.fileNameFix = false; setName(name); }
/** * Instantiates a named {@link FormDataBodyPart} with the * specified characteristics. * * @param name the control name for this body part. * @param entity the entity for this body part. * @param mediaType the {@link MediaType} for this body part. */ public FormDataBodyPart(String name, Object entity, MediaType mediaType) { super(entity, mediaType); this.fileNameFix = false; setName(name); }
super.setName(name);
super.setName(name);
super.setName(name);
/** * Constructs the body part with all the attributes set for its proper * function. If this constructor is used to construct the body part then it * is not required to set any other attributes for proper behavior. * * @param name the name of body part. * @param fileEntity the file that represents the entity. * @param mediaType the {@link MediaType} of the body part. * @throws java.lang.IllegalArgumentException if the fileEntity is {@code null}. */ public FileDataBodyPart(final String name, final File fileEntity, final MediaType mediaType) throws IllegalArgumentException { super(); super.setName(name); if (mediaType != null) { setFileEntity(fileEntity, mediaType); } else { setFileEntity(fileEntity, predictMediaType(fileEntity)); } }
/** * Constructs the body part with all the attributes set for its proper * function. If this constructor is used to construct the body part then it * is not required to set any other attributes for proper behavior. * * @param name the name of body part. * @param fileEntity the file that represents the entity. * @param mediaType the {@link MediaType} of the body part. * @throws java.lang.IllegalArgumentException if the fileEntity is {@code null}. */ public FileDataBodyPart(final String name, final File fileEntity, final MediaType mediaType) throws IllegalArgumentException { super(); super.setName(name); if (mediaType != null) { setFileEntity(fileEntity, mediaType); } else { setFileEntity(fileEntity, predictMediaType(fileEntity)); } }
/** * Constructs the body part with all the attributes set for its proper * function. If this constructor is used to construct the body part then it * is not required to set any other attributes for proper behavior. * * @param name the name of body part. * @param fileEntity the file that represents the entity. * @param mediaType the {@link MediaType} of the body part. * @throws java.lang.IllegalArgumentException if the fileEntity is {@code null}. */ public FileDataBodyPart(final String name, final File fileEntity, final MediaType mediaType) throws IllegalArgumentException { super(); super.setName(name); if (mediaType != null) { setFileEntity(fileEntity, mediaType); } else { setFileEntity(fileEntity, predictMediaType(fileEntity)); } }
/** * Constructs the body part with all the attributes set for its proper * function. If this constructor is used to construct the body part then it * is not required to set any other attributes for proper behavior. * * @param name the name of body part. * @param fileEntity the file that represents the entity. * @param mediaType the {@link MediaType} of the body part. * @throws java.lang.IllegalArgumentException if the fileEntity is {@code null}. */ public FileDataBodyPart(final String name, final File fileEntity, final MediaType mediaType) throws IllegalArgumentException { super(); super.setName(name); if (mediaType != null) { setFileEntity(fileEntity, mediaType); } else { setFileEntity(fileEntity, predictMediaType(fileEntity)); } }