The AppConn Java Interfaces

The AppConn Java methods are implemented through the interfaces listed below. Click the interface name to view the Java documentation for it.


com.wrq.apptrieve.appconn.AppConnChannel

The AppConnChannel interface contains communication methods for connecting to the Host Integrator Server and establishing sessions with models and session pools.


com.wrq.apptrieve.appconn.AppConnTable

Use the AppConnTable interface to interact with host application data that is based in tables. AppConnTable extends AppConnChannel, so all required connect or disconnect methods are automatically included.


com.wrq.apptrieve.appconn.AppConnModel

Use the AppConnModel interface to interact with host application data that is based in attribute and recordset field definitions. AppConnModel extends AppConnChannel, so all required connect or disconnect methods are automatically included.


com.wrq.apptrieve.appconn.AppConnTerm

The AppConnTerm interface contains methods for managing terminal sessions. You can issue any available terminal key as well as query the host for strings at the given the cursor position or screen coordinates. AppConnTerm extends AppConnChannel, so all required connect or disconnect methods are automatically included.

Structuring Your Applications

The AppConnChannel, AppConnTable, AppConnModel, and AppConnTerm interfaces are all implemented by the AppConnSession class. It's unlikely that you will work with a host application model that requires you to interact on the model, table, and terminal levels at the same time. For this reason, we recommend that when you begin new applications, you use the more specific interface definitions to keep the number of available methods within the relevant framework. For example,:

AppConnTable mySession=new AppConnSession();

The statement above creates a new object that supports only the AppConnTable interface class.