public class FCWebClient
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MY_FILE_AREA |
| Constructor and Description |
|---|
FCWebClient()
Default Constructor should be used along with setters for host, username
and password.
|
FCWebClient(java.lang.String hostURL,
java.lang.String username,
java.lang.String password)
This is the main constructor used to instantiate the FCWebClient object.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createJob(FCWebOrderForm orderForm) |
void |
disconnect()
This method is used to disconnect once the files are uploaded.
|
java.util.List |
getFCWebOrderForms()
This method will establish a connection to the FileCatalyst Workflow
instance based on the parameters passed through the constructor or those
set through the setter methods and return the list of fields (stored in a
Vector) defined in FileCatalyst Web.
|
java.util.ArrayList<java.lang.String> |
getFileAreaFileList()
Returns the file list that used for the file area, the file(s) must already exist in the specified File Area
|
java.lang.String |
getFileAreaID()
Returns the ID for the File Area, this File Area will be used to submit files that already exisit in the FileArea and will not require a new file upload
|
java.lang.String |
getHostURL()
Method used to return the value of the host
|
java.lang.String |
getJobID()
Returns the current job's ID
|
java.lang.String |
getPassword()
Method used to return the password
|
java.util.Vector |
getSettings()
Deprecated.
|
java.lang.String |
getTrackingNumber()
get the TrackingNumber after the submitJob() call, other wise this field
will be an empty String
|
TransferHook |
getTransfer()
This method will return the TransferHook object for the current transfer.
|
java.lang.String |
getUsername()
Method used to return the username
|
static java.lang.String |
getVersion()
This method returns the version of the FCAPI being used.
|
void |
setFileAreaFileList(java.util.ArrayList<java.lang.String> fileAreaFileList)
Sets the File Area File list to the value specified, the file(s) must already exist in the specified File Area, Folders in FileAreas may also be used but must terminate with forward slash "/"
|
void |
setFileAreaID(java.lang.String fileAreaID)
Sets the File Area ID to the value that you specify, this File Area will be used to submit files that already exisit in the FileArea and will not require a new file upload
|
void |
setHostURL(java.lang.String hostURL)
Method used to set the value of the host
|
void |
setPassword(java.lang.String password)
Method used to set the password to be used along with the user when
connecting to FileCatalyst Web
|
void |
setUsername(java.lang.String username)
Method used to set the username when connecting to FileCatalyst Web
|
java.lang.String |
submitJob()
This method will submit and finalize the job.
|
java.lang.String |
submitJob(FCWebOrderForm form)
This method will submit and finalize the job.
|
java.lang.String |
submitJob(FCWebOrderForm form,
java.util.ArrayList fileAreaList,
java.lang.String FileAreaID)
This method will submit and finalize the job.
|
TransferHook |
uploadFiles(FCWebOrderForm of,
java.io.File localFile)
This method when called will create a job in FileCatalyst Workflow, set
the field values for the job and upload the selected file to the job
folder.
|
TransferHook |
uploadFiles(FCWebOrderForm of,
java.io.File localFile,
java.nio.file.Path exportLocation)
This method when called will create a job in FileCatalyst Workflow, set
the field values for the job and upload the selected file to the job
folder.
|
TransferHook |
uploadFiles(FCWebOrderForm of,
java.util.List<java.nio.file.Path> files)
This method when called will create a job in FileCatalyst Workflow, set
the field values for the job and upload the selected file to the job
folder.
|
TransferHook |
uploadFiles(FCWebOrderForm of,
java.util.List<java.nio.file.Path> files,
java.nio.file.Path exportLocation)
This method when called will create a job in FileCatalyst Workflow, set
the field values for the job and upload the selected file to the job
folder.
|
TransferHook |
uploadFiles(FCWebOrderForm of,
java.util.Vector files)
Deprecated.
|
TransferHook |
uploadFiles(FCWebOrderForm of,
java.util.Vector files,
java.nio.file.Path exportLocation)
Deprecated.
|
TransferHook |
uploadFiles(java.util.Vector formFields,
java.io.File filePath)
Deprecated.
|
TransferHook |
uploadFiles(java.util.Vector formFields,
java.util.Vector files)
Deprecated.
|
public FCWebClient(java.lang.String hostURL,
java.lang.String username,
java.lang.String password)
public FCWebClient()
public static java.lang.String getVersion()
public java.lang.String getHostURL()
public void setHostURL(java.lang.String hostURL)
hostURL - String to the URL of FileCatalyst Web instancepublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password - of the user connecting to FileCatalyst Webpublic java.lang.String getUsername()
public void setUsername(java.lang.String username)
username - of the user connecting to FileCatalyst Webpublic TransferHook getTransfer()
@Deprecated
public java.util.Vector getSettings()
throws java.lang.Exception
java.lang.Exceptionpublic java.util.List getFCWebOrderForms()
throws java.lang.Exception
java.lang.Exception@Deprecated public TransferHook uploadFiles(java.util.Vector formFields, java.io.File filePath) throws java.lang.Exception
formFields - Vector of FCWebFields that contain the parameters for
the jobfilePath - File object of the file or folder to be uploaded.java.lang.Exception - Removed as of version 3.7public TransferHook uploadFiles(FCWebOrderForm of, java.io.File localFile, java.nio.file.Path exportLocation) throws java.lang.Exception
formFields - Vector of FCWebFields that contain the parameters for
the jobfilePath - File object of the file or folder to be uploaded.exportLocation - where you want to export the client
configurations... will be ignored if null;java.lang.Exceptionpublic TransferHook uploadFiles(FCWebOrderForm of, java.io.File localFile) throws java.lang.Exception
formFields - Vector of FCWebFields that contain the parameters for
the jobfilePath - File object of the file or folder to be uploaded.java.lang.Exception@Deprecated public TransferHook uploadFiles(java.util.Vector formFields, java.util.Vector files) throws java.lang.Exception
formFields - Vector of FCWebFields that contain the parameters for
the jobfiles - Vector of File objects that are to be uploaded. Can be
folders or files.java.lang.Exception - removed as of version 3.7@Deprecated public TransferHook uploadFiles(FCWebOrderForm of, java.util.Vector files, java.nio.file.Path exportLocation) throws java.lang.Exception
formFields - Vector of FCWebFields that contain the parameters for
the jobfiles - Vector of File objects that are to be uploaded. Can be
folders or files.exportLocation - where you want to export the client
configurations... will be ignored if null;java.lang.Exception@Deprecated public TransferHook uploadFiles(FCWebOrderForm of, java.util.Vector files) throws java.lang.Exception
formFields - Vector of FCWebFields that contain the parameters for
the jobfiles - Vector of File objects that are to be uploaded. Can be
folders or files.java.lang.Exceptionpublic TransferHook uploadFiles(FCWebOrderForm of, java.util.List<java.nio.file.Path> files) throws java.lang.Exception, java.io.IOException, unlimited.core.util.common.exception.FCException
formFields - Vector of FCWebFields that contain the parameters for
the jobfiles - List of java.nio.file.Path objects that are to be uploaded.
Can be folders or files.java.lang.Exceptionjava.io.IOExceptionunlimited.core.util.common.exception.FCExceptionpublic TransferHook uploadFiles(FCWebOrderForm of, java.util.List<java.nio.file.Path> files, java.nio.file.Path exportLocation) throws java.lang.Exception, java.io.IOException, unlimited.core.util.common.exception.FCException
formFields - Vector of FCWebFields that contain the parameters for
the jobfiles - List of java.nio.file.Path objects that are to be uploaded.
Can be folders or files.exportLocation - where you want to export the client
configurations... will be ignored if null;java.lang.Exceptionjava.io.IOExceptionunlimited.core.util.common.exception.FCExceptionpublic java.lang.String getJobID()
throws java.lang.Exception
java.lang.Exception - Thrown if job == nullpublic java.lang.String submitJob(FCWebOrderForm form, java.util.ArrayList fileAreaList, java.lang.String FileAreaID) throws java.lang.Exception
java.lang.Exception - an exception will be thrown is there is an error in the
transfer or if the transfer was cancelled.public java.lang.String submitJob(FCWebOrderForm form) throws java.lang.Exception
java.lang.Exception - an exception will be thrown is there is an error in the
transfer or if the transfer was cancelled.public java.lang.String submitJob()
throws java.lang.Exception
java.lang.Exception - an exception will be thrown is there is an error in the
transfer or if the transfer was cancelled.protected void createJob(FCWebOrderForm orderForm) throws java.lang.Exception
java.lang.Exceptionpublic void disconnect()
throws unlimited.core.util.common.exception.FCException,
java.io.IOException
unlimited.core.util.common.exception.FCExceptionjava.io.IOExceptionpublic java.lang.String getTrackingNumber()
public java.util.ArrayList<java.lang.String> getFileAreaFileList()
public void setFileAreaFileList(java.util.ArrayList<java.lang.String> fileAreaFileList)
fileAreaFileList - the fileAreaFileList to setpublic java.lang.String getFileAreaID()
public void setFileAreaID(java.lang.String fileAreaID)
fileAreaID - the fileAreaID to setCopyright © 2006 - 2022 - HelpSystems LLC All Rights Reserved.