Exemple #1
0
 private void getAllAsPlainText(Service service, GeneralMimeDispatcher dispatcher) {
   Dispatch<DataSource> dispatch =
       dispatcher.getDispatch(service, getQName("get", "All"), baseUrl);
   dispatcher.setRequestMethod(dispatch, "GET");
   DataSource result = dispatch.invoke(null);
   dispatcher.stringifyAndPrintResponse("Result (plaintext):", result);
 }
Exemple #2
0
 private void delete(Service service, GeneralMimeDispatcher dispatcher) {
   Dispatch<DataSource> dispatch =
       dispatcher.getDispatch(service, getQName("delete", "One"), baseUrl + "delete/3");
   dispatcher.setRequestMethod(dispatch, "DELETE");
   DataSource result = dispatch.invoke(null);
   dispatcher.stringifyAndPrintResponse("Result (delete):", result);
 }