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 class
PartBuilder.AbstractFilePartBuilder
The abstract file part builder.static class
PartBuilder.AbstractPartBuilder<T extends org.springframework.http.codec.multipart.Part>
The abstract part builder.static class
PartBuilder.DataBufferPartBuilder
The data buffer part builder.static class
PartBuilder.FilePartBuilder
The file part builder.static class
PartBuilder.FormFieldPartBuilder
The form field part builder.static class
PartBuilder.ResourcePartBuilder
The 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.FormFieldPartBuilder
part(String name, String value)
Form field part builder.PartBuilder.DataBufferPartBuilder
part(String name, String filename, reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> content)
Data buffer part builder.PartBuilder.FilePartBuilder
part(String name, Path file)
File part builder.PartBuilder.ResourcePartBuilder
part(String name, org.springframework.core.io.Resource resource)
Resource part builder.PartBuilder.DataBufferPartBuilder
part(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
-
-