Class ContentDisposition

java.lang.Object
com.axelor.common.http.ContentDisposition

public class ContentDisposition extends Object
This class provides some methods to deal with Content-Disposition as defined in RFC 6266
  • Field Details

  • Constructor Details

    • ContentDisposition

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

    • getType

      public String getType()
    • getFilename

      public String getFilename()
    • getName

      public String getName()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Return the header value for this content disposition as defined in RFC 6266.
      Overrides:
      toString in class Object
    • attachment

      public static ContentDisposition.Builder attachment()
      Builder for a ContentDisposition of type attachment.
    • formData

      public static ContentDisposition.Builder formData()
      Builder for a ContentDisposition of type form-data.
    • inline

      public static ContentDisposition.Builder inline()
      Builder for a ContentDisposition of type inline.