idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
4,300
public static protocolhttp_stats get ( nitro_service service , options option ) throws Exception { protocolhttp_stats obj = new protocolhttp_stats ( ) ; protocolhttp_stats [ ] response = ( protocolhttp_stats [ ] ) obj . stat_resources ( service , option ) ; return response [ 0 ] ; }
Use this API to fetch the statistics of all protocolhttp_stats resources that are configured on netscaler .
4,301
public static base_response add ( nitro_service client , dnsnameserver resource ) throws Exception { dnsnameserver addresource = new dnsnameserver ( ) ; addresource . ip = resource . ip ; addresource . dnsvservername = resource . dnsvservername ; addresource . local = resource . local ; addresource . state = resource ....
Use this API to add dnsnameserver .
4,302
public static base_responses add ( nitro_service client , dnsnameserver resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { dnsnameserver addresources [ ] = new dnsnameserver [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { a...
Use this API to add dnsnameserver resources .
4,303
public static base_response delete ( nitro_service client , String ip ) throws Exception { dnsnameserver deleteresource = new dnsnameserver ( ) ; deleteresource . ip = ip ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete dnsnameserver of given name .
4,304
public static base_response delete ( nitro_service client , dnsnameserver resource ) throws Exception { dnsnameserver deleteresource = new dnsnameserver ( ) ; deleteresource . ip = resource . ip ; deleteresource . dnsvservername = resource . dnsvservername ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete dnsnameserver .
4,305
public static base_responses delete ( nitro_service client , String ip [ ] ) throws Exception { base_responses result = null ; if ( ip != null && ip . length > 0 ) { dnsnameserver deleteresources [ ] = new dnsnameserver [ ip . length ] ; for ( int i = 0 ; i < ip . length ; i ++ ) { deleteresources [ i ] = new dnsnamese...
Use this API to delete dnsnameserver resources of given names .
4,306
public static base_responses delete ( nitro_service client , dnsnameserver resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { dnsnameserver deleteresources [ ] = new dnsnameserver [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++...
Use this API to delete dnsnameserver resources .
4,307
public static base_response enable ( nitro_service client , String ip ) throws Exception { dnsnameserver enableresource = new dnsnameserver ( ) ; enableresource . ip = ip ; return enableresource . perform_operation ( client , "enable" ) ; }
Use this API to enable dnsnameserver of given name .
4,308
public static base_response enable ( nitro_service client , dnsnameserver resource ) throws Exception { dnsnameserver enableresource = new dnsnameserver ( ) ; enableresource . ip = resource . ip ; enableresource . dnsvservername = resource . dnsvservername ; return enableresource . perform_operation ( client , "enable"...
Use this API to enable dnsnameserver .
4,309
public static base_responses enable ( nitro_service client , String ip [ ] ) throws Exception { base_responses result = null ; if ( ip != null && ip . length > 0 ) { dnsnameserver enableresources [ ] = new dnsnameserver [ ip . length ] ; for ( int i = 0 ; i < ip . length ; i ++ ) { enableresources [ i ] = new dnsnamese...
Use this API to enable dnsnameserver resources of given names .
4,310
public static base_responses enable ( nitro_service client , dnsnameserver resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { dnsnameserver enableresources [ ] = new dnsnameserver [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++...
Use this API to enable dnsnameserver resources .
4,311
public static base_response disable ( nitro_service client , String ip ) throws Exception { dnsnameserver disableresource = new dnsnameserver ( ) ; disableresource . ip = ip ; return disableresource . perform_operation ( client , "disable" ) ; }
Use this API to disable dnsnameserver of given name .
4,312
public static base_response disable ( nitro_service client , dnsnameserver resource ) throws Exception { dnsnameserver disableresource = new dnsnameserver ( ) ; disableresource . ip = resource . ip ; disableresource . dnsvservername = resource . dnsvservername ; return disableresource . perform_operation ( client , "di...
Use this API to disable dnsnameserver .
4,313
public static base_responses disable ( nitro_service client , String ip [ ] ) throws Exception { base_responses result = null ; if ( ip != null && ip . length > 0 ) { dnsnameserver disableresources [ ] = new dnsnameserver [ ip . length ] ; for ( int i = 0 ; i < ip . length ; i ++ ) { disableresources [ i ] = new dnsnam...
Use this API to disable dnsnameserver resources of given names .
4,314
public static base_responses disable ( nitro_service client , dnsnameserver resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { dnsnameserver disableresources [ ] = new dnsnameserver [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ...
Use this API to disable dnsnameserver resources .
4,315
public static dnsnameserver [ ] get ( nitro_service service ) throws Exception { dnsnameserver obj = new dnsnameserver ( ) ; dnsnameserver [ ] response = ( dnsnameserver [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the dnsnameserver resources that are configured on netscaler .
4,316
public static authenticationnegotiatepolicy_authenticationvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { authenticationnegotiatepolicy_authenticationvserver_binding obj = new authenticationnegotiatepolicy_authenticationvserver_binding ( ) ; obj . set_name ( name ) ; authenticationneg...
Use this API to fetch authenticationnegotiatepolicy_authenticationvserver_binding resources of given name .
4,317
public static transformpolicylabel_policybinding_binding [ ] get ( nitro_service service , String labelname ) throws Exception { transformpolicylabel_policybinding_binding obj = new transformpolicylabel_policybinding_binding ( ) ; obj . set_labelname ( labelname ) ; transformpolicylabel_policybinding_binding response [...
Use this API to fetch transformpolicylabel_policybinding_binding resources of given name .
4,318
public static base_response update ( nitro_service client , policyhttpcallout resource ) throws Exception { policyhttpcallout updateresource = new policyhttpcallout ( ) ; updateresource . name = resource . name ; updateresource . ipaddress = resource . ipaddress ; updateresource . port = resource . port ; updateresourc...
Use this API to update policyhttpcallout .
4,319
public static base_responses update ( nitro_service client , policyhttpcallout resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { policyhttpcallout updateresources [ ] = new policyhttpcallout [ resources . length ] ; for ( int i = 0 ; i < resources . l...
Use this API to update policyhttpcallout resources .
4,320
public static policyhttpcallout [ ] get ( nitro_service service ) throws Exception { policyhttpcallout obj = new policyhttpcallout ( ) ; policyhttpcallout [ ] response = ( policyhttpcallout [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the policyhttpcallout resources that are configured on netscaler .
4,321
public static policyhttpcallout get ( nitro_service service , String name ) throws Exception { policyhttpcallout obj = new policyhttpcallout ( ) ; obj . set_name ( name ) ; policyhttpcallout response = ( policyhttpcallout ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch policyhttpcallout resource of given name .
4,322
public void loadPath ( File path , FileFilter filt ) { if ( path . exists ( ) ) { filePaths . add ( path ) ; fileFilters . add ( filt ) ; } else { System . err . printf ( "%s: File/path %s does not exist. Skipping.\n" , this . getClass ( ) . getName ( ) , path . getPath ( ) ) ; } }
Load trees from given directory . This version just records the paths to be processed and actually processes them at apply time .
4,323
public static dnsview_gslbservice_binding [ ] get ( nitro_service service , String viewname ) throws Exception { dnsview_gslbservice_binding obj = new dnsview_gslbservice_binding ( ) ; obj . set_viewname ( viewname ) ; dnsview_gslbservice_binding response [ ] = ( dnsview_gslbservice_binding [ ] ) obj . get_resources ( ...
Use this API to fetch dnsview_gslbservice_binding resources of given name .
4,324
public static long count ( nitro_service service , String viewname ) throws Exception { dnsview_gslbservice_binding obj = new dnsview_gslbservice_binding ( ) ; obj . set_viewname ( viewname ) ; options option = new options ( ) ; option . set_count ( true ) ; dnsview_gslbservice_binding response [ ] = ( dnsview_gslbserv...
Use this API to count dnsview_gslbservice_binding resources configued on NetScaler .
4,325
public static < X > IteratorFromReaderFactory < X > getFactory ( Function < String , X > op ) { return new LineIteratorFactory < X > ( op ) ; }
Returns a factory that vends LineIterators that read the contents of the given Reader splitting on newlines .
4,326
public static base_response add ( nitro_service client , vpnclientlessaccessprofile resource ) throws Exception { vpnclientlessaccessprofile addresource = new vpnclientlessaccessprofile ( ) ; addresource . profilename = resource . profilename ; return addresource . add_resource ( client ) ; }
Use this API to add vpnclientlessaccessprofile .
4,327
public static base_responses add ( nitro_service client , vpnclientlessaccessprofile resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { vpnclientlessaccessprofile addresources [ ] = new vpnclientlessaccessprofile [ resources . length ] ; for ( int i = ...
Use this API to add vpnclientlessaccessprofile resources .
4,328
public static base_response delete ( nitro_service client , String profilename ) throws Exception { vpnclientlessaccessprofile deleteresource = new vpnclientlessaccessprofile ( ) ; deleteresource . profilename = profilename ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete vpnclientlessaccessprofile of given name .
4,329
public static base_responses delete ( nitro_service client , String profilename [ ] ) throws Exception { base_responses result = null ; if ( profilename != null && profilename . length > 0 ) { vpnclientlessaccessprofile deleteresources [ ] = new vpnclientlessaccessprofile [ profilename . length ] ; for ( int i = 0 ; i ...
Use this API to delete vpnclientlessaccessprofile resources of given names .
4,330
public static base_response update ( nitro_service client , vpnclientlessaccessprofile resource ) throws Exception { vpnclientlessaccessprofile updateresource = new vpnclientlessaccessprofile ( ) ; updateresource . profilename = resource . profilename ; updateresource . urlrewritepolicylabel = resource . urlrewritepoli...
Use this API to update vpnclientlessaccessprofile .
4,331
public static base_responses update ( nitro_service client , vpnclientlessaccessprofile resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { vpnclientlessaccessprofile updateresources [ ] = new vpnclientlessaccessprofile [ resources . length ] ; for ( in...
Use this API to update vpnclientlessaccessprofile resources .
4,332
public static base_response unset ( nitro_service client , vpnclientlessaccessprofile resource , String [ ] args ) throws Exception { vpnclientlessaccessprofile unsetresource = new vpnclientlessaccessprofile ( ) ; unsetresource . profilename = resource . profilename ; return unsetresource . unset_resource ( client , ar...
Use this API to unset the properties of vpnclientlessaccessprofile resource . Properties that need to be unset are specified in args array .
4,333
public static base_responses unset ( nitro_service client , vpnclientlessaccessprofile resources [ ] , String [ ] args ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { vpnclientlessaccessprofile unsetresources [ ] = new vpnclientlessaccessprofile [ resources . len...
Use this API to unset the properties of vpnclientlessaccessprofile resources . Properties that need to be unset are specified in args array .
4,334
public static vpnclientlessaccessprofile [ ] get ( nitro_service service ) throws Exception { vpnclientlessaccessprofile obj = new vpnclientlessaccessprofile ( ) ; vpnclientlessaccessprofile [ ] response = ( vpnclientlessaccessprofile [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the vpnclientlessaccessprofile resources that are configured on netscaler .
4,335
public static vpnclientlessaccessprofile get ( nitro_service service , String profilename ) throws Exception { vpnclientlessaccessprofile obj = new vpnclientlessaccessprofile ( ) ; obj . set_profilename ( profilename ) ; vpnclientlessaccessprofile response = ( vpnclientlessaccessprofile ) obj . get_resource ( service )...
Use this API to fetch vpnclientlessaccessprofile resource of given name .
4,336
public static vpnclientlessaccessprofile [ ] get ( nitro_service service , String profilename [ ] ) throws Exception { if ( profilename != null && profilename . length > 0 ) { vpnclientlessaccessprofile response [ ] = new vpnclientlessaccessprofile [ profilename . length ] ; vpnclientlessaccessprofile obj [ ] = new vpn...
Use this API to fetch vpnclientlessaccessprofile resources of given names .
4,337
public static vpnclientlessaccessprofile [ ] get_filtered ( nitro_service service , filtervalue [ ] filter ) throws Exception { vpnclientlessaccessprofile obj = new vpnclientlessaccessprofile ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; vpnclientlessaccessprofile [ ] response = ( vpnclientl...
Use this API to fetch filtered set of vpnclientlessaccessprofile resources . set the filter parameter values in filtervalue object .
4,338
public Set < String > getFullKeyList ( ) throws IOException { if ( dataCollector . getCollectorType ( ) . equals ( DataCollector . COLLECTOR_TYPE_LIST ) ) { return dataCollector . getKeyList ( ) ; } else { throw new IOException ( "only allowed for " + DataCollector . COLLECTOR_TYPE_LIST ) ; } }
Gets the full key list .
4,339
public double conditionalLogProbGivenPrevious ( int [ ] given , int of ) { if ( given . length != windowSize - 1 ) { throw new IllegalArgumentException ( "conditionalLogProbGivenPrevious requires given one less than clique size (" + windowSize + ") but was " + Arrays . toString ( given ) ) ; } int startIndex = indicesF...
Computes the probability of the tag OF being at the end of the table given that the previous tag sequence in table is GIVEN . given is at the beginning of is at the end .
4,340
public double [ ] conditionalLogProbsGivenPrevious ( int [ ] given ) { if ( given . length != windowSize - 1 ) { throw new IllegalArgumentException ( "conditionalLogProbsGivenPrevious requires given one less than clique size (" + windowSize + ") but was " + Arrays . toString ( given ) ) ; } double [ ] result = new doub...
Computes the probabilities of the tag at the end of the table given that the previous tag sequence in table is GIVEN . given is at the beginning position in question is at the end
4,341
public double conditionalLogProbGivenFirst ( int given , int [ ] of ) { if ( of . length != windowSize - 1 ) { throw new IllegalArgumentException ( "conditionalLogProbGivenFirst requires of one less than clique size (" + windowSize + ") but was " + Arrays . toString ( of ) ) ; } int [ ] labels = new int [ windowSize ] ...
Computes the probability of the sequence OF being at the end of the table given that the first tag in table is GIVEN . given is at the beginning of is at the end
4,342
public double unnormalizedConditionalLogProbGivenFirst ( int given , int [ ] of ) { if ( of . length != windowSize - 1 ) { throw new IllegalArgumentException ( "unnormalizedConditionalLogProbGivenFirst requires of one less than clique size (" + windowSize + ") but was " + Arrays . toString ( of ) ) ; } int [ ] labels =...
Computes the probability of the sequence OF being at the end of the table given that the first tag in table is GIVEN . given is at the beginning of is at the end .
4,343
protected String get_object_type ( ) { String name = this . getClass ( ) . getName ( ) ; int index = name . lastIndexOf ( "." ) ; if ( index > 0 ) name = name . substring ( index + 1 ) ; index = name . lastIndexOf ( "_stats" ) ; if ( index > 0 ) { name = name . substring ( 0 , index ) ; } return name ; }
Gets the resource type .
4,344
protected String unset_string ( nitro_service service , String id , options option , String args [ ] ) throws Exception { Boolean warning = service . get_warning ( ) ; String result = service . get_payload_formatter ( ) . unset_string ( this , id , option , args , warning ) ; return result ; }
forms a String for unset operation on a resource .
4,345
private base_resource post_requestEx ( nitro_service service , options option ) throws Exception { String sessionid = service . get_sessionid ( ) ; String request = resource_to_string ( service , sessionid , option ) ; return post_dataEx ( service , request ) ; }
Use this method to perform a POST operation on netscaler resource .
4,346
protected base_response add_resource ( nitro_service service , options option ) throws Exception { if ( ! service . isLogin ( ) && ! this . get_object_type ( ) . equals ( "login" ) ) service . login ( ) ; String sessionid = service . get_sessionid ( ) ; String request = resource_to_string ( service , sessionid , option...
Use this method to perform a add operation on netscaler resource .
4,347
protected base_response update_resource ( nitro_service service , options option ) throws Exception { if ( ! service . isLogin ( ) && ! this . get_object_type ( ) . equals ( "login" ) ) service . login ( ) ; String sessionid = service . get_sessionid ( ) ; String request = resource_to_string ( service , sessionid , opt...
Use this method to perform a modify operation on netscaler resource .
4,348
protected base_response delete_resource ( nitro_service service ) throws Exception { base_response response ; if ( ! service . isLogin ( ) ) service . login ( ) ; String str = nitro_util . object_to_string_withoutquotes ( this ) ; response = delete_request ( service , str ) ; return response ; }
Use this method to perform a delete operation on netscaler resource .
4,349
protected base_resource [ ] getfiltered ( nitro_service service , options option ) throws Exception { if ( ! service . isLogin ( ) ) service . login ( ) ; base_resource [ ] response = get_request ( service , option ) ; return response ; }
Use this method to perform a filtered get operation on netscaler resource .
4,350
protected base_resource get_resource ( nitro_service service , options option ) throws Exception { if ( ! service . isLogin ( ) ) service . login ( ) ; base_resource [ ] response = get_request ( service , option ) ; if ( response != null ) { return response [ 0 ] ; } return null ; }
Use this method to perform a get operation on netscaler resource .
4,351
protected base_resource [ ] stat_resources ( nitro_service service , options option ) throws Exception { if ( ! service . isLogin ( ) ) service . login ( ) ; base_resource [ ] response = stat_request ( service , option ) ; return response ; }
Use this method to perform a stat operation on netscaler resources .
4,352
protected base_resource stat_resource ( nitro_service service , options option ) throws Exception { if ( ! service . isLogin ( ) ) service . login ( ) ; base_resource [ ] response = stat_request ( service , option ) ; if ( response != null && response . length > 0 ) { return response [ 0 ] ; } return null ; }
Use this method to perform a stat operation on a netscaler resource .
4,353
public base_resource perform_operationEx ( nitro_service service , String action ) throws Exception { if ( ! service . isLogin ( ) && ! get_object_type ( ) . equals ( "login" ) ) service . login ( ) ; options option = new options ( ) ; option . set_action ( action ) ; base_resource response = post_requestEx ( service ,...
Use this method to perform a POST operation that returns a resource ... etc operation on netscaler resource .
4,354
protected base_response rename_resource ( nitro_service service , String newname ) throws Exception { if ( ! service . isLogin ( ) && ! get_object_type ( ) . equals ( "login" ) ) service . login ( ) ; options option = new options ( ) ; option . set_action ( "rename" ) ; this . set_newname ( newname ) ; base_response re...
Use this method to perform a rename operation on netscaler resource .
4,355
protected static base_responses update_bulk_request ( nitro_service service , base_resource resources [ ] ) throws Exception { if ( ! service . isLogin ( ) ) service . login ( ) ; String id = service . get_sessionid ( ) ; Boolean warning = service . get_warning ( ) ; String onerror = service . get_onerror ( ) ; String ...
Use this method to perform an update operation on netscaler resources .
4,356
protected static base_responses delete_bulk_request ( nitro_service service , base_resource resources [ ] ) throws Exception { if ( ! service . isLogin ( ) ) service . login ( ) ; options option = new options ( ) ; option . set_action ( "rm" ) ; String type = resources [ 0 ] . get_object_type ( ) ; if ( type . indexOf ...
Use this method to perform a delete operation on netscaler resources .
4,357
private static String _put ( nitro_service service , String request ) throws Exception { HttpURLConnection httpURLConnection ; StringBuilder responseStr = new StringBuilder ( ) ; try { String urlstr ; String ipaddress = service . get_ipaddress ( ) ; String version = service . get_version ( ) ; String protocol = service...
This method forms the http PUT request applies on the netscaler . Reads the response from the netscaler and converts it to base response .
4,358
public static nsevents [ ] get ( nitro_service service , options option ) throws Exception { nsevents obj = new nsevents ( ) ; nsevents [ ] response = ( nsevents [ ] ) obj . get_resources ( service , option ) ; return response ; }
Use this API to fetch all the nsevents resources that are configured on netscaler .
4,359
public static nsevents [ ] get ( nitro_service service , nsevents_args args ) throws Exception { nsevents obj = new nsevents ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; nsevents [ ] response = ( nsevents [ ] ) obj . get_resources ( service , opti...
Use this API to fetch all the nsevents resources that are configured on netscaler . This uses nsevents_args which is a way to provide additional arguments while fetching the resources .
4,360
public static sslpolicy_sslservice_binding [ ] get ( nitro_service service , String name ) throws Exception { sslpolicy_sslservice_binding obj = new sslpolicy_sslservice_binding ( ) ; obj . set_name ( name ) ; sslpolicy_sslservice_binding response [ ] = ( sslpolicy_sslservice_binding [ ] ) obj . get_resources ( service...
Use this API to fetch sslpolicy_sslservice_binding resources of given name .
4,361
public static base_response add ( nitro_service client , lbroute6 resource ) throws Exception { lbroute6 addresource = new lbroute6 ( ) ; addresource . network = resource . network ; addresource . gatewayname = resource . gatewayname ; return addresource . add_resource ( client ) ; }
Use this API to add lbroute6 .
4,362
public static base_responses add ( nitro_service client , lbroute6 resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { lbroute6 addresources [ ] = new lbroute6 [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i...
Use this API to add lbroute6 resources .
4,363
public static lbroute6 [ ] get ( nitro_service service ) throws Exception { lbroute6 obj = new lbroute6 ( ) ; lbroute6 [ ] response = ( lbroute6 [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the lbroute6 resources that are configured on netscaler .
4,364
public static lbroute6 get ( nitro_service service , String network ) throws Exception { lbroute6 obj = new lbroute6 ( ) ; obj . set_network ( network ) ; lbroute6 response = ( lbroute6 ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch lbroute6 resource of given name .
4,365
public static lbroute6 [ ] get ( nitro_service service , String network [ ] ) throws Exception { if ( network != null && network . length > 0 ) { lbroute6 response [ ] = new lbroute6 [ network . length ] ; lbroute6 obj [ ] = new lbroute6 [ network . length ] ; for ( int i = 0 ; i < network . length ; i ++ ) { obj [ i ]...
Use this API to fetch lbroute6 resources of given names .
4,366
public static base_response update ( nitro_service client , l2param resource ) throws Exception { l2param updateresource = new l2param ( ) ; updateresource . mbfpeermacupdate = resource . mbfpeermacupdate ; updateresource . maxbridgecollision = resource . maxbridgecollision ; updateresource . bdggrpproxyarp = resource ...
Use this API to update l2param .
4,367
public static base_response unset ( nitro_service client , l2param resource , String [ ] args ) throws Exception { l2param unsetresource = new l2param ( ) ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of l2param resource . Properties that need to be unset are specified in args array .
4,368
public static l2param get ( nitro_service service ) throws Exception { l2param obj = new l2param ( ) ; l2param [ ] response = ( l2param [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the l2param resources that are configured on netscaler .
4,369
public < E > ClassFactory < E > createFactory ( String ... classes ) { try { return new ClassFactory < E > ( classname , classes ) ; } catch ( ClassCreationException e ) { throw e ; } catch ( Exception e ) { throw new ClassCreationException ( e ) ; } }
Creates a factory for producing instances of this class from a constructor taking the given types as arguments
4,370
public < E > ClassFactory < E > createFactory ( Object ... objects ) { try { return new ClassFactory < E > ( classname , objects ) ; } catch ( ClassCreationException e ) { throw e ; } catch ( Exception e ) { throw new ClassCreationException ( e ) ; } }
Creates a factory for producing instances of this class from a constructor taking objects of the types given
4,371
private static Class < ? > type2class ( Type type ) { if ( type instanceof Class < ? > ) { return ( Class < ? > ) type ; } else if ( type instanceof ParameterizedType ) { return type2class ( ( ( ParameterizedType ) type ) . getRawType ( ) ) ; } else if ( type instanceof TypeVariable < ? > ) { return type2class ( ( ( Ty...
Utility method for cast
4,372
private static final String [ ] decodeArray ( String encoded ) { char [ ] chars = encoded . trim ( ) . toCharArray ( ) ; char quoteCloseChar = ( char ) 0 ; List < StringBuilder > terms = new LinkedList < StringBuilder > ( ) ; StringBuilder current = new StringBuilder ( ) ; int start = 0 ; int end = chars . length ; if ...
Decode an array encoded as a String . This entails a comma separated value enclosed in brackets or parentheses
4,373
public static linkset_binding get ( nitro_service service , String id ) throws Exception { linkset_binding obj = new linkset_binding ( ) ; obj . set_id ( id ) ; linkset_binding response = ( linkset_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch linkset_binding resource of given name .
4,374
public static base_response enable ( nitro_service client , sslfipssimtarget resource ) throws Exception { sslfipssimtarget enableresource = new sslfipssimtarget ( ) ; enableresource . keyvector = resource . keyvector ; enableresource . sourcesecret = resource . sourcesecret ; return enableresource . perform_operation ...
Use this API to enable sslfipssimtarget .
4,375
public static base_response init ( nitro_service client , sslfipssimtarget resource ) throws Exception { sslfipssimtarget initresource = new sslfipssimtarget ( ) ; initresource . certfile = resource . certfile ; initresource . keyvector = resource . keyvector ; initresource . targetsecret = resource . targetsecret ; re...
Use this API to init sslfipssimtarget .
4,376
public static rewritepolicy_stats [ ] get ( nitro_service service , options option ) throws Exception { rewritepolicy_stats obj = new rewritepolicy_stats ( ) ; rewritepolicy_stats [ ] response = ( rewritepolicy_stats [ ] ) obj . stat_resources ( service , option ) ; return response ; }
Use this API to fetch the statistics of all rewritepolicy_stats resources that are configured on netscaler .
4,377
public static rewritepolicy_stats get ( nitro_service service , String name ) throws Exception { rewritepolicy_stats obj = new rewritepolicy_stats ( ) ; obj . set_name ( name ) ; rewritepolicy_stats response = ( rewritepolicy_stats ) obj . stat_resource ( service ) ; return response ; }
Use this API to fetch statistics of rewritepolicy_stats resource of given name .
4,378
public static rewritepolicylabel_binding get ( nitro_service service , String labelname ) throws Exception { rewritepolicylabel_binding obj = new rewritepolicylabel_binding ( ) ; obj . set_labelname ( labelname ) ; rewritepolicylabel_binding response = ( rewritepolicylabel_binding ) obj . get_resource ( service ) ; ret...
Use this API to fetch rewritepolicylabel_binding resource of given name .
4,379
public static tmsessionpolicy_authenticationvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { tmsessionpolicy_authenticationvserver_binding obj = new tmsessionpolicy_authenticationvserver_binding ( ) ; obj . set_name ( name ) ; tmsessionpolicy_authenticationvserver_binding response [ ] ...
Use this API to fetch tmsessionpolicy_authenticationvserver_binding resources of given name .
4,380
public static authenticationvserver_authenticationsamlpolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { authenticationvserver_authenticationsamlpolicy_binding obj = new authenticationvserver_authenticationsamlpolicy_binding ( ) ; obj . set_name ( name ) ; authenticationvserver_authentica...
Use this API to fetch authenticationvserver_authenticationsamlpolicy_binding resources of given name .
4,381
public static base_response add ( nitro_service client , hanode resource ) throws Exception { hanode addresource = new hanode ( ) ; addresource . id = resource . id ; addresource . ipaddress = resource . ipaddress ; addresource . inc = resource . inc ; return addresource . add_resource ( client ) ; }
Use this API to add hanode .
4,382
public static base_responses add ( nitro_service client , hanode resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { hanode addresources [ ] = new hanode [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = n...
Use this API to add hanode resources .
4,383
public static base_response update ( nitro_service client , hanode resource ) throws Exception { hanode updateresource = new hanode ( ) ; updateresource . id = resource . id ; updateresource . hastatus = resource . hastatus ; updateresource . hasync = resource . hasync ; updateresource . haprop = resource . haprop ; up...
Use this API to update hanode .
4,384
public static base_responses update ( nitro_service client , hanode resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { hanode updateresources [ ] = new hanode [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources ...
Use this API to update hanode resources .
4,385
public static base_responses unset ( nitro_service client , hanode resources [ ] , String [ ] args ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { hanode unsetresources [ ] = new hanode [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { ...
Use this API to unset the properties of hanode resources . Properties that need to be unset are specified in args array .
4,386
public static hanode [ ] get ( nitro_service service ) throws Exception { hanode obj = new hanode ( ) ; hanode [ ] response = ( hanode [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the hanode resources that are configured on netscaler .
4,387
public static hanode get ( nitro_service service , Long id ) throws Exception { hanode obj = new hanode ( ) ; obj . set_id ( id ) ; hanode response = ( hanode ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch hanode resource of given name .
4,388
public static hanode [ ] get ( nitro_service service , Long id [ ] ) throws Exception { if ( id != null && id . length > 0 ) { hanode response [ ] = new hanode [ id . length ] ; hanode obj [ ] = new hanode [ id . length ] ; for ( int i = 0 ; i < id . length ; i ++ ) { obj [ i ] = new hanode ( ) ; obj [ i ] . set_id ( i...
Use this API to fetch hanode resources of given names .
4,389
public static base_response update ( nitro_service client , aaaradiusparams resource ) throws Exception { aaaradiusparams updateresource = new aaaradiusparams ( ) ; updateresource . serverip = resource . serverip ; updateresource . serverport = resource . serverport ; updateresource . authtimeout = resource . authtimeo...
Use this API to update aaaradiusparams .
4,390
public static base_response unset ( nitro_service client , aaaradiusparams resource , String [ ] args ) throws Exception { aaaradiusparams unsetresource = new aaaradiusparams ( ) ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of aaaradiusparams resource . Properties that need to be unset are specified in args array .
4,391
public static aaaradiusparams get ( nitro_service service ) throws Exception { aaaradiusparams obj = new aaaradiusparams ( ) ; aaaradiusparams [ ] response = ( aaaradiusparams [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the aaaradiusparams resources that are configured on netscaler .
4,392
public static base_response flush ( nitro_service client , nssurgeq resource ) throws Exception { nssurgeq flushresource = new nssurgeq ( ) ; flushresource . name = resource . name ; flushresource . servername = resource . servername ; flushresource . port = resource . port ; return flushresource . perform_operation ( ...
Use this API to flush nssurgeq .
4,393
public static MtasTokenString getToken ( IndexInput inObject , IndexInput inTerm , Long ref ) throws IOException { MtasTokenString token = null ; try { inObject . seek ( ref ) ; token = new MtasTokenString ( null , "" ) ; token . setId ( inObject . readVInt ( ) ) ; token . setTokenRef ( ref ) ; int objectFlags = inObje...
Gets the token .
4,394
public static String getTerm ( IndexInput inTerm , Long ref ) throws IOException { try { inTerm . seek ( ref ) ; return inTerm . readString ( ) ; } catch ( Exception e ) { throw new IOException ( e ) ; } }
Gets the term .
4,395
public void colorChannel ( String channel , Color color ) { if ( this . channelColors == null ) { this . channelColors = new HashMap < String , Color > ( ) ; } this . channelColors . put ( channel . toLowerCase ( ) , color ) ; }
Color the tag for a particular channel this color
4,396
public void styleChannel ( String channel , Style style ) { if ( this . channelStyles == null ) { this . channelStyles = new HashMap < String , Style > ( ) ; } this . channelStyles . put ( channel . toLowerCase ( ) , style ) ; }
Style the tag for a particular channel this style
4,397
protected StringBuilder style ( StringBuilder b , String line , Color color , Style style ) { if ( color != Color . NONE || style != Style . NONE ) { b . append ( color . ansiCode ) ; b . append ( style . ansiCode ) ; b . append ( line ) ; b . append ( "\033[0m" ) ; } else { b . append ( line ) ; } return b ; }
Style a particular String segment according to a color and style
4,398
public static protocoltcp_stats get ( nitro_service service ) throws Exception { protocoltcp_stats obj = new protocoltcp_stats ( ) ; protocoltcp_stats [ ] response = ( protocoltcp_stats [ ] ) obj . stat_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch the statistics of all protocoltcp_stats resources that are configured on netscaler .
4,399
public static responderpolicy_lbvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { responderpolicy_lbvserver_binding obj = new responderpolicy_lbvserver_binding ( ) ; obj . set_name ( name ) ; responderpolicy_lbvserver_binding response [ ] = ( responderpolicy_lbvserver_binding [ ] ) obj ...
Use this API to fetch responderpolicy_lbvserver_binding resources of given name .