public interface PayloadAttachments
Modifier and Type | Method and Description |
---|---|
java.io.File |
getFile(java.lang.String name)
Get a file object for a given file name.
|
java.util.Collection<java.io.File> |
getFiles()
Get the attached files for this request.
|
int |
getFilesCount()
Get the number of attachments.
|
boolean |
hasFile(java.lang.String name)
Check is a input file exists in the workspace.
|
PayloadAttachments |
require(java.lang.String name)
Check if a required file attachment exists in the workspace.
|
java.util.Collection<java.io.File> getFiles()
int getFilesCount()
boolean hasFile(java.lang.String name) throws ServiceException
name
- the file nameServiceException
- if there is a JSON error.PayloadAttachments require(java.lang.String name) throws ServiceException
name
- the file nameServiceException
- if the parameter is not found.java.io.File getFile(java.lang.String name) throws ServiceException
name
- the file name (no path)ServiceException
- if the file is missing(c) 2012-2022, OMSLab, Colorado State University.