Top Description Constructors Methods
org.springframework.http.codec.multipart

pack-priv abstract Class MultipartUtils

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.channels.Channel, java.nio.charset.Charset, .StandardCharsets, java.nio.file.Files, .Path, org.springframework.http.HttpHeaders, .HttpMessage, .MediaType, org.springframework.lang.Nullable

Various static utility methods for dealing with multipart parsing.
Author
Arjen Poutsma
Since
5.3

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public static byte[]
boundary(HttpMessage message, Charset headersCharset)

public static Charset
charset(HttpHeaders headers)

Return the character set of the given headers, as defined in the HttpHeaders#getContentType() header.

public static void
public static byte[]
concat(byte[]... byteArrays)

Concatenates the given array of byte arrays.

public static void
public static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

MultipartUtilsback to summary
pack-priv MultipartUtils()

Method Detail

boundaryback to summary
public static byte[] boundary(HttpMessage message, Charset headersCharset)
Annotations
@Nullable
charsetback to summary
public static Charset charset(HttpHeaders headers)

Return the character set of the given headers, as defined in the HttpHeaders#getContentType() header.

closeChannelback to summary
public static void closeChannel(Channel channel)
concatback to summary
public static byte[] concat(byte[]... byteArrays)

Concatenates the given array of byte arrays.

deleteFileback to summary
public static void deleteFile(Path file)
isFormFieldback to summary
public static boolean isFormField(HttpHeaders headers)