/** * Builder pattern method to return this {@code BodyPart} after additional configuration. * * @param entity entity to set for this {@code BodyPart}. * @return body-part instance. */ public BodyPart entity(final Object entity) { setEntity(entity); return this; }
/** * Instantiates a new {@code BodyPart} with the specified characteristics. * * @param entity entity for this body part. * @param mediaType {@link MediaType} for this body part. */ public BodyPart(final Object entity, final MediaType mediaType) { setEntity(entity); setMediaType(mediaType); }
bodyPart.setEntity(new BodyPartEntity(mimePart));
/** * Builder pattern method to return this {@code BodyPart} after additional configuration. * * @param entity entity to set for this {@code BodyPart}. * @return body-part instance. */ public BodyPart entity(final Object entity) { setEntity(entity); return this; }
/** * Builder pattern method to return this {@code BodyPart} after additional configuration. * * @param entity entity to set for this {@code BodyPart}. * @return body-part instance. */ public BodyPart entity(final Object entity) { setEntity(entity); return this; }
/** * Builder pattern method to return this {@code BodyPart} after additional configuration. * * @param entity entity to set for this {@code BodyPart}. * @return body-part instance. */ public BodyPart entity(final Object entity) { setEntity(entity); return this; }
/** * Builder pattern method to return this {@code BodyPart} after additional configuration. * * @param entity entity to set for this {@code BodyPart}. * @return body-part instance. */ public BodyPart entity(final Object entity) { setEntity(entity); return this; }
/** * Instantiates a new {@code BodyPart} with the specified characteristics. * * @param entity entity for this body part. * @param mediaType {@link MediaType} for this body part. */ public BodyPart(final Object entity, final MediaType mediaType) { setEntity(entity); setMediaType(mediaType); }
/** * Instantiates a new {@code BodyPart} with the specified characteristics. * * @param entity entity for this body part. * @param mediaType {@link MediaType} for this body part. */ public BodyPart(final Object entity, final MediaType mediaType) { setEntity(entity); setMediaType(mediaType); }
/** * Instantiates a new {@code BodyPart} with the specified characteristics. * * @param entity entity for this body part. * @param mediaType {@link MediaType} for this body part. */ public BodyPart(final Object entity, final MediaType mediaType) { setEntity(entity); setMediaType(mediaType); }
/** * Instantiates a new {@code BodyPart} with the specified characteristics. * * @param entity entity for this body part. * @param mediaType {@link MediaType} for this body part. */ public BodyPart(final Object entity, final MediaType mediaType) { setEntity(entity); setMediaType(mediaType); }
bodyPart.setEntity(new BodyPartEntity(mp)); multiPart.getBodyParts().add(bodyPart);
bodyPart.setEntity(new BodyPartEntity(mimePart));
bodyPart.setEntity(new BodyPartEntity(mimePart));
bodyPart.setEntity(new BodyPartEntity(mimePart));
bodyPart.setEntity(new BodyPartEntity(mimePart));