Class MultipartFileBuilderImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      reactor.core.publisher.Mono<org.springframework.web.multipart.MultipartFile> build​(org.springframework.http.codec.multipart.Part part)
      Build multipart file from the given part.
      reactor.core.publisher.Mono<org.springframework.web.multipart.MultipartFile> build​(reactor.core.publisher.Flux<? extends org.springframework.http.codec.multipart.Part> parts)
      Build multipart file from the last part of the given parts.
      reactor.core.publisher.Mono<List<org.springframework.web.multipart.MultipartFile>> buildList​(org.springframework.util.MultiValueMap<String,​org.springframework.http.codec.multipart.Part> multiPartData, String... requestParameters)
      Build list of multipart files from the given multi part data.
      reactor.core.publisher.Mono<List<org.springframework.web.multipart.MultipartFile>> buildList​(reactor.core.publisher.Flux<? extends org.springframework.http.codec.multipart.Part> parts)
      Build multipart files from the given parts.
      reactor.core.publisher.Flux<List<org.springframework.web.multipart.MultipartFile>> buildLists​(org.springframework.util.MultiValueMap<String,​org.springframework.http.codec.multipart.Part> multiPartData, String... requestParameters)
      Build list (flux) of lists of multipart files from the given multi part data.
      reactor.core.publisher.Mono<Map<String,​org.springframework.web.multipart.MultipartFile>> buildMap​(org.springframework.util.MultiValueMap<String,​org.springframework.http.codec.multipart.Part> multiPartData, String... requestParameters)
      Build map of multipart files from the given multi part data.
      reactor.core.publisher.Mono<Map<String,​org.springframework.web.multipart.MultipartFile>> buildMap​(reactor.core.publisher.Flux<? extends org.springframework.http.codec.multipart.Part>... parts)
      Build map mono.
      reactor.core.publisher.Mono<org.springframework.util.MultiValueMap<String,​org.springframework.web.multipart.MultipartFile>> buildMultiValueMap​(org.springframework.util.MultiValueMap<String,​org.springframework.http.codec.multipart.Part> multiPartData, String... requestParameters)
      Build multi value map of multipart files from the given multi part data.
      reactor.core.publisher.Mono<org.springframework.util.MultiValueMap<String,​org.springframework.web.multipart.MultipartFile>> buildMultiValueMap​(reactor.core.publisher.Flux<? extends org.springframework.http.codec.multipart.Part>... parts)
      Build multi value map mono.
    • Constructor Detail

      • MultipartFileBuilderImpl

        public MultipartFileBuilderImpl()
        Instantiates a new multipart file builder.
      • MultipartFileBuilderImpl

        public MultipartFileBuilderImpl​(String tmpDir)
        Instantiates a new multipart file builder.
        Parameters:
        tmpDir - the tmp dir
      • MultipartFileBuilderImpl

        public MultipartFileBuilderImpl​(File tmpDir)
        Instantiates a new multipart file builder.
        Parameters:
        tmpDir - the tmp dir
    • Method Detail

      • build

        public reactor.core.publisher.Mono<org.springframework.web.multipart.MultipartFile> build​(org.springframework.http.codec.multipart.Part part)
        Description copied from interface: MultipartFileBuilder
        Build multipart file from the given part.

        If hhe given part is null, an empty multipart file will be returned.

        Specified by:
        build in interface MultipartFileBuilder
        Parameters:
        part - the part (can be null)
        Returns:
        the multipart file
      • build

        public reactor.core.publisher.Mono<org.springframework.web.multipart.MultipartFile> build​(reactor.core.publisher.Flux<? extends org.springframework.http.codec.multipart.Part> parts)
        Description copied from interface: MultipartFileBuilder
        Build multipart file from the last part of the given parts.
        Specified by:
        build in interface MultipartFileBuilder
        Parameters:
        parts - the parts
        Returns:
        the multipart file
      • buildList

        public reactor.core.publisher.Mono<List<org.springframework.web.multipart.MultipartFile>> buildList​(reactor.core.publisher.Flux<? extends org.springframework.http.codec.multipart.Part> parts)
        Description copied from interface: MultipartFileBuilder
        Build multipart files from the given parts.
        Specified by:
        buildList in interface MultipartFileBuilder
        Parameters:
        parts - the parts
        Returns:
        the multipart files
      • buildList

        public reactor.core.publisher.Mono<List<org.springframework.web.multipart.MultipartFile>> buildList​(org.springframework.util.MultiValueMap<String,​org.springframework.http.codec.multipart.Part> multiPartData,
                                                                                                            String... requestParameters)
        Description copied from interface: MultipartFileBuilder
        Build list of multipart files from the given multi part data.
        Specified by:
        buildList in interface MultipartFileBuilder
        Parameters:
        multiPartData - the multi part data
        requestParameters - the request parameters
        Returns:
        the list of multipart files
      • buildLists

        public reactor.core.publisher.Flux<List<org.springframework.web.multipart.MultipartFile>> buildLists​(org.springframework.util.MultiValueMap<String,​org.springframework.http.codec.multipart.Part> multiPartData,
                                                                                                             String... requestParameters)
        Description copied from interface: MultipartFileBuilder
        Build list (flux) of lists of multipart files from the given multi part data.
        Specified by:
        buildLists in interface MultipartFileBuilder
        Parameters:
        multiPartData - the multi part data
        requestParameters - the request parameters
        Returns:
        the list (flux) of lists of multipart files
      • buildMap

        public reactor.core.publisher.Mono<Map<String,​org.springframework.web.multipart.MultipartFile>> buildMap​(reactor.core.publisher.Flux<? extends org.springframework.http.codec.multipart.Part>... parts)
        Description copied from interface: MultipartFileBuilder
        Build map mono.
        Specified by:
        buildMap in interface MultipartFileBuilder
        Parameters:
        parts - the parts
        Returns:
        the mono
      • buildMap

        public reactor.core.publisher.Mono<Map<String,​org.springframework.web.multipart.MultipartFile>> buildMap​(org.springframework.util.MultiValueMap<String,​org.springframework.http.codec.multipart.Part> multiPartData,
                                                                                                                       String... requestParameters)
        Description copied from interface: MultipartFileBuilder
        Build map of multipart files from the given multi part data.
        Specified by:
        buildMap in interface MultipartFileBuilder
        Parameters:
        multiPartData - the multi part data
        requestParameters - the request parameters
        Returns:
        the map of multipart files
      • buildMultiValueMap

        public reactor.core.publisher.Mono<org.springframework.util.MultiValueMap<String,​org.springframework.web.multipart.MultipartFile>> buildMultiValueMap​(reactor.core.publisher.Flux<? extends org.springframework.http.codec.multipart.Part>... parts)
        Description copied from interface: MultipartFileBuilder
        Build multi value map mono.
        Specified by:
        buildMultiValueMap in interface MultipartFileBuilder
        Parameters:
        parts - the parts
        Returns:
        the mono
      • buildMultiValueMap

        public reactor.core.publisher.Mono<org.springframework.util.MultiValueMap<String,​org.springframework.web.multipart.MultipartFile>> buildMultiValueMap​(org.springframework.util.MultiValueMap<String,​org.springframework.http.codec.multipart.Part> multiPartData,
                                                                                                                                                                    String... requestParameters)
        Description copied from interface: MultipartFileBuilder
        Build multi value map of multipart files from the given multi part data.
        Specified by:
        buildMultiValueMap in interface MultipartFileBuilder
        Parameters:
        multiPartData - the multi part data
        requestParameters - the request parameters
        Returns:
        the multi value map of multipart files