Class PartBuilder
- java.lang.Object
-
- org.bremersee.apiclient.webflux.contract.spring.multipart.PartBuilder
-
public class PartBuilder extends Object
The part builder.- Author:
- Christian Bremer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPartBuilder.AbstractFilePartBuilderThe abstract file part builder.static classPartBuilder.AbstractPartBuilder<T extends org.springframework.http.codec.multipart.Part>The abstract part builder.static classPartBuilder.DataBufferPartBuilderThe data buffer part builder.static classPartBuilder.FilePartBuilderThe file part builder.static classPartBuilder.FormFieldPartBuilderThe form field part builder.static classPartBuilder.ResourcePartBuilderThe resource part builder.
-
Constructor Summary
Constructors Constructor Description PartBuilder()Instantiates a new part builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PartBuilder.FormFieldPartBuilderpart(String name, String value)Form field part builder.PartBuilder.DataBufferPartBuilderpart(String name, String filename, reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> content)Data buffer part builder.PartBuilder.FilePartBuilderpart(String name, Path file)File part builder.PartBuilder.ResourcePartBuilderpart(String name, org.springframework.core.io.Resource resource)Resource part builder.PartBuilder.DataBufferPartBuilderpart(String name, reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> content)Data buffer part builder.
-
-
-
Method Detail
-
part
public PartBuilder.FormFieldPartBuilder part(String name, String value)
Form field part builder.- Parameters:
name- the namevalue- the value- Returns:
- the form field part builder
-
part
public PartBuilder.FilePartBuilder part(String name, Path file)
File part builder.- Parameters:
name- the namefile- the file- Returns:
- the file part builder
-
part
public PartBuilder.ResourcePartBuilder part(String name, org.springframework.core.io.Resource resource)
Resource part builder.- Parameters:
name- the nameresource- the resource- Returns:
- the resource part builder
-
part
public PartBuilder.DataBufferPartBuilder part(String name, reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> content)
Data buffer part builder.- Parameters:
name- the namecontent- the content- Returns:
- the data buffer part builder
-
part
public PartBuilder.DataBufferPartBuilder part(String name, String filename, reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> content)
Data buffer part builder.- Parameters:
name- the namefilename- the filenamecontent- the content- Returns:
- the data buffer part builder
-
-