You can reference the Java API wrapper as a library from Eclipse. Adding the wrapper as a library enables you to call API functions without having to set up web requests and look up the required URL or query string parameters.
Steps
-
In Eclipse, select Window > Show View > Package Explorer.
-
Right-click your project folder and select Build Path > Configure Build Path.
-
Select the Libraries tab.
-
Select Add External JARs....
-
Locate and select the
vosp-api-wrapper-java{version}.jar
file. -
Click Open.
-
Import the
com.veracode.apiwrapper.wrappers
package. -
Optionally, complete the following steps to display the API wrapper documentation in the Eclipse interface.
a. In the Configure Build Path window, select the Libraries tab.
b. Expand the vosp-api-wrapper-java{version}.jar node and select Javadoc Location: (None).
c. Click Edit....
d. Browse to the folder containing the documentation and click OK.