All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.citrix.netscaler.nitro.resource.config.policy.policystringmap Maven / Gradle / Ivy

Go to download

The Citrix® NetScaler® NITRO client for Java allows you to configure and monitor the NetScaler appliance programmatically in Java based applications. Source code taken from Build 121 of NetScaler release 10.1

The newest version!
/*
* Copyright (c) 2008-2015 Citrix Systems, Inc.
*
*   Licensed under the Apache License, Version 2.0 (the "License");
*   you may not use this file except in compliance with the License.
*   You may obtain a copy of the License at
*
*       http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*   distributed under the License is distributed on an "AS IS" BASIS,
*   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*   See the License for the specific language governing permissions and
*   limitations under the License.
*/

package com.citrix.netscaler.nitro.resource.config.policy;

import com.citrix.netscaler.nitro.resource.base.*;
import com.citrix.netscaler.nitro.service.nitro_service;
import com.citrix.netscaler.nitro.service.options;
import com.citrix.netscaler.nitro.util.*;
import com.citrix.netscaler.nitro.exception.nitro_exception;

class policystringmap_response extends base_response
{
	public policystringmap[] policystringmap;
}
/**
* Configuration for string map resource.
*/

public class policystringmap extends base_resource
{
	private String name;
	private String comment;
	private Long __count;

	/**
	* 
	* Unique name for the string map. Not case sensitive. Must begin with an ASCII letter or underscore (_) character, and must consist only of ASCII alphanumeric or underscore characters. Must not begin with 're' or 'xp' or be a word reserved for use as a default syntax expression qualifier prefix (such as HTTP) or enumeration value (such as ASCII). Must not be the name of an existing named expression, pattern set, dataset, string map, or HTTP callout.
Minimum length = 1 *
*/ public void set_name(String name) throws Exception{ this.name = name; } /** *
	* Unique name for the string map. Not case sensitive. Must begin with an ASCII letter or underscore (_) character, and must consist only of ASCII alphanumeric or underscore characters. Must not begin with 're' or 'xp' or be a word reserved for use as a default syntax expression qualifier prefix (such as HTTP) or enumeration value (such as ASCII). Must not be the name of an existing named expression, pattern set, dataset, string map, or HTTP callout.
Minimum length = 1 *
*/ public String get_name() throws Exception { return this.name; } /** *
	* Comments associated with the string map.
	* 
*/ public void set_comment(String comment) throws Exception{ this.comment = comment; } /** *
	* Comments associated with the string map.
	* 
*/ public String get_comment() throws Exception { return this.comment; } /** *
	* converts nitro response into object and returns the object array in case of get request.
	* 
*/ protected base_resource[] get_nitro_response(nitro_service service, String response) throws Exception{ policystringmap_response result = (policystringmap_response) service.get_payload_formatter().string_to_resource(policystringmap_response.class, response); if(result.errorcode != 0) { if (result.errorcode == 444) { service.clear_session(); } if(result.severity != null) { if (result.severity.equals("ERROR")) throw new nitro_exception(result.message,result.errorcode); } else { throw new nitro_exception(result.message,result.errorcode); } } return result.policystringmap; } /** *
	* Returns the value of object identifier argument
	* 
*/ protected String get_object_name() { return this.name; } /** * Use this API to add policystringmap. */ public static base_response add(nitro_service client, policystringmap resource) throws Exception { policystringmap addresource = new policystringmap(); addresource.name = resource.name; addresource.comment = resource.comment; return addresource.add_resource(client); } /** * Use this API to add policystringmap resources. */ public static base_responses add(nitro_service client, policystringmap resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { policystringmap addresources[] = new policystringmap[resources.length]; for (int i=0;i 0) { policystringmap deleteresources[] = new policystringmap[name.length]; for (int i=0;i 0) { policystringmap deleteresources[] = new policystringmap[resources.length]; for (int i=0;i 0) { policystringmap updateresources[] = new policystringmap[resources.length]; for (int i=0;i 0) { policystringmap unsetresources[] = new policystringmap[name.length]; for (int i=0;i 0) { policystringmap unsetresources[] = new policystringmap[resources.length]; for (int i=0;i0) { policystringmap response[] = new policystringmap[name.length]; policystringmap obj[] = new policystringmap[name.length]; for (int i=0;i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy