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 theFileUploadDirectivesparam: 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 Rapply(T1 v1, T2 v2, T3 v3)ContentTypecontentType()java.lang.StringfieldName()java.lang.StringfileName()ContentTypegetContentType()Content type of the filejava.lang.StringgetFieldName()Name of the form field the file was uploaded injava.lang.StringgetFileName()User specified name of the uploaded filestatic java.lang.StringtoString()
-
-
-
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:FileInfoName of the form field the file was uploaded in- Specified by:
getFieldNamein classFileInfo- Returns:
- (undocumented)
-
getFileName
public java.lang.String getFileName()
Description copied from class:FileInfoUser specified name of the uploaded file- Specified by:
getFileNamein classFileInfo- Returns:
- (undocumented)
-
getContentType
public ContentType getContentType()
Description copied from class:FileInfoContent type of the file- Specified by:
getContentTypein classFileInfo- Returns:
- (undocumented)
-
-