Class FileInfo
- java.lang.Object
-
- akka.http.javadsl.server.directives.FileInfo
-
- akka.http.scaladsl.server.directives.FileInfo
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
public final class FileInfo extends FileInfo implements scala.Product, java.io.Serializable
Additional metadata about the file being uploaded/that was uploaded using theFileUploadDirectives
param: fieldName Name of the form field the file was uploaded in param: fileName User specified name of the uploaded file param: contentType Content type of the file
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileInfo(java.lang.String fieldName, java.lang.String fileName, ContentType contentType)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract static R
apply(T1 v1, T2 v2, T3 v3)
ContentType
contentType()
java.lang.String
fieldName()
java.lang.String
fileName()
ContentType
getContentType()
Content type of the filejava.lang.String
getFieldName()
Name of the form field the file was uploaded injava.lang.String
getFileName()
User specified name of the uploaded filestatic java.lang.String
toString()
-
-
-
Constructor Detail
-
FileInfo
public FileInfo(java.lang.String fieldName, java.lang.String fileName, ContentType contentType)
-
-
Method Detail
-
apply
public abstract static R apply(T1 v1, T2 v2, T3 v3)
-
toString
public static java.lang.String toString()
-
fieldName
public java.lang.String fieldName()
-
fileName
public java.lang.String fileName()
-
contentType
public ContentType contentType()
-
getFieldName
public java.lang.String getFieldName()
Description copied from class:FileInfo
Name of the form field the file was uploaded in- Specified by:
getFieldName
in classFileInfo
- Returns:
- (undocumented)
-
getFileName
public java.lang.String getFileName()
Description copied from class:FileInfo
User specified name of the uploaded file- Specified by:
getFileName
in classFileInfo
- Returns:
- (undocumented)
-
getContentType
public ContentType getContentType()
Description copied from class:FileInfo
Content type of the file- Specified by:
getContentType
in classFileInfo
- Returns:
- (undocumented)
-
-