Part and subtypes.
| Modifier and Type | Class and Description |
|---|---|
| private abstract static class | DefaultParts.AbstractPart
Abstract base class for |
| private static interface | DefaultParts.Content
Part content abstraction. |
| private static class | DefaultParts.DefaultFilePart
Default implementation of |
| private static class | DefaultParts.DefaultFormFieldPart
Default implementation of |
| private static class | DefaultParts.DefaultPart
Default implementation of |
| private static class | DefaultParts.FileContent
|
| private static class | DefaultParts.FluxContent
|
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static FormFieldPart | Returns: the created partthe part headers headers, String the form field value value)Create a new |
| public static Part | part(HttpHeaders
the part headers headers, Flux<DataBuffer> the content of the part dataBuffers)Create a new |
| public static Part | part(HttpHeaders
the part headers headers, Path the file file, Scheduler the scheduler used for reading the file scheduler) |
| private static Part |
| DefaultParts | back to summary |
|---|---|
| pack-priv DefaultParts() | |
| formFieldPart | back to summary |
|---|---|
| public static FormFieldPart formFieldPart(HttpHeaders headers, String value) Create a new
| |
| part | back to summary |
|---|---|
| public static Part part(HttpHeaders headers, Flux<DataBuffer> dataBuffers) Create a new
| |
| part | back to summary |
|---|---|
| public static Part part(HttpHeaders headers, Path file, Scheduler scheduler) Create a new
| |
| partInternal | back to summary |
|---|---|
| private static Part partInternal(HttpHeaders headers, DefaultParts. | |
Part implementations.
| Modifier and Type | Field and Description |
|---|---|
| private final HttpHeaders |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public HttpHeaders | headers()
Implements org. |
| public String | name()
Implements org. |
| headers | back to summary |
|---|---|
| private final HttpHeaders headers | |
| AbstractPart | back to summary |
|---|---|
| protected AbstractPart(HttpHeaders headers) | |
| headers | back to summary |
|---|---|
| public HttpHeaders headers() Implements org. Doc from org. Return the headers associated with the part.
| |
| name | back to summary |
|---|---|
| public String name() Implements org. Doc from org. Return the name of the part in the multipart form. | |
| Modifier and Type | Method and Description |
|---|---|
| public Flux | |
| public Mono | |
| public Mono |
| content | back to summary |
|---|---|
| public Flux | |
| delete | back to summary |
|---|---|
| public Mono | |
| transferTo | back to summary |
|---|---|
| public Mono | |
FilePart.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | filename()
Implements org. |
| public String | toString()
Overrides org. |
| public Mono | transferTo(Path
the target file dest)Implements org. |
| DefaultFilePart | back to summary |
|---|---|
| public DefaultFilePart(HttpHeaders headers, DefaultParts. | |
| filename | back to summary |
|---|---|
| public String filename() Implements org. Doc from org. Return the original filename in the client's filesystem. Note Please keep in mind this filename is supplied by the client and should not be used blindly. In addition to not using the directory portion, the file name could also contain characters such as ".." and others that can be used maliciously. It is recommended to not use this filename directly. Preferably generate a unique one and save this one somewhere for reference, if necessary. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object. | |
| transferTo | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Convenience method to copy the content of the file in this part to the given destination file. If the destination file already exists, it will be truncated first.
| |
FormFieldPart.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Flux | content()
Implements org. |
| public String | |
| public String | value()
Implements org. |
| value | back to summary |
|---|---|
| private final String value | |
| DefaultFormFieldPart | back to summary |
|---|---|
| public DefaultFormFieldPart(HttpHeaders headers, String value) | |
| content | back to summary |
|---|---|
| public Flux Implements org. Doc from org. Return the content for this part. Note that for a
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| value | back to summary |
|---|---|
| public String value() Implements org. Doc from org. Return the form field value.
| |
Part.
| Modifier and Type | Field and Description |
|---|---|
| protected final DefaultParts. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Flux | content()
Implements org. |
| public Mono | delete()
Overrides default org. |
| public String |
| content | back to summary |
|---|---|
| protected final DefaultParts. | |
| DefaultPart | back to summary |
|---|---|
| public DefaultPart(HttpHeaders headers, DefaultParts. | |
| content | back to summary |
|---|---|
| public Flux Implements org. Doc from org. Return the content for this part. Note that for a
| |
| delete | back to summary |
|---|---|
| public Mono Overrides default org. Doc from org. Return a mono that, when subscribed to, deletes the underlying storage for this part.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
Content implementation based on a file.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Mono | |
| public Flux | |
| public Mono | |
| public Mono |
| file | back to summary |
|---|---|
| private final Path file | |
| scheduler | back to summary |
|---|---|
| private final Scheduler scheduler | |
| FileContent | back to summary |
|---|---|
| public FileContent(Path file, Scheduler scheduler) | |
| blockingOperation | back to summary |
|---|---|
| private Mono | |
| content | back to summary |
|---|---|
| public Flux Implements org.
| |
| delete | back to summary |
|---|---|
| public Mono Implements org.
| |
| transferTo | back to summary |
|---|---|
| public Mono Implements org.
| |
Content implementation based on a flux of data buffers.
| Modifier and Type | Field and Description |
|---|---|
| private final Flux |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Flux | |
| public Mono | |
| public Mono |
| content | back to summary |
|---|---|
| private final Flux<DataBuffer> content | |
| FluxContent | back to summary |
|---|---|
| public FluxContent(Flux<DataBuffer> content) | |
| content | back to summary |
|---|---|
| public Flux Implements org.
| |
| delete | back to summary |
|---|---|
| public Mono Implements org.
| |
| transferTo | back to summary |
|---|---|
| public Mono Implements org.
| |