System.out.println("GET fault: " + task.getFault());
}
});
// POST
PostQuery postQuery = new PostQuery(HOSTNAME, PORT, PATH, SECURE);
authentication.authenticate(postQuery);
postQuery.setValue(JSONSerializer.parseList("[1, 2, 3]"));
postQuery.execute(new TaskListener<URL>() {
public void taskExecuted(Task<URL> task) {
System.out.println("POST result: " + task.getResult());
}
public void executeFailed(Task<URL> task) {