code
stringlengths
73
34.1k
label
stringclasses
1 value
public static Map<String, ByteRunAutomaton> byteRunAutomatonMap( Map<String, Automaton> automatonMap) { HashMap<String, ByteRunAutomaton> byteRunAutomatonMap = new HashMap<>(); if (automatonMap != null) { for (Entry<String, Automaton> entry : automatonMap.entrySet()) { byteRunAutomatonMap.put(entry.getKey(), new ByteRunAutomaton(entry.getValue())); } } return byteRunAutomatonMap; }
java
public static List<CompiledAutomaton> createAutomata(String prefix, String regexp, Map<String, Automaton> automatonMap) throws IOException { List<CompiledAutomaton> list = new ArrayList<>(); Automaton automatonRegexp = null; if (regexp != null) { RegExp re = new RegExp(prefix + MtasToken.DELIMITER + regexp + "\u0000*"); automatonRegexp = re.toAutomaton(); } int step = 500; List<String> keyList = new ArrayList<>(automatonMap.keySet()); for (int i = 0; i < keyList.size(); i += step) { int localStep = step; boolean success = false; CompiledAutomaton compiledAutomaton = null; while (!success) { success = true; int next = Math.min(keyList.size(), i + localStep); List<Automaton> listAutomaton = new ArrayList<>(); for (int j = i; j < next; j++) { listAutomaton.add(automatonMap.get(keyList.get(j))); } Automaton automatonList = Operations.union(listAutomaton); Automaton automaton; if (automatonRegexp != null) { automaton = Operations.intersection(automatonList, automatonRegexp); } else { automaton = automatonList; } try { compiledAutomaton = new CompiledAutomaton(automaton); } catch (TooComplexToDeterminizeException e) { log.debug(e); success = false; if (localStep > 1) { localStep /= 2; } else { throw new IOException("TooComplexToDeterminizeException"); } } } list.add(compiledAutomaton); } return list; }
java
public static authenticationtacacspolicy_authenticationvserver_binding[] get(nitro_service service, String name) throws Exception{ authenticationtacacspolicy_authenticationvserver_binding obj = new authenticationtacacspolicy_authenticationvserver_binding(); obj.set_name(name); authenticationtacacspolicy_authenticationvserver_binding response[] = (authenticationtacacspolicy_authenticationvserver_binding[]) obj.get_resources(service); return response; }
java
public static base_response add(nitro_service client, snmpmanager resource) throws Exception { snmpmanager addresource = new snmpmanager(); addresource.ipaddress = resource.ipaddress; addresource.netmask = resource.netmask; addresource.domainresolveretry = resource.domainresolveretry; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, snmpmanager resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { snmpmanager addresources[] = new snmpmanager[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new snmpmanager(); addresources[i].ipaddress = resources[i].ipaddress; addresources[i].netmask = resources[i].netmask; addresources[i].domainresolveretry = resources[i].domainresolveretry; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_response delete(nitro_service client, snmpmanager resource) throws Exception { snmpmanager deleteresource = new snmpmanager(); deleteresource.ipaddress = resource.ipaddress; deleteresource.netmask = resource.netmask; return deleteresource.delete_resource(client); }
java
public static base_response update(nitro_service client, snmpmanager resource) throws Exception { snmpmanager updateresource = new snmpmanager(); updateresource.ipaddress = resource.ipaddress; updateresource.netmask = resource.netmask; updateresource.domainresolveretry = resource.domainresolveretry; return updateresource.update_resource(client); }
java
public static base_responses update(nitro_service client, snmpmanager resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { snmpmanager updateresources[] = new snmpmanager[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new snmpmanager(); updateresources[i].ipaddress = resources[i].ipaddress; updateresources[i].netmask = resources[i].netmask; updateresources[i].domainresolveretry = resources[i].domainresolveretry; } result = update_bulk_request(client, updateresources); } return result; }
java
public static base_response unset(nitro_service client, snmpmanager resource, String[] args) throws Exception{ snmpmanager unsetresource = new snmpmanager(); unsetresource.ipaddress = resource.ipaddress; unsetresource.netmask = resource.netmask; return unsetresource.unset_resource(client,args); }
java
public static snmpmanager[] get(nitro_service service) throws Exception{ snmpmanager obj = new snmpmanager(); snmpmanager[] response = (snmpmanager[])obj.get_resources(service); return response; }
java
public static appfwprofile_denyurl_binding[] get(nitro_service service, String name) throws Exception{ appfwprofile_denyurl_binding obj = new appfwprofile_denyurl_binding(); obj.set_name(name); appfwprofile_denyurl_binding response[] = (appfwprofile_denyurl_binding[]) obj.get_resources(service); return response; }
java
public static netbridge_vlan_binding[] get(nitro_service service, String name) throws Exception{ netbridge_vlan_binding obj = new netbridge_vlan_binding(); obj.set_name(name); netbridge_vlan_binding response[] = (netbridge_vlan_binding[]) obj.get_resources(service); return response; }
java
public static audit_stats get(nitro_service service, options option) throws Exception{ audit_stats obj = new audit_stats(); audit_stats[] response = (audit_stats[])obj.stat_resources(service,option); return response[0]; }
java
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); options option = new options(); option.set_action("clear"); result = resource.perform_operation(this, option); return result; }
java
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); return result; }
java
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); return result; }
java
public base_response login(String username, String password, Long timeout) throws Exception { this.set_credential(username, password); this.set_timeout(timeout); return this.login(); }
java
public void set_protocol(String protocol) throws nitro_exception { if (protocol == null || !(protocol.equalsIgnoreCase("http") ||protocol.equalsIgnoreCase("https"))) { throw new nitro_exception("error: protocol value " + protocol + " is not supported"); } this.protocol = protocol; }
java
public static authenticationvserver_authenticationlocalpolicy_binding[] get(nitro_service service, String name) throws Exception{ authenticationvserver_authenticationlocalpolicy_binding obj = new authenticationvserver_authenticationlocalpolicy_binding(); obj.set_name(name); authenticationvserver_authenticationlocalpolicy_binding response[] = (authenticationvserver_authenticationlocalpolicy_binding[]) obj.get_resources(service); return response; }
java
public static responderglobal_responderpolicy_binding[] get(nitro_service service) throws Exception{ responderglobal_responderpolicy_binding obj = new responderglobal_responderpolicy_binding(); responderglobal_responderpolicy_binding response[] = (responderglobal_responderpolicy_binding[]) obj.get_resources(service); return response; }
java
public static systemmemory_stats get(nitro_service service) throws Exception{ systemmemory_stats obj = new systemmemory_stats(); systemmemory_stats[] response = (systemmemory_stats[])obj.stat_resources(service); return response[0]; }
java
public static base_response unset(nitro_service client, sslservice resource, String[] args) throws Exception{ sslservice unsetresource = new sslservice(); unsetresource.servicename = resource.servicename; return unsetresource.unset_resource(client,args); }
java
public static sslservice[] get(nitro_service service) throws Exception{ sslservice obj = new sslservice(); sslservice[] response = (sslservice[])obj.get_resources(service); return response; }
java
public static sslservice[] get(nitro_service service, sslservice_args args) throws Exception{ sslservice obj = new sslservice(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); sslservice[] response = (sslservice[])obj.get_resources(service, option); return response; }
java
public static sslservice get(nitro_service service, String servicename) throws Exception{ sslservice obj = new sslservice(); obj.set_servicename(servicename); sslservice response = (sslservice) obj.get_resource(service); return response; }
java
public static base_response add(nitro_service client, vpath resource) throws Exception { vpath addresource = new vpath(); addresource.name = resource.name; addresource.destip = resource.destip; addresource.encapmode = resource.encapmode; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, vpath resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { vpath addresources[] = new vpath[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new vpath(); addresources[i].name = resources[i].name; addresources[i].destip = resources[i].destip; addresources[i].encapmode = resources[i].encapmode; } result = add_bulk_request(client, addresources); } return result; }
java
public static vpath[] get(nitro_service service) throws Exception{ vpath obj = new vpath(); vpath[] response = (vpath[])obj.get_resources(service); return response; }
java
public static vpath get(nitro_service service, String name) throws Exception{ vpath obj = new vpath(); obj.set_name(name); vpath response = (vpath) obj.get_resource(service); return response; }
java
public Tokenizer<Tree> getTokenizer(final Reader r) { return new AbstractTokenizer<Tree>() { TreeReader tr = trf.newTreeReader(r); @Override public Tree getNext() { try { return tr.readTree(); } catch(IOException e) { System.err.println("Error in reading tree."); return null; } } }; }
java
public static lbvserver_scpolicy_binding[] get(nitro_service service, String name) throws Exception{ lbvserver_scpolicy_binding obj = new lbvserver_scpolicy_binding(); obj.set_name(name); lbvserver_scpolicy_binding response[] = (lbvserver_scpolicy_binding[]) obj.get_resources(service); return response; }
java
public static transformpolicylabel[] get(nitro_service service) throws Exception{ transformpolicylabel obj = new transformpolicylabel(); transformpolicylabel[] response = (transformpolicylabel[])obj.get_resources(service); return response; }
java
public static transformpolicylabel get(nitro_service service, String labelname) throws Exception{ transformpolicylabel obj = new transformpolicylabel(); obj.set_labelname(labelname); transformpolicylabel response = (transformpolicylabel) obj.get_resource(service); return response; }
java
public static base_response add(nitro_service client, ntpserver resource) throws Exception { ntpserver addresource = new ntpserver(); addresource.serverip = resource.serverip; addresource.servername = resource.servername; addresource.minpoll = resource.minpoll; addresource.maxpoll = resource.maxpoll; addresource.autokey = resource.autokey; addresource.key = resource.key; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, ntpserver resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { ntpserver addresources[] = new ntpserver[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new ntpserver(); addresources[i].serverip = resources[i].serverip; addresources[i].servername = resources[i].servername; addresources[i].minpoll = resources[i].minpoll; addresources[i].maxpoll = resources[i].maxpoll; addresources[i].autokey = resources[i].autokey; addresources[i].key = resources[i].key; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_response delete(nitro_service client, String serverip) throws Exception { ntpserver deleteresource = new ntpserver(); deleteresource.serverip = serverip; return deleteresource.delete_resource(client); }
java
public static base_response delete(nitro_service client, ntpserver resource) throws Exception { ntpserver deleteresource = new ntpserver(); deleteresource.serverip = resource.serverip; deleteresource.servername = resource.servername; return deleteresource.delete_resource(client); }
java
public static base_responses delete(nitro_service client, String serverip[]) throws Exception { base_responses result = null; if (serverip != null && serverip.length > 0) { ntpserver deleteresources[] = new ntpserver[serverip.length]; for (int i=0;i<serverip.length;i++){ deleteresources[i] = new ntpserver(); deleteresources[i].serverip = serverip[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
java
public static base_responses delete(nitro_service client, ntpserver resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { ntpserver deleteresources[] = new ntpserver[resources.length]; for (int i=0;i<resources.length;i++){ deleteresources[i] = new ntpserver(); deleteresources[i].serverip = resources[i].serverip; deleteresources[i].servername = resources[i].servername; } result = delete_bulk_request(client, deleteresources); } return result; }
java
public static base_response update(nitro_service client, ntpserver resource) throws Exception { ntpserver updateresource = new ntpserver(); updateresource.serverip = resource.serverip; updateresource.servername = resource.servername; updateresource.minpoll = resource.minpoll; updateresource.maxpoll = resource.maxpoll; updateresource.preferredntpserver = resource.preferredntpserver; updateresource.autokey = resource.autokey; updateresource.key = resource.key; return updateresource.update_resource(client); }
java
public static base_responses update(nitro_service client, ntpserver resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { ntpserver updateresources[] = new ntpserver[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new ntpserver(); updateresources[i].serverip = resources[i].serverip; updateresources[i].servername = resources[i].servername; updateresources[i].minpoll = resources[i].minpoll; updateresources[i].maxpoll = resources[i].maxpoll; updateresources[i].preferredntpserver = resources[i].preferredntpserver; updateresources[i].autokey = resources[i].autokey; updateresources[i].key = resources[i].key; } result = update_bulk_request(client, updateresources); } return result; }
java
public static base_response unset(nitro_service client, ntpserver resource, String[] args) throws Exception{ ntpserver unsetresource = new ntpserver(); unsetresource.serverip = resource.serverip; unsetresource.servername = resource.servername; return unsetresource.unset_resource(client,args); }
java
public static ntpserver[] get(nitro_service service) throws Exception{ ntpserver obj = new ntpserver(); ntpserver[] response = (ntpserver[])obj.get_resources(service); return response; }
java
public static base_response add(nitro_service client, dnssuffix resource) throws Exception { dnssuffix addresource = new dnssuffix(); addresource.Dnssuffix = resource.Dnssuffix; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, dnssuffix resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnssuffix addresources[] = new dnssuffix[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new dnssuffix(); addresources[i].Dnssuffix = resources[i].Dnssuffix; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_response delete(nitro_service client, String Dnssuffix) throws Exception { dnssuffix deleteresource = new dnssuffix(); deleteresource.Dnssuffix = Dnssuffix; return deleteresource.delete_resource(client); }
java
public static base_responses delete(nitro_service client, String Dnssuffix[]) throws Exception { base_responses result = null; if (Dnssuffix != null && Dnssuffix.length > 0) { dnssuffix deleteresources[] = new dnssuffix[Dnssuffix.length]; for (int i=0;i<Dnssuffix.length;i++){ deleteresources[i] = new dnssuffix(); deleteresources[i].Dnssuffix = Dnssuffix[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
java
public static dnssuffix[] get(nitro_service service) throws Exception{ dnssuffix obj = new dnssuffix(); dnssuffix[] response = (dnssuffix[])obj.get_resources(service); return response; }
java
public static dnssuffix get(nitro_service service, String Dnssuffix) throws Exception{ dnssuffix obj = new dnssuffix(); obj.set_Dnssuffix(Dnssuffix); dnssuffix response = (dnssuffix) obj.get_resource(service); return response; }
java
public static dnssuffix[] get(nitro_service service, String Dnssuffix[]) throws Exception{ if (Dnssuffix !=null && Dnssuffix.length>0) { dnssuffix response[] = new dnssuffix[Dnssuffix.length]; dnssuffix obj[] = new dnssuffix[Dnssuffix.length]; for (int i=0;i<Dnssuffix.length;i++) { obj[i] = new dnssuffix(); obj[i].set_Dnssuffix(Dnssuffix[i]); response[i] = (dnssuffix) obj[i].get_resource(service); } return response; } return null; }
java
public static base_response update(nitro_service client, vridparam resource) throws Exception { vridparam updateresource = new vridparam(); updateresource.sendtomaster = resource.sendtomaster; return updateresource.update_resource(client); }
java
public static base_response unset(nitro_service client, vridparam resource, String[] args) throws Exception{ vridparam unsetresource = new vridparam(); return unsetresource.unset_resource(client,args); }
java
public static vridparam get(nitro_service service) throws Exception{ vridparam obj = new vridparam(); vridparam[] response = (vridparam[])obj.get_resources(service); return response[0]; }
java
public static cmppolicylabel_stats[] get(nitro_service service) throws Exception{ cmppolicylabel_stats obj = new cmppolicylabel_stats(); cmppolicylabel_stats[] response = (cmppolicylabel_stats[])obj.stat_resources(service); return response; }
java
public static cmppolicylabel_stats get(nitro_service service, String labelname) throws Exception{ cmppolicylabel_stats obj = new cmppolicylabel_stats(); obj.set_labelname(labelname); cmppolicylabel_stats response = (cmppolicylabel_stats) obj.stat_resource(service); return response; }
java
public static base_response add(nitro_service client, dnstxtrec resource) throws Exception { dnstxtrec addresource = new dnstxtrec(); addresource.domain = resource.domain; addresource.String = resource.String; addresource.ttl = resource.ttl; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, dnstxtrec resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnstxtrec addresources[] = new dnstxtrec[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new dnstxtrec(); addresources[i].domain = resources[i].domain; addresources[i].String = resources[i].String; addresources[i].ttl = resources[i].ttl; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_response delete(nitro_service client, String domain) throws Exception { dnstxtrec deleteresource = new dnstxtrec(); deleteresource.domain = domain; return deleteresource.delete_resource(client); }
java
public static base_response delete(nitro_service client, dnstxtrec resource) throws Exception { dnstxtrec deleteresource = new dnstxtrec(); deleteresource.domain = resource.domain; deleteresource.String = resource.String; deleteresource.recordid = resource.recordid; return deleteresource.delete_resource(client); }
java
public static base_responses delete(nitro_service client, dnstxtrec resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnstxtrec deleteresources[] = new dnstxtrec[resources.length]; for (int i=0;i<resources.length;i++){ deleteresources[i] = new dnstxtrec(); deleteresources[i].domain = resources[i].domain; deleteresources[i].String = resources[i].String; deleteresources[i].recordid = resources[i].recordid; } result = delete_bulk_request(client, deleteresources); } return result; }
java
public static dnstxtrec[] get(nitro_service service) throws Exception{ dnstxtrec obj = new dnstxtrec(); dnstxtrec[] response = (dnstxtrec[])obj.get_resources(service); return response; }
java
public static dnstxtrec[] get(nitro_service service, dnstxtrec_args args) throws Exception{ dnstxtrec obj = new dnstxtrec(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); dnstxtrec[] response = (dnstxtrec[])obj.get_resources(service, option); return response; }
java
public static dnstxtrec get(nitro_service service, String domain) throws Exception{ dnstxtrec obj = new dnstxtrec(); obj.set_domain(domain); dnstxtrec response = (dnstxtrec) obj.get_resource(service); return response; }
java
public static dnstxtrec[] get(nitro_service service, String domain[]) throws Exception{ if (domain !=null && domain.length>0) { dnstxtrec response[] = new dnstxtrec[domain.length]; dnstxtrec obj[] = new dnstxtrec[domain.length]; for (int i=0;i<domain.length;i++) { obj[i] = new dnstxtrec(); obj[i].set_domain(domain[i]); response[i] = (dnstxtrec) obj[i].get_resource(service); } return response; } return null; }
java
public static bridgegroup_vlan_binding[] get(nitro_service service, Long id) throws Exception{ bridgegroup_vlan_binding obj = new bridgegroup_vlan_binding(); obj.set_id(id); bridgegroup_vlan_binding response[] = (bridgegroup_vlan_binding[]) obj.get_resources(service); return response; }
java
public static long count(nitro_service service, Long id) throws Exception{ bridgegroup_vlan_binding obj = new bridgegroup_vlan_binding(); obj.set_id(id); options option = new options(); option.set_count(true); bridgegroup_vlan_binding response[] = (bridgegroup_vlan_binding[]) obj.get_resources(service,option); if (response != null) { return response[0].__count; } return 0; }
java
public boolean accept(String str) { int k = str.length() - 1; char c = str.charAt(k); while (k >= 0 && !Character.isDigit(c)) { k--; if (k >= 0) { c = str.charAt(k); } } if (k < 0) { return false; } int j = k; c = str.charAt(j); while (j >= 0 && Character.isDigit(c)) { j--; if (j >= 0) { c = str.charAt(j); } } j++; k++; String theNumber = str.substring(j, k); int number = Integer.parseInt(theNumber); for (Pair<Integer,Integer> p : ranges) { int low = p.first().intValue(); int high = p.second().intValue(); if (number >= low && number <= high) { return true; } } return false; }
java
public static vlan_nsip_binding[] get(nitro_service service, Long id) throws Exception{ vlan_nsip_binding obj = new vlan_nsip_binding(); obj.set_id(id); vlan_nsip_binding response[] = (vlan_nsip_binding[]) obj.get_resources(service); return response; }
java
public static wisite_binding get(nitro_service service, String sitepath) throws Exception{ wisite_binding obj = new wisite_binding(); obj.set_sitepath(sitepath); wisite_binding response = (wisite_binding) obj.get_resource(service); return response; }
java
public static wisite_binding[] get(nitro_service service, String sitepath[]) throws Exception{ if (sitepath !=null && sitepath.length>0) { wisite_binding response[] = new wisite_binding[sitepath.length]; wisite_binding obj[] = new wisite_binding[sitepath.length]; for (int i=0;i<sitepath.length;i++) { obj[i] = new wisite_binding(); obj[i].set_sitepath(sitepath[i]); response[i] = (wisite_binding) obj[i].get_resource(service); } return response; } return null; }
java
public static responderpolicylabel_responderpolicy_binding[] get(nitro_service service, String labelname) throws Exception{ responderpolicylabel_responderpolicy_binding obj = new responderpolicylabel_responderpolicy_binding(); obj.set_labelname(labelname); responderpolicylabel_responderpolicy_binding response[] = (responderpolicylabel_responderpolicy_binding[]) obj.get_resources(service); return response; }
java
public static vpnvserver_appcontroller_binding[] get(nitro_service service, String name) throws Exception{ vpnvserver_appcontroller_binding obj = new vpnvserver_appcontroller_binding(); obj.set_name(name); vpnvserver_appcontroller_binding response[] = (vpnvserver_appcontroller_binding[]) obj.get_resources(service); return response; }
java
public static base_response add(nitro_service client, vpnsessionaction resource) throws Exception { vpnsessionaction addresource = new vpnsessionaction(); addresource.name = resource.name; addresource.httpport = resource.httpport; addresource.winsip = resource.winsip; addresource.dnsvservername = resource.dnsvservername; addresource.splitdns = resource.splitdns; addresource.sesstimeout = resource.sesstimeout; addresource.clientsecurity = resource.clientsecurity; addresource.clientsecuritygroup = resource.clientsecuritygroup; addresource.clientsecuritymessage = resource.clientsecuritymessage; addresource.clientsecuritylog = resource.clientsecuritylog; addresource.splittunnel = resource.splittunnel; addresource.locallanaccess = resource.locallanaccess; addresource.rfc1918 = resource.rfc1918; addresource.spoofiip = resource.spoofiip; addresource.killconnections = resource.killconnections; addresource.transparentinterception = resource.transparentinterception; addresource.windowsclienttype = resource.windowsclienttype; addresource.defaultauthorizationaction = resource.defaultauthorizationaction; addresource.authorizationgroup = resource.authorizationgroup; addresource.clientidletimeout = resource.clientidletimeout; addresource.proxy = resource.proxy; addresource.allprotocolproxy = resource.allprotocolproxy; addresource.httpproxy = resource.httpproxy; addresource.ftpproxy = resource.ftpproxy; addresource.socksproxy = resource.socksproxy; addresource.gopherproxy = resource.gopherproxy; addresource.sslproxy = resource.sslproxy; addresource.proxyexception = resource.proxyexception; addresource.proxylocalbypass = resource.proxylocalbypass; addresource.clientcleanupprompt = resource.clientcleanupprompt; addresource.forcecleanup = resource.forcecleanup; addresource.clientoptions = resource.clientoptions; addresource.clientconfiguration = resource.clientconfiguration; addresource.sso = resource.sso; addresource.ssocredential = resource.ssocredential; addresource.windowsautologon = resource.windowsautologon; addresource.usemip = resource.usemip; addresource.useiip = resource.useiip; addresource.clientdebug = resource.clientdebug; addresource.loginscript = resource.loginscript; addresource.logoutscript = resource.logoutscript; addresource.homepage = resource.homepage; addresource.icaproxy = resource.icaproxy; addresource.wihome = resource.wihome; addresource.citrixreceiverhome = resource.citrixreceiverhome; addresource.wiportalmode = resource.wiportalmode; addresource.clientchoices = resource.clientchoices; addresource.epaclienttype = resource.epaclienttype; addresource.iipdnssuffix = resource.iipdnssuffix; addresource.forcedtimeout = resource.forcedtimeout; addresource.forcedtimeoutwarning = resource.forcedtimeoutwarning; addresource.ntdomain = resource.ntdomain; addresource.clientlessvpnmode = resource.clientlessvpnmode; addresource.emailhome = resource.emailhome; addresource.clientlessmodeurlencoding = resource.clientlessmodeurlencoding; addresource.clientlesspersistentcookie = resource.clientlesspersistentcookie; addresource.allowedlogingroups = resource.allowedlogingroups; addresource.securebrowse = resource.securebrowse; addresource.storefronturl = resource.storefronturl; addresource.kcdaccount = resource.kcdaccount; return addresource.add_resource(client); }
java
public static base_response update(nitro_service client, vpnsessionaction resource) throws Exception { vpnsessionaction updateresource = new vpnsessionaction(); updateresource.name = resource.name; updateresource.httpport = resource.httpport; updateresource.winsip = resource.winsip; updateresource.dnsvservername = resource.dnsvservername; updateresource.splitdns = resource.splitdns; updateresource.sesstimeout = resource.sesstimeout; updateresource.clientsecurity = resource.clientsecurity; updateresource.clientsecuritygroup = resource.clientsecuritygroup; updateresource.clientsecuritymessage = resource.clientsecuritymessage; updateresource.clientsecuritylog = resource.clientsecuritylog; updateresource.splittunnel = resource.splittunnel; updateresource.locallanaccess = resource.locallanaccess; updateresource.rfc1918 = resource.rfc1918; updateresource.spoofiip = resource.spoofiip; updateresource.killconnections = resource.killconnections; updateresource.transparentinterception = resource.transparentinterception; updateresource.windowsclienttype = resource.windowsclienttype; updateresource.defaultauthorizationaction = resource.defaultauthorizationaction; updateresource.authorizationgroup = resource.authorizationgroup; updateresource.clientidletimeout = resource.clientidletimeout; updateresource.proxy = resource.proxy; updateresource.allprotocolproxy = resource.allprotocolproxy; updateresource.httpproxy = resource.httpproxy; updateresource.ftpproxy = resource.ftpproxy; updateresource.socksproxy = resource.socksproxy; updateresource.gopherproxy = resource.gopherproxy; updateresource.sslproxy = resource.sslproxy; updateresource.proxyexception = resource.proxyexception; updateresource.proxylocalbypass = resource.proxylocalbypass; updateresource.clientcleanupprompt = resource.clientcleanupprompt; updateresource.forcecleanup = resource.forcecleanup; updateresource.clientoptions = resource.clientoptions; updateresource.clientconfiguration = resource.clientconfiguration; updateresource.sso = resource.sso; updateresource.ssocredential = resource.ssocredential; updateresource.windowsautologon = resource.windowsautologon; updateresource.usemip = resource.usemip; updateresource.useiip = resource.useiip; updateresource.clientdebug = resource.clientdebug; updateresource.loginscript = resource.loginscript; updateresource.logoutscript = resource.logoutscript; updateresource.homepage = resource.homepage; updateresource.icaproxy = resource.icaproxy; updateresource.wihome = resource.wihome; updateresource.citrixreceiverhome = resource.citrixreceiverhome; updateresource.wiportalmode = resource.wiportalmode; updateresource.clientchoices = resource.clientchoices; updateresource.epaclienttype = resource.epaclienttype; updateresource.iipdnssuffix = resource.iipdnssuffix; updateresource.forcedtimeout = resource.forcedtimeout; updateresource.forcedtimeoutwarning = resource.forcedtimeoutwarning; updateresource.ntdomain = resource.ntdomain; updateresource.clientlessvpnmode = resource.clientlessvpnmode; updateresource.emailhome = resource.emailhome; updateresource.clientlessmodeurlencoding = resource.clientlessmodeurlencoding; updateresource.clientlesspersistentcookie = resource.clientlesspersistentcookie; updateresource.allowedlogingroups = resource.allowedlogingroups; updateresource.securebrowse = resource.securebrowse; updateresource.storefronturl = resource.storefronturl; updateresource.kcdaccount = resource.kcdaccount; return updateresource.update_resource(client); }
java
public static vpnsessionaction[] get(nitro_service service) throws Exception{ vpnsessionaction obj = new vpnsessionaction(); vpnsessionaction[] response = (vpnsessionaction[])obj.get_resources(service); return response; }
java
public static vpnsessionaction get(nitro_service service, String name) throws Exception{ vpnsessionaction obj = new vpnsessionaction(); obj.set_name(name); vpnsessionaction response = (vpnsessionaction) obj.get_resource(service); return response; }
java
public static nslimitidentifier_binding get(nitro_service service, String limitidentifier) throws Exception{ nslimitidentifier_binding obj = new nslimitidentifier_binding(); obj.set_limitidentifier(limitidentifier); nslimitidentifier_binding response = (nslimitidentifier_binding) obj.get_resource(service); return response; }
java
public static base_response add(nitro_service client, sslocspresponder resource) throws Exception { sslocspresponder addresource = new sslocspresponder(); addresource.name = resource.name; addresource.url = resource.url; addresource.cache = resource.cache; addresource.cachetimeout = resource.cachetimeout; addresource.batchingdepth = resource.batchingdepth; addresource.batchingdelay = resource.batchingdelay; addresource.resptimeout = resource.resptimeout; addresource.respondercert = resource.respondercert; addresource.trustresponder = resource.trustresponder; addresource.producedattimeskew = resource.producedattimeskew; addresource.signingcert = resource.signingcert; addresource.usenonce = resource.usenonce; addresource.insertclientcert = resource.insertclientcert; return addresource.add_resource(client); }
java
public static base_responses add(nitro_service client, sslocspresponder resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { sslocspresponder addresources[] = new sslocspresponder[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new sslocspresponder(); addresources[i].name = resources[i].name; addresources[i].url = resources[i].url; addresources[i].cache = resources[i].cache; addresources[i].cachetimeout = resources[i].cachetimeout; addresources[i].batchingdepth = resources[i].batchingdepth; addresources[i].batchingdelay = resources[i].batchingdelay; addresources[i].resptimeout = resources[i].resptimeout; addresources[i].respondercert = resources[i].respondercert; addresources[i].trustresponder = resources[i].trustresponder; addresources[i].producedattimeskew = resources[i].producedattimeskew; addresources[i].signingcert = resources[i].signingcert; addresources[i].usenonce = resources[i].usenonce; addresources[i].insertclientcert = resources[i].insertclientcert; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_response update(nitro_service client, sslocspresponder resource) throws Exception { sslocspresponder updateresource = new sslocspresponder(); updateresource.name = resource.name; updateresource.url = resource.url; updateresource.cache = resource.cache; updateresource.cachetimeout = resource.cachetimeout; updateresource.batchingdepth = resource.batchingdepth; updateresource.batchingdelay = resource.batchingdelay; updateresource.resptimeout = resource.resptimeout; updateresource.respondercert = resource.respondercert; updateresource.trustresponder = resource.trustresponder; updateresource.producedattimeskew = resource.producedattimeskew; updateresource.signingcert = resource.signingcert; updateresource.usenonce = resource.usenonce; updateresource.insertclientcert = resource.insertclientcert; return updateresource.update_resource(client); }
java
public static base_responses update(nitro_service client, sslocspresponder resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { sslocspresponder updateresources[] = new sslocspresponder[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new sslocspresponder(); updateresources[i].name = resources[i].name; updateresources[i].url = resources[i].url; updateresources[i].cache = resources[i].cache; updateresources[i].cachetimeout = resources[i].cachetimeout; updateresources[i].batchingdepth = resources[i].batchingdepth; updateresources[i].batchingdelay = resources[i].batchingdelay; updateresources[i].resptimeout = resources[i].resptimeout; updateresources[i].respondercert = resources[i].respondercert; updateresources[i].trustresponder = resources[i].trustresponder; updateresources[i].producedattimeskew = resources[i].producedattimeskew; updateresources[i].signingcert = resources[i].signingcert; updateresources[i].usenonce = resources[i].usenonce; updateresources[i].insertclientcert = resources[i].insertclientcert; } result = update_bulk_request(client, updateresources); } return result; }
java
public static base_response unset(nitro_service client, sslocspresponder resource, String[] args) throws Exception{ sslocspresponder unsetresource = new sslocspresponder(); unsetresource.name = resource.name; unsetresource.insertclientcert = resource.insertclientcert; return unsetresource.unset_resource(client,args); }
java
public static sslocspresponder[] get(nitro_service service) throws Exception{ sslocspresponder obj = new sslocspresponder(); sslocspresponder[] response = (sslocspresponder[])obj.get_resources(service); return response; }
java
public static sslocspresponder get(nitro_service service, String name) throws Exception{ sslocspresponder obj = new sslocspresponder(); obj.set_name(name); sslocspresponder response = (sslocspresponder) obj.get_resource(service); return response; }
java
public static base_response add(nitro_service client, nslimitselector resource) throws Exception { nslimitselector addresource = new nslimitselector(); addresource.selectorname = resource.selectorname; addresource.rule = resource.rule; return addresource.add_resource(client); }
java
public static base_responses update(nitro_service client, nslimitselector resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nslimitselector updateresources[] = new nslimitselector[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new nslimitselector(); updateresources[i].selectorname = resources[i].selectorname; updateresources[i].rule = resources[i].rule; } result = update_bulk_request(client, updateresources); } return result; }
java
public static base_response unset(nitro_service client, nslimitselector resource, String[] args) throws Exception{ nslimitselector unsetresource = new nslimitselector(); unsetresource.selectorname = resource.selectorname; return unsetresource.unset_resource(client,args); }
java
public static base_responses unset(nitro_service client, String selectorname[], String args[]) throws Exception { base_responses result = null; if (selectorname != null && selectorname.length > 0) { nslimitselector unsetresources[] = new nslimitselector[selectorname.length]; for (int i=0;i<selectorname.length;i++){ unsetresources[i] = new nslimitselector(); unsetresources[i].selectorname = selectorname[i]; } result = unset_bulk_request(client, unsetresources,args); } return result; }
java
public static nslimitselector[] get(nitro_service service) throws Exception{ nslimitselector obj = new nslimitselector(); nslimitselector[] response = (nslimitselector[])obj.get_resources(service); return response; }
java
public static nslimitselector get(nitro_service service, String selectorname) throws Exception{ nslimitselector obj = new nslimitselector(); obj.set_selectorname(selectorname); nslimitselector response = (nslimitselector) obj.get_resource(service); return response; }
java
public static nstrafficdomain_binding get(nitro_service service, Long td) throws Exception{ nstrafficdomain_binding obj = new nstrafficdomain_binding(); obj.set_td(td); nstrafficdomain_binding response = (nstrafficdomain_binding) obj.get_resource(service); return response; }
java
public static nstrafficdomain_binding[] get(nitro_service service, Long td[]) throws Exception{ if (td !=null && td.length>0) { nstrafficdomain_binding response[] = new nstrafficdomain_binding[td.length]; nstrafficdomain_binding obj[] = new nstrafficdomain_binding[td.length]; for (int i=0;i<td.length;i++) { obj[i] = new nstrafficdomain_binding(); obj[i].set_td(td[i]); response[i] = (nstrafficdomain_binding) obj[i].get_resource(service); } return response; } return null; }
java
public static cmppolicylabel_cmppolicy_binding[] get(nitro_service service, String labelname) throws Exception{ cmppolicylabel_cmppolicy_binding obj = new cmppolicylabel_cmppolicy_binding(); obj.set_labelname(labelname); cmppolicylabel_cmppolicy_binding response[] = (cmppolicylabel_cmppolicy_binding[]) obj.get_resources(service); return response; }
java
public static base_response update(nitro_service client, appfwlearningsettings resource) throws Exception { appfwlearningsettings updateresource = new appfwlearningsettings(); updateresource.profilename = resource.profilename; updateresource.starturlminthreshold = resource.starturlminthreshold; updateresource.starturlpercentthreshold = resource.starturlpercentthreshold; updateresource.cookieconsistencyminthreshold = resource.cookieconsistencyminthreshold; updateresource.cookieconsistencypercentthreshold = resource.cookieconsistencypercentthreshold; updateresource.csrftagminthreshold = resource.csrftagminthreshold; updateresource.csrftagpercentthreshold = resource.csrftagpercentthreshold; updateresource.fieldconsistencyminthreshold = resource.fieldconsistencyminthreshold; updateresource.fieldconsistencypercentthreshold = resource.fieldconsistencypercentthreshold; updateresource.crosssitescriptingminthreshold = resource.crosssitescriptingminthreshold; updateresource.crosssitescriptingpercentthreshold = resource.crosssitescriptingpercentthreshold; updateresource.sqlinjectionminthreshold = resource.sqlinjectionminthreshold; updateresource.sqlinjectionpercentthreshold = resource.sqlinjectionpercentthreshold; updateresource.fieldformatminthreshold = resource.fieldformatminthreshold; updateresource.fieldformatpercentthreshold = resource.fieldformatpercentthreshold; updateresource.xmlwsiminthreshold = resource.xmlwsiminthreshold; updateresource.xmlwsipercentthreshold = resource.xmlwsipercentthreshold; updateresource.xmlattachmentminthreshold = resource.xmlattachmentminthreshold; updateresource.xmlattachmentpercentthreshold = resource.xmlattachmentpercentthreshold; return updateresource.update_resource(client); }
java
public static base_responses update(nitro_service client, appfwlearningsettings resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { appfwlearningsettings updateresources[] = new appfwlearningsettings[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new appfwlearningsettings(); updateresources[i].profilename = resources[i].profilename; updateresources[i].starturlminthreshold = resources[i].starturlminthreshold; updateresources[i].starturlpercentthreshold = resources[i].starturlpercentthreshold; updateresources[i].cookieconsistencyminthreshold = resources[i].cookieconsistencyminthreshold; updateresources[i].cookieconsistencypercentthreshold = resources[i].cookieconsistencypercentthreshold; updateresources[i].csrftagminthreshold = resources[i].csrftagminthreshold; updateresources[i].csrftagpercentthreshold = resources[i].csrftagpercentthreshold; updateresources[i].fieldconsistencyminthreshold = resources[i].fieldconsistencyminthreshold; updateresources[i].fieldconsistencypercentthreshold = resources[i].fieldconsistencypercentthreshold; updateresources[i].crosssitescriptingminthreshold = resources[i].crosssitescriptingminthreshold; updateresources[i].crosssitescriptingpercentthreshold = resources[i].crosssitescriptingpercentthreshold; updateresources[i].sqlinjectionminthreshold = resources[i].sqlinjectionminthreshold; updateresources[i].sqlinjectionpercentthreshold = resources[i].sqlinjectionpercentthreshold; updateresources[i].fieldformatminthreshold = resources[i].fieldformatminthreshold; updateresources[i].fieldformatpercentthreshold = resources[i].fieldformatpercentthreshold; updateresources[i].xmlwsiminthreshold = resources[i].xmlwsiminthreshold; updateresources[i].xmlwsipercentthreshold = resources[i].xmlwsipercentthreshold; updateresources[i].xmlattachmentminthreshold = resources[i].xmlattachmentminthreshold; updateresources[i].xmlattachmentpercentthreshold = resources[i].xmlattachmentpercentthreshold; } result = update_bulk_request(client, updateresources); } return result; }
java
public static appfwlearningsettings[] get(nitro_service service) throws Exception{ appfwlearningsettings obj = new appfwlearningsettings(); appfwlearningsettings[] response = (appfwlearningsettings[])obj.get_resources(service); return response; }
java
public static appfwlearningsettings get(nitro_service service, String profilename) throws Exception{ appfwlearningsettings obj = new appfwlearningsettings(); obj.set_profilename(profilename); appfwlearningsettings response = (appfwlearningsettings) obj.get_resource(service); return response; }
java
public static appfwlearningsettings[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{ appfwlearningsettings obj = new appfwlearningsettings(); options option = new options(); option.set_filter(filter); appfwlearningsettings[] response = (appfwlearningsettings[]) obj.getfiltered(service, option); return response; }
java
public static lbvserver_appflowpolicy_binding[] get(nitro_service service, String name) throws Exception{ lbvserver_appflowpolicy_binding obj = new lbvserver_appflowpolicy_binding(); obj.set_name(name); lbvserver_appflowpolicy_binding response[] = (lbvserver_appflowpolicy_binding[]) obj.get_resources(service); return response; }
java
public static base_response add(nitro_service client, dnsaaaarec resource) throws Exception { dnsaaaarec addresource = new dnsaaaarec(); addresource.hostname = resource.hostname; addresource.ipv6address = resource.ipv6address; addresource.ttl = resource.ttl; return addresource.add_resource(client); }
java