idx int64 0 165k | question stringlengths 73 4.15k | target stringlengths 5 918 | len_question int64 21 890 | len_target int64 3 255 |
|---|---|---|---|---|
162,800 | void checkNotClosed ( ) throws SISessionUnavailableException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkNotClosed" ) ; try { synchronized ( _localConsumerPoint ) { _localConsumerPoint . checkNotClosed ( ) ; } } catch ( SISessionUnavailableException e ) { // N... | Check that this consumer session is not closed . | 185 | 9 |
162,801 | protected SICoreConnection getConnectionInternal ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && CoreSPIConsumerSession . tc . isEntryEnabled ( ) ) { SibTr . entry ( CoreSPIConsumerSession . tc , "getConnectionInternal" , this ) ; SibTr . exit ( CoreSPIConsumerSession . tc , "getConnectionInternal" , _connection... | Internal getter method which bypasses the not closed check . | 105 | 12 |
162,802 | public long getIdInternal ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getIdInternal" ) ; SibTr . exit ( tc , "getIdInternal" , new Long ( _consumerId ) ) ; } return _consumerId ; } | Gets the id for the consumer without any checking . | 75 | 11 |
162,803 | void setId ( long id ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setId" , new Long ( id ) ) ; _consumerId = id ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "setId" ) ; } | Sets the id for this consumer . | 91 | 8 |
162,804 | private static void createFactoryInstance ( ) { if ( tc . isEntryEnabled ( ) ) tc . entry ( cclass , "createFactoryInstance" ) ; try { Class cls = Class . forName ( MATCHING_CLASS_NAME ) ; instance = ( Matching ) cls . newInstance ( ) ; } catch ( Exception e ) { // No FFDC Code Needed. // FFDC driven by wrapper class. ... | Create the Matching instance . | 207 | 6 |
162,805 | public static Matching getInstance ( ) throws Exception { if ( tc . isEntryEnabled ( ) ) tc . entry ( cclass , "getInstance" ) ; if ( instance == null ) throw createException ; if ( tc . isEntryEnabled ( ) ) tc . exit ( cclass , "getInstance" , "instance=" + instance ) ; return instance ; } | Obtain a reference to the singleton Matching instance | 77 | 11 |
162,806 | final boolean abort ( boolean removeFromQueue , Throwable cause ) { if ( removeFromQueue && executor . queue . remove ( this ) ) executor . maxQueueSizeConstraint . release ( ) ; if ( nsAcceptEnd == nsAcceptBegin - 1 ) // currently unset nsRunEnd = nsQueueEnd = nsAcceptEnd = System . nanoTime ( ) ; boolean aborted = re... | Invoked to abort a task . | 299 | 7 |
162,807 | @ Trivial final void accept ( boolean runOnSubmitter ) { long time ; nsAcceptEnd = time = System . nanoTime ( ) ; if ( runOnSubmitter ) nsQueueEnd = time ; state . setSubmitted ( ) ; } | Invoked to indicate the task was successfully submitted . | 53 | 10 |
162,808 | public static String resolve ( WebSphereConfig14 config , String raw ) { String resolved = raw ; StringCharacterIterator itr = new StringCharacterIterator ( resolved ) ; int startCount = 0 ; //how many times have we encountered the start token (EVAL_START_TOKEN) without it being matched by the end token (EVAL_END_TOKEN... | This method takes a raw value which may contain nested properties and resolves those properties into their actual values . | 739 | 20 |
162,809 | @ FFDCIgnore ( Exception . class ) public DataSource getDataSource ( ) throws Exception { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getDataSource" ) ; // Retrieve the data source factory from the CustomLogProperties. This Factory should be set in the JTMConfigurationProvider // by the jdbc component using Decla... | Locates a DataSource in config | 706 | 7 |
162,810 | private void writeObject ( ObjectOutputStream out ) throws IOException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "writeObject" , out ) ; throw new NotSerializableException ( "TemporaryTopic" ) ; } | The writeObject method for serialization . | 68 | 8 |
162,811 | public static void addCompleteJarEntryUrls ( List < ContainerInfo > containers , Entry jarEntry , Collection < String > resolved ) throws UnableToAdaptException { String entryIdentity = createEntryIdentity ( jarEntry ) ; if ( ! entryIdentity . isEmpty ( ) && ! resolved . contains ( entryIdentity ) ) { resolved . add ( ... | Add the jar entry URLs and its class path URLs . We need deal with all the thrown exceptions so that it won t interrupt the caller s processing . | 94 | 30 |
162,812 | private static Entry findClassPathEntry ( Entry jarEntry , URI pathUri ) throws URISyntaxException , UnableToAdaptException { URI relativeJarUri = new URI ( "/" ) . relativize ( new URI ( jarEntry . getPath ( ) ) ) ; URI targetUri = null ; targetUri = relativeJarUri . resolve ( pathUri ) ; if ( targetUri . toString ( )... | calculate the class path entry based on the jar entry | 210 | 12 |
162,813 | protected Object [ ] purge ( ) { Object [ ] data = new Object [ getCurrentNumElements ( ) ] ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "LocalPool is purging " + data . length + " items. firstEntry: " + firstEntry + " lastEntry: " + lastEntry + " poolSize: " + poolSi... | Purge the contents and hand them to the calling pool that owns this threadlocal version . | 253 | 18 |
162,814 | @ Override public final boolean skipCreatingBda ( CDIArchive archive ) { //only skip this if it is a leaf archive boolean skip = isImplicitBeanArchivesScanningDisabled ( archive ) ; skip = skip && ( archive . getBeansXml ( ) == null ) ; skip = skip && ( ! ( archive . getType ( ) == ArchiveType . WEB_MODULE ) ) ; return... | Determine whether this jar is completely ignored by CDI so no need to create bda for it . The jar will be ignored if it does not contain beans . xml and in the server . xml implicit bean archive scanning is disabled . | 93 | 48 |
162,815 | public synchronized void finalReap ( ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "finalReap : Remote Async Results = " + ivAllRemoteAsyncResults . size ( ) ) ; // Re-write the finalReap to use the LinkedHashSet, iterating thru th... | This method is invoked just before container termination to clean up server - side Future objects . | 255 | 17 |
162,816 | public synchronized void add ( RemoteAsyncResultImpl asyncResult ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; ivAllRemoteAsyncResults . add ( asyncResult ) ; if ( asyncResult . ivPmiBean != null ) { // d690014.3 asyncResult . ivPmiBean . asyncFutureObjectIncrement ( ) ; } int size = ivAllRem... | Add a new server - side Future object to the list to be checked for timeouts | 403 | 17 |
162,817 | public synchronized void remove ( RemoteAsyncResultImpl asyncResult ) { ivAllRemoteAsyncResults . remove ( asyncResult ) ; releaseResources ( asyncResult ) ; // d690014.3 // If no server-side Future objects and an alarm is set then cancel the alarm. d623593 if ( ivAllRemoteAsyncResults . isEmpty ( ) && ivFuture != null... | Remove a server - side Future object from the reaper and release its resources . | 144 | 16 |
162,818 | public String format ( long timestamp ) { // If the format is unknown, use the default formatter. if ( invalidFormat ) { return formatter . format ( timestamp ) ; } try { long delta = timestamp - refTimestamp ; // If we need to reformat if ( delta >= pdiff || delta < ndiff ) { StringBuffer refTime = new StringBuffer ( ... | Formats a timestamp | 373 | 4 |
162,819 | private void setName ( String newName ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setName" , newName ) ; this . _name = newName ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "setName" ) ; } | Sets the name currently in use by this localization . | 92 | 11 |
162,820 | @ Override public boolean isSendAllowed ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "isSendAllowed" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "isSendAllowed" , new Boolean ( _isSendAllowed ) ) ; return _is... | Gets the current value of SendAllowed used by this localization . | 104 | 14 |
162,821 | public void setSendAllowed ( boolean newIsSendAllowedValue ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setSendAllowed" , new Boolean ( newIsSendAllowedValue ) ) ; this . _isSendAllowed = newIsSendAllowedValue ; updatePutRegistration ( _isSendAllowed ) ; if ( Trac... | Sets the current value of SendAllowed used by this localization . | 128 | 14 |
162,822 | public void setAlterationTime ( long newAlterationTime ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setAlterationTime" , new Long ( newAlterationTime ) ) ; this . _alterationTime = newAlterationTime ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEn... | Sets the current alteration time fro this localization . | 116 | 10 |
162,823 | public static void rcvDeleteDurableSub ( CommsByteBuffer request , Conversation conversation , int requestNumber , boolean allocatedFromBufferPool , boolean partOfExchange ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "rcvDeleteDurableSub" , new Object [ ] { request... | Deletes a durable subscription | 845 | 5 |
162,824 | public static void main ( String [ ] args ) { Generator schemaGen = new Generator ( ) ; System . exit ( schemaGen . createSchema ( args ) ) ; } | The runtime main . String arguments are treated and parsed as command line parameters . | 36 | 15 |
162,825 | private void generate ( List < MetaTypeInformationSpecification > metatype ) { XMLOutputFactory factory = XMLOutputFactory . newInstance ( ) ; try { PrintWriter writer = new PrintWriter ( generatorOptions . getOutputFile ( ) , generatorOptions . getEncoding ( ) ) ; XMLStreamWriter xmlWriter = null ; if ( generatorOptio... | Pass the constructed metatypinformation to SchemaWriter for the actual generation | 310 | 15 |
162,826 | void setField ( int accessor , Object value ) { try { jmfPart . setValue ( accessor , value ) ; } catch ( JMFException e ) { FFDCFilter . processException ( e , "setField" , "87" , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "setField failed: " + e ) ;... | General field access | 101 | 3 |
162,827 | void setIntField ( int accessor , int value ) { try { jmfPart . setInt ( accessor , value ) ; } catch ( JMFException e ) { FFDCFilter . processException ( e , "setIntField" , "109" , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "setIntField failed: " + ... | Convenience access to primitive type fields | 104 | 8 |
162,828 | void setChoiceField ( int accessor , int variant ) { try { jmfPart . setInt ( accessor , variant ) ; } catch ( JMFException e ) { FFDCFilter . processException ( e , "setChoiceField" , "173" , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "setChoiceField... | Set a choice field to a specific variant | 104 | 8 |
162,829 | int getChoiceField ( int accessor ) { int result = 0 ; try { if ( jmfPart . isPresent ( accessor ) ) result = jmfPart . getInt ( accessor ) ; } catch ( JMFException e ) { FFDCFilter . processException ( e , "getChoiceField" , "185" , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Si... | Get a choice field which determines which variant is set | 123 | 10 |
162,830 | void setPart ( int accessor , JMFSchema schema ) { try { jmfPart . setValue ( accessor , jmfPart . newNativePart ( schema ) ) ; } catch ( JMFException e ) { FFDCFilter . processException ( e , "setDynamicField" , "196" , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug (... | Set a dynamic field to an empty message of appropriate type | 116 | 11 |
162,831 | JsMsgPart getPart ( int accessor , JMFSchema schema ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getPart" , new Object [ ] { accessor , schema } ) ; JsMsgPart result = null ; try { if ( jmfPart . isPresent ( accessor ) ) result = new JsMsgPart ( jmfPart . g... | Obtain a nested message part | 228 | 6 |
162,832 | int estimateFieldValueSize ( int accessor ) { int size = 0 ; try { if ( jmfPart . isPresent ( accessor ) ) { size = jmfPart . estimateUnassembledValueSize ( accessor ) ; } } catch ( JMFException e ) { FFDCFilter . processException ( e , "estimateFieldValueSize" , "221" , this ) ; if ( TraceComponent . isAnyTracingEnabl... | Get the estimated size of the fluffed = up value of the field | 133 | 14 |
162,833 | public boolean isNotEMPTYlist ( int accessor ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "isNotEMPTYlist" , accessor ) ; // The answer is true, unless an EMPTY is found. boolean isNotAnEMPTY = true ; // The field can't be an EMPTY singleton unless the part ... | isNotEMPTYlist Return false if the value of the given field is one of the singleton EMPTY lists otherwise true . | 230 | 26 |
162,834 | public static final String construct ( Object object , ExternalContext ctx ) { byte [ ] bytes = getAsByteArray ( object , ctx ) ; if ( enableCompression ( ctx ) ) { bytes = compress ( bytes ) ; } if ( isSecure ( ctx ) ) { bytes = encrypt ( bytes , ctx ) ; } bytes = encode ( bytes ) ; try { return new String ( bytes , Z... | This fires during the Render Response phase saving state . | 114 | 10 |
162,835 | public static final byte [ ] getAsByteArray ( Object object , ExternalContext ctx ) { ByteArrayOutputStream outputStream = new ByteArrayOutputStream ( ) ; // get the Factory that was instantiated @ startup SerialFactory serialFactory = ( SerialFactory ) ctx . getApplicationMap ( ) . get ( SERIAL_FACTORY ) ; if ( serial... | Performs serialization with the serialization provider created by the SerialFactory . | 179 | 15 |
162,836 | public static final Object reconstruct ( String string , ExternalContext ctx ) { byte [ ] bytes ; try { if ( log . isLoggable ( Level . FINE ) ) { log . fine ( "Processing state : " + string ) ; } bytes = string . getBytes ( ZIP_CHARSET ) ; bytes = decode ( bytes ) ; if ( isSecure ( ctx ) ) { bytes = decrypt ( bytes , ... | This fires during the Restore View phase restoring state . | 176 | 10 |
162,837 | public static final Object getAsObject ( byte [ ] bytes , ExternalContext ctx ) { ByteArrayInputStream input = null ; try { input = new ByteArrayInputStream ( bytes ) ; // get the Factory that was instantiated @ startup SerialFactory serialFactory = ( SerialFactory ) ctx . getApplicationMap ( ) . get ( SERIAL_FACTORY )... | Performs deserialization with the serialization provider created from the SerialFactory . | 535 | 16 |
162,838 | public static void main ( String [ ] args ) throws UnsupportedEncodingException { byte [ ] bytes = encode ( args [ 0 ] . getBytes ( ZIP_CHARSET ) ) ; System . out . println ( new String ( bytes , ZIP_CHARSET ) ) ; } | Utility method for generating base 64 encoded strings . | 60 | 10 |
162,839 | public static void initSecret ( ServletContext ctx ) { if ( ctx == null ) { throw new NullPointerException ( "ServletContext ctx" ) ; } if ( log . isLoggable ( Level . FINE ) ) { log . fine ( "Storing SecretKey @ " + INIT_SECRET_KEY_CACHE ) ; } // Create and store SecretKey on application scope String cache = ctx . get... | Does nothing if the user has disabled the SecretKey cache . This is useful when dealing with a JCA provider whose SecretKey implementation is not thread safe . | 409 | 31 |
162,840 | private Map < String , String > getEnvironment ( ) { return AccessController . doPrivileged ( new PrivilegedAction < Map < String , String > > ( ) { @ Override public Map < String , String > run ( ) { return System . getenv ( ) ; } } ) ; } | Get the system environment variables in a doPrivileged block . | 62 | 12 |
162,841 | public String getDefaultParentForEntityInRealm ( String entType , String realmName ) throws WIMException { String defaultParent = getDefaultParent ( entType ) ; if ( realmName != null ) { validateRealmName ( realmName ) ; String parent = null ; RealmConfig realmConfig = getRealmConfig ( realmName ) ; Map defaultParents... | Gets the default parent node that is for the specified entity type in specified realm . | 160 | 17 |
162,842 | public String getDefaultParent ( String entityTypeName ) { SupportedEntityConfig entityConfig = entityTypeMap . get ( entityTypeName ) ; if ( entityConfig != null ) { return entityConfig . getDefaultParent ( ) ; } return null ; } | Returns the default parent for the given prefixed entity type . Entity types under WIM package should not have any name space prefix . For example Person . | 52 | 30 |
162,843 | private < T > boolean processMethod ( AnnotatedMethod < T > method , Class < ? > clazz , Asynchronous classLevelAsync ) { FTEnablementConfig config = FaultToleranceCDIComponent . getEnablementConfig ( ) ; Method javaMethod = method . getJavaMember ( ) ; if ( javaMethod . isBridge ( ) ) { // Skip all validation for brid... | Validate a method and return whether it has fault tolerance annotations which require us to add the FT interceptor | 711 | 21 |
162,844 | public static final void setServerName ( String name ) { if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "setServerName" , name ) ; // Store the server name. serverName = name ; } | Sets the name of the server . | 49 | 8 |
162,845 | public static final boolean isRecoverable ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "isRecoverable" ) ; // This JTS is recoverable if there is a server name. // boolean result = (serverName != null); // JTA2 - we are recoverable if we have a working log... // We can have a serverName but no working log eit... | Determines whether the JTS instance is recoverable . | 180 | 12 |
162,846 | public static final void setCurrentEpoch ( int number ) { if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "setCurrentEpoch" , number ) ; currentEpoch = number ; } | Sets the current epoch value for this server instance . | 46 | 11 |
162,847 | public static final void setApplId ( byte [ ] name ) { if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "setApplId" , name ) ; // Store the applId. applId = name ; } | Sets the applId of the server . | 53 | 9 |
162,848 | protected ConversionStatus convertCompatible ( String rawString , Class < ? > type ) { ConversionStatus status = new ConversionStatus ( ) ; for ( PriorityConverter con : converters . getAll ( ) ) { Type key = con . getType ( ) ; if ( key instanceof Class ) { Class < ? > clazz = ( Class < ? > ) key ; if ( type . isAssig... | Converts from String based on isAssignableFrom or instanceof | 182 | 14 |
162,849 | public < T > T [ ] convertArray ( String rawString , Class < T > arrayType ) { String [ ] elements = split ( rawString ) ; T [ ] array = convertArray ( elements , arrayType ) ; return array ; } | Apply convert across an array | 51 | 5 |
162,850 | public static Class toClass ( String type , ClassLoader loader ) throws ClassNotFoundException { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINER ) ) { logger . logp ( Level . FINER , CLASS_NAME , "toClass(String, ClassLoader)" , " type= [" + type + "] loader=... | PM12828 - need to account for a case where type is [ Lcom . ibm . sample . TagsAttr ; | 589 | 26 |
162,851 | @ Override public Facelet getFacelet ( URL url ) throws IOException , FaceletException , FacesException , ELException { return _faceletCache . getFacelet ( url ) ; } | Create a Facelet from the passed URL . This method checks if the cached Facelet needs to be refreshed before returning . If so uses the passed URL to build a new instance ; | 42 | 36 |
162,852 | private String _removeFirst ( String string , String toRemove ) { // do exactly what String.replaceFirst(toRemove, "") internally does, // except treating the search as literal text and not as regex return Pattern . compile ( toRemove , Pattern . LITERAL ) . matcher ( string ) . replaceFirst ( "" ) ; } | Removes the first appearance of toRemove in string . | 71 | 11 |
162,853 | @ Override public void discard ( ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "discard" ) ; } discarded = true ; if ( state == DESTROYED ) { return ; } setState ( DESTROYED ) ; destroyHandleList ( ) ; // Release any JCDI creatio... | 167937 - rewrote entire method . | 186 | 9 |
162,854 | @ Override public final void remove ( ) throws RemoteException , RemoveException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "remove" ) ; throw new InvalidBeanOStateException ( StateStrs [ state ] , "NONE" + ": Msg Bean remove not allowed" ) ; } | This method should never really get invoked for message driven beans there is no home interface on which to invoke it . | 81 | 22 |
162,855 | @ Override public int getIsolationLevel ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getIsolationLevel : " + currentIsolationLevel ) ; return currentIsolationLevel ; } | Get isolation level currently associated with this session bean instance . This is used for determining the isolation level to use in a bean managed transaction . | 60 | 27 |
162,856 | @ Override public synchronized UserTransaction getUserTransaction ( ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getUserTransaction" ) ; // Calling getUserTransaction is not allowed from setMessageDrivenContext // per the EJB Spe... | Get user transaction object bean can use to demarcate transactions | 234 | 12 |
162,857 | @ Override public EJBHome getEJBHome ( ) //d116376 { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getEJBHome" ) ; Tr . error ( tc , "METHOD_NOT_ALLOWED_CNTR0047E" , "MessageDrivenBeanO.getEJBHome()" ) ; throw new IllegalStateException ( "Method Not Allowed Exception: See... | getEJBHome - It is illegal to call this method message - driven bean methods because there is no EJBHome object for message - driven beans . | 123 | 31 |
162,858 | @ Override public EJBLocalHome getEJBLocalHome ( ) //d116376 { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getEJBLocalHome" ) ; Tr . error ( tc , "METHOD_NOT_ALLOWED_CNTR0047E" , "MessageDrivenBeanO.getEJBLocalHome()" ) ; throw new IllegalStateException ( "Method Not Al... | getEJBLocalHome - It is illegal to call this method message - driven bean methods because there is no EJBLocalHome object for message - driven beans . | 131 | 35 |
162,859 | synchronized void updateRegistration ( BundleContext ctx ) { if ( registration == null ) { registration = ctx . registerService ( KeystoreConfig . class , this , properties ) ; } else { registration . setProperties ( properties ) ; } } | Register this as a service in the service registry . Package private . | 53 | 13 |
162,860 | private String taskHelp ( SecurityUtilityTask task ) { StringBuffer taskUsage = new StringBuffer ( NL ) ; taskUsage . append ( task . getTaskHelp ( ) ) ; taskUsage . append ( NL ) ; return taskUsage . toString ( ) ; } | Constructs a string to represent the help for a particular task . | 56 | 13 |
162,861 | private Object getComponentProperty ( _PropertyDescriptorHolder propertyDescriptor ) { Method readMethod = propertyDescriptor . getReadMethod ( ) ; if ( readMethod == null ) { throw new IllegalArgumentException ( "Component property " + propertyDescriptor . getName ( ) + " is not readable" ) ; } try { return readMethod... | Execute the getter method of the specified property on the underlying component . | 155 | 15 |
162,862 | private void setComponentProperty ( _PropertyDescriptorHolder propertyDescriptor , Object value ) { Method writeMethod = propertyDescriptor . getWriteMethod ( ) ; if ( writeMethod == null ) { throw new IllegalArgumentException ( "Component property " + propertyDescriptor . getName ( ) + " is not writable" ) ; } try { w... | Execute the setter method of the specified property on the underlying component . | 196 | 15 |
162,863 | public EndpointInfo build ( EndpointInfoBuilderContext ctx , String serviceImplBeanClassName , EndpointType endpointType ) throws UnableToAdaptException { EndpointInfo endpointInfo = new EndpointInfo ( serviceImplBeanClassName , endpointType ) ; endpointInfo . setBeanName ( ( String ) ctx . getContextEnv ( JaxWsConstan... | build the endpointInfo | 207 | 4 |
162,864 | public void addSubscriber ( Handler handler ) { String handlerId = CollectorManagerUtils . getHandlerId ( handler ) ; //temporary exception for audit Source //must change later if ( source . getSourceName ( ) . trim ( ) . equals ( "audit" ) && subscribers . isEmpty ( ) ) { //First subscriber, assign a buffer. bufferMgr... | Method to add a subscriber to the source Source manager will allocate a buffer when the source has atleast one subscriber . | 241 | 24 |
162,865 | public boolean removeSubscriber ( Handler handler ) { String handlerId = CollectorManagerUtils . getHandlerId ( handler ) ; subscribers . remove ( handlerId ) ; /* * Inform the handler that this source/buffer will no longer be available: * Synchronous Handler: Remove the synchronous handler from the Buffer/Conduit's sy... | Method to remove a subscriber from the source Source manager deallocate BufferManager when last subscriber goes away | 272 | 20 |
162,866 | public void handleFfdc ( ) { if ( ! bFfdcAlready ) { com . ibm . ws . ffdc . FFDCFilter . processException ( this , "com.ibm.websphere.security.jwt.JwtTokenException" , "155" , this ) ; bFfdcAlready = true ; } } | in case we need to do the ffdc | 78 | 10 |
162,867 | private List < String > toListOfStrings ( String headerName , List < Object > values ) { if ( values == null ) { return null ; } List < String > stringValues = new ArrayList <> ( values . size ( ) ) ; HeaderDelegate < Object > hd = HttpUtils . getHeaderDelegate ( values . get ( 0 ) ) ; for ( Object value : values ) { S... | This conversion is needed as some values may not be Strings | 128 | 12 |
162,868 | public < T > T doReadEntity ( Class < T > cls , Type t , Annotation [ ] anns ) throws ProcessingException , IllegalStateException { return doReadEntity ( cls , t , anns , false ) ; } | convenience method for classes that have not been overwritten with liberty - specific changes | 51 | 17 |
162,869 | public static String read ( Container container , String ddPath ) { if ( container == null || ddPath == null ) { return "" ; } Entry entry = container . getEntry ( ddPath ) ; if ( entry == null ) { throw new IllegalStateException ( ddPath ) ; } InputStream input ; try { input = entry . adapt ( InputStream . class ) ; }... | Read a deployment descriptor into a string . | 390 | 8 |
162,870 | public void audit ( String key , Object ... params ) { Tr . audit ( tc , key , params ) ; } | Log an audit message . | 24 | 5 |
162,871 | public String formatMessage ( String key , Object ... params ) { return Tr . formatMessage ( tc , key , params ) ; } | Format a message . | 27 | 4 |
162,872 | public void info ( String key , Object ... params ) { Tr . info ( tc , key , params ) ; } | Log an informational message . | 24 | 5 |
162,873 | @ Override final public Object getConnection ( final Subject requestSubject , final ConnectionRequestInfo requestInfo ) throws ResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "getConnection" , new Object [ ] { subjectToString ( requestSu... | Creates a session handle to this managed connection . The request information will by now contain a connection handle . This is passed along with this managed connection on the construction of the new session . | 512 | 37 |
162,874 | @ Override final public void destroy ( ) throws ResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "destroy" ) ; } // Invalidate all of the sessions for ( final Iterator iterator = _sessions . iterator ( ) ; iterator . hasNext ( ) ; ) { fin... | Destroys this managed connection . Called when a connection error has occurred or the managed connection has timed out in the free pool . Marks any associated sessions as invalid . Closes the associated core connection . | 540 | 40 |
162,875 | @ Override final public void cleanup ( ) throws ResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "cleanup" ) ; } // Invalidate all of the sessions for ( final Iterator iterator = _sessions . iterator ( ) ; iterator . hasNext ( ) ; ) { fin... | Cleans up this managed connection so that it can be returned to the free pool . Any sessions that are still associated should be invalidated . | 177 | 28 |
162,876 | @ Override final public void associateConnection ( Object object ) throws ResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "associateConnection" , object ) ; } if ( object instanceof JmsJcaSessionImpl ) { final JmsJcaSessionImpl session =... | Associates the given session with this managed connection . Removes the session from its previous managed connection if any and adds it to the set for this connection . Sets this managed connection on the session . | 239 | 40 |
162,877 | final void disassociateSession ( final JmsJcaSessionImpl session ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "disassociateSession" , session ) ; } _sessions . remove ( session ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabl... | Dissassociates the given session from this managed connection . | 115 | 13 |
162,878 | @ Override final public void addConnectionEventListener ( final ConnectionEventListener listener ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "addConnectionEventListener" , listener ) ; } synchronized ( _connectionListeners ) { _connectionListeners .... | Adds a connection event listener . | 126 | 6 |
162,879 | @ Override final public ManagedConnectionMetaData getMetaData ( ) throws ResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "getMetaData" ) ; } if ( _metaData == null ) { _metaData = new JmsJcaManagedConnectionMetaData ( ) ; } if ( TraceCom... | Returns the meta data information for this Jetstream connection . | 140 | 11 |
162,880 | @ Override final public void dissociateConnections ( ) throws ResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( TRACE , "dissociateConnections" ) ; } // Dissociate sessions for ( final Iterator iterator = _sessions . iterator ( ) ; iterator . hasNext ( )... | Dissociates any sessions currently associated with this managed connection . | 179 | 13 |
162,881 | final void localTransactionStarted ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "localTransactionStarted" ) ; } final ConnectionEvent event = new ConnectionEvent ( this , ConnectionEvent . LOCAL_TRANSACTION_STARTED ) ; // Copy list to protect again... | Called to indicate that the session associated with this managed connection has begun a local transaction . Notifies the connection event listeners . | 228 | 25 |
162,882 | Key getSigningKey ( JwtConsumerConfig config , JwtContext jwtContext , Map properties ) throws KeyException { Key signingKey = null ; if ( config == null ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "JWT consumer config object is null" ) ; } return null ; } signingKey = getSigningKeyBasedOnSignatureAlgorithm ... | Get the appropriate signing key based on the signature algorithm specified in the config . | 138 | 15 |
162,883 | Key getSharedSecretKey ( JwtConsumerConfig config ) throws KeyException { if ( config == null ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "JWT consumer config object is null" ) ; } return null ; } String sharedKey = config . getSharedKey ( ) ; return createKeyFromSharedKey ( sharedKey ) ; } | Creates a Key object from the shared key specified in the provided configuration . | 83 | 15 |
162,884 | Key getPublicKey ( String trustedAlias , String trustStoreRef , String signatureAlgorithm ) throws KeyStoreServiceException , KeyException { Key signingKey = getPublicKeyFromKeystore ( trustedAlias , trustStoreRef , signatureAlgorithm ) ; if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Trusted alias: " + trustedAli... | Creates a Key object from the certificate stored in the trust store and alias provided . | 147 | 17 |
162,885 | void validateSignatureAlgorithmWithKey ( JwtConsumerConfig config , Key key ) throws InvalidClaimException { String signatureAlgorithm = config . getSignatureAlgorithm ( ) ; if ( key == null && signatureAlgorithm != null && ! signatureAlgorithm . equalsIgnoreCase ( "none" ) ) { String msg = Tr . formatMessage ( tc , "J... | Throws an exception if the provided key is null but the config specifies a signature algorithm other than none . | 109 | 21 |
162,886 | boolean validateIssuer ( String consumerConfigId , String issuers , String tokenIssuer ) throws InvalidClaimException { boolean isIssuer = false ; if ( issuers == null || issuers . isEmpty ( ) ) { String msg = Tr . formatMessage ( tc , "JWT_TRUSTED_ISSUERS_NULL" , new Object [ ] { tokenIssuer , consumerConfigId } ) ; t... | Verifies that tokenIssuer is one of the values specified in the comma - separated issuers string . | 279 | 21 |
162,887 | boolean validateAudience ( List < String > allowedAudiences , List < String > audiences ) { boolean valid = false ; if ( allowedAudiences != null && allowedAudiences . contains ( Constants . ALL_AUDIENCES ) ) { return true ; } if ( allowedAudiences != null && audiences != null ) { for ( String audience : audiences ) { ... | Verifies that at least one of the values specified in audiences is contained in the allowedAudiences list . | 141 | 21 |
162,888 | public void readExternal ( ObjectInput in ) throws IOException , ClassNotFoundException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "readExternal" ) ; try { // read magic short magic = in . readShort ( ) ; short majorVersion = in . readShort ( ) ; short minorVersion = ... | readExternal is called by Java serialization when readObject is called on an ObjectInputStream for an object of class BeanId . It must read the values in the same sequence and with the same types as written by writeExternal . | 472 | 46 |
162,889 | private Serializable readExternalPKey ( ObjectInput in , byte [ ] j2eeNameBytes ) throws java . io . IOException , ClassNotFoundException { int pkeyLength = in . readInt ( ) ; byte [ ] pkeyBytes = new byte [ pkeyLength ] ; //d164415 start int bytesRead = 0 ; for ( int offset = 0 ; offset < pkeyLength ; offset += bytesR... | Private helper method for readExternal - reads the Serialized primary key . | 469 | 14 |
162,890 | public void writeExternal ( ObjectOutput out ) throws IOException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "writeExternal" ) ; try { // write magic out . writeShort ( EXTERNAL_MAGIC ) ; out . writeShort ( MAJOR_VERSION ) ; out . writeShort ( MINOR_VERSION ) ; // wri... | writeExternal is called by Java serialization when writeObject is called on an ObjectOutputStream for an object of class BeanId . | 208 | 26 |
162,891 | private void writeExternalPKey ( ObjectOutput out ) throws java . io . IOException { // write the serialized primary key - can't mix eternaized stream // and writeObject so convert to bytes... ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; ObjectOutputStream pkeyStream = new ObjectOutputStream ( baos ) ; ... | Private helper method for writeExternal - writes the primary key | 140 | 11 |
162,892 | public static UIComponent getCompositeComponentParent ( UIComponent component ) { if ( component == null ) { return null ; } UIComponent parent = component ; do { parent = parent . getParent ( ) ; if ( parent != null && UIComponent . isCompositeComponent ( parent ) ) { return parent ; } } while ( parent != null ) ; ret... | search for the nearest parent composite component if no parent is found it has to return null! | 87 | 18 |
162,893 | protected StateHelper getStateHelper ( boolean create ) { if ( _stateHelper != null ) { return _stateHelper ; } if ( create ) { _stateHelper = new _DeltaStateHelper ( this ) ; } return _stateHelper ; } | returns a delta state saving enabled state helper for the current component | 51 | 13 |
162,894 | private static Boolean _getHonorCurrentComponentAttributes ( FacesContext facesContext ) { // performance note: we cache value in facesContext.attributes because // 1) methods pushComponentToEL, popComponentFromEl, getCurrentComponent a getCurrentCompositeComponent // can use that value // 2) getExternalContext().getIn... | Gets value of javax . faces . HONOR_CURRENT_COMPONENT_ATTRIBUTES parameter cached in facesContext . attributes or resolves that param and caches its value in facesContext . attributes . | 271 | 48 |
162,895 | @ Override public void processPartial ( PhaseId phaseId ) { assertNotReleased ( ) ; UIViewRoot viewRoot = _facesContext . getViewRoot ( ) ; if ( phaseId == PhaseId . APPLY_REQUEST_VALUES || phaseId == PhaseId . PROCESS_VALIDATIONS || phaseId == PhaseId . UPDATE_MODEL_VALUES ) { processPartialExecute ( viewRoot , phaseI... | process the partial response allowed phase ids according to the spec | 133 | 12 |
162,896 | public static Locale localeForString ( String localeString ) { if ( localeString == null || localeString . isEmpty ( ) ) { return null ; } Locale locale ; String [ ] localeParts = localeString . split ( "_" ) ; switch ( localeParts . length ) { case 1 : locale = new Locale ( localeParts [ 0 ] ) ; break ; case 2 : local... | Creates a locale based on a String of the form language_country_variant either of the last two parts can be omitted . | 214 | 27 |
162,897 | public Iterable < ServerInstanceLogRecordList > getLogLists ( RepositoryPointer after , LogQueryBean query ) throws LogRepositoryException { logger . entering ( thisClass , "getLogLists" , new Object [ ] { after , query } ) ; RemoteAllResults lists = readLogLists ( query , after ) ; ArrayList < ServerInstanceLogRecordL... | returns log records from the repository that are beyond a given repository location according to the criteria specified by the log query bean . | 177 | 25 |
162,898 | private void validatePossibleEndpoint ( String possibleEndpoint ) throws IllegalArgumentException { if ( ! possibleEndpoint . contains ( ":" ) ) { throw new IllegalArgumentException ( RESTClientMessagesUtil . getMessage ( RESTClientMessagesUtil . INVALID_ENDPOINT , possibleEndpoint ) ) ; } String [ ] components = possi... | Validate the possible endpoint String . | 200 | 7 |
162,899 | private Set < String > validatePathAndRetrievePathParams ( ValidationHelper helper , Context context , String pathStr ) { String pathToCheck = pathStr ; Set < String > pathParameters = new HashSet < String > ( ) ; while ( pathToCheck . contains ( "{" ) ) { if ( ! pathToCheck . contains ( "}" ) ) { final String message ... | Validate the path and extract path parameters | 442 | 8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.