public interface PayloadFormData
Modifier and Type | Method and Description |
---|---|
java.io.File |
getFile(java.lang.String key)
Get the file input by form name.
|
java.util.Collection<java.lang.String> |
getKeys()
Get all form names.
|
java.lang.String |
getString(java.lang.String key)
Get the value of a given form name
|
boolean |
hasFormData()
Check if there is form data
|
boolean |
hasKey(java.lang.String key)
Check if the key exist.
|
PayloadFormData |
require(java.lang.String name)
Check is a required key exists.
|
boolean hasKey(java.lang.String key)
key
- The name keyPayloadFormData require(java.lang.String name) throws ServiceException
name
- the key nameServiceException
- if the parameter is not found.java.io.File getFile(java.lang.String key) throws ServiceException
key
- the form key nameServiceException
- if file not foundjava.lang.String getString(java.lang.String key) throws ServiceException
key
- the form key nameServiceException
- if key does not exist or is not a filejava.util.Collection<java.lang.String> getKeys()
boolean hasFormData()
(c) 2012-2022, OMSLab, Colorado State University.