idx int64 0 165k | question stringlengths 73 4.15k | target stringlengths 5 918 | len_question int64 21 890 | len_target int64 3 255 |
|---|---|---|---|---|
2,100 | public static lbvserver [ ] get ( nitro_service service ) throws Exception { lbvserver obj = new lbvserver ( ) ; lbvserver [ ] response = ( lbvserver [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch all the lbvserver resources that are configured on netscaler . | 57 | 19 |
2,101 | public static lbvserver get ( nitro_service service , String name ) throws Exception { lbvserver obj = new lbvserver ( ) ; obj . set_name ( name ) ; lbvserver response = ( lbvserver ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch lbvserver resource of given name . | 63 | 13 |
2,102 | public static lbvserver [ ] get_filtered ( nitro_service service , filtervalue [ ] filter ) throws Exception { lbvserver obj = new lbvserver ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; lbvserver [ ] response = ( lbvserver [ ] ) obj . getfiltered ( service , option ) ; return response ; } | Use this API to fetch filtered set of lbvserver resources . set the filter parameter values in filtervalue object . | 85 | 23 |
2,103 | public static csvserver_cspolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { csvserver_cspolicy_binding obj = new csvserver_cspolicy_binding ( ) ; obj . set_name ( name ) ; csvserver_cspolicy_binding response [ ] = ( csvserver_cspolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch csvserver_cspolicy_binding resources of given name . | 99 | 19 |
2,104 | public static sslservicegroup_sslcertkey_binding [ ] get ( nitro_service service , String servicegroupname ) throws Exception { sslservicegroup_sslcertkey_binding obj = new sslservicegroup_sslcertkey_binding ( ) ; obj . set_servicegroupname ( servicegroupname ) ; sslservicegroup_sslcertkey_binding response [ ] = ( sslservicegroup_sslcertkey_binding [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch sslservicegroup_sslcertkey_binding resources of given name . | 110 | 20 |
2,105 | public static base_response Import ( nitro_service client , application resource ) throws Exception { application Importresource = new application ( ) ; Importresource . apptemplatefilename = resource . apptemplatefilename ; Importresource . appname = resource . appname ; Importresource . deploymentfilename = resource . deploymentfilename ; return Importresource . perform_operation ( client , "Import" ) ; } | Use this API to Import application . | 79 | 7 |
2,106 | public static base_response export ( nitro_service client , application resource ) throws Exception { application exportresource = new application ( ) ; exportresource . appname = resource . appname ; exportresource . apptemplatefilename = resource . apptemplatefilename ; exportresource . deploymentfilename = resource . deploymentfilename ; return exportresource . perform_operation ( client , "export" ) ; } | Use this API to export application . | 79 | 7 |
2,107 | public static base_response delete ( nitro_service client , application resource ) throws Exception { application deleteresource = new application ( ) ; deleteresource . appname = resource . appname ; return deleteresource . delete_resource ( client ) ; } | Use this API to delete application . | 51 | 7 |
2,108 | public static vpnglobal_binding get ( nitro_service service ) throws Exception { vpnglobal_binding obj = new vpnglobal_binding ( ) ; vpnglobal_binding response = ( vpnglobal_binding ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch a vpnglobal_binding resource . | 66 | 14 |
2,109 | public static authenticationtacacspolicy_systemglobal_binding [ ] get ( nitro_service service , String name ) throws Exception { authenticationtacacspolicy_systemglobal_binding obj = new authenticationtacacspolicy_systemglobal_binding ( ) ; obj . set_name ( name ) ; authenticationtacacspolicy_systemglobal_binding response [ ] = ( authenticationtacacspolicy_systemglobal_binding [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch authenticationtacacspolicy_systemglobal_binding resources of given name . | 109 | 21 |
2,110 | public static base_response update ( nitro_service client , cmpparameter resource ) throws Exception { cmpparameter updateresource = new cmpparameter ( ) ; updateresource . cmplevel = resource . cmplevel ; updateresource . quantumsize = resource . quantumsize ; updateresource . servercmp = resource . servercmp ; updateresource . heurexpiry = resource . heurexpiry ; updateresource . heurexpirythres = resource . heurexpirythres ; updateresource . heurexpiryhistwt = resource . heurexpiryhistwt ; updateresource . minressize = resource . minressize ; updateresource . cmpbypasspct = resource . cmpbypasspct ; updateresource . cmponpush = resource . cmponpush ; updateresource . policytype = resource . policytype ; updateresource . addvaryheader = resource . addvaryheader ; updateresource . externalcache = resource . externalcache ; return updateresource . update_resource ( client ) ; } | Use this API to update cmpparameter . | 227 | 10 |
2,111 | public static base_response unset ( nitro_service client , cmpparameter resource , String [ ] args ) throws Exception { cmpparameter unsetresource = new cmpparameter ( ) ; return unsetresource . unset_resource ( client , args ) ; } | Use this API to unset the properties of cmpparameter resource . Properties that need to be unset are specified in args array . | 60 | 28 |
2,112 | public static cmpparameter get ( nitro_service service ) throws Exception { cmpparameter obj = new cmpparameter ( ) ; cmpparameter [ ] response = ( cmpparameter [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; } | Use this API to fetch all the cmpparameter resources that are configured on netscaler . | 63 | 20 |
2,113 | public static cmpglobal_cmppolicy_binding [ ] get ( nitro_service service ) throws Exception { cmpglobal_cmppolicy_binding obj = new cmpglobal_cmppolicy_binding ( ) ; cmpglobal_cmppolicy_binding response [ ] = ( cmpglobal_cmppolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch a cmpglobal_cmppolicy_binding resources . | 87 | 17 |
2,114 | public static sslcertkey_crldistribution_binding [ ] get ( nitro_service service , String certkey ) throws Exception { sslcertkey_crldistribution_binding obj = new sslcertkey_crldistribution_binding ( ) ; obj . set_certkey ( certkey ) ; sslcertkey_crldistribution_binding response [ ] = ( sslcertkey_crldistribution_binding [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch sslcertkey_crldistribution_binding resources of given name . | 112 | 21 |
2,115 | public static long count ( nitro_service service , String certkey ) throws Exception { sslcertkey_crldistribution_binding obj = new sslcertkey_crldistribution_binding ( ) ; obj . set_certkey ( certkey ) ; options option = new options ( ) ; option . set_count ( true ) ; sslcertkey_crldistribution_binding response [ ] = ( sslcertkey_crldistribution_binding [ ] ) obj . get_resources ( service , option ) ; if ( response != null ) { return response [ 0 ] . __count ; } return 0 ; } | Use this API to count sslcertkey_crldistribution_binding resources configued on NetScaler . | 136 | 24 |
2,116 | public static base_response Force ( nitro_service client , clustersync resource ) throws Exception { clustersync Forceresource = new clustersync ( ) ; return Forceresource . perform_operation ( client , "Force" ) ; } | Use this API to Force clustersync . | 47 | 8 |
2,117 | private List < T > computePagedList ( List < T > result , HeaderAndBody httpResponse , JSONObject where , Pipe < T > requestingPipe ) { ReadFilter previousRead = null ; ReadFilter nextRead = null ; if ( PageConfig . MetadataLocations . WEB_LINKING . equals ( pageConfig . getMetadataLocation ( ) ) ) { String webLinksRaw = "" ; final String relHeader = "rel" ; final String nextIdentifier = pageConfig . getNextIdentifier ( ) ; final String prevIdentifier = pageConfig . getPreviousIdentifier ( ) ; try { webLinksRaw = getWebLinkHeader ( httpResponse ) ; if ( webLinksRaw == null ) { // no paging, return result return result ; } List < WebLink > webLinksParsed = WebLinkParser . parse ( webLinksRaw ) ; for ( WebLink link : webLinksParsed ) { if ( nextIdentifier . equals ( link . getParameters ( ) . get ( relHeader ) ) ) { nextRead = new ReadFilter ( ) ; nextRead . setLinkUri ( new URI ( link . getUri ( ) ) ) ; } else if ( prevIdentifier . equals ( link . getParameters ( ) . get ( relHeader ) ) ) { previousRead = new ReadFilter ( ) ; previousRead . setLinkUri ( new URI ( link . getUri ( ) ) ) ; } } } catch ( URISyntaxException ex ) { Log . e ( TAG , webLinksRaw + " did not contain a valid context URI" , ex ) ; throw new RuntimeException ( ex ) ; } catch ( ParseException ex ) { Log . e ( TAG , webLinksRaw + " could not be parsed as a web link header" , ex ) ; throw new RuntimeException ( ex ) ; } } else if ( pageConfig . getMetadataLocation ( ) . equals ( PageConfig . MetadataLocations . HEADERS ) ) { nextRead = pageConfig . getPageParameterExtractor ( ) . getNextFilter ( httpResponse , RestAdapter . this . pageConfig ) ; previousRead = pageConfig . getPageParameterExtractor ( ) . getPreviousFilter ( httpResponse , RestAdapter . this . pageConfig ) ; } else if ( pageConfig . getMetadataLocation ( ) . equals ( PageConfig . MetadataLocations . BODY ) ) { nextRead = pageConfig . getPageParameterExtractor ( ) . getNextFilter ( httpResponse , RestAdapter . this . pageConfig ) ; previousRead = pageConfig . getPageParameterExtractor ( ) . getPreviousFilter ( httpResponse , RestAdapter . this . pageConfig ) ; } else { throw new IllegalStateException ( "Not supported" ) ; } if ( nextRead != null ) { nextRead . setWhere ( where ) ; } if ( previousRead != null ) { previousRead . setWhere ( where ) ; } return new WrappingPagedList < T > ( requestingPipe , result , nextRead , previousRead ) ; } | This method checks for paging information and returns the appropriate data | 648 | 12 |
2,118 | public static ipset_nsip6_binding [ ] get ( nitro_service service , String name ) throws Exception { ipset_nsip6_binding obj = new ipset_nsip6_binding ( ) ; obj . set_name ( name ) ; ipset_nsip6_binding response [ ] = ( ipset_nsip6_binding [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch ipset_nsip6_binding resources of given name . | 99 | 19 |
2,119 | public static nstimer_binding get ( nitro_service service , String name ) throws Exception { nstimer_binding obj = new nstimer_binding ( ) ; obj . set_name ( name ) ; nstimer_binding response = ( nstimer_binding ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch nstimer_binding resource of given name . | 73 | 15 |
2,120 | public static responderpolicylabel_binding get ( nitro_service service , String labelname ) throws Exception { responderpolicylabel_binding obj = new responderpolicylabel_binding ( ) ; obj . set_labelname ( labelname ) ; responderpolicylabel_binding response = ( responderpolicylabel_binding ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch responderpolicylabel_binding resource of given name . | 91 | 18 |
2,121 | public static filterglobal_filterpolicy_binding [ ] get ( nitro_service service ) throws Exception { filterglobal_filterpolicy_binding obj = new filterglobal_filterpolicy_binding ( ) ; filterglobal_filterpolicy_binding response [ ] = ( filterglobal_filterpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch a filterglobal_filterpolicy_binding resources . | 77 | 15 |
2,122 | public static streamidentifier_stats get ( nitro_service service , String name ) throws Exception { streamidentifier_stats obj = new streamidentifier_stats ( ) ; obj . set_name ( name ) ; streamidentifier_stats response = ( streamidentifier_stats ) obj . stat_resource ( service ) ; return response ; } | Use this API to fetch statistics of streamidentifier_stats resource of given name . | 73 | 17 |
2,123 | public static configstatus [ ] get ( nitro_service service ) throws Exception { configstatus obj = new configstatus ( ) ; configstatus [ ] response = ( configstatus [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch all the configstatus resources that are configured on netscaler . | 52 | 18 |
2,124 | public static base_response add ( nitro_service client , dnspolicylabel resource ) throws Exception { dnspolicylabel addresource = new dnspolicylabel ( ) ; addresource . labelname = resource . labelname ; addresource . transform = resource . transform ; return addresource . add_resource ( client ) ; } | Use this API to add dnspolicylabel . | 75 | 12 |
2,125 | public static base_responses add ( nitro_service client , dnspolicylabel resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { dnspolicylabel addresources [ ] = new dnspolicylabel [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new dnspolicylabel ( ) ; addresources [ i ] . labelname = resources [ i ] . labelname ; addresources [ i ] . transform = resources [ i ] . transform ; } result = add_bulk_request ( client , addresources ) ; } return result ; } | Use this API to add dnspolicylabel resources . | 158 | 13 |
2,126 | public static base_response delete ( nitro_service client , String labelname ) throws Exception { dnspolicylabel deleteresource = new dnspolicylabel ( ) ; deleteresource . labelname = labelname ; return deleteresource . delete_resource ( client ) ; } | Use this API to delete dnspolicylabel of given name . | 60 | 15 |
2,127 | public static dnspolicylabel [ ] get ( nitro_service service ) throws Exception { dnspolicylabel obj = new dnspolicylabel ( ) ; dnspolicylabel [ ] response = ( dnspolicylabel [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch all the dnspolicylabel resources that are configured on netscaler . | 72 | 22 |
2,128 | public static dnspolicylabel get ( nitro_service service , String labelname ) throws Exception { dnspolicylabel obj = new dnspolicylabel ( ) ; obj . set_labelname ( labelname ) ; dnspolicylabel response = ( dnspolicylabel ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch dnspolicylabel resource of given name . | 81 | 16 |
2,129 | public static auditsyslogpolicy_systemglobal_binding [ ] get ( nitro_service service , String name ) throws Exception { auditsyslogpolicy_systemglobal_binding obj = new auditsyslogpolicy_systemglobal_binding ( ) ; obj . set_name ( name ) ; auditsyslogpolicy_systemglobal_binding response [ ] = ( auditsyslogpolicy_systemglobal_binding [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch auditsyslogpolicy_systemglobal_binding resources of given name . | 99 | 19 |
2,130 | public static base_response add ( nitro_service client , sslcertkey resource ) throws Exception { sslcertkey addresource = new sslcertkey ( ) ; addresource . certkey = resource . certkey ; addresource . cert = resource . cert ; addresource . key = resource . key ; addresource . password = resource . password ; addresource . fipskey = resource . fipskey ; addresource . inform = resource . inform ; addresource . passplain = resource . passplain ; addresource . expirymonitor = resource . expirymonitor ; addresource . notificationperiod = resource . notificationperiod ; addresource . bundle = resource . bundle ; return addresource . add_resource ( client ) ; } | Use this API to add sslcertkey . | 153 | 10 |
2,131 | public static base_responses add ( nitro_service client , sslcertkey resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { sslcertkey addresources [ ] = new sslcertkey [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new sslcertkey ( ) ; addresources [ i ] . certkey = resources [ i ] . certkey ; addresources [ i ] . cert = resources [ i ] . cert ; addresources [ i ] . key = resources [ i ] . key ; addresources [ i ] . password = resources [ i ] . password ; addresources [ i ] . fipskey = resources [ i ] . fipskey ; addresources [ i ] . inform = resources [ i ] . inform ; addresources [ i ] . passplain = resources [ i ] . passplain ; addresources [ i ] . expirymonitor = resources [ i ] . expirymonitor ; addresources [ i ] . notificationperiod = resources [ i ] . notificationperiod ; addresources [ i ] . bundle = resources [ i ] . bundle ; } result = add_bulk_request ( client , addresources ) ; } return result ; } | Use this API to add sslcertkey resources . | 282 | 11 |
2,132 | public static base_response delete ( nitro_service client , sslcertkey resource ) throws Exception { sslcertkey deleteresource = new sslcertkey ( ) ; deleteresource . certkey = resource . certkey ; return deleteresource . delete_resource ( client ) ; } | Use this API to delete sslcertkey . | 60 | 10 |
2,133 | public static base_responses delete ( nitro_service client , String certkey [ ] ) throws Exception { base_responses result = null ; if ( certkey != null && certkey . length > 0 ) { sslcertkey deleteresources [ ] = new sslcertkey [ certkey . length ] ; for ( int i = 0 ; i < certkey . length ; i ++ ) { deleteresources [ i ] = new sslcertkey ( ) ; deleteresources [ i ] . certkey = certkey [ i ] ; } result = delete_bulk_request ( client , deleteresources ) ; } return result ; } | Use this API to delete sslcertkey resources of given names . | 135 | 14 |
2,134 | public static base_response update ( nitro_service client , sslcertkey resource ) throws Exception { sslcertkey updateresource = new sslcertkey ( ) ; updateresource . certkey = resource . certkey ; updateresource . expirymonitor = resource . expirymonitor ; updateresource . notificationperiod = resource . notificationperiod ; return updateresource . update_resource ( client ) ; } | Use this API to update sslcertkey . | 84 | 10 |
2,135 | public static base_responses update ( nitro_service client , sslcertkey resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { sslcertkey updateresources [ ] = new sslcertkey [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new sslcertkey ( ) ; updateresources [ i ] . certkey = resources [ i ] . certkey ; updateresources [ i ] . expirymonitor = resources [ i ] . expirymonitor ; updateresources [ i ] . notificationperiod = resources [ i ] . notificationperiod ; } result = update_bulk_request ( client , updateresources ) ; } return result ; } | Use this API to update sslcertkey resources . | 171 | 11 |
2,136 | public static base_response unset ( nitro_service client , sslcertkey resource , String [ ] args ) throws Exception { sslcertkey unsetresource = new sslcertkey ( ) ; unsetresource . certkey = resource . certkey ; return unsetresource . unset_resource ( client , args ) ; } | Use this API to unset the properties of sslcertkey resource . Properties that need to be unset are specified in args array . | 72 | 28 |
2,137 | public static base_responses unset ( nitro_service client , String certkey [ ] , String args [ ] ) throws Exception { base_responses result = null ; if ( certkey != null && certkey . length > 0 ) { sslcertkey unsetresources [ ] = new sslcertkey [ certkey . length ] ; for ( int i = 0 ; i < certkey . length ; i ++ ) { unsetresources [ i ] = new sslcertkey ( ) ; unsetresources [ i ] . certkey = certkey [ i ] ; } result = unset_bulk_request ( client , unsetresources , args ) ; } return result ; } | Use this API to unset the properties of sslcertkey resources . Properties that need to be unset are specified in args array . | 148 | 28 |
2,138 | public static base_response link ( nitro_service client , sslcertkey resource ) throws Exception { sslcertkey linkresource = new sslcertkey ( ) ; linkresource . certkey = resource . certkey ; linkresource . linkcertkeyname = resource . linkcertkeyname ; return linkresource . perform_operation ( client , "link" ) ; } | Use this API to link sslcertkey . | 81 | 10 |
2,139 | public static base_responses link ( nitro_service client , sslcertkey resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { sslcertkey linkresources [ ] = new sslcertkey [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { linkresources [ i ] = new sslcertkey ( ) ; linkresources [ i ] . certkey = resources [ i ] . certkey ; linkresources [ i ] . linkcertkeyname = resources [ i ] . linkcertkeyname ; } result = perform_operation_bulk_request ( client , linkresources , "link" ) ; } return result ; } | Use this API to link sslcertkey resources . | 164 | 11 |
2,140 | public static base_response unlink ( nitro_service client , sslcertkey resource ) throws Exception { sslcertkey unlinkresource = new sslcertkey ( ) ; unlinkresource . certkey = resource . certkey ; return unlinkresource . perform_operation ( client , "unlink" ) ; } | Use this API to unlink sslcertkey . | 69 | 11 |
2,141 | public static base_responses unlink ( nitro_service client , sslcertkey resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { sslcertkey unlinkresources [ ] = new sslcertkey [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { unlinkresources [ i ] = new sslcertkey ( ) ; unlinkresources [ i ] . certkey = resources [ i ] . certkey ; } result = perform_operation_bulk_request ( client , unlinkresources , "unlink" ) ; } return result ; } | Use this API to unlink sslcertkey resources . | 147 | 12 |
2,142 | public static base_response change ( nitro_service client , sslcertkey resource ) throws Exception { sslcertkey updateresource = new sslcertkey ( ) ; updateresource . certkey = resource . certkey ; updateresource . cert = resource . cert ; updateresource . key = resource . key ; updateresource . password = resource . password ; updateresource . fipskey = resource . fipskey ; updateresource . inform = resource . inform ; updateresource . passplain = resource . passplain ; updateresource . nodomaincheck = resource . nodomaincheck ; return updateresource . perform_operation ( client , "update" ) ; } | Use this API to change sslcertkey . | 139 | 10 |
2,143 | public static base_responses change ( nitro_service client , sslcertkey resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { sslcertkey updateresources [ ] = new sslcertkey [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new sslcertkey ( ) ; updateresources [ i ] . certkey = resources [ i ] . certkey ; updateresources [ i ] . cert = resources [ i ] . cert ; updateresources [ i ] . key = resources [ i ] . key ; updateresources [ i ] . password = resources [ i ] . password ; updateresources [ i ] . fipskey = resources [ i ] . fipskey ; updateresources [ i ] . inform = resources [ i ] . inform ; updateresources [ i ] . passplain = resources [ i ] . passplain ; updateresources [ i ] . nodomaincheck = resources [ i ] . nodomaincheck ; } result = perform_operation_bulk_request ( client , updateresources , "update" ) ; } return result ; } | Use this API to change sslcertkey resources . | 258 | 11 |
2,144 | public static sslcertkey [ ] get ( nitro_service service ) throws Exception { sslcertkey obj = new sslcertkey ( ) ; sslcertkey [ ] response = ( sslcertkey [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch all the sslcertkey resources that are configured on netscaler . | 62 | 20 |
2,145 | public static sslcertkey get ( nitro_service service , String certkey ) throws Exception { sslcertkey obj = new sslcertkey ( ) ; obj . set_certkey ( certkey ) ; sslcertkey response = ( sslcertkey ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch sslcertkey resource of given name . | 71 | 14 |
2,146 | public static sslcertkey [ ] get ( nitro_service service , String certkey [ ] ) throws Exception { if ( certkey != null && certkey . length > 0 ) { sslcertkey response [ ] = new sslcertkey [ certkey . length ] ; sslcertkey obj [ ] = new sslcertkey [ certkey . length ] ; for ( int i = 0 ; i < certkey . length ; i ++ ) { obj [ i ] = new sslcertkey ( ) ; obj [ i ] . set_certkey ( certkey [ i ] ) ; response [ i ] = ( sslcertkey ) obj [ i ] . get_resource ( service ) ; } return response ; } return null ; } | Use this API to fetch sslcertkey resources of given names . | 160 | 14 |
2,147 | public static base_response clear ( nitro_service client , nsconfig resource ) throws Exception { nsconfig clearresource = new nsconfig ( ) ; clearresource . force = resource . force ; clearresource . level = resource . level ; return clearresource . perform_operation ( client , "clear" ) ; } | Use this API to clear nsconfig . | 65 | 8 |
2,148 | public static base_response update ( nitro_service client , nsconfig resource ) throws Exception { nsconfig updateresource = new nsconfig ( ) ; updateresource . ipaddress = resource . ipaddress ; updateresource . netmask = resource . netmask ; updateresource . nsvlan = resource . nsvlan ; updateresource . ifnum = resource . ifnum ; updateresource . tagged = resource . tagged ; updateresource . httpport = resource . httpport ; updateresource . maxconn = resource . maxconn ; updateresource . maxreq = resource . maxreq ; updateresource . cip = resource . cip ; updateresource . cipheader = resource . cipheader ; updateresource . cookieversion = resource . cookieversion ; updateresource . securecookie = resource . securecookie ; updateresource . pmtumin = resource . pmtumin ; updateresource . pmtutimeout = resource . pmtutimeout ; updateresource . ftpportrange = resource . ftpportrange ; updateresource . crportrange = resource . crportrange ; updateresource . timezone = resource . timezone ; updateresource . grantquotamaxclient = resource . grantquotamaxclient ; updateresource . exclusivequotamaxclient = resource . exclusivequotamaxclient ; updateresource . grantquotaspillover = resource . grantquotaspillover ; updateresource . exclusivequotaspillover = resource . exclusivequotaspillover ; updateresource . nwfwmode = resource . nwfwmode ; return updateresource . update_resource ( client ) ; } | Use this API to update nsconfig . | 335 | 8 |
2,149 | public static base_response unset ( nitro_service client , nsconfig resource , String [ ] args ) throws Exception { nsconfig unsetresource = new nsconfig ( ) ; return unsetresource . unset_resource ( client , args ) ; } | Use this API to unset the properties of nsconfig resource . Properties that need to be unset are specified in args array . | 54 | 26 |
2,150 | public static base_response save ( nitro_service client ) throws Exception { nsconfig saveresource = new nsconfig ( ) ; return saveresource . perform_operation ( client , "save" ) ; } | Use this API to save nsconfig . | 43 | 8 |
2,151 | public static nsconfig diff ( nitro_service client , nsconfig resource ) throws Exception { nsconfig diffresource = new nsconfig ( ) ; diffresource . config1 = resource . config1 ; diffresource . config2 = resource . config2 ; diffresource . outtype = resource . outtype ; diffresource . template = resource . template ; diffresource . ignoredevicespecific = resource . ignoredevicespecific ; return ( nsconfig ) diffresource . perform_operationEx ( client , "diff" ) ; } | Use this API to diff nsconfig . | 110 | 8 |
2,152 | public static nsconfig get ( nitro_service service ) throws Exception { nsconfig obj = new nsconfig ( ) ; nsconfig [ ] response = ( nsconfig [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; } | Use this API to fetch all the nsconfig resources that are configured on netscaler . | 53 | 18 |
2,153 | public static aaauser_aaagroup_binding [ ] get ( nitro_service service , String username ) throws Exception { aaauser_aaagroup_binding obj = new aaauser_aaagroup_binding ( ) ; obj . set_username ( username ) ; aaauser_aaagroup_binding response [ ] = ( aaauser_aaagroup_binding [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch aaauser_aaagroup_binding resources of given name . | 99 | 19 |
2,154 | public static authenticationlocalpolicy_authenticationvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { authenticationlocalpolicy_authenticationvserver_binding obj = new authenticationlocalpolicy_authenticationvserver_binding ( ) ; obj . set_name ( name ) ; authenticationlocalpolicy_authenticationvserver_binding response [ ] = ( authenticationlocalpolicy_authenticationvserver_binding [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch authenticationlocalpolicy_authenticationvserver_binding resources of given name . | 104 | 20 |
2,155 | public static base_response update ( nitro_service client , responderparam resource ) throws Exception { responderparam updateresource = new responderparam ( ) ; updateresource . undefaction = resource . undefaction ; return updateresource . update_resource ( client ) ; } | Use this API to update responderparam . | 59 | 9 |
2,156 | public static base_response unset ( nitro_service client , responderparam resource , String [ ] args ) throws Exception { responderparam unsetresource = new responderparam ( ) ; return unsetresource . unset_resource ( client , args ) ; } | Use this API to unset the properties of responderparam resource . Properties that need to be unset are specified in args array . | 57 | 27 |
2,157 | public static responderparam get ( nitro_service service ) throws Exception { responderparam obj = new responderparam ( ) ; responderparam [ ] response = ( responderparam [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; } | Use this API to fetch all the responderparam resources that are configured on netscaler . | 58 | 19 |
2,158 | public static base_response add ( nitro_service client , tmtrafficaction resource ) throws Exception { tmtrafficaction addresource = new tmtrafficaction ( ) ; addresource . name = resource . name ; addresource . apptimeout = resource . apptimeout ; addresource . sso = resource . sso ; addresource . formssoaction = resource . formssoaction ; addresource . persistentcookie = resource . persistentcookie ; addresource . initiatelogout = resource . initiatelogout ; addresource . kcdaccount = resource . kcdaccount ; addresource . samlssoprofile = resource . samlssoprofile ; return addresource . add_resource ( client ) ; } | Use this API to add tmtrafficaction . | 152 | 11 |
2,159 | public static base_responses add ( nitro_service client , tmtrafficaction resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { tmtrafficaction addresources [ ] = new tmtrafficaction [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new tmtrafficaction ( ) ; addresources [ i ] . name = resources [ i ] . name ; addresources [ i ] . apptimeout = resources [ i ] . apptimeout ; addresources [ i ] . sso = resources [ i ] . sso ; addresources [ i ] . formssoaction = resources [ i ] . formssoaction ; addresources [ i ] . persistentcookie = resources [ i ] . persistentcookie ; addresources [ i ] . initiatelogout = resources [ i ] . initiatelogout ; addresources [ i ] . kcdaccount = resources [ i ] . kcdaccount ; addresources [ i ] . samlssoprofile = resources [ i ] . samlssoprofile ; } result = add_bulk_request ( client , addresources ) ; } return result ; } | Use this API to add tmtrafficaction resources . | 270 | 12 |
2,160 | public static base_response update ( nitro_service client , tmtrafficaction resource ) throws Exception { tmtrafficaction updateresource = new tmtrafficaction ( ) ; updateresource . name = resource . name ; updateresource . apptimeout = resource . apptimeout ; updateresource . sso = resource . sso ; updateresource . formssoaction = resource . formssoaction ; updateresource . persistentcookie = resource . persistentcookie ; updateresource . initiatelogout = resource . initiatelogout ; updateresource . kcdaccount = resource . kcdaccount ; updateresource . samlssoprofile = resource . samlssoprofile ; return updateresource . update_resource ( client ) ; } | Use this API to update tmtrafficaction . | 152 | 11 |
2,161 | public static base_responses update ( nitro_service client , tmtrafficaction resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { tmtrafficaction updateresources [ ] = new tmtrafficaction [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new tmtrafficaction ( ) ; updateresources [ i ] . name = resources [ i ] . name ; updateresources [ i ] . apptimeout = resources [ i ] . apptimeout ; updateresources [ i ] . sso = resources [ i ] . sso ; updateresources [ i ] . formssoaction = resources [ i ] . formssoaction ; updateresources [ i ] . persistentcookie = resources [ i ] . persistentcookie ; updateresources [ i ] . initiatelogout = resources [ i ] . initiatelogout ; updateresources [ i ] . kcdaccount = resources [ i ] . kcdaccount ; updateresources [ i ] . samlssoprofile = resources [ i ] . samlssoprofile ; } result = update_bulk_request ( client , updateresources ) ; } return result ; } | Use this API to update tmtrafficaction resources . | 270 | 12 |
2,162 | public static tmtrafficaction [ ] get ( nitro_service service ) throws Exception { tmtrafficaction obj = new tmtrafficaction ( ) ; tmtrafficaction [ ] response = ( tmtrafficaction [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch all the tmtrafficaction resources that are configured on netscaler . | 67 | 21 |
2,163 | public static tmtrafficaction get ( nitro_service service , String name ) throws Exception { tmtrafficaction obj = new tmtrafficaction ( ) ; obj . set_name ( name ) ; tmtrafficaction response = ( tmtrafficaction ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch tmtrafficaction resource of given name . | 73 | 15 |
2,164 | public static tmglobal_binding get ( nitro_service service ) throws Exception { tmglobal_binding obj = new tmglobal_binding ( ) ; tmglobal_binding response = ( tmglobal_binding ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch a tmglobal_binding resource . | 61 | 13 |
2,165 | public static csvserver_spilloverpolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { csvserver_spilloverpolicy_binding obj = new csvserver_spilloverpolicy_binding ( ) ; obj . set_name ( name ) ; csvserver_spilloverpolicy_binding response [ ] = ( csvserver_spilloverpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch csvserver_spilloverpolicy_binding resources of given name . | 104 | 20 |
2,166 | public int compareTo ( WordLemmaTag wordLemmaTag ) { int first = word ( ) . compareTo ( wordLemmaTag . word ( ) ) ; if ( first != 0 ) return first ; int second = lemma ( ) . compareTo ( wordLemmaTag . lemma ( ) ) ; if ( second != 0 ) return second ; else return tag ( ) . compareTo ( wordLemmaTag . tag ( ) ) ; } | Orders first by word then by lemma then by tag . | 100 | 13 |
2,167 | public static base_response add ( nitro_service client , autoscaleprofile resource ) throws Exception { autoscaleprofile addresource = new autoscaleprofile ( ) ; addresource . name = resource . name ; addresource . type = resource . type ; addresource . url = resource . url ; addresource . apikey = resource . apikey ; addresource . sharedsecret = resource . sharedsecret ; return addresource . add_resource ( client ) ; } | Use this API to add autoscaleprofile . | 103 | 11 |
2,168 | public static base_responses add ( nitro_service client , autoscaleprofile resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { autoscaleprofile addresources [ ] = new autoscaleprofile [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new autoscaleprofile ( ) ; addresources [ i ] . name = resources [ i ] . name ; addresources [ i ] . type = resources [ i ] . type ; addresources [ i ] . url = resources [ i ] . url ; addresources [ i ] . apikey = resources [ i ] . apikey ; addresources [ i ] . sharedsecret = resources [ i ] . sharedsecret ; } result = add_bulk_request ( client , addresources ) ; } return result ; } | Use this API to add autoscaleprofile resources . | 203 | 12 |
2,169 | public static base_response update ( nitro_service client , autoscaleprofile resource ) throws Exception { autoscaleprofile updateresource = new autoscaleprofile ( ) ; updateresource . name = resource . name ; updateresource . url = resource . url ; updateresource . apikey = resource . apikey ; updateresource . sharedsecret = resource . sharedsecret ; return updateresource . update_resource ( client ) ; } | Use this API to update autoscaleprofile . | 94 | 11 |
2,170 | public static base_responses update ( nitro_service client , autoscaleprofile resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { autoscaleprofile updateresources [ ] = new autoscaleprofile [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new autoscaleprofile ( ) ; updateresources [ i ] . name = resources [ i ] . name ; updateresources [ i ] . url = resources [ i ] . url ; updateresources [ i ] . apikey = resources [ i ] . apikey ; updateresources [ i ] . sharedsecret = resources [ i ] . sharedsecret ; } result = update_bulk_request ( client , updateresources ) ; } return result ; } | Use this API to update autoscaleprofile resources . | 188 | 12 |
2,171 | public static autoscaleprofile [ ] get ( nitro_service service ) throws Exception { autoscaleprofile obj = new autoscaleprofile ( ) ; autoscaleprofile [ ] response = ( autoscaleprofile [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch all the autoscaleprofile resources that are configured on netscaler . | 67 | 21 |
2,172 | public static autoscaleprofile get ( nitro_service service , String name ) throws Exception { autoscaleprofile obj = new autoscaleprofile ( ) ; obj . set_name ( name ) ; autoscaleprofile response = ( autoscaleprofile ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch autoscaleprofile resource of given name . | 73 | 15 |
2,173 | public static servicegroupbindings get ( nitro_service service , String servicegroupname ) throws Exception { servicegroupbindings obj = new servicegroupbindings ( ) ; obj . set_servicegroupname ( servicegroupname ) ; servicegroupbindings response = ( servicegroupbindings ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch servicegroupbindings resource of given name . | 74 | 14 |
2,174 | public static lbmonitor_binding get ( nitro_service service , String monitorname ) throws Exception { lbmonitor_binding obj = new lbmonitor_binding ( ) ; obj . set_monitorname ( monitorname ) ; lbmonitor_binding response = ( lbmonitor_binding ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch lbmonitor_binding resource of given name . | 77 | 14 |
2,175 | public static lbmonitor_binding [ ] get ( nitro_service service , String monitorname [ ] ) throws Exception { if ( monitorname != null && monitorname . length > 0 ) { lbmonitor_binding response [ ] = new lbmonitor_binding [ monitorname . length ] ; lbmonitor_binding obj [ ] = new lbmonitor_binding [ monitorname . length ] ; for ( int i = 0 ; i < monitorname . length ; i ++ ) { obj [ i ] = new lbmonitor_binding ( ) ; obj [ i ] . set_monitorname ( monitorname [ i ] ) ; response [ i ] = ( lbmonitor_binding ) obj [ i ] . get_resource ( service ) ; } return response ; } return null ; } | Use this API to fetch lbmonitor_binding resources of given names . | 176 | 14 |
2,176 | private static int med3 ( int a , int b , int c , IntComparator comp ) { int ab = comp . compare ( a , b ) ; int ac = comp . compare ( a , c ) ; int bc = comp . compare ( b , c ) ; return ( ab < 0 ? ( bc < 0 ? b : ac < 0 ? c : a ) : ( bc > 0 ? b : ac > 0 ? c : a ) ) ; } | Returns the index of the median of the three indexed chars . | 97 | 12 |
2,177 | private static void reverse ( int first , int last , Swapper swapper ) { // no more needed since manually inlined while ( first < -- last ) { swapper . swap ( first ++ , last ) ; } } | Reverses a sequence of elements . | 46 | 8 |
2,178 | public static authenticationradiuspolicy_vpnvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { authenticationradiuspolicy_vpnvserver_binding obj = new authenticationradiuspolicy_vpnvserver_binding ( ) ; obj . set_name ( name ) ; authenticationradiuspolicy_vpnvserver_binding response [ ] = ( authenticationradiuspolicy_vpnvserver_binding [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch authenticationradiuspolicy_vpnvserver_binding resources of given name . | 104 | 20 |
2,179 | public static rnat6_nsip6_binding [ ] get ( nitro_service service , String name ) throws Exception { rnat6_nsip6_binding obj = new rnat6_nsip6_binding ( ) ; obj . set_name ( name ) ; rnat6_nsip6_binding response [ ] = ( rnat6_nsip6_binding [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch rnat6_nsip6_binding resources of given name . | 99 | 19 |
2,180 | public static authorizationpolicylabel_binding get ( nitro_service service , String labelname ) throws Exception { authorizationpolicylabel_binding obj = new authorizationpolicylabel_binding ( ) ; obj . set_labelname ( labelname ) ; authorizationpolicylabel_binding response = ( authorizationpolicylabel_binding ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch authorizationpolicylabel_binding resource of given name . | 86 | 17 |
2,181 | private void createCodeMappings ( MtasTokenIdFactory mtasTokenIdFactory , Level level , String stringValue , int offsetStart , int offsetEnd , int realOffsetStart , int realOffsetEnd , List < Integer > codePositions ) throws IOException { String [ ] stringValues = MtasPennTreebankReader . createStrings ( stringValue , Pattern . quote ( STRING_SPLITTER ) ) ; MtasToken token = new MtasTokenString ( mtasTokenIdFactory . createTokenId ( ) , level . node , filterString ( stringValues [ 0 ] . trim ( ) ) ) ; token . setOffset ( offsetStart , offsetEnd ) ; token . setRealOffset ( realOffsetStart , realOffsetEnd ) ; token . addPositions ( codePositions . stream ( ) . mapToInt ( i -> i ) . toArray ( ) ) ; tokenCollection . add ( token ) ; level . tokens . add ( token ) ; } | Creates the code mappings . | 205 | 7 |
2,182 | private void createNodeMappings ( MtasTokenIdFactory mtasTokenIdFactory , Level level , Level parentLevel ) { MtasToken nodeToken ; if ( level . node != null && level . positionStart != null && level . positionEnd != null ) { nodeToken = new MtasTokenString ( mtasTokenIdFactory . createTokenId ( ) , level . node , "" ) ; nodeToken . setOffset ( level . offsetStart , level . offsetEnd ) ; nodeToken . setRealOffset ( level . realOffsetStart , level . realOffsetEnd ) ; nodeToken . addPositionRange ( level . positionStart , level . positionEnd ) ; tokenCollection . add ( nodeToken ) ; if ( parentLevel != null ) { parentLevel . tokens . add ( nodeToken ) ; } // only for first mapping(?) for ( MtasToken token : level . tokens ) { token . setParentId ( nodeToken . getId ( ) ) ; } } } | Creates the node mappings . | 204 | 7 |
2,183 | private void createStringMappings ( MtasTokenIdFactory mtasTokenIdFactory , Level level , String stringValue , int offsetStart , int offsetEnd , int position ) throws IOException { // System.out.println("createStringMappings string "); String [ ] stringValues = MtasPennTreebankReader . createStrings ( stringValue , Pattern . quote ( STRING_SPLITTER ) ) ; if ( stringValues . length > 0 && ! stringValues [ 0 ] . trim ( ) . isEmpty ( ) ) { MtasToken token = new MtasTokenString ( mtasTokenIdFactory . createTokenId ( ) , "t" , filterString ( stringValues [ 0 ] . trim ( ) ) , position ) ; token . setOffset ( offsetStart , offsetEnd ) ; tokenCollection . add ( token ) ; level . tokens . add ( token ) ; } if ( stringValues . length > 1 && ! stringValues [ 1 ] . trim ( ) . isEmpty ( ) ) { MtasToken token = new MtasTokenString ( mtasTokenIdFactory . createTokenId ( ) , "lemma" , filterString ( stringValues [ 1 ] . trim ( ) ) , position ) ; token . setOffset ( offsetStart , offsetEnd ) ; tokenCollection . add ( token ) ; level . tokens . add ( token ) ; } } | Creates the string mappings . | 290 | 7 |
2,184 | public static base_response add ( nitro_service client , dospolicy resource ) throws Exception { dospolicy addresource = new dospolicy ( ) ; addresource . name = resource . name ; addresource . qdepth = resource . qdepth ; addresource . cltdetectrate = resource . cltdetectrate ; return addresource . add_resource ( client ) ; } | Use this API to add dospolicy . | 83 | 9 |
2,185 | public static base_responses add ( nitro_service client , dospolicy resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { dospolicy addresources [ ] = new dospolicy [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new dospolicy ( ) ; addresources [ i ] . name = resources [ i ] . name ; addresources [ i ] . qdepth = resources [ i ] . qdepth ; addresources [ i ] . cltdetectrate = resources [ i ] . cltdetectrate ; } result = add_bulk_request ( client , addresources ) ; } return result ; } | Use this API to add dospolicy resources . | 169 | 10 |
2,186 | public static base_response update ( nitro_service client , dospolicy resource ) throws Exception { dospolicy updateresource = new dospolicy ( ) ; updateresource . name = resource . name ; updateresource . qdepth = resource . qdepth ; updateresource . cltdetectrate = resource . cltdetectrate ; return updateresource . update_resource ( client ) ; } | Use this API to update dospolicy . | 83 | 9 |
2,187 | public static base_responses update ( nitro_service client , dospolicy resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { dospolicy updateresources [ ] = new dospolicy [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new dospolicy ( ) ; updateresources [ i ] . name = resources [ i ] . name ; updateresources [ i ] . qdepth = resources [ i ] . qdepth ; updateresources [ i ] . cltdetectrate = resources [ i ] . cltdetectrate ; } result = update_bulk_request ( client , updateresources ) ; } return result ; } | Use this API to update dospolicy resources . | 169 | 10 |
2,188 | public static dospolicy [ ] get ( nitro_service service ) throws Exception { dospolicy obj = new dospolicy ( ) ; dospolicy [ ] response = ( dospolicy [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch all the dospolicy resources that are configured on netscaler . | 57 | 19 |
2,189 | public static dospolicy get ( nitro_service service , String name ) throws Exception { dospolicy obj = new dospolicy ( ) ; obj . set_name ( name ) ; dospolicy response = ( dospolicy ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch dospolicy resource of given name . | 63 | 13 |
2,190 | public static dospolicy [ ] get_filtered ( nitro_service service , filtervalue [ ] filter ) throws Exception { dospolicy obj = new dospolicy ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; dospolicy [ ] response = ( dospolicy [ ] ) obj . getfiltered ( service , option ) ; return response ; } | Use this API to fetch filtered set of dospolicy resources . set the filter parameter values in filtervalue object . | 85 | 23 |
2,191 | public static base_responses add ( nitro_service client , cacheselector resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { cacheselector addresources [ ] = new cacheselector [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new cacheselector ( ) ; addresources [ i ] . selectorname = resources [ i ] . selectorname ; addresources [ i ] . rule = resources [ i ] . rule ; } result = add_bulk_request ( client , addresources ) ; } return result ; } | Use this API to add cacheselector resources . | 148 | 10 |
2,192 | public static base_response delete ( nitro_service client , String selectorname ) throws Exception { cacheselector deleteresource = new cacheselector ( ) ; deleteresource . selectorname = selectorname ; return deleteresource . delete_resource ( client ) ; } | Use this API to delete cacheselector of given name . | 57 | 12 |
2,193 | public static base_responses delete ( nitro_service client , String selectorname [ ] ) throws Exception { base_responses result = null ; if ( selectorname != null && selectorname . length > 0 ) { cacheselector deleteresources [ ] = new cacheselector [ selectorname . length ] ; for ( int i = 0 ; i < selectorname . length ; i ++ ) { deleteresources [ i ] = new cacheselector ( ) ; deleteresources [ i ] . selectorname = selectorname [ i ] ; } result = delete_bulk_request ( client , deleteresources ) ; } return result ; } | Use this API to delete cacheselector resources of given names . | 139 | 13 |
2,194 | public static base_response update ( nitro_service client , cacheselector resource ) throws Exception { cacheselector updateresource = new cacheselector ( ) ; updateresource . selectorname = resource . selectorname ; updateresource . rule = resource . rule ; return updateresource . update_resource ( client ) ; } | Use this API to update cacheselector . | 68 | 9 |
2,195 | public static cacheselector [ ] get ( nitro_service service , options option ) throws Exception { cacheselector obj = new cacheselector ( ) ; cacheselector [ ] response = ( cacheselector [ ] ) obj . get_resources ( service , option ) ; return response ; } | Use this API to fetch all the cacheselector resources that are configured on netscaler . | 62 | 19 |
2,196 | public static cacheselector get ( nitro_service service , String selectorname ) throws Exception { cacheselector obj = new cacheselector ( ) ; obj . set_selectorname ( selectorname ) ; cacheselector response = ( cacheselector ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch cacheselector resource of given name . | 69 | 13 |
2,197 | public static cacheselector [ ] get ( nitro_service service , String selectorname [ ] ) throws Exception { if ( selectorname != null && selectorname . length > 0 ) { cacheselector response [ ] = new cacheselector [ selectorname . length ] ; cacheselector obj [ ] = new cacheselector [ selectorname . length ] ; for ( int i = 0 ; i < selectorname . length ; i ++ ) { obj [ i ] = new cacheselector ( ) ; obj [ i ] . set_selectorname ( selectorname [ i ] ) ; response [ i ] = ( cacheselector ) obj [ i ] . get_resource ( service ) ; } return response ; } return null ; } | Use this API to fetch cacheselector resources of given names . | 161 | 13 |
2,198 | public DocumentReaderAndWriter < IN > makeReaderAndWriter ( ) { DocumentReaderAndWriter < IN > readerAndWriter ; try { readerAndWriter = ( ( DocumentReaderAndWriter < IN > ) Class . forName ( flags . readerAndWriter ) . newInstance ( ) ) ; } catch ( Exception e ) { throw new RuntimeException ( String . format ( "Error loading flags.readerAndWriter: '%s'" , flags . readerAndWriter ) , e ) ; } readerAndWriter . init ( flags ) ; return readerAndWriter ; } | Makes a DocumentReaderAndWriter based on the flags the CRFClassifier was constructed with . Will create the flags . readerAndWriter and initialize it with the CRFClassifier s flags . | 116 | 40 |
2,199 | public DocumentReaderAndWriter < IN > makePlainTextReaderAndWriter ( ) { String readerClassName = flags . plainTextDocumentReaderAndWriter ; // We set this default here if needed because there may be models // which don't have the reader flag set if ( readerClassName == null ) { readerClassName = SeqClassifierFlags . DEFAULT_PLAIN_TEXT_READER ; } DocumentReaderAndWriter < IN > readerAndWriter ; try { readerAndWriter = ( ( DocumentReaderAndWriter < IN > ) Class . forName ( readerClassName ) . newInstance ( ) ) ; } catch ( Exception e ) { throw new RuntimeException ( String . format ( "Error loading flags.plainTextDocumentReaderAndWriter: '%s'" , flags . plainTextDocumentReaderAndWriter ) , e ) ; } readerAndWriter . init ( flags ) ; return readerAndWriter ; } | Makes a DocumentReaderAndWriter based on flags . plainTextReaderAndWriter . Useful for reading in untokenized text documents or reading plain text from the command line . An example of a way to use this would be to return a edu . stanford . nlp . wordseg . Sighan2005DocumentReaderAndWriter for the Chinese Segmenter . | 190 | 77 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.