コード例 #1
0
ファイル: vpnurl.java プロジェクト: netscaler/nitro
 /**
  * Use this API to fetch filtered set of vpnurl resources. filter string should be in JSON
  * format.eg: "port:80,servicetype:HTTP".
  */
 public static vpnurl[] get_filtered(nitro_service service, String filter) throws Exception {
   vpnurl obj = new vpnurl();
   options option = new options();
   option.set_filter(filter);
   vpnurl[] response = (vpnurl[]) obj.getfiltered(service, option);
   return response;
 }
コード例 #2
0
ファイル: vpnurl.java プロジェクト: netscaler/nitro
 /** Use this API to count the vpnurl resources configured on NetScaler. */
 public static long count(nitro_service service) throws Exception {
   vpnurl obj = new vpnurl();
   options option = new options();
   option.set_count(true);
   vpnurl[] response = (vpnurl[]) obj.get_resources(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }
コード例 #3
0
ファイル: vpnurl.java プロジェクト: netscaler/nitro
 /**
  * Use this API to count the filtered set of vpnurl resources. set the filter parameter values in
  * filtervalue object.
  */
 public static long count_filtered(nitro_service service, filtervalue[] filter) throws Exception {
   vpnurl obj = new vpnurl();
   options option = new options();
   option.set_count(true);
   option.set_filter(filter);
   vpnurl[] response = (vpnurl[]) obj.getfiltered(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }
コード例 #4
0
ファイル: vpnurl.java プロジェクト: netscaler/nitro
 /** Use this API to update vpnurl. */
 public static base_response update(nitro_service client, vpnurl resource) throws Exception {
   vpnurl updateresource = new vpnurl();
   updateresource.urlname = resource.urlname;
   updateresource.linkname = resource.linkname;
   updateresource.actualurl = resource.actualurl;
   updateresource.clientlessaccess = resource.clientlessaccess;
   updateresource.comment = resource.comment;
   return updateresource.update_resource(client);
 }
コード例 #5
0
ファイル: vpnurl.java プロジェクト: netscaler/nitro
 /** Use this API to add vpnurl. */
 public static base_response add(nitro_service client, vpnurl resource) throws Exception {
   vpnurl addresource = new vpnurl();
   addresource.urlname = resource.urlname;
   addresource.linkname = resource.linkname;
   addresource.actualurl = resource.actualurl;
   addresource.clientlessaccess = resource.clientlessaccess;
   addresource.comment = resource.comment;
   return addresource.add_resource(client);
 }
コード例 #6
0
ファイル: vpnurl.java プロジェクト: netscaler/nitro
 /** Use this API to fetch vpnurl resource of given name . */
 public static vpnurl get(nitro_service service, String urlname) throws Exception {
   vpnurl obj = new vpnurl();
   obj.set_urlname(urlname);
   vpnurl response = (vpnurl) obj.get_resource(service);
   return response;
 }
コード例 #7
0
ファイル: vpnurl.java プロジェクト: netscaler/nitro
 /** Use this API to fetch all the vpnurl resources that are configured on netscaler. */
 public static vpnurl[] get(nitro_service service, options option) throws Exception {
   vpnurl obj = new vpnurl();
   vpnurl[] response = (vpnurl[]) obj.get_resources(service, option);
   return response;
 }
コード例 #8
0
ファイル: vpnurl.java プロジェクト: netscaler/nitro
 /**
  * Use this API to unset the properties of vpnurl resource. Properties that need to be unset are
  * specified in args array.
  */
 public static base_response unset(nitro_service client, vpnurl resource, String[] args)
     throws Exception {
   vpnurl unsetresource = new vpnurl();
   unsetresource.urlname = resource.urlname;
   return unsetresource.unset_resource(client, args);
 }
コード例 #9
0
ファイル: vpnurl.java プロジェクト: netscaler/nitro
 /** Use this API to delete vpnurl. */
 public static base_response delete(nitro_service client, vpnurl resource) throws Exception {
   vpnurl deleteresource = new vpnurl();
   deleteresource.urlname = resource.urlname;
   return deleteresource.delete_resource(client);
 }