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 vpnvserver_rewritepolicy_binding[] get_filtered(nitro_service service, String name, String filter) throws Exception{
    vpnvserver_rewritepolicy_binding obj = new vpnvserver_rewritepolicy_binding();
    obj.set_name(name);
    options option = new options();
    option.set_filter(filter);
    vpnvserver_rewritepolicy_binding[] response = (vpnvserver_rewritepolicy_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{
    tmtrafficpolicy_tmglobal_binding obj = new tmtrafficpolicy_tmglobal_binding();
    obj.set_name(name);
    options option = new options();
    option.set_count(true);
    option.set_filter(filter);
    tmtrafficpolicy_tmglobal_binding[] response = (tmtrafficpolicy_tmglobal_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 vpnvserver_rewritepolicy_binding[] get_filtered(nitro_service service, String name, filtervalue[] filter) throws Exception{
    vpnvserver_rewritepolicy_binding obj = new vpnvserver_rewritepolicy_binding();
    obj.set_name(name);
    options option = new options();
    option.set_filter(filter);
    vpnvserver_rewritepolicy_binding[] response = (vpnvserver_rewritepolicy_binding[]) obj.getfiltered(service, option);
    return response;
  }
View Full Code Here

  * Use this API to count vpnvserver_rewritepolicy_binding resources configued on NetScaler.
  */
  public static long count(nitro_service service, String name) throws Exception{
    vpnvserver_rewritepolicy_binding obj = new vpnvserver_rewritepolicy_binding();
    obj.set_name(name);
    options option = new options();
    option.set_count(true);
    vpnvserver_rewritepolicy_binding response[] = (vpnvserver_rewritepolicy_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{
    tmtrafficpolicy_tmglobal_binding obj = new tmtrafficpolicy_tmglobal_binding();
    obj.set_name(name);
    options option = new options();
    option.set_count(true);
    option.set_filter(filter);
    tmtrafficpolicy_tmglobal_binding[] response = (tmtrafficpolicy_tmglobal_binding[]) obj.getfiltered(service, option);
    if (response != null) {
      return response[0].__count;
    }
    return 0;
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{
    vpnvserver_rewritepolicy_binding obj = new vpnvserver_rewritepolicy_binding();
    obj.set_name(name);
    options option = new options();
    option.set_count(true);
    option.set_filter(filter);
    vpnvserver_rewritepolicy_binding[] response = (vpnvserver_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 long count_filtered(nitro_service service, String name, filtervalue[] filter) throws Exception{
    vpnvserver_rewritepolicy_binding obj = new vpnvserver_rewritepolicy_binding();
    obj.set_name(name);
    options option = new options();
    option.set_count(true);
    option.set_filter(filter);
    vpnvserver_rewritepolicy_binding[] response = (vpnvserver_rewritepolicy_binding[]) obj.getfiltered(service, option);
    if (response != null) {
      return response[0].__count;
    }
    return 0;
View Full Code Here

  * Use this API to fetch filtered set of sslaction resources.
  * filter string should be in JSON format.eg: "port:80,servicetype:HTTP".
  */
  public static sslaction[] get_filtered(nitro_service service, String filter) throws Exception{
    sslaction obj = new sslaction();
    options option = new options();
    option.set_filter(filter);
    sslaction[] response = (sslaction[]) obj.getfiltered(service, option);
    return response;
  }
View Full Code Here

  * Use this API to fetch filtered set of sslaction resources.
  * set the filter parameter values in filtervalue object.
  */
  public static sslaction[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
    sslaction obj = new sslaction();
    options option = new options();
    option.set_filter(filter);
    sslaction[] response = (sslaction[]) obj.getfiltered(service, option);
    return response;
  }
View Full Code Here

  /**
  * Use this API to count the sslaction resources configured on NetScaler.
  */
  public static long count(nitro_service service) throws Exception{
    sslaction obj = new sslaction();
    options option = new options();
    option.set_count(true);
    sslaction[] response = (sslaction[])obj.get_resources(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.