Files and Libraries

Java JSON Client Library

Created January 5, 2018

The Java client-side library is used to provide the set of Java objects that can be serialized to/from JSON using Jackson. This is useful for accessing the JSON REST endpoints that are published by this application.

Resources Example (Raw JAXB)
java.net.URL url = new java.net.URL(baseURL + "/bpm/adhoc/create");
ObjectMapper mapper = new ObjectMapper();
java.net.URLConnection connection = url.openConnection();
connection.setDoOutput(true);
connection.connect();

mapper.writeValue(connection.getOutputStream(), adHocProcessVO);
Object result = (Object) mapper.readValue( connection.getInputStream(), Object.class );
//handle the result as needed...
    
Resources Example (Jersey client)
javax.ws.rs.client.Client client = javax.ws.rs.client.ClientBuilder.newClient();

Object result = client.target(baseUrl + "/bpm/adhoc/create")
  .post(javax.ws.rs.client.Entity.entity(adHocProcessVO, "application/json"), Object.class);

//handle the result as needed...
    

Files
name size description
api-public-json-client.jar 186.74K The binaries for the Java JSON client library.
api-public-json-client-json-sources.jar 135.55K The sources for the Java JSON client library.

Java XML Client Library

Created January 5, 2018

The Java client-side library is used to access the Web service API for this application using Java.

The Java client-side library is used to provide the set of Java objects that can be serialized to/from XML using JAXB. This is useful for accessing the resources that are published by this application.

Resources Example (Raw JAXB)
java.net.URL url = new java.net.URL(baseURL + "/2.0/permission/revoke/widget/{widgetCode}");
JAXBContext context = JAXBContext.newInstance( byte[].class );
java.net.URLConnection connection = url.openConnection();
connection.connect();

Unmarshaller unmarshaller = context.createUnmarshaller();
Object result = (Object) unmarshaller.unmarshal( connection.getInputStream() );
//handle the result as needed...
    
Resources Example (Jersey client)
javax.ws.rs.client.Client client = javax.ws.rs.client.ClientBuilder.newClient();

Object result = client.target(baseUrl + "/2.0/permission/revoke/widget/{widgetCode}")
  .post(Object.class);

//handle the result as needed...
    

Files
name size description
api-public-xml-client.jar 21.02K The binaries for the Java XML client library.
api-public-xml-client-xml-sources.jar 16.99K The sources for the Java XML client library.