The SDK contains a sample gateway plug-in named CompanyXYZ. We recommend that you use this sample as a template when you begin to write your own gateway plug-in. It is found in the iPrintGateway directory under the SDK home directory. The plug-in consists of the following files:
GatewayTemplate.jsp. This is the JSP file that presents the user interface for gathering gateway configuration information.
GatewayTemplate.java. This file contains the plug-in Java code that handles the logic and attribute management of the gateway.
CompanyXYZ.xml. This is the plug-in registration file.
CompanyXYZResources.properties. This resource file contains strings used in the plug-in template file.
Install the CompanyXYZ gateway plug-in by running SDK_HOME\iPrintGateway\makebat.bat. This batch file compiles GatewayTemplate.java, stores the resulting GatewayTemplate.class file in WEB-INF\lib\CompanyXYZ.jar, and copies the remaining plug-in files to the appropriate directories under the nps servlet document root directory.
To test the plug-in:
Start iManager and log in.
Click iPrint Management > Create Printer.
Fill in the Printer name, Container name, and Manager name fields.
In the Gateway type field, select CompanyXYZ.
Click Next.
Type a URL in the Printer URL field.
Click Next.