Package io.undertow.server.handlers.form
Interface FormData.FormValue
-
- Enclosing class:
- FormData
public static interface FormData.FormValue
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description StringgetCharset()FilegetFile()Deprecated.FormData.FileItemgetFileItem()StringgetFileName()HeaderMapgetHeaders()PathgetPath()Deprecated.StringgetValue()booleanisBigField()booleanisFile()Deprecated.booleanisFileItem()
-
-
-
Method Detail
-
getValue
String getValue()
- Returns:
- the simple string value.
- Throws:
IllegalStateException- If this is not a simple string value
-
getCharset
String getCharset()
- Returns:
- The charset of the simple string value
-
isFile
@Deprecated boolean isFile()
Deprecated.Returns true if this is a file and not a simple string- Returns:
-
getPath
@Deprecated Path getPath()
Deprecated.- Returns:
- The temp file that the file data was saved to
- Throws:
IllegalStateException- if this is not a file
-
getFile
@Deprecated File getFile()
Deprecated.
-
getFileItem
FormData.FileItem getFileItem()
-
isFileItem
boolean isFileItem()
-
getFileName
String getFileName()
- Returns:
- The filename specified in the disposition header.
-
getHeaders
HeaderMap getHeaders()
- Returns:
- The headers that were present in the multipart request, or null if this was not a multipart request
-
isBigField
boolean isBigField()
- Returns:
- true if size of the FormValue comes from a multipart request exceeds the fieldSizeThreshold of
MultiPartParserDefinitionwithout filename specified. A big field is stored in disk, it is a file based FileItem. getValue() returns getCharset() decoded string from the file if it is true.
-
-