Interface MultiPart<T extends BodyPart>

    • Method Detail

      • bodyParts

        List<T> bodyParts()
        Get all the nested body parts.
        Returns:
        list of BodyPart
      • field

        default Optional<T> field​(String name)
        Get the first body part identified by the given control name. The control name is the name parameter of the Content-Disposition header for a body part with disposition type form-data.
        Parameters:
        name - control name
        Returns:
        Optional<BodyPart>, never null
      • fields

        default List<T> fields​(String name)
        Get the body parts identified by the given control name. The control name is the name parameter of the Content-Disposition header for a body part with disposition type form-data.
        Parameters:
        name - control name
        Returns:
        List<BodyPart>, never null
      • fields

        default Map<String,​List<T>> fields()
        Get all the body parts that are identified with form data control names.
        Returns:
        map of control names to body parts,never null