Package io.helidon.http.media.multipart
Interface WriteablePart
public interface WriteablePart
A single part of a
WriteableMultiPart
message.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic WriteablePart.Builder
Builder to create a new part.Content type of this part.fileName()
File name if defined in content disposition.headers()
Full set of configured headers of this part.name()
Name of this part.void
writeClientRequest
(MediaContext context, OutputStream outputStream) Write this part as part of client request.void
writeServerResponse
(MediaContext context, OutputStream outputStream, Headers requestHeaders) Write this part as part of server response.
-
Method Details
-
builder
Builder to create a new part.- Parameters:
partName
- name of this part (will be used in content disposition if used)- Returns:
- a new builder
-
name
String name()Name of this part.- Returns:
- part name
-
fileName
File name if defined in content disposition.- Returns:
- file name
-
contentType
HttpMediaType contentType()Content type of this part.- Returns:
- content type
-
headers
Headers headers()Full set of configured headers of this part.- Returns:
- headers
-
writeServerResponse
Write this part as part of server response.- Parameters:
context
- media contextoutputStream
- output stream to write torequestHeaders
- request headers (server request headers)
-
writeClientRequest
Write this part as part of client request.- Parameters:
context
- media contextoutputStream
- output stream to write to
-