Interface BodyPart
public interface BodyPart
A body part entity.
-
Method Summary
Modifier and TypeMethodDescriptionstatic BodyPartBuilder
builder()
Returns a newBodyPartBuilder
.content()
Returns the reactive representation of the part content.filename()
Returns the file name.headers()
Returns HTTP part headers.name()
Returns the control name.static BodyPart
of(ContentDisposition contentDisposition, HttpData content)
static BodyPart
of(ContentDisposition contentDisposition, MediaType contentType, HttpData content)
static BodyPart
of(ContentDisposition contentDisposition, MediaType contentType, CharSequence content)
Returns a new UTF-8-encodedBodyPart
using the specifiedContentDisposition
,MediaType
andCharSequence
.static BodyPart
of(ContentDisposition contentDisposition, MediaType contentType, org.reactivestreams.Publisher<? extends HttpData> publisher)
static BodyPart
of(ContentDisposition contentDisposition, CharSequence content)
static BodyPart
of(ContentDisposition contentDisposition, org.reactivestreams.Publisher<? extends HttpData> publisher)
static BodyPart
of(HttpHeaders headers, HttpData content)
static BodyPart
of(HttpHeaders headers, CharSequence content)
static BodyPart
of(HttpHeaders headers, org.reactivestreams.Publisher<? extends HttpData> publisher)
-
Method Details
-
of
-
of
static BodyPart of(ContentDisposition contentDisposition, MediaType contentType, CharSequence content)Returns a new UTF-8-encodedBodyPart
using the specifiedContentDisposition
,MediaType
andCharSequence
. -
of
-
of
-
of
-
of
-
of
static BodyPart of(ContentDisposition contentDisposition, org.reactivestreams.Publisher<? extends HttpData> publisher) -
of
static BodyPart of(ContentDisposition contentDisposition, MediaType contentType, org.reactivestreams.Publisher<? extends HttpData> publisher) -
of
static BodyPart of(HttpHeaders headers, org.reactivestreams.Publisher<? extends HttpData> publisher) -
builder
Returns a newBodyPartBuilder
. -
headers
HttpHeaders headers()Returns HTTP part headers. -
content
Returns the reactive representation of the part content. -
name
Returns the control name.- Returns:
- the
name
parameter of the"content-disposition"
header, ornull
if not present.
-
filename
Returns the file name.- Returns:
- the
filename
parameter of the"content-disposition"
header, ornull
if not present.
-