Package play.mvc

Class Http.MultipartFormData.FilePart<A>

java.lang.Object
play.mvc.Http.MultipartFormData.FilePart<A>
All Implemented Interfaces:
Http.MultipartFormData.Part<A>
Enclosing class:
Http.MultipartFormData<A>

public static class Http.MultipartFormData.FilePart<A> extends Object implements Http.MultipartFormData.Part<A>
A file part.
  • Constructor Details

  • Method Details

    • getKey

      public String getKey()
      Returns:
      the part name
    • getFilename

      public String getFilename()
      Returns:
      the file name
    • getContentType

      public String getContentType()
      Returns:
      the file content type
    • getRef

      public A getRef()
      The File.
      Returns:
      the file
    • getDispositionType

      public String getDispositionType()
      Returns:
      the disposition type
    • getFileSize

      public long getFileSize()
      Returns:
      the size of the file in bytes
    • transformRefToBytes

      public ByteString transformRefToBytes()
    • asScala

      public play.api.mvc.MultipartFormData.FilePart<A> asScala()