Apple Wallet Card Generator application for Tomcat server The files that make up a pass are arranged in a package (also referred to as a bundle) called the pass package. At the center of the pass is a JSON file named pass.json, which defines the pass. The JSON file contains information that identifies the pass, text that appears on the pass, and other information about the pass. This application designed as Tomcat Web Servlet, and deployed as WAR file to Tomcat Catalina. After deploying, this app is listening requests and doing some actions:
- If URL consists "generate" command, wallet file ".pkpass" is created
- If request is "GetWallet" - url for downloading pkpass is generated
Aplication is designed with Netbeans IDE 8.2 and based on com.ryantenney.passkit4j library, which allow simplify of process of creating pkpass zip archieve.
Main program code you can find in WalletCardGenerator/src/main/java/WalletCardGenerator/WalletCardGenerator.java file