예제 #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);
 }