Files and Libraries

Java JSON Client Library

Created February 28, 2020

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 + "/admin/events-adm/resend-payment-email");
ObjectMapper mapper = new ObjectMapper();
java.net.URLConnection connection = url.openConnection();
connection.setDoOutput(true);
connection.connect();

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

Event result = client.target(baseUrl + "/admin/events-adm/resend-payment-email")
  .post(javax.ws.rs.client.Entity.entity(adminEventResendPaymentEmailRequest, "application/json"), Event.class);

//handle the result as needed...
    

Files
name size description
goin-json-client.jar 235,61K The binaries for the Java JSON client library.
goin-json-client-json-sources.jar 172,11K The sources for the Java JSON client library.