Example #1
0
 /**
  *
  *
  * <pre>
  * converts nitro response into object and returns the object array in case of get request.
  * </pre>
  */
 protected base_resource[] get_nitro_response(nitro_service service, String response)
     throws Exception {
   dnskey_response result =
       (dnskey_response)
           service.get_payload_formatter().string_to_resource(dnskey_response.class, response);
   if (result.errorcode != 0) {
     if (result.errorcode == 444) {
       service.clear_session();
     }
     if (result.severity != null) {
       if (result.severity.equals("ERROR"))
         throw new nitro_exception(result.message, result.errorcode);
     } else {
       throw new nitro_exception(result.message, result.errorcode);
     }
   }
   return result.dnskey;
 }
 /**
  *
  *
  * <pre>
  * converts nitro response into object and returns the object array in case of get request.
  * </pre>
  */
 protected base_resource[] get_nitro_response(nitro_service service, String response)
     throws Exception {
   appfwprofile_trustedlearningclients_binding_response result =
       (appfwprofile_trustedlearningclients_binding_response)
           service
               .get_payload_formatter()
               .string_to_resource(
                   appfwprofile_trustedlearningclients_binding_response.class, response);
   if (result.errorcode != 0) {
     if (result.errorcode == 444) {
       service.clear_session();
     }
     if (result.severity != null) {
       if (result.severity.equals("ERROR"))
         throw new nitro_exception(result.message, result.errorcode);
     } else {
       throw new nitro_exception(result.message, result.errorcode);
     }
   }
   return result.appfwprofile_trustedlearningclients_binding;
 }
Example #3
0
 /**
  *
  *
  * <pre>
  * converts nitro response into object and returns the object array in case of get request.
  * </pre>
  */
 protected base_resource[] get_nitro_response(nitro_service service, String response)
     throws Exception {
   lbsipparameters[] resources = new lbsipparameters[1];
   lbsipparameters_response result =
       (lbsipparameters_response)
           service
               .get_payload_formatter()
               .string_to_resource(lbsipparameters_response.class, response);
   if (result.errorcode != 0) {
     if (result.errorcode == 444) {
       service.clear_session();
     }
     if (result.severity != null) {
       if (result.severity.equals("ERROR"))
         throw new nitro_exception(result.message, result.errorcode);
     } else {
       throw new nitro_exception(result.message, result.errorcode);
     }
   }
   resources[0] = result.lbsipparameters;
   return resources;
 }