Class ContentDisposition

java.lang.Object
com.renomad.minum.web.ContentDisposition

public final class ContentDisposition extends Object
This class represents the information in the Content-Disposition header of a multipart/form-data partition. Let's look at an example:
  --i_am_a_boundary
   Content-Type: text/plain
   Content-Disposition: form-data; name="text1"

   I am a value that is text
   --i_am_a_boundary
   Content-Type: application/octet-stream
   Content-Disposition: form-data; name="image_uploads"; filename="photo_preview.jpg"
  

In this example, there are two partitions, and each has a Content-Disposition header. The first has a name of "text1" and the second has a name of "image_uploads". The second partition also has a filename.
This is useful for filtering partition data when an endpoint receives multipart data.
  • Constructor Details

    • ContentDisposition

      public ContentDisposition(String name, String filename)
  • Method Details