Package com.citrix.netscaler.nitro.service

Examples of com.citrix.netscaler.nitro.service.options


  * filter string should be in JSON format.eg: "port:80,servicetype:HTTP".
  */
  public static tmsessionpolicy_aaagroup_binding[] get_filtered(nitro_service service, String name, String filter) throws Exception{
    tmsessionpolicy_aaagroup_binding obj = new tmsessionpolicy_aaagroup_binding();
    obj.set_name(name);
    options option = new options();
    option.set_filter(filter);
    tmsessionpolicy_aaagroup_binding[] response = (tmsessionpolicy_aaagroup_binding[]) obj.getfiltered(service, option);
    return response;
  }
View Full Code Here


  * filter string should be in JSON format.eg: "port:80,servicetype:HTTP".
  */
  public static long count_filtered(nitro_service service, String labelname, String filter) throws Exception{
    rewritepolicylabel_rewritepolicy_binding obj = new rewritepolicylabel_rewritepolicy_binding();
    obj.set_labelname(labelname);
    options option = new options();
    option.set_count(true);
    option.set_filter(filter);
    rewritepolicylabel_rewritepolicy_binding[] response = (rewritepolicylabel_rewritepolicy_binding[]) obj.getfiltered(service, option);
    if (response != null) {
      return response[0].__count;
    }
    return 0;
View Full Code Here

  * set the filter parameter values in filtervalue object.
  */
  public static tmsessionpolicy_aaagroup_binding[] get_filtered(nitro_service service, String name, filtervalue[] filter) throws Exception{
    tmsessionpolicy_aaagroup_binding obj = new tmsessionpolicy_aaagroup_binding();
    obj.set_name(name);
    options option = new options();
    option.set_filter(filter);
    tmsessionpolicy_aaagroup_binding[] response = (tmsessionpolicy_aaagroup_binding[]) obj.getfiltered(service, option);
    return response;
  }
View Full Code Here

  * filter string should be in JSON format.eg: "port:80,servicetype:HTTP".
  */
  public static sslvserver_sslcertkey_binding[] get_filtered(nitro_service service, String vservername, String filter) throws Exception{
    sslvserver_sslcertkey_binding obj = new sslvserver_sslcertkey_binding();
    obj.set_vservername(vservername);
    options option = new options();
    option.set_filter(filter);
    sslvserver_sslcertkey_binding[] response = (sslvserver_sslcertkey_binding[]) obj.getfiltered(service, option);
    return response;
  }
View Full Code Here

  * Use this API to count tmsessionpolicy_aaagroup_binding resources configued on NetScaler.
  */
  public static long count(nitro_service service, String name) throws Exception{
    tmsessionpolicy_aaagroup_binding obj = new tmsessionpolicy_aaagroup_binding();
    obj.set_name(name);
    options option = new options();
    option.set_count(true);
    tmsessionpolicy_aaagroup_binding response[] = (tmsessionpolicy_aaagroup_binding[]) obj.get_resources(service,option);
    if (response != null) {
      return response[0].__count;
    }
    return 0;
View Full Code Here

  * set the filter parameter values in filtervalue object.
  */
  public static long count_filtered(nitro_service service, String labelname, filtervalue[] filter) throws Exception{
    rewritepolicylabel_rewritepolicy_binding obj = new rewritepolicylabel_rewritepolicy_binding();
    obj.set_labelname(labelname);
    options option = new options();
    option.set_count(true);
    option.set_filter(filter);
    rewritepolicylabel_rewritepolicy_binding[] response = (rewritepolicylabel_rewritepolicy_binding[]) obj.getfiltered(service, option);
    if (response != null) {
      return response[0].__count;
    }
    return 0;
View Full Code Here

  * set the filter parameter values in filtervalue object.
  */
  public static sslvserver_sslcertkey_binding[] get_filtered(nitro_service service, String vservername, filtervalue[] filter) throws Exception{
    sslvserver_sslcertkey_binding obj = new sslvserver_sslcertkey_binding();
    obj.set_vservername(vservername);
    options option = new options();
    option.set_filter(filter);
    sslvserver_sslcertkey_binding[] response = (sslvserver_sslcertkey_binding[]) obj.getfiltered(service, option);
    return response;
  }
View Full Code Here

  * filter string should be in JSON format.eg: "port:80,servicetype:HTTP".
  */
  public static long count_filtered(nitro_service service, String name, String filter) throws Exception{
    tmsessionpolicy_aaagroup_binding obj = new tmsessionpolicy_aaagroup_binding();
    obj.set_name(name);
    options option = new options();
    option.set_count(true);
    option.set_filter(filter);
    tmsessionpolicy_aaagroup_binding[] response = (tmsessionpolicy_aaagroup_binding[]) obj.getfiltered(service, option);
    if (response != null) {
      return response[0].__count;
    }
    return 0;
View Full Code Here

  * Use this API to count sslvserver_sslcertkey_binding resources configued on NetScaler.
  */
  public static long count(nitro_service service, String vservername) throws Exception{
    sslvserver_sslcertkey_binding obj = new sslvserver_sslcertkey_binding();
    obj.set_vservername(vservername);
    options option = new options();
    option.set_count(true);
    sslvserver_sslcertkey_binding response[] = (sslvserver_sslcertkey_binding[]) obj.get_resources(service,option);
    if (response != null) {
      return response[0].__count;
    }
    return 0;
View Full Code Here

  * set the filter parameter values in filtervalue object.
  */
  public static long count_filtered(nitro_service service, String name, filtervalue[] filter) throws Exception{
    tmsessionpolicy_aaagroup_binding obj = new tmsessionpolicy_aaagroup_binding();
    obj.set_name(name);
    options option = new options();
    option.set_count(true);
    option.set_filter(filter);
    tmsessionpolicy_aaagroup_binding[] response = (tmsessionpolicy_aaagroup_binding[]) obj.getfiltered(service, option);
    if (response != null) {
      return response[0].__count;
    }
    return 0;
View Full Code Here

TOP

Related Classes of com.citrix.netscaler.nitro.service.options

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.