Skip navigation links
ApplinX 10.11.0.0 API Specification

ApplinX API Specification

Packages 
Package Description
com.sabratec.applinx.baseobject
Contains classes and intefaces which are the core of the ABO API.
com.sabratec.applinx.baseobject.print  
com.sabratec.applinx.baseobject.query
Contains classes and intefaces for executing data queries on screens and fields.
com.sabratec.applinx.baseobject.table
Contains classes and intefaces for retrieving and manipulating ApplinX Tables.
com.sabratec.applinx.baseobject.table.filter
Contains classes and intefaces for filtering table's data.
com.sabratec.applinx.common  
com.sabratec.applinx.framework  
com.sabratec.applinx.framework.config.doc  
com.sabratec.applinx.framework.emulation.ftp.dialog  
com.sabratec.applinx.framework.emulation.macros  
com.sabratec.applinx.framework.sso
Single SignOn
com.sabratec.applinx.framework.tables  
com.sabratec.applinx.framework.web.jsengine  
com.sabratec.applinx.framework.web.ndt  
com.sabratec.applinx.framework.web.sso  
com.sabratec.applinx.presentation
This package and it's sub packages are responsible for creating a tag representation output from a host screen.
com.sabratec.applinx.presentation.event
This package contains the events and listeners.
com.sabratec.applinx.presentation.queries
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.
com.sabratec.applinx.presentation.tags
This package provides interfaces for the screen tag model,common tags and tag lists.
com.sabratec.applinx.presentation.tags.html
This package provides specific HTML tags such as: HTML hidden tag, Generic tag nad HTML string tag.
com.sabratec.applinx.presentation.transforms
This package contains the ApplinX built-in transformation configurations.
com.sabratec.ci.print
ApplinX supports printer sessions on AS400 and mainframe hosts.
com.sabratec.j2ee.framework.web.taglib  
com.sabratec.j2ee.framework.web.tags
Overview

The purpose of this package is to provide the developer the ability to add "HTML like" tags to the JSP page.
com.sabratec.util  
com.sabratec.util.ftp
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();
  }
com.sabratec.util.ftp.as400  
com.sabratec.util.ftp.mainframe  
Skip navigation links
ApplinX API Specification

Copyright 2021 Software AG. All rights reserved. Use is subject to license terms.