/** * Allows to explicitly set the body part entity. This method assumes the * default {@link MediaType#APPLICATION_OCTET_STREAM} MIME type and doesn't * have to be invoked if one of the non-default constructors was already * called. * <p/> * Either this method or {@link StreamDataBodyPart#setStreamEntity(InputStream, MediaType)} * <strong>must</strong> be invoked if the default constructor was called. * * @param streamEntity entity to be set as a body part. */ public void setStreamEntity(final InputStream streamEntity) { this.setStreamEntity(streamEntity, getDefaultMediaType()); }
setStreamEntity(streamEntity, mediaType); } else { setStreamEntity(streamEntity, getDefaultMediaType());
/** * Allows to explicitly set the body part entity. This method assumes the * default {@link MediaType#APPLICATION_OCTET_STREAM} MIME type and doesn't * have to be invoked if one of the non-default constructors was already * called. * <p/> * Either this method or {@link StreamDataBodyPart#setStreamEntity(InputStream, MediaType)} * <strong>must</strong> be invoked if the default constructor was called. * * @param streamEntity entity to be set as a body part. */ public void setStreamEntity(final InputStream streamEntity) { this.setStreamEntity(streamEntity, getDefaultMediaType()); }
/** * Allows to explicitly set the body part entity. This method assumes the * default {@link MediaType#APPLICATION_OCTET_STREAM} MIME type and doesn't * have to be invoked if one of the non-default constructors was already * called. * <p/> * Either this method or {@link StreamDataBodyPart#setStreamEntity(InputStream, MediaType)} * <strong>must</strong> be invoked if the default constructor was called. * * @param streamEntity entity to be set as a body part. */ public void setStreamEntity(final InputStream streamEntity) { this.setStreamEntity(streamEntity, getDefaultMediaType()); }
/** * Allows to explicitly set the body part entity. This method assumes the * default {@link MediaType#APPLICATION_OCTET_STREAM} MIME type and doesn't * have to be invoked if one of the non-default constructors was already * called. * <p/> * Either this method or {@link StreamDataBodyPart#setStreamEntity(InputStream, MediaType)} * <strong>must</strong> be invoked if the default constructor was called. * * @param streamEntity entity to be set as a body part. */ public void setStreamEntity(final InputStream streamEntity) { this.setStreamEntity(streamEntity, getDefaultMediaType()); }
/** * Allows to explicitly set the body part entity. This method assumes the * default {@link MediaType#APPLICATION_OCTET_STREAM} MIME type and doesn't * have to be invoked if one of the non-default constructors was already * called. * <p/> * Either this method or {@link StreamDataBodyPart#setStreamEntity(InputStream, MediaType)} * <strong>must</strong> be invoked if the default constructor was called. * * @param streamEntity entity to be set as a body part. */ public void setStreamEntity(final InputStream streamEntity) { this.setStreamEntity(streamEntity, getDefaultMediaType()); }
setStreamEntity(streamEntity, mediaType); } else { setStreamEntity(streamEntity, getDefaultMediaType());
setStreamEntity(streamEntity, mediaType); } else { setStreamEntity(streamEntity, getDefaultMediaType());
setStreamEntity(streamEntity, mediaType); } else { setStreamEntity(streamEntity, getDefaultMediaType());
setStreamEntity(streamEntity, mediaType); } else { setStreamEntity(streamEntity, getDefaultMediaType());