idx
int64 0
41.2k
| question
stringlengths 74
4.04k
| target
stringlengths 7
750
|
|---|---|---|
1,500
|
private static void loadFile ( String filePath ) { final Path path = FileSystems . getDefault ( ) . getPath ( filePath ) ; try { data . clear ( ) ; data . load ( Files . newBufferedReader ( path ) ) ; } catch ( IOException e ) { LOG . warn ( "Exception while loading " + path . toString ( ) , e ) ; } }
|
Loads the file content in the properties collection
|
1,501
|
public void setValue ( String constantValue ) { this . fieldSource = SOURCE_VALUE ; this . fieldRefName = null ; this . returnedByProcedure = false ; this . constantValue = constantValue ; }
|
Sets up this object to represent an argument that will be set to a constant value .
|
1,502
|
public final int getJdbcType ( ) { switch ( this . fieldSource ) { case SOURCE_FIELD : return this . getFieldRef ( ) . getJdbcType ( ) . getType ( ) ; case SOURCE_NULL : return java . sql . Types . NULL ; case SOURCE_VALUE : return java . sql . Types . VARCHAR ; default : return java . sql . Types . NULL ; } }
|
Retrieve the jdbc type for the field descriptor that is related to this argument .
|
1,503
|
private boolean isCacheable ( PipelineContext context ) throws GeomajasException { VectorLayer layer = context . get ( PipelineCode . LAYER_KEY , VectorLayer . class ) ; return ! ( layer instanceof VectorLayerLazyFeatureConversionSupport && ( ( VectorLayerLazyFeatureConversionSupport ) layer ) . useLazyFeatureConversion ( ) ) ; }
|
Features are only cacheable when not converted lazily as lazy features are incomplete it would put detached objects in the cache .
|
1,504
|
public List < Double > getResolutions ( ) { List < Double > resolutions = new ArrayList < Double > ( ) ; for ( ScaleInfo scale : getZoomLevels ( ) ) { resolutions . add ( 1. / scale . getPixelPerUnit ( ) ) ; } return resolutions ; }
|
Get the list of supported resolutions for the layer . Each resolution is specified in map units per pixel .
|
1,505
|
public void setResolutions ( List < Double > resolutions ) { getZoomLevels ( ) . clear ( ) ; for ( Double resolution : resolutions ) { getZoomLevels ( ) . add ( new ScaleInfo ( 1. / resolution ) ) ; } }
|
Set the list of supported resolutions . Each resolution is specified in map units per pixel .
|
1,506
|
public static void registerTinyTypes ( Class < ? > head , Class < ? > ... tail ) { final Set < HeaderDelegateProvider > systemRegisteredHeaderProviders = stealAcquireRefToHeaderDelegateProviders ( ) ; register ( head , systemRegisteredHeaderProviders ) ; for ( Class < ? > tt : tail ) { register ( tt , systemRegisteredHeaderProviders ) ; } }
|
Registers Jersey HeaderDelegateProviders for the specified TinyTypes .
|
1,507
|
public static String generateQuery ( final Map < String , Object > params ) { final StringBuilder sb = new StringBuilder ( ) ; boolean newEntry = false ; sb . append ( "{" ) ; for ( final Entry < String , Object > param : params . entrySet ( ) ) { if ( newEntry ) { sb . append ( ", " ) ; } sb . append ( param . getKey ( ) ) ; sb . append ( ": " ) ; sb . append ( getParam ( param . getValue ( ) ) ) ; newEntry = true ; } sb . append ( "}" ) ; return sb . toString ( ) ; }
|
Generate a Jongo query regarding a set of parameters .
|
1,508
|
public static String generateQuery ( final String key , final Object value ) { final Map < String , Object > params = new HashMap < > ( ) ; params . put ( key , value ) ; return generateQuery ( params ) ; }
|
Generate a Jongo query with provided the parameter .
|
1,509
|
private static Object getParam ( final Object param ) { final StringBuilder sb = new StringBuilder ( ) ; if ( param instanceof String ) { sb . append ( "'" ) ; sb . append ( ( String ) param ) ; sb . append ( "'" ) ; } else if ( param instanceof Boolean ) { sb . append ( String . valueOf ( ( Boolean ) param ) ) ; } else if ( param instanceof Integer ) { sb . append ( String . valueOf ( ( Integer ) param ) ) ; } else if ( param instanceof DBRegExp ) { sb . append ( '/' ) ; sb . append ( ( ( DBRegExp ) param ) . toString ( ) ) ; sb . append ( '/' ) ; } return sb . toString ( ) ; }
|
Handle the serialization of String Integer and boolean parameters .
|
1,510
|
public static String getOjbClassName ( ResultSet rs ) { try { return rs . getString ( OJB_CLASS_COLUMN ) ; } catch ( SQLException e ) { return null ; } }
|
Returns the name of the class to be instantiated .
|
1,511
|
public void setOjbQuery ( org . apache . ojb . broker . query . Query ojbQuery ) { this . ojbQuery = ojbQuery ; }
|
Sets the ojbQuery needed only as long we don t support the soda constraint stuff .
|
1,512
|
@ Produces ( { MediaType . TEXT_HTML , MediaType . APPLICATION_JSON } ) @ Path ( "/{name}" + ServerAPI . GET_CORPORATE_GROUPIDS ) public Response getCorporateGroupIdPrefix ( @ PathParam ( "name" ) final String organizationId ) { LOG . info ( "Got a get corporate groupId prefix request for organization " + organizationId + "." ) ; final ListView view = new ListView ( "Organization " + organizationId , "Corporate GroupId Prefix" ) ; final List < String > corporateGroupIds = getOrganizationHandler ( ) . getCorporateGroupIds ( organizationId ) ; view . addAll ( corporateGroupIds ) ; return Response . ok ( view ) . build ( ) ; }
|
Return the list of corporate GroupId prefix configured for an organization .
|
1,513
|
@ Path ( "/{name}" + ServerAPI . GET_CORPORATE_GROUPIDS ) public Response addCorporateGroupIdPrefix ( final DbCredential credential , @ PathParam ( "name" ) final String organizationId , final String corporateGroupId ) { LOG . info ( "Got an add a corporate groupId prefix request for organization " + organizationId + "." ) ; if ( ! credential . getRoles ( ) . contains ( DbCredential . AvailableRoles . DATA_UPDATER ) ) { throw new WebApplicationException ( Response . status ( Response . Status . UNAUTHORIZED ) . build ( ) ) ; } if ( corporateGroupId == null || corporateGroupId . isEmpty ( ) ) { LOG . error ( "No corporate GroupId to add!" ) ; throw new WebApplicationException ( Response . serverError ( ) . status ( HttpStatus . BAD_REQUEST_400 ) . entity ( "CorporateGroupId to add should be in the query content." ) . build ( ) ) ; } getOrganizationHandler ( ) . addCorporateGroupId ( organizationId , corporateGroupId ) ; return Response . ok ( ) . status ( HttpStatus . CREATED_201 ) . build ( ) ; }
|
Add a new Corporate GroupId to an organization .
|
1,514
|
@ Path ( "/{name}" + ServerAPI . GET_CORPORATE_GROUPIDS ) public Response removeCorporateGroupIdPrefix ( final DbCredential credential , @ PathParam ( "name" ) final String organizationId , final String corporateGroupId ) { LOG . info ( "Got an remove a corporate groupId prefix request for organization " + organizationId + "." ) ; if ( ! credential . getRoles ( ) . contains ( DbCredential . AvailableRoles . DATA_UPDATER ) ) { throw new WebApplicationException ( Response . status ( Response . Status . UNAUTHORIZED ) . build ( ) ) ; } if ( corporateGroupId == null || corporateGroupId . isEmpty ( ) ) { LOG . error ( "No corporate GroupId to remove!" ) ; return Response . serverError ( ) . status ( HttpStatus . BAD_REQUEST_400 ) . build ( ) ; } getOrganizationHandler ( ) . removeCorporateGroupId ( organizationId , corporateGroupId ) ; return Response . ok ( "done" ) . build ( ) ; }
|
Remove an existing Corporate GroupId from an organization .
|
1,515
|
private StyleFilter findStyleFilter ( Object feature , List < StyleFilter > styles ) { for ( StyleFilter styleFilter : styles ) { if ( styleFilter . getFilter ( ) . evaluate ( feature ) ) { return styleFilter ; } } return new StyleFilterImpl ( ) ; }
|
Find the style filter that must be applied to this feature .
|
1,516
|
final void roll ( final long timeForSuffix ) { final File backupFile = this . prepareBackupFile ( timeForSuffix ) ; this . getAppender ( ) . closeFile ( ) ; this . doFileRoll ( this . getAppender ( ) . getIoFile ( ) , backupFile ) ; this . getAppender ( ) . openFile ( ) ; this . fireFileRollEvent ( new FileRollEvent ( this , backupFile ) ) ; }
|
Invoked by subclasses ; performs actual file roll . Tests to see whether roll is necessary have already been performed so just do it .
|
1,517
|
private void doFileRoll ( final File from , final File to ) { final FileHelper fileHelper = FileHelper . getInstance ( ) ; if ( ! fileHelper . deleteExisting ( to ) ) { this . getAppender ( ) . getErrorHandler ( ) . error ( "Unable to delete existing " + to + " for rename" ) ; } final String original = from . toString ( ) ; if ( fileHelper . rename ( from , to ) ) { LogLog . debug ( "Renamed " + original + " to " + to ) ; } else { this . getAppender ( ) . getErrorHandler ( ) . error ( "Unable to rename " + original + " to " + to ) ; } }
|
Renames the current base log file to the roll file name .
|
1,518
|
public static spilloverpolicy_lbvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { spilloverpolicy_lbvserver_binding obj = new spilloverpolicy_lbvserver_binding ( ) ; obj . set_name ( name ) ; spilloverpolicy_lbvserver_binding response [ ] = ( spilloverpolicy_lbvserver_binding [ ] ) obj . get_resources ( service ) ; return response ; }
|
Use this API to fetch spilloverpolicy_lbvserver_binding resources of given name .
|
1,519
|
public static appfwprofile_excluderescontenttype_binding [ ] get ( nitro_service service , String name ) throws Exception { appfwprofile_excluderescontenttype_binding obj = new appfwprofile_excluderescontenttype_binding ( ) ; obj . set_name ( name ) ; appfwprofile_excluderescontenttype_binding response [ ] = ( appfwprofile_excluderescontenttype_binding [ ] ) obj . get_resources ( service ) ; return response ; }
|
Use this API to fetch appfwprofile_excluderescontenttype_binding resources of given name .
|
1,520
|
public static base_response update ( nitro_service client , sslparameter resource ) throws Exception { sslparameter updateresource = new sslparameter ( ) ; updateresource . quantumsize = resource . quantumsize ; updateresource . crlmemorysizemb = resource . crlmemorysizemb ; updateresource . strictcachecks = resource . strictcachecks ; updateresource . ssltriggertimeout = resource . ssltriggertimeout ; updateresource . sendclosenotify = resource . sendclosenotify ; updateresource . encrypttriggerpktcount = resource . encrypttriggerpktcount ; updateresource . denysslreneg = resource . denysslreneg ; updateresource . insertionencoding = resource . insertionencoding ; updateresource . ocspcachesize = resource . ocspcachesize ; updateresource . pushflag = resource . pushflag ; updateresource . dropreqwithnohostheader = resource . dropreqwithnohostheader ; updateresource . pushenctriggertimeout = resource . pushenctriggertimeout ; updateresource . undefactioncontrol = resource . undefactioncontrol ; updateresource . undefactiondata = resource . undefactiondata ; return updateresource . update_resource ( client ) ; }
|
Use this API to update sslparameter .
|
1,521
|
public static base_response unset ( nitro_service client , sslparameter resource , String [ ] args ) throws Exception { sslparameter unsetresource = new sslparameter ( ) ; return unsetresource . unset_resource ( client , args ) ; }
|
Use this API to unset the properties of sslparameter resource . Properties that need to be unset are specified in args array .
|
1,522
|
public static sslparameter get ( nitro_service service ) throws Exception { sslparameter obj = new sslparameter ( ) ; sslparameter [ ] response = ( sslparameter [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
|
Use this API to fetch all the sslparameter resources that are configured on netscaler .
|
1,523
|
public static base_response add ( nitro_service client , spilloverpolicy resource ) throws Exception { spilloverpolicy addresource = new spilloverpolicy ( ) ; addresource . name = resource . name ; addresource . rule = resource . rule ; addresource . action = resource . action ; addresource . comment = resource . comment ; return addresource . add_resource ( client ) ; }
|
Use this API to add spilloverpolicy .
|
1,524
|
public static base_response update ( nitro_service client , spilloverpolicy resource ) throws Exception { spilloverpolicy updateresource = new spilloverpolicy ( ) ; updateresource . name = resource . name ; updateresource . rule = resource . rule ; updateresource . action = resource . action ; updateresource . comment = resource . comment ; return updateresource . update_resource ( client ) ; }
|
Use this API to update spilloverpolicy .
|
1,525
|
public static spilloverpolicy [ ] get ( nitro_service service , options option ) throws Exception { spilloverpolicy obj = new spilloverpolicy ( ) ; spilloverpolicy [ ] response = ( spilloverpolicy [ ] ) obj . get_resources ( service , option ) ; return response ; }
|
Use this API to fetch all the spilloverpolicy resources that are configured on netscaler .
|
1,526
|
public static spilloverpolicy get ( nitro_service service , String name ) throws Exception { spilloverpolicy obj = new spilloverpolicy ( ) ; obj . set_name ( name ) ; spilloverpolicy response = ( spilloverpolicy ) obj . get_resource ( service ) ; return response ; }
|
Use this API to fetch spilloverpolicy resource of given name .
|
1,527
|
public static < IN > PaddedList < IN > valueOf ( List < IN > list , IN padding ) { return new PaddedList < IN > ( list , padding ) ; }
|
A static method that provides an easy way to create a list of a certain parametric type . This static constructor works better with generics .
|
1,528
|
public static base_response add ( nitro_service client , locationfile resource ) throws Exception { locationfile addresource = new locationfile ( ) ; addresource . Locationfile = resource . Locationfile ; addresource . format = resource . format ; return addresource . add_resource ( client ) ; }
|
Use this API to add locationfile .
|
1,529
|
public static base_response delete ( nitro_service client ) throws Exception { locationfile deleteresource = new locationfile ( ) ; return deleteresource . delete_resource ( client ) ; }
|
Use this API to delete locationfile .
|
1,530
|
public static locationfile get ( nitro_service service ) throws Exception { locationfile obj = new locationfile ( ) ; locationfile [ ] response = ( locationfile [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
|
Use this API to fetch all the locationfile resources that are configured on netscaler .
|
1,531
|
public static sslcertkey_sslocspresponder_binding [ ] get ( nitro_service service , String certkey ) throws Exception { sslcertkey_sslocspresponder_binding obj = new sslcertkey_sslocspresponder_binding ( ) ; obj . set_certkey ( certkey ) ; sslcertkey_sslocspresponder_binding response [ ] = ( sslcertkey_sslocspresponder_binding [ ] ) obj . get_resources ( service ) ; return response ; }
|
Use this API to fetch sslcertkey_sslocspresponder_binding resources of given name .
|
1,532
|
public static appflowpolicy_appflowpolicylabel_binding [ ] get ( nitro_service service , String name ) throws Exception { appflowpolicy_appflowpolicylabel_binding obj = new appflowpolicy_appflowpolicylabel_binding ( ) ; obj . set_name ( name ) ; appflowpolicy_appflowpolicylabel_binding response [ ] = ( appflowpolicy_appflowpolicylabel_binding [ ] ) obj . get_resources ( service ) ; return response ; }
|
Use this API to fetch appflowpolicy_appflowpolicylabel_binding resources of given name .
|
1,533
|
public static authenticationvserver_authenticationnegotiatepolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { authenticationvserver_authenticationnegotiatepolicy_binding obj = new authenticationvserver_authenticationnegotiatepolicy_binding ( ) ; obj . set_name ( name ) ; authenticationvserver_authenticationnegotiatepolicy_binding response [ ] = ( authenticationvserver_authenticationnegotiatepolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
|
Use this API to fetch authenticationvserver_authenticationnegotiatepolicy_binding resources of given name .
|
1,534
|
public static base_response update ( nitro_service client , rnatparam resource ) throws Exception { rnatparam updateresource = new rnatparam ( ) ; updateresource . tcpproxy = resource . tcpproxy ; return updateresource . update_resource ( client ) ; }
|
Use this API to update rnatparam .
|
1,535
|
public static base_response unset ( nitro_service client , rnatparam resource , String [ ] args ) throws Exception { rnatparam unsetresource = new rnatparam ( ) ; return unsetresource . unset_resource ( client , args ) ; }
|
Use this API to unset the properties of rnatparam resource . Properties that need to be unset are specified in args array .
|
1,536
|
public static rnatparam get ( nitro_service service ) throws Exception { rnatparam obj = new rnatparam ( ) ; rnatparam [ ] response = ( rnatparam [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
|
Use this API to fetch all the rnatparam resources that are configured on netscaler .
|
1,537
|
public static base_response update ( nitro_service client , nd6ravariables resource ) throws Exception { nd6ravariables updateresource = new nd6ravariables ( ) ; updateresource . vlan = resource . vlan ; updateresource . ceaserouteradv = resource . ceaserouteradv ; updateresource . sendrouteradv = resource . sendrouteradv ; updateresource . srclinklayeraddroption = resource . srclinklayeraddroption ; updateresource . onlyunicastrtadvresponse = resource . onlyunicastrtadvresponse ; updateresource . managedaddrconfig = resource . managedaddrconfig ; updateresource . otheraddrconfig = resource . otheraddrconfig ; updateresource . currhoplimit = resource . currhoplimit ; updateresource . maxrtadvinterval = resource . maxrtadvinterval ; updateresource . minrtadvinterval = resource . minrtadvinterval ; updateresource . linkmtu = resource . linkmtu ; updateresource . reachabletime = resource . reachabletime ; updateresource . retranstime = resource . retranstime ; updateresource . defaultlifetime = resource . defaultlifetime ; return updateresource . update_resource ( client ) ; }
|
Use this API to update nd6ravariables .
|
1,538
|
public static base_responses update ( nitro_service client , nd6ravariables resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nd6ravariables updateresources [ ] = new nd6ravariables [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new nd6ravariables ( ) ; updateresources [ i ] . vlan = resources [ i ] . vlan ; updateresources [ i ] . ceaserouteradv = resources [ i ] . ceaserouteradv ; updateresources [ i ] . sendrouteradv = resources [ i ] . sendrouteradv ; updateresources [ i ] . srclinklayeraddroption = resources [ i ] . srclinklayeraddroption ; updateresources [ i ] . onlyunicastrtadvresponse = resources [ i ] . onlyunicastrtadvresponse ; updateresources [ i ] . managedaddrconfig = resources [ i ] . managedaddrconfig ; updateresources [ i ] . otheraddrconfig = resources [ i ] . otheraddrconfig ; updateresources [ i ] . currhoplimit = resources [ i ] . currhoplimit ; updateresources [ i ] . maxrtadvinterval = resources [ i ] . maxrtadvinterval ; updateresources [ i ] . minrtadvinterval = resources [ i ] . minrtadvinterval ; updateresources [ i ] . linkmtu = resources [ i ] . linkmtu ; updateresources [ i ] . reachabletime = resources [ i ] . reachabletime ; updateresources [ i ] . retranstime = resources [ i ] . retranstime ; updateresources [ i ] . defaultlifetime = resources [ i ] . defaultlifetime ; } result = update_bulk_request ( client , updateresources ) ; } return result ; }
|
Use this API to update nd6ravariables resources .
|
1,539
|
public static nd6ravariables [ ] get ( nitro_service service , options option ) throws Exception { nd6ravariables obj = new nd6ravariables ( ) ; nd6ravariables [ ] response = ( nd6ravariables [ ] ) obj . get_resources ( service , option ) ; return response ; }
|
Use this API to fetch all the nd6ravariables resources that are configured on netscaler .
|
1,540
|
public static nd6ravariables get ( nitro_service service , Long vlan ) throws Exception { nd6ravariables obj = new nd6ravariables ( ) ; obj . set_vlan ( vlan ) ; nd6ravariables response = ( nd6ravariables ) obj . get_resource ( service ) ; return response ; }
|
Use this API to fetch nd6ravariables resource of given name .
|
1,541
|
public static nd6ravariables [ ] get ( nitro_service service , Long vlan [ ] ) throws Exception { if ( vlan != null && vlan . length > 0 ) { nd6ravariables response [ ] = new nd6ravariables [ vlan . length ] ; nd6ravariables obj [ ] = new nd6ravariables [ vlan . length ] ; for ( int i = 0 ; i < vlan . length ; i ++ ) { obj [ i ] = new nd6ravariables ( ) ; obj [ i ] . set_vlan ( vlan [ i ] ) ; response [ i ] = ( nd6ravariables ) obj [ i ] . get_resource ( service ) ; } return response ; } return null ; }
|
Use this API to fetch nd6ravariables resources of given names .
|
1,542
|
public static gslbrunningconfig get ( nitro_service service ) throws Exception { gslbrunningconfig obj = new gslbrunningconfig ( ) ; gslbrunningconfig [ ] response = ( gslbrunningconfig [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
|
Use this API to fetch all the gslbrunningconfig resources that are configured on netscaler .
|
1,543
|
public static base_response update ( nitro_service client , callhome resource ) throws Exception { callhome updateresource = new callhome ( ) ; updateresource . emailaddress = resource . emailaddress ; updateresource . proxymode = resource . proxymode ; updateresource . ipaddress = resource . ipaddress ; updateresource . port = resource . port ; return updateresource . update_resource ( client ) ; }
|
Use this API to update callhome .
|
1,544
|
public static base_response unset ( nitro_service client , callhome resource , String [ ] args ) throws Exception { callhome unsetresource = new callhome ( ) ; return unsetresource . unset_resource ( client , args ) ; }
|
Use this API to unset the properties of callhome resource . Properties that need to be unset are specified in args array .
|
1,545
|
public static callhome get ( nitro_service service ) throws Exception { callhome obj = new callhome ( ) ; callhome [ ] response = ( callhome [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
|
Use this API to fetch all the callhome resources that are configured on netscaler .
|
1,546
|
public static csvserver_appflowpolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { csvserver_appflowpolicy_binding obj = new csvserver_appflowpolicy_binding ( ) ; obj . set_name ( name ) ; csvserver_appflowpolicy_binding response [ ] = ( csvserver_appflowpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
|
Use this API to fetch csvserver_appflowpolicy_binding resources of given name .
|
1,547
|
public static cachepolicy_cacheglobal_binding [ ] get ( nitro_service service , String policyname ) throws Exception { cachepolicy_cacheglobal_binding obj = new cachepolicy_cacheglobal_binding ( ) ; obj . set_policyname ( policyname ) ; cachepolicy_cacheglobal_binding response [ ] = ( cachepolicy_cacheglobal_binding [ ] ) obj . get_resources ( service ) ; return response ; }
|
Use this API to fetch cachepolicy_cacheglobal_binding resources of given name .
|
1,548
|
public static sslglobal_sslpolicy_binding [ ] get ( nitro_service service ) throws Exception { sslglobal_sslpolicy_binding obj = new sslglobal_sslpolicy_binding ( ) ; sslglobal_sslpolicy_binding response [ ] = ( sslglobal_sslpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
|
Use this API to fetch a sslglobal_sslpolicy_binding resources .
|
1,549
|
public static sslglobal_sslpolicy_binding [ ] get_filtered ( nitro_service service , filtervalue [ ] filter ) throws Exception { sslglobal_sslpolicy_binding obj = new sslglobal_sslpolicy_binding ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; sslglobal_sslpolicy_binding [ ] response = ( sslglobal_sslpolicy_binding [ ] ) obj . getfiltered ( service , option ) ; return response ; }
|
Use this API to fetch filtered set of sslglobal_sslpolicy_binding resources . set the filter parameter values in filtervalue object .
|
1,550
|
public Collection < V > put ( K key , Collection < V > collection ) { return map . put ( key , collection ) ; }
|
Replaces current Collection mapped to key with the specified Collection . Use carefully!
|
1,551
|
public void add ( K key , V value ) { if ( treatCollectionsAsImmutable ) { Collection < V > newC = cf . newCollection ( ) ; Collection < V > c = map . get ( key ) ; if ( c != null ) { newC . addAll ( c ) ; } newC . add ( value ) ; map . put ( key , newC ) ; } else { Collection < V > c = map . get ( key ) ; if ( c == null ) { c = cf . newCollection ( ) ; map . put ( key , c ) ; } c . add ( value ) ; } }
|
Adds the value to the Collection mapped to by the key .
|
1,552
|
public void removeMapping ( K key , V value ) { if ( treatCollectionsAsImmutable ) { Collection < V > c = map . get ( key ) ; if ( c != null ) { Collection < V > newC = cf . newCollection ( ) ; newC . addAll ( c ) ; newC . remove ( value ) ; map . put ( key , newC ) ; } } else { Collection < V > c = get ( key ) ; c . remove ( value ) ; } }
|
Removes the value from the Collection mapped to by this key leaving the rest of the collection intact .
|
1,553
|
public CollectionValuedMap < K , V > deltaClone ( ) { CollectionValuedMap < K , V > result = new CollectionValuedMap < K , V > ( null , cf , true ) ; result . map = new DeltaMap < K , Collection < V > > ( this . map ) ; return result ; }
|
Creates a delta clone of this Map where only the differences are represented .
|
1,554
|
public static linkset_interface_binding [ ] get ( nitro_service service , String id ) throws Exception { linkset_interface_binding obj = new linkset_interface_binding ( ) ; obj . set_id ( id ) ; linkset_interface_binding response [ ] = ( linkset_interface_binding [ ] ) obj . get_resources ( service ) ; return response ; }
|
Use this API to fetch linkset_interface_binding resources of given name .
|
1,555
|
public static long count ( nitro_service service , String id ) throws Exception { linkset_interface_binding obj = new linkset_interface_binding ( ) ; obj . set_id ( id ) ; options option = new options ( ) ; option . set_count ( true ) ; linkset_interface_binding response [ ] = ( linkset_interface_binding [ ] ) obj . get_resources ( service , option ) ; if ( response != null ) { return response [ 0 ] . __count ; } return 0 ; }
|
Use this API to count linkset_interface_binding resources configued on NetScaler .
|
1,556
|
public static tmtrafficpolicy_lbvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { tmtrafficpolicy_lbvserver_binding obj = new tmtrafficpolicy_lbvserver_binding ( ) ; obj . set_name ( name ) ; tmtrafficpolicy_lbvserver_binding response [ ] = ( tmtrafficpolicy_lbvserver_binding [ ] ) obj . get_resources ( service ) ; return response ; }
|
Use this API to fetch tmtrafficpolicy_lbvserver_binding resources of given name .
|
1,557
|
public static vlan_interface_binding [ ] get ( nitro_service service , Long id ) throws Exception { vlan_interface_binding obj = new vlan_interface_binding ( ) ; obj . set_id ( id ) ; vlan_interface_binding response [ ] = ( vlan_interface_binding [ ] ) obj . get_resources ( service ) ; return response ; }
|
Use this API to fetch vlan_interface_binding resources of given name .
|
1,558
|
public static rewritepolicy_csvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { rewritepolicy_csvserver_binding obj = new rewritepolicy_csvserver_binding ( ) ; obj . set_name ( name ) ; rewritepolicy_csvserver_binding response [ ] = ( rewritepolicy_csvserver_binding [ ] ) obj . get_resources ( service ) ; return response ; }
|
Use this API to fetch rewritepolicy_csvserver_binding resources of given name .
|
1,559
|
public static tunneltrafficpolicy [ ] get ( nitro_service service , options option ) throws Exception { tunneltrafficpolicy obj = new tunneltrafficpolicy ( ) ; tunneltrafficpolicy [ ] response = ( tunneltrafficpolicy [ ] ) obj . get_resources ( service , option ) ; return response ; }
|
Use this API to fetch all the tunneltrafficpolicy resources that are configured on netscaler .
|
1,560
|
public static tunneltrafficpolicy get ( nitro_service service , String name ) throws Exception { tunneltrafficpolicy obj = new tunneltrafficpolicy ( ) ; obj . set_name ( name ) ; tunneltrafficpolicy response = ( tunneltrafficpolicy ) obj . get_resource ( service ) ; return response ; }
|
Use this API to fetch tunneltrafficpolicy resource of given name .
|
1,561
|
public static vpnglobal_intranetip_binding [ ] get ( nitro_service service ) throws Exception { vpnglobal_intranetip_binding obj = new vpnglobal_intranetip_binding ( ) ; vpnglobal_intranetip_binding response [ ] = ( vpnglobal_intranetip_binding [ ] ) obj . get_resources ( service ) ; return response ; }
|
Use this API to fetch a vpnglobal_intranetip_binding resources .
|
1,562
|
public static base_response add ( nitro_service client , sslaction resource ) throws Exception { sslaction addresource = new sslaction ( ) ; addresource . name = resource . name ; addresource . clientauth = resource . clientauth ; addresource . clientcert = resource . clientcert ; addresource . certheader = resource . certheader ; addresource . clientcertserialnumber = resource . clientcertserialnumber ; addresource . certserialheader = resource . certserialheader ; addresource . clientcertsubject = resource . clientcertsubject ; addresource . certsubjectheader = resource . certsubjectheader ; addresource . clientcerthash = resource . clientcerthash ; addresource . certhashheader = resource . certhashheader ; addresource . clientcertissuer = resource . clientcertissuer ; addresource . certissuerheader = resource . certissuerheader ; addresource . sessionid = resource . sessionid ; addresource . sessionidheader = resource . sessionidheader ; addresource . cipher = resource . cipher ; addresource . cipherheader = resource . cipherheader ; addresource . clientcertnotbefore = resource . clientcertnotbefore ; addresource . certnotbeforeheader = resource . certnotbeforeheader ; addresource . clientcertnotafter = resource . clientcertnotafter ; addresource . certnotafterheader = resource . certnotafterheader ; addresource . owasupport = resource . owasupport ; return addresource . add_resource ( client ) ; }
|
Use this API to add sslaction .
|
1,563
|
public static base_responses add ( nitro_service client , sslaction resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { sslaction addresources [ ] = new sslaction [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new sslaction ( ) ; addresources [ i ] . name = resources [ i ] . name ; addresources [ i ] . clientauth = resources [ i ] . clientauth ; addresources [ i ] . clientcert = resources [ i ] . clientcert ; addresources [ i ] . certheader = resources [ i ] . certheader ; addresources [ i ] . clientcertserialnumber = resources [ i ] . clientcertserialnumber ; addresources [ i ] . certserialheader = resources [ i ] . certserialheader ; addresources [ i ] . clientcertsubject = resources [ i ] . clientcertsubject ; addresources [ i ] . certsubjectheader = resources [ i ] . certsubjectheader ; addresources [ i ] . clientcerthash = resources [ i ] . clientcerthash ; addresources [ i ] . certhashheader = resources [ i ] . certhashheader ; addresources [ i ] . clientcertissuer = resources [ i ] . clientcertissuer ; addresources [ i ] . certissuerheader = resources [ i ] . certissuerheader ; addresources [ i ] . sessionid = resources [ i ] . sessionid ; addresources [ i ] . sessionidheader = resources [ i ] . sessionidheader ; addresources [ i ] . cipher = resources [ i ] . cipher ; addresources [ i ] . cipherheader = resources [ i ] . cipherheader ; addresources [ i ] . clientcertnotbefore = resources [ i ] . clientcertnotbefore ; addresources [ i ] . certnotbeforeheader = resources [ i ] . certnotbeforeheader ; addresources [ i ] . clientcertnotafter = resources [ i ] . clientcertnotafter ; addresources [ i ] . certnotafterheader = resources [ i ] . certnotafterheader ; addresources [ i ] . owasupport = resources [ i ] . owasupport ; } result = add_bulk_request ( client , addresources ) ; } return result ; }
|
Use this API to add sslaction resources .
|
1,564
|
public static sslaction [ ] get ( nitro_service service ) throws Exception { sslaction obj = new sslaction ( ) ; sslaction [ ] response = ( sslaction [ ] ) obj . get_resources ( service ) ; return response ; }
|
Use this API to fetch all the sslaction resources that are configured on netscaler .
|
1,565
|
public static sslaction get ( nitro_service service , String name ) throws Exception { sslaction obj = new sslaction ( ) ; obj . set_name ( name ) ; sslaction response = ( sslaction ) obj . get_resource ( service ) ; return response ; }
|
Use this API to fetch sslaction resource of given name .
|
1,566
|
public static rewriteglobal_binding get ( nitro_service service ) throws Exception { rewriteglobal_binding obj = new rewriteglobal_binding ( ) ; rewriteglobal_binding response = ( rewriteglobal_binding ) obj . get_resource ( service ) ; return response ; }
|
Use this API to fetch a rewriteglobal_binding resource .
|
1,567
|
public static vpath_stats get ( nitro_service service ) throws Exception { vpath_stats obj = new vpath_stats ( ) ; vpath_stats [ ] response = ( vpath_stats [ ] ) obj . stat_resources ( service ) ; return response [ 0 ] ; }
|
Use this API to fetch the statistics of all vpath_stats resources that are configured on netscaler .
|
1,568
|
public static aaauser_auditsyslogpolicy_binding [ ] get ( nitro_service service , String username ) throws Exception { aaauser_auditsyslogpolicy_binding obj = new aaauser_auditsyslogpolicy_binding ( ) ; obj . set_username ( username ) ; aaauser_auditsyslogpolicy_binding response [ ] = ( aaauser_auditsyslogpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
|
Use this API to fetch aaauser_auditsyslogpolicy_binding resources of given name .
|
1,569
|
public static lbvserver_cachepolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { lbvserver_cachepolicy_binding obj = new lbvserver_cachepolicy_binding ( ) ; obj . set_name ( name ) ; lbvserver_cachepolicy_binding response [ ] = ( lbvserver_cachepolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
|
Use this API to fetch lbvserver_cachepolicy_binding resources of given name .
|
1,570
|
public static tunnelip_stats [ ] get ( nitro_service service ) throws Exception { tunnelip_stats obj = new tunnelip_stats ( ) ; tunnelip_stats [ ] response = ( tunnelip_stats [ ] ) obj . stat_resources ( service ) ; return response ; }
|
Use this API to fetch the statistics of all tunnelip_stats resources that are configured on netscaler .
|
1,571
|
public static tunnelip_stats get ( nitro_service service , String tunnelip ) throws Exception { tunnelip_stats obj = new tunnelip_stats ( ) ; obj . set_tunnelip ( tunnelip ) ; tunnelip_stats response = ( tunnelip_stats ) obj . stat_resource ( service ) ; return response ; }
|
Use this API to fetch statistics of tunnelip_stats resource of given name .
|
1,572
|
public void updateSequenceElement ( int [ ] sequence , int pos , int oldVal ) { if ( models != null ) { for ( int i = 0 ; i < models . length ; i ++ ) models [ i ] . updateSequenceElement ( sequence , pos , oldVal ) ; return ; } model1 . updateSequenceElement ( sequence , pos , 0 ) ; model2 . updateSequenceElement ( sequence , pos , 0 ) ; }
|
Informs this sequence model that the value of the element at position pos has changed . This allows this sequence model to update its internal model if desired .
|
1,573
|
public void setInitialSequence ( int [ ] sequence ) { if ( models != null ) { for ( int i = 0 ; i < models . length ; i ++ ) models [ i ] . setInitialSequence ( sequence ) ; return ; } model1 . setInitialSequence ( sequence ) ; model2 . setInitialSequence ( sequence ) ; }
|
Informs this sequence model that the value of the whole sequence is initialized to sequence
|
1,574
|
public static < T > IteratorFromReaderFactory < T > getFactory ( String delim , Function < String , T > op ) { return new DelimitRegExIteratorFactory < T > ( delim , op ) ; }
|
Returns a factory that vends DelimitRegExIterators that reads the contents of the given Reader splits on the specified delimiter applies op then returns the result .
|
1,575
|
public static lbmonbindings_servicegroup_binding [ ] get ( nitro_service service , String monitorname ) throws Exception { lbmonbindings_servicegroup_binding obj = new lbmonbindings_servicegroup_binding ( ) ; obj . set_monitorname ( monitorname ) ; lbmonbindings_servicegroup_binding response [ ] = ( lbmonbindings_servicegroup_binding [ ] ) obj . get_resources ( service ) ; return response ; }
|
Use this API to fetch lbmonbindings_servicegroup_binding resources of given name .
|
1,576
|
public final List < MtasSolrStatus > checkForExceptions ( ) { List < MtasSolrStatus > statusWithException = null ; for ( MtasSolrStatus item : data ) { if ( item . checkResponseForException ( ) ) { if ( statusWithException == null ) { statusWithException = new ArrayList < > ( ) ; } statusWithException . add ( item ) ; } } return statusWithException ; }
|
Check for exceptions .
|
1,577
|
public static authenticationradiuspolicy_authenticationvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { authenticationradiuspolicy_authenticationvserver_binding obj = new authenticationradiuspolicy_authenticationvserver_binding ( ) ; obj . set_name ( name ) ; authenticationradiuspolicy_authenticationvserver_binding response [ ] = ( authenticationradiuspolicy_authenticationvserver_binding [ ] ) obj . get_resources ( service ) ; return response ; }
|
Use this API to fetch authenticationradiuspolicy_authenticationvserver_binding resources of given name .
|
1,578
|
public static vpnvserver_authenticationsamlpolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { vpnvserver_authenticationsamlpolicy_binding obj = new vpnvserver_authenticationsamlpolicy_binding ( ) ; obj . set_name ( name ) ; vpnvserver_authenticationsamlpolicy_binding response [ ] = ( vpnvserver_authenticationsamlpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
|
Use this API to fetch vpnvserver_authenticationsamlpolicy_binding resources of given name .
|
1,579
|
public static base_response convert ( nitro_service client , sslpkcs8 resource ) throws Exception { sslpkcs8 convertresource = new sslpkcs8 ( ) ; convertresource . pkcs8file = resource . pkcs8file ; convertresource . keyfile = resource . keyfile ; convertresource . keyform = resource . keyform ; convertresource . password = resource . password ; return convertresource . perform_operation ( client , "convert" ) ; }
|
Use this API to convert sslpkcs8 .
|
1,580
|
public static ci [ ] get ( nitro_service service ) throws Exception { ci obj = new ci ( ) ; ci [ ] response = ( ci [ ] ) obj . get_resources ( service ) ; return response ; }
|
Use this API to fetch all the ci resources that are configured on netscaler .
|
1,581
|
public static base_response add ( nitro_service client , sslcipher resource ) throws Exception { sslcipher addresource = new sslcipher ( ) ; addresource . ciphergroupname = resource . ciphergroupname ; addresource . ciphgrpalias = resource . ciphgrpalias ; return addresource . add_resource ( client ) ; }
|
Use this API to add sslcipher .
|
1,582
|
public static base_responses add ( nitro_service client , sslcipher resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { sslcipher addresources [ ] = new sslcipher [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new sslcipher ( ) ; addresources [ i ] . ciphergroupname = resources [ i ] . ciphergroupname ; addresources [ i ] . ciphgrpalias = resources [ i ] . ciphgrpalias ; } result = add_bulk_request ( client , addresources ) ; } return result ; }
|
Use this API to add sslcipher resources .
|
1,583
|
public static base_response delete ( nitro_service client , String ciphergroupname ) throws Exception { sslcipher deleteresource = new sslcipher ( ) ; deleteresource . ciphergroupname = ciphergroupname ; return deleteresource . delete_resource ( client ) ; }
|
Use this API to delete sslcipher of given name .
|
1,584
|
public static base_responses delete ( nitro_service client , String ciphergroupname [ ] ) throws Exception { base_responses result = null ; if ( ciphergroupname != null && ciphergroupname . length > 0 ) { sslcipher deleteresources [ ] = new sslcipher [ ciphergroupname . length ] ; for ( int i = 0 ; i < ciphergroupname . length ; i ++ ) { deleteresources [ i ] = new sslcipher ( ) ; deleteresources [ i ] . ciphergroupname = ciphergroupname [ i ] ; } result = delete_bulk_request ( client , deleteresources ) ; } return result ; }
|
Use this API to delete sslcipher resources of given names .
|
1,585
|
public static sslcipher [ ] get ( nitro_service service ) throws Exception { sslcipher obj = new sslcipher ( ) ; sslcipher [ ] response = ( sslcipher [ ] ) obj . get_resources ( service ) ; return response ; }
|
Use this API to fetch all the sslcipher resources that are configured on netscaler .
|
1,586
|
public static sslcipher get ( nitro_service service , String ciphergroupname ) throws Exception { sslcipher obj = new sslcipher ( ) ; obj . set_ciphergroupname ( ciphergroupname ) ; sslcipher response = ( sslcipher ) obj . get_resource ( service ) ; return response ; }
|
Use this API to fetch sslcipher resource of given name .
|
1,587
|
public static sslcipher [ ] get ( nitro_service service , String ciphergroupname [ ] ) throws Exception { if ( ciphergroupname != null && ciphergroupname . length > 0 ) { sslcipher response [ ] = new sslcipher [ ciphergroupname . length ] ; sslcipher obj [ ] = new sslcipher [ ciphergroupname . length ] ; for ( int i = 0 ; i < ciphergroupname . length ; i ++ ) { obj [ i ] = new sslcipher ( ) ; obj [ i ] . set_ciphergroupname ( ciphergroupname [ i ] ) ; response [ i ] = ( sslcipher ) obj [ i ] . get_resource ( service ) ; } return response ; } return null ; }
|
Use this API to fetch sslcipher resources of given names .
|
1,588
|
public static base_response add ( nitro_service client , transformpolicy resource ) throws Exception { transformpolicy addresource = new transformpolicy ( ) ; addresource . name = resource . name ; addresource . rule = resource . rule ; addresource . profilename = resource . profilename ; addresource . comment = resource . comment ; addresource . logaction = resource . logaction ; return addresource . add_resource ( client ) ; }
|
Use this API to add transformpolicy .
|
1,589
|
public static base_response update ( nitro_service client , transformpolicy resource ) throws Exception { transformpolicy updateresource = new transformpolicy ( ) ; updateresource . name = resource . name ; updateresource . rule = resource . rule ; updateresource . profilename = resource . profilename ; updateresource . comment = resource . comment ; updateresource . logaction = resource . logaction ; return updateresource . update_resource ( client ) ; }
|
Use this API to update transformpolicy .
|
1,590
|
public static transformpolicy [ ] get ( nitro_service service ) throws Exception { transformpolicy obj = new transformpolicy ( ) ; transformpolicy [ ] response = ( transformpolicy [ ] ) obj . get_resources ( service ) ; return response ; }
|
Use this API to fetch all the transformpolicy resources that are configured on netscaler .
|
1,591
|
public static transformpolicy get ( nitro_service service , String name ) throws Exception { transformpolicy obj = new transformpolicy ( ) ; obj . set_name ( name ) ; transformpolicy response = ( transformpolicy ) obj . get_resource ( service ) ; return response ; }
|
Use this API to fetch transformpolicy resource of given name .
|
1,592
|
public int compareTo ( WordTag wordTag ) { int first = ( word != null ? word ( ) . compareTo ( wordTag . word ( ) ) : 0 ) ; if ( first != 0 ) return first ; else { if ( tag ( ) == null ) { if ( wordTag . tag ( ) == null ) return 0 ; else return - 1 ; } return tag ( ) . compareTo ( wordTag . tag ( ) ) ; } }
|
Orders first by word then by tag .
|
1,593
|
protected void rehash ( int newCapacity ) { int oldCapacity = table . length ; long oldTable [ ] = table ; int oldValues [ ] = values ; byte oldState [ ] = state ; long newTable [ ] = new long [ newCapacity ] ; int newValues [ ] = new int [ newCapacity ] ; byte newState [ ] = new byte [ newCapacity ] ; this . lowWaterMark = chooseLowWaterMark ( newCapacity , this . minLoadFactor ) ; this . highWaterMark = chooseHighWaterMark ( newCapacity , this . maxLoadFactor ) ; this . table = newTable ; this . values = newValues ; this . state = newState ; this . freeEntries = newCapacity - this . distinct ; for ( int i = oldCapacity ; i -- > 0 ; ) { if ( oldState [ i ] == FULL ) { long element = oldTable [ i ] ; int index = indexOfInsertion ( element ) ; newTable [ index ] = element ; newValues [ index ] = oldValues [ i ] ; newState [ index ] = FULL ; } } }
|
Rehashes the contents of the receiver into a new table with a smaller or larger capacity . This method is called automatically when the number of keys in the receiver exceeds the high water mark or falls below the low water mark .
|
1,594
|
public boolean removeKey ( long key ) { int i = indexOfKey ( key ) ; if ( i < 0 ) return false ; this . state [ i ] = REMOVED ; this . values [ i ] = 0 ; this . distinct -- ; if ( this . distinct < this . lowWaterMark ) { int newCapacity = chooseShrinkCapacity ( this . distinct , this . minLoadFactor , this . maxLoadFactor ) ; rehash ( newCapacity ) ; } return true ; }
|
Removes the given key with its associated element from the receiver if present .
|
1,595
|
public static DocumentBuilder getXmlParser ( ) { DocumentBuilder db = null ; try { DocumentBuilderFactory dbf = DocumentBuilderFactory . newInstance ( ) ; dbf . setValidating ( false ) ; dbf . setFeature ( "http://apache.org/xml/features/nonvalidating/load-dtd-grammar" , false ) ; dbf . setFeature ( "http://apache.org/xml/features/nonvalidating/load-external-dtd" , false ) ; db = dbf . newDocumentBuilder ( ) ; db . setErrorHandler ( new SAXErrorHandler ( ) ) ; } catch ( ParserConfigurationException e ) { System . err . printf ( "%s: Unable to create XML parser\n" , XMLUtils . class . getName ( ) ) ; e . printStackTrace ( ) ; } catch ( UnsupportedOperationException e ) { System . err . printf ( "%s: API error while setting up XML parser. Check your JAXP version\n" , XMLUtils . class . getName ( ) ) ; e . printStackTrace ( ) ; } return db ; }
|
Returns a non - validating XML parser . The parser ignores both DTDs and XSDs .
|
1,596
|
public static String readUntilTag ( Reader r ) throws IOException { if ( ! r . ready ( ) ) { return "" ; } StringBuilder b = new StringBuilder ( ) ; int c = r . read ( ) ; while ( c >= 0 && c != '<' ) { b . append ( ( char ) c ) ; c = r . read ( ) ; } return b . toString ( ) ; }
|
Reads all text up to next XML tag and returns it as a String .
|
1,597
|
public static int findSpace ( String haystack , int begin ) { int space = haystack . indexOf ( ' ' , begin ) ; int nbsp = haystack . indexOf ( '\u00A0' , begin ) ; if ( space == - 1 && nbsp == - 1 ) { return - 1 ; } else if ( space >= 0 && nbsp >= 0 ) { return Math . min ( space , nbsp ) ; } else { return Math . max ( space , nbsp ) ; } }
|
return either the first space or the first nbsp
|
1,598
|
public static String readTag ( Reader r ) throws IOException { if ( ! r . ready ( ) ) { return null ; } StringBuilder b = new StringBuilder ( "<" ) ; int c = r . read ( ) ; while ( c >= 0 ) { b . append ( ( char ) c ) ; if ( c == '>' ) { break ; } c = r . read ( ) ; } if ( b . length ( ) == 1 ) { return null ; } return b . toString ( ) ; }
|
Reads all text of the XML tag and returns it as a String . Assumes that a < character has already been read .
|
1,599
|
public static Document readDocumentFromString ( String s ) throws Exception { InputSource in = new InputSource ( new StringReader ( s ) ) ; DocumentBuilderFactory factory = DocumentBuilderFactory . newInstance ( ) ; factory . setNamespaceAware ( false ) ; return factory . newDocumentBuilder ( ) . parse ( in ) ; }
|
end class SAXErrorHandler
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.