Package com.citrix.netscaler.nitro.resource.base

Examples of com.citrix.netscaler.nitro.resource.base.base_response


   * @return status of the operation performed.
   * @throws Exception Nitro exception is thrown.
   */
  public base_response clear_config(Boolean force, String level) throws Exception
  {
    base_response result = null;
    nsconfig resource = new nsconfig();
    if (force)
      resource.set_force(force);

    resource.set_level(level);
View Full Code Here


  public base_response save_config() throws Exception
  {
    nsconfig resource = new nsconfig();
    options option = new options();
    option.set_action("save");
    base_response result = resource.perform_operation(this, option);
    return result;
  }
View Full Code Here

   * @return status of the operation performed.
   * @throws Exception Nitro exception.
   */
  public base_response enable_features(String[] features) throws Exception
  {
    base_response result = null;
    nsfeature resource = new nsfeature();
    resource.set_feature(features);
    options option = new options();
    option.set_action("enable");
    result = resource.perform_operation(this, option);
View Full Code Here

   * @return status of the operation performed.
   * @throws Exception Nitro exception.
   */
  public base_response disable_features(String[] features) throws Exception
  {
    base_response result = null;
    nsfeature resource = new nsfeature();
    resource.set_feature(features);
    options option = new options();
    option.set_action("disable");
    result = resource.perform_operation(this, option);
View Full Code Here

   * @return status of the operation performed.
   * @throws Exception Nitro exception.
   */
  public base_response enable_modes(String[] modes) throws Exception
  {
    base_response result = null;
    nsmode resource = new nsmode();
    resource.set_mode(modes);
    options option = new options();
    option.set_action("enable");
    result = resource.perform_operation(this, option);
View Full Code Here

   * @return status of the operation performed.
   * @throws Exception Nitro exception.
   */
  public base_response disable_modes(String[] modes) throws Exception
  {
    base_response result = null;
    nsmode resource = new nsmode();
    resource.set_mode(modes);
    options option = new options();
    option.set_action("disable");
    result = resource.perform_operation(this, option);
View Full Code Here

  * @return status of the operation performed.
  * </pre>
  */
  public base_response logout() throws Exception
  {
    base_response result = null;
    logout logout = new logout();
    result = logout.perform_operation(this);
        sessionid = null;
        user_name = null;
        password = null;
View Full Code Here

                gslbservice service;
                service = getServiceObject(client, serviceName);
                String gslbServerName = generateGslbServerName(serviceIp);

                if (!gslbServerExists(client, gslbServerName)) {
                    base_response apiCallResult;
                    com.citrix.netscaler.nitro.resource.config.basic.server nsServer = new com.citrix.netscaler.nitro.resource.config.basic.server();
                    nsServer.set_name(gslbServerName);
                    nsServer.set_ipaddress(serviceIp);
                    apiCallResult = com.citrix.netscaler.nitro.resource.config.basic.server.add(client, nsServer);
                    if ((apiCallResult.errorcode != 0) && (apiCallResult.errorcode != NitroError.NS_RESOURCE_EXISTS)) {
View Full Code Here

        }


        private static void enableSslFeature(nitro_service ns) throws ExecutionException {
            try {
                base_response result = ns.enable_features(new String[]{"SSL"});
                if (result.errorcode != 0)
                    throw new ExecutionException("Unable to enable SSL on LB");
            } catch (nitro_exception e){
                throw new ExecutionException("Failed to enable ssl feature on load balancer due to " + e.getMessage());
            } catch (Exception e){
View Full Code Here

TOP

Related Classes of com.citrix.netscaler.nitro.resource.base.base_response

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.