Interface Part

All Known Subinterfaces:
WebPart

public interface Part

Represents a part in a multipart/form-data request body as defined by RFC 7578.

Since:
1.0
Author:
Jeremy Kuhn
See Also:
  • Method Details

    • getName

      String getName()

      Returns the part's name.

      Returns:
      the name
    • getFilename

      Optional<String> getFilename()

      Returns the part's file name.

      Returns:
      an optional returning the file name or an empty optional if the part is not a file
    • headers

      Returns the part's headers.

      Returns:
      the headers
    • raw

      Returns the part's raw data.

      Returns:
      the raw data
    • string

      Returns the part's data as string.

      Returns:
      the string data