Interface ContentDisposition

All Known Implementing Classes:
ContentDispositionParser

public interface ContentDisposition
The ContentDisposition object represents the HTTP Content-Disposition header of a request. A content disposition contains the name of the part and whether that part contains the contents of a file. If the part represents a parameter then the getName can be used to determine the name, if it represents a file then getFileName is preferred.
  • Method Summary

    Modifier and Type
    Method
    Description
    This method is used to acquire the file name of the part.
    This method is used to acquire the name of the part.
    boolean
    This method is used to determine the type of a part.
  • Method Details

    • getName

      String getName()
      This method is used to acquire the name of the part. Typically this is used when the part represents a text parameter rather than a file. However, this can also be used with a file part.
      Returns:
      this returns the name of the associated part
    • getFileName

      String getFileName()
      This method is used to acquire the file name of the part. This is used when the part represents a text parameter rather than a file. However, this can also be used with a file part.
      Returns:
      this returns the file name of the associated part
    • isFile

      boolean isFile()
      This method is used to determine the type of a part. Typically a part is either a text parameter or a file. If this is true then the content represented by the associated part is a file.
      Returns:
      this returns true if the associated part is a file