Skip to main content
The FlexiCaptureWebServiceClient class is in the com.abbyy.connectors namespace. It inherits from the AutoCloseable class and is used to connect to the FC 12 web service. The methods of this class are described below.

Constructor Details

Creates a new client object to connect to the FC 12 web service Parameters:
  • url – the address of the FC Application Server in the following format: http://<ApplicationServer>.

Method Details

Returns a list of the names of the projects on the ABBYY FlexiCapture 12 server. Returns:
  • A list of project names
Throws:
  • FlexiCaptureConnectorException – if an error occurs when getting a list of project names
Opens a project based on the name parameter (i.e. the name of the project on the ABBYY FlexiCapture 12 server) and creates and returns a new FlexiCaptureProject object. Parameters:
  • name – the name of the project on the FC 12 server
Returns:
  • FlexiCaptureProject object
Throws:
  • FlexiCaptureConnectorException – if an error occurs when opening the project
See also: FlexiCaptureProject
Returns the name of the tenant. Returns:
  • A string containing the name of the tenant on the FC 12 server. This string is empty by default
Sets the name of the tenant. Parameters:
  • tenant – the name of the tenant on the FC 12 server. This parameter is used when working with the tenant and is not specified when working with the root.
Throws:
  • IllegalArgumentException – if the input parameter is empty or 0
Returns the time to wait for a server response. Returns:
  • The time (in seconds) to wait for a response from the FC 12 server. The default value is 300 seconds
Sets the time (in seconds) to wait for a response from the server. The default timeout value is 300 seconds. Parameters:
  • timeout – the time to wait for a response from the FC 12 server
Throws:
  • IllegalArgumentException – if the input parameter is less than or equals 0
Returns the user’s name and password. Returns:
  • An object containing the user’s name and password
See also: Credentials
Sets the user’s name and password. Parameters:
  • credentials – an object containing the user’s name and password
Throws:
  • IllegalArgumentException – if the input parameters are empty or 0
See also: Credentials
Closes the connection to the ABBYY FlexiCapture 12 Web API.