Class MultipartField

java.lang.Object
com.soklet.MultipartField

@ThreadSafe public final class MultipartField extends Object
Encapsulates an HTML form element name, binary and String representations of its value, and other attributes as encoded according to the multipart/form-data specification.

Instances can be acquired via these builder factory methods:

Equality and hashing include the name, filename, content type, explicitly configured charset, and binary contents. The lazily decoded string value does not participate. A null or empty data array represents an absent value. Backing bytes are retained without defensive copying; callers must not modify them after the field is built.

Full documentation is available at https://www.soklet.com/docs/request-handling#multipart-form-data.

Author:
Mark Allen