ApplinX API Specification

Packages
Package
Description
Contains classes and intefaces which are the core of the ABO API.
 
Contains classes and intefaces for executing data queries on screens and fields.
Contains classes and intefaces for retrieving and manipulating ApplinX Tables.
Contains classes and intefaces for filtering table's data.
 
 
 
 
 
Single SignOn
 
 
 
 
This package and it's sub packages are responsible for creating a tag representation output from a host screen.
This package contains the events and listeners.
This package contains the query interface and built-in queries such as text query, area query,
which should be used for executing queries against the screen tag model.
This package provides interfaces for the screen tag model,common tags and tag lists.
This package provides specific HTML tags such as: HTML hidden tag, Generic tag nad HTML string tag.
This package contains the ApplinX built-in transformation configurations.
ApplinX supports printer sessions on AS400 and mainframe hosts.
 
Overview

The purpose of this package is to provide the developer the ability to add "HTML like" tags to the JSP page.
 
This package supplies an API for the ApplinX FTP mechanism.
It can be used instead of using the FTP dialog screens.
The main class in the package is GXFtpManager.
This is a singletone class and it can be accessed
only via the instance() method.

Another important class is GXFtpRequest,
which is a data structure that contains all the relevant infomation for the FTP transmission.

Below are two code examples of uploading and downloading files:

Code sample for uploading a file to a Mainframe host:
GXFtpRequest uploadReq = new GXFtpRequest();
uploadReq.setUser(user);
uploadReq.setPassword(pass);
uploadReq.setServer(host ip address);
uploadReq.setRemoteFile(remote file using full path);
uploadReq.setValue(GXMFCommands.CMD_MF_DATA_TYPE, GXMFCommands.CMD_VAL_MF_DATA_TYPE_BIN)
try {
uploadReq.readFileToUpload(local file using full path);
GXFtpManager.instance().putFile(uploadReq);
} catch (GXGeneralException e) {
e.printStackTrace();
}



Code sample for downloading a file from a Mainframe host:
GXFtpRequest downloadReq = new GXFtpRequest();
downloadReq.setUser(user);
downloadReq.setPassword(pass);
downloadReq.setServer(host ip address);
downloadReq.setRemoteFile(remote file using full path);
downloadReq.setValue(GXMFCommands.CMD_MF_DATA_TYPE, GXMFCommands.CMD_VAL_MF_DATA_TYPE_BIN);
try {
GXFtpResponse resp = GXFtpManager.instance().getFile(downloadReq);
resp.writeFileToDisk(local file using full path);
} catch (GXFtpException e) {
e.getMessage();
}