idx
int64
0
41.2k
question
stringlengths
73
5.81k
target
stringlengths
5
918
24,300
private void writeFixedFields ( long millis , Level level , int threadId , long seq , DataOutput writer ) throws IOException { writer . writeLong ( millis ) ; long seqNumber ; synchronized ( BinaryLogRecordSerializerImpl . class ) { seqNumber = counter ++ ; } writer . writeLong ( seqNumber ) ; writer . writeShort ( level . intValue ( ) ) ; writer . writeInt ( threadId ) ; writer . writeLong ( seq ) ; }
sequence number of message .
24,301
public Object saveState ( FacesContext context ) { Map serializableMap = ( isInitialStateMarked ( ) ) ? _deltas : _fullState ; if ( _initialState != null && _deltas != null && ! _deltas . isEmpty ( ) && isInitialStateMarked ( ) ) { for ( int i = 0 ; i < _initialState . length ; i += 2 ) { Serializable key = ( Serializable ) _initialState [ i ] ; Object defaultValue = _initialState [ i + 1 ] ; if ( _deltas . containsKey ( key ) ) { Object deltaValue = _deltas . get ( key ) ; if ( deltaValue == null && defaultValue == null ) { _deltas . remove ( key ) ; if ( _deltas . isEmpty ( ) ) { break ; } } if ( deltaValue != null && deltaValue . equals ( defaultValue ) ) { _deltas . remove ( key ) ; if ( _deltas . isEmpty ( ) ) { break ; } } } } } if ( serializableMap == null || serializableMap . size ( ) == 0 ) { return null ; } Map . Entry < Serializable , Object > entry ; Object [ ] retArr = new Object [ serializableMap . entrySet ( ) . size ( ) * 2 ] ; Iterator < Map . Entry < Serializable , Object > > it = serializableMap . entrySet ( ) . iterator ( ) ; int cnt = 0 ; while ( it . hasNext ( ) ) { entry = it . next ( ) ; retArr [ cnt ] = entry . getKey ( ) ; Object value = entry . getValue ( ) ; if ( value instanceof StateHolder || value instanceof List || ! ( value instanceof Serializable ) ) { Object savedValue = UIComponentBase . saveAttachedState ( context , value ) ; retArr [ cnt + 1 ] = savedValue ; } else { retArr [ cnt + 1 ] = value ; } cnt += 2 ; } return retArr ; }
Serializing cod the serialized data structure consists of key value pairs unless the value itself is an internal array or a map in case of an internal array or map the value itself is another array with its initial value myfaces . InternalArray myfaces . internalMap
24,302
protected void invokeCallback ( ICompletionListener listener , AbstractAsyncFuture future , Object userState ) { try { ExecutorService executorService = CHFWBundle . getExecutorService ( ) ; if ( null == executorService ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Unable to schedule callback, using this thread" ) ; } listener . futureCompleted ( future , userState ) ; } else { if ( null == this . myCallback ) { this . myCallback = new WorkCallback ( listener , userState ) ; } else { this . myCallback . myListener = listener ; this . myCallback . myState = userState ; } executorService . execute ( this . myCallback ) ; } } catch ( Throwable problem ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Error invoking callback, exception: " + problem + " : " + problem . getMessage ( ) ) ; } FFDCFilter . processException ( problem , getClass ( ) . getName ( ) + ".invokeCallback" , "182" , this ) ; } }
Runs a callback on the given listener safely . We cannot allow misbehaved application callback code to spoil the notification of subsequent listeners or other tidy - up work so the callbacks have to be tightly wrappered in an exception hander that ignores the error and continues with the next callback . This could lead to creative problems in the app code so callbacks must be written carefully .
24,303
public void waitForCompletion ( ) throws InterruptedException { try { waitForCompletion ( 0L ) ; } catch ( AsyncTimeoutException ate ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Unexpected timeout on blocking wait call, exception: " + ate . getMessage ( ) ) ; } FFDCFilter . processException ( ate , getClass ( ) . getName ( ) + ".waitForCompletion" , "268" , this ) ; InterruptedException ie = new InterruptedException ( "Unexpected timeout" ) ; ie . initCause ( ate ) ; throw ie ; } }
Blocks the calling thread indefinitely until the AsyncFuture has completed . If the AsyncFuture has already compeleted the method returns immediately .
24,304
public void waitForCompletion ( long timeout ) throws AsyncTimeoutException , InterruptedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "waitForCompletion: " + timeout ) ; } if ( this . fullyCompleted ) { return ; } synchronized ( this . completedSemaphore ) { if ( this . completed ) { return ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "waiting for completion notification for future: " + this ) ; } this . completedSemaphore . wait ( timeout ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "done waiting for completion notification for future: " + this ) ; } } if ( this . fullyCompleted ) { return ; } synchronized ( this . completedSemaphore ) { if ( ! this . completed ) { this . completed = true ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Sync operation timed out" ) ; } throw new AsyncTimeoutException ( ) ; } } }
Blocks the calling thread until either the Future has completed or the timeout period has expired . The timeout period is set in milliseconds .
24,305
public void resetFuture ( ) { this . reuseCount ++ ; if ( getTimeoutWorkItem ( ) != null ) { getTimeoutWorkItem ( ) . state = TimerWorkItem . ENTRY_CANCELLED ; } setTimeoutWorkItem ( null ) ; this . completed = false ; this . fullyCompleted = false ; this . exception = null ; this . firstListener = null ; this . firstListenerState = null ; }
Reset this future object back to the default values .
24,306
public static boolean isFloatNoExponent ( String str ) { int len = str . length ( ) ; if ( len == 0 ) { return false ; } char c = str . charAt ( 0 ) ; int i = ( ( c == '-' ) || ( c == '+' ) ) ? 1 : 0 ; if ( i >= len ) { return false ; } boolean decimalPointFound = false ; do { c = str . charAt ( i ) ; if ( c == '.' ) { if ( decimalPointFound ) { return false ; } decimalPointFound = true ; } else if ( ! Character . isDigit ( c ) ) { return false ; } i ++ ; } while ( i < len ) ; return true ; }
Checks that the string represents a floating point number that CANNOT be in exponential notation
24,307
public static String [ ] splitLongString ( String str , char separator ) { int len = ( str == null ) ? 0 : str . length ( ) ; if ( str == null || len == 0 ) { return ArrayUtils . EMPTY_STRING_ARRAY ; } int oldPos = 0 ; ArrayList list = new ArrayList ( ) ; int pos = str . indexOf ( separator ) ; while ( pos >= 0 ) { list . add ( substring ( str , oldPos , pos ) ) ; oldPos = ( pos + 1 ) ; pos = str . indexOf ( separator , oldPos ) ; } list . add ( substring ( str , oldPos , len ) ) ; return ( String [ ] ) list . toArray ( ArrayUtils . EMPTY_STRING_ARRAY ) ; }
Split a string into an array of strings arround a character separator . This function will be efficient for longer strings
24,308
public static String [ ] splitShortString ( String str , char separator ) { int len = ( str == null ) ? 0 : str . length ( ) ; if ( str == null || len == 0 ) { return org . apache . myfaces . shared . util . ArrayUtils . EMPTY_STRING_ARRAY ; } int lastTokenIndex = 0 ; for ( int pos = str . indexOf ( separator ) ; pos >= 0 ; pos = str . indexOf ( separator , pos + 1 ) ) { lastTokenIndex ++ ; } String [ ] list = new String [ lastTokenIndex + 1 ] ; int oldPos = 0 ; int pos = str . indexOf ( separator ) ; int i = 0 ; while ( pos >= 0 ) { list [ i ++ ] = substring ( str , oldPos , pos ) ; oldPos = ( pos + 1 ) ; pos = str . indexOf ( separator , oldPos ) ; } list [ lastTokenIndex ] = substring ( str , oldPos , len ) ; return list ; }
Split a string into an array of strings arround a character separator . This function will be efficient for short strings for longer strings another approach may be better
24,309
public static int minIndex ( int a , int b ) { return ( a < 0 ) ? b : ( b < 0 ) ? a : ( a < b ) ? a : b ; }
Returns the minimum index > = 0 if any
24,310
public void setDispatchMode ( int [ ] dispatchModeInts ) { dispatchMode = new DispatcherType [ dispatchModeInts . length ] ; for ( int i = 0 ; i < dispatchModeInts . length ; i ++ ) { int dispatchModeCur = dispatchModeInts [ i ] ; switch ( dispatchModeCur ) { case 0 : dispatchMode [ i ] = DispatcherType . REQUEST ; break ; case 1 : dispatchMode [ i ] = DispatcherType . FORWARD ; break ; case 2 : dispatchMode [ i ] = DispatcherType . INCLUDE ; break ; case 3 : dispatchMode [ i ] = DispatcherType . ERROR ; break ; default : dispatchMode [ i ] = DispatcherType . REQUEST ; break ; } } }
public static final int FILTER_ERROR = 3 ;
24,311
private ExtendedAttributeDefinition getAttributeDefinition ( RegistryEntry registryEntry , String attributeName ) { if ( registryEntry == null ) { return null ; } ExtendedObjectClassDefinition definition = registryEntry . getObjectClassDefinition ( ) ; if ( definition == null ) { return null ; } Map < String , ExtendedAttributeDefinition > attributeMap = definition . getAttributeMap ( ) ; ExtendedAttributeDefinition attributeDefinition = attributeMap . get ( attributeName ) ; return attributeDefinition ; }
Answer the definition of an attribute . Answer null if a definition is not available .
24,312
protected Map < String , ConfigElementList > generateConflictMap ( List < ? extends ConfigElement > list ) { return generateConflictMap ( null , list ) ; }
Look for conflicts between single - valued attributes . No metatype registry entry is available .
24,313
protected Map < String , ConfigElementList > generateConflictMap ( RegistryEntry registryEntry , List < ? extends ConfigElement > list ) { if ( list . size ( ) <= 1 ) { return Collections . emptyMap ( ) ; } boolean foundConflict = false ; Map < String , ConfigElementList > conflictMap = new HashMap < String , ConfigElementList > ( ) ; for ( ConfigElement element : list ) { for ( Map . Entry < String , Object > entry : element . getAttributes ( ) . entrySet ( ) ) { String attributeName = entry . getKey ( ) ; Object attributeValue = entry . getValue ( ) ; if ( ! ( attributeValue instanceof String ) ) { continue ; } ConfigElementList configList = conflictMap . get ( attributeName ) ; if ( configList == null ) { configList = new ConfigElementList ( attributeName ) ; conflictMap . put ( attributeName , configList ) ; } if ( configList . add ( element ) ) { foundConflict = true ; } } } if ( ! foundConflict ) { return Collections . emptyMap ( ) ; } else { return conflictMap ; } }
Look for conflicts between single - valued attributes of a list of configuration elements .
24,314
private String generateCollisionMessage ( String pid , ConfigID id , RegistryEntry registryEntry , Map < String , ConfigElementList > conflictMap ) { StringBuilder builder = new StringBuilder ( ) ; if ( id == null ) { builder . append ( Tr . formatMessage ( tc , "config.validator.foundConflictSingleton" , pid ) ) ; } else { builder . append ( Tr . formatMessage ( tc , "config.validator.foundConflictInstance" , pid , id . getId ( ) ) ) ; } builder . append ( LINE_SEPARATOR ) ; for ( Map . Entry < String , ConfigElementList > entry : conflictMap . entrySet ( ) ) { String attributeName = entry . getKey ( ) ; ConfigElementList configList = entry . getValue ( ) ; boolean secureAttribute = isSecureAttribute ( registryEntry , attributeName ) ; if ( configList . hasConflict ( ) ) { builder . append ( " " ) ; builder . append ( Tr . formatMessage ( tc , "config.validator.attributeConflict" , attributeName ) ) ; builder . append ( LINE_SEPARATOR ) ; for ( ConfigElement element : configList ) { Object value = element . getAttribute ( attributeName ) ; String docLocation = element . getDocumentLocation ( ) ; builder . append ( " " ) ; if ( secureAttribute ) { builder . append ( Tr . formatMessage ( tc , "config.validator.valueConflictSecure" , docLocation ) ) ; } else if ( value == null || value . equals ( "" ) ) { builder . append ( Tr . formatMessage ( tc , "config.validator.valueConflictNull" , docLocation ) ) ; } else { builder . append ( Tr . formatMessage ( tc , "config.validator.valueConflict" , value , docLocation ) ) ; } builder . append ( LINE_SEPARATOR ) ; } builder . append ( " " ) ; Object activeValue = configList . getActiveValue ( ) ; if ( secureAttribute ) { String activeLoc = configList . getActiveElement ( ) . getMergedLocation ( ) ; builder . append ( Tr . formatMessage ( tc , "config.validator.activeValueSecure" , attributeName , activeLoc ) ) ; } else if ( activeValue == null || activeValue . equals ( "" ) ) { builder . append ( Tr . formatMessage ( tc , "config.validator.activeValueNull" , attributeName ) ) ; } else { builder . append ( Tr . formatMessage ( tc , "config.validator.activeValue" , attributeName , activeValue ) ) ; } builder . append ( LINE_SEPARATOR ) ; } } return builder . toString ( ) ; }
Emit a message for all detected conflicting elements .
24,315
public List < Interceptor < ? > > getInterceptors ( J2EEName ejbJ2EEName , Method method , InterceptionType interceptionType ) { List < Interceptor < ? > > interceptors = new ArrayList < Interceptor < ? > > ( ) ; InterceptorBindings ejbInterceptors = allInterceptors . get ( ejbJ2EEName ) ; if ( ejbInterceptors != null ) { org . jboss . weld . interceptor . spi . model . InterceptionType internalInterceptionType = org . jboss . weld . interceptor . spi . model . InterceptionType . valueOf ( interceptionType . name ( ) ) ; if ( internalInterceptionType . isLifecycleCallback ( ) ) { List < Interceptor < ? > > lifecycleInterceptors = ejbInterceptors . getLifecycleInterceptors ( interceptionType ) ; interceptors . addAll ( lifecycleInterceptors ) ; } else { List < Interceptor < ? > > methodInterceptors = ejbInterceptors . getMethodInterceptors ( interceptionType , method ) ; interceptors . addAll ( methodInterceptors ) ; } } return interceptors ; }
Find all the interceptors of a given type for a given method on an ejb
24,316
public void start ( ExecutorService executorService , Callable < Future < R > > innerTask , ThreadContextDescriptor threadContext ) { synchronized ( this ) { this . innerTask = innerTask ; this . threadContext = threadContext ; this . resultFuture = new CompletableFuture < Future < R > > ( ) ; this . taskFuture = executorService . submit ( this ) ; } }
Submit this task for execution by the given executor service .
24,317
void addField ( final String name , final Object value ) throws IllegalStateException { checkNotCompleted ( ) ; _buffer . append ( " <" ) ; _buffer . append ( name ) ; _buffer . append ( "=" ) ; _buffer . append ( value ) ; _buffer . append ( ">" ) ; }
Adds a string representation of the given object field .
24,318
void addField ( final String name , final boolean value ) throws IllegalStateException { addField ( name , Boolean . toString ( value ) ) ; }
Adds a string representation of the given boolean field .
24,319
void addPasswordField ( final String name , final String value ) throws IllegalStateException { addField ( name , ( value == null ) ? null : "*****" ) ; }
Adds a string representation of the given password field .
24,320
void addField ( final String name , final long value ) throws IllegalStateException { addField ( name , Long . toString ( value ) ) ; }
Adds a string representation of the given long field .
24,321
private void addObjectIdentity ( final Object object ) { if ( object == null ) { _buffer . append ( "null" ) ; } else { _buffer . append ( object . getClass ( ) . getName ( ) ) ; _buffer . append ( "@" ) ; _buffer . append ( Integer . toHexString ( System . identityHashCode ( object ) ) ) ; } }
Adds a string identifying the given object to the buffer .
24,322
public void addIntegrationProperties ( String xmlSchemaVersion , Map < String , Object > integrationProperties ) { for ( JPAEMFPropertyProvider propProvider : propProviderSRs . services ( ) ) { propProvider . updateProperties ( integrationProperties ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "addIntegrationProperties " + propProvider + " props: {0}" , integrationProperties ) ; } } }
F743 - 12524
24,323
private static synchronized LogRecordHandler getBinaryHandler ( ) { if ( binaryHandler == null ) { binaryHandler = new LogRecordHandler ( TRACE_THRESHOLD , LogRepositoryManagerImpl . KNOWN_FORMATTERS [ 0 ] ) ; } return binaryHandler ; }
16890 . 20771
24,324
public static boolean removeFiles ( String destinationType ) { LogRepositoryManager destManager = getManager ( destinationType ) ; if ( destManager instanceof LogRepositoryManagerImpl ) return destManager . purgeOldFiles ( ) ; else return false ; }
remove files from appropriate destination . Called by receiver of interProcess communication on parent process
24,325
public static String addRemoteProcessFile ( String destinationType , long spTimeStamp , String spPid , String spLabel ) { LogRepositoryManager destManager = getManager ( destinationType ) ; String subProcessFileName = null ; if ( destManager instanceof LogRepositoryManagerImpl ) subProcessFileName = ( ( LogRepositoryManagerImpl ) destManager ) . addNewFileFromSubProcess ( spTimeStamp , spPid , spLabel ) ; return subProcessFileName ; }
add a remote file to the cache of files currently considered for retention on the parent . The child process uses some form of interProcessCommunication to notify receiver of file creation and this method is driven
24,326
public static void inactivateSubProcess ( String spPid ) { LogRepositoryManager destManager = getManager ( LogRepositoryBaseImpl . TRACETYPE ) ; ( ( LogRepositoryManagerImpl ) destManager ) . inactivateSubProcess ( spPid ) ; destManager = getManager ( LogRepositoryBaseImpl . LOGTYPE ) ; ( ( LogRepositoryManagerImpl ) destManager ) . inactivateSubProcess ( spPid ) ; }
process notification that child process has exited .
24,327
public static synchronized void setLogDirectoryDestination ( String location , boolean enablePurgeBySize , boolean enablePurgeByTime , boolean enableFileSwitch , boolean enableBuffering , long maxRepositorySize , long retentionTime , int fileSwitchHour , String outOfSpaceAction ) { LOG_DESTINATION_CHANGER . setDirectoryDestination ( location , enablePurgeBySize , enablePurgeByTime , enableFileSwitch , enableBuffering , maxRepositorySize , retentionTime , fileSwitchHour , outOfSpaceAction , LogRepositoryBaseImpl . LOGTYPE ) ; }
Sets directory destination for log messages .
24,328
public static synchronized void setTraceDirectoryDestination ( String location , boolean enablePurgeBySize , boolean enablePurgeByTime , boolean enableFileSwitch , boolean enableBuffering , long maxRepositorySize , long retentionTime , int fileSwitchHour , String outOfSpaceAction ) { TRACE_DESTINATION_CHANGER . setDirectoryDestination ( location , enablePurgeBySize , enablePurgeByTime , enableFileSwitch , enableBuffering , maxRepositorySize , retentionTime , fileSwitchHour , outOfSpaceAction , LogRepositoryBaseImpl . TRACETYPE ) ; }
Sets directory destination for trace messages .
24,329
public static synchronized void setTraceMemoryDestination ( String location , long maxSize ) { LogRepositoryWriter old = getBinaryHandler ( ) . getTraceWriter ( ) ; LogRepositoryWriterCBuffImpl writer ; if ( location == null && old instanceof LogRepositoryWriterCBuffImpl ) { writer = ( LogRepositoryWriterCBuffImpl ) old ; } else { LogRepositoryManager manager = null ; if ( location == null && old != null ) { manager = old . getLogRepositoryManager ( ) ; } else if ( location != null ) { if ( svSuperPid != null ) manager = new LogRepositorySubManagerImpl ( new File ( location , LogRepositoryManagerImpl . TRACE_LOCATION ) , svPid , svLabel , svSuperPid ) ; else manager = new LogRepositoryManagerImpl ( new File ( location , LogRepositoryManagerImpl . TRACE_LOCATION ) , svPid , svLabel , true ) ; } if ( manager == null ) { throw new IllegalArgumentException ( "Argument 'location' can't be null if log writer was not setup by this class." ) ; } writer = new LogRepositoryWriterCBuffImpl ( new LogRepositoryWriterImpl ( manager ) ) ; } if ( maxSize > 0 ) { ( ( LogRepositoryWriterCBuffImpl ) writer ) . setMaxSize ( maxSize ) ; } else { if ( old != writer ) { writer . stop ( ) ; } throw new IllegalArgumentException ( "Argument 'maxSize' should be more than zero" ) ; } if ( old != null ) { LogRepositoryManager oldManager = old . getLogRepositoryManager ( ) ; if ( oldManager != null && oldManager != writer . getLogRepositoryManager ( ) ) { if ( old != writer ) { old . stop ( ) ; } oldManager . stop ( ) ; } } getBinaryHandler ( ) . setTraceWriter ( writer ) ; }
Sets memory destination for trace messages .
24,330
public static synchronized void dumpTraceMemory ( ) { LogRepositoryWriter writer = getBinaryHandler ( ) . getTraceWriter ( ) ; if ( writer instanceof LogRepositoryWriterCBuffImpl ) { ( ( LogRepositoryWriterCBuffImpl ) writer ) . dumpItems ( ) ; } }
Dumps trace records stored in the memory buffer to disk . This action happens only if trace destination was set to memory .
24,331
public static synchronized void setTextDestination ( String location , boolean enablePurgeBySize , boolean enablePurgeByTime , boolean enableFileSwitch , boolean enableBuffering , long maxRepositorySize , long retentionTime , int fileSwitchHour , String outOfSpaceAction , String outputFormat , boolean includeTrace ) { if ( svSuperPid != null ) { return ; } if ( location == null && textHandler == null ) { throw new IllegalArgumentException ( "Argument 'location' can't be null if text logging is not enabled." ) ; } HpelFormatter . getFormatter ( outputFormat ) ; boolean addedHere = false ; if ( textHandler == null ) { textHandler = new LogRecordTextHandler ( TRACE_THRESHOLD ) ; Logger . getLogger ( "" ) . addHandler ( textHandler ) ; addedHere = true ; } try { TEXT_DESTINATION_CHANGER . setDirectoryDestination ( location , enablePurgeBySize , enablePurgeByTime , enableFileSwitch , enableBuffering , maxRepositorySize , retentionTime , fileSwitchHour , outOfSpaceAction , LogRepositoryBaseImpl . TEXTLOGTYPE ) ; } catch ( RuntimeException ex ) { if ( addedHere ) { disableTextDestination ( ) ; } throw ex ; } textHandler . setFormat ( outputFormat ) ; textHandler . setIncludeTrace ( includeTrace ) ; }
Sets directory destination for text logging .
24,332
public static synchronized void disableTextDestination ( ) { if ( textHandler != null ) { Logger . getLogger ( "" ) . removeHandler ( textHandler ) ; textHandler . stop ( ) ; textHandler = null ; } }
Disable text logging .
24,333
public static void setProcessInfo ( String pid , String label , String superPid ) { svPid = pid ; svLabel = label ; svSuperPid = superPid ; }
identify whether this is a logical subProcess of another process or not
24,334
public String [ ] getEnabledCipherSuites ( SSLEngine sslEngine ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "getEnabledCipherSuites" ) ; } String ciphers [ ] = null ; Object ciphersObject = this . myConfig . get ( Constants . SSLPROP_ENABLED_CIPHERS ) ; if ( null == ciphersObject ) { String securityLevel = this . myConfig . getProperty ( Constants . SSLPROP_SECURITY_LEVEL ) ; if ( null == securityLevel ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Defaulting to HIGH security level" ) ; } securityLevel = Constants . SECURITY_LEVEL_HIGH ; } ciphers = Constants . adjustSupportedCiphersToSecurityLevel ( sslEngine . getSupportedCipherSuites ( ) , securityLevel ) ; } else { if ( ciphersObject instanceof String ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "enabledCipherSuites is a String: " + ciphersObject ) ; } ciphers = ( ( String ) ciphersObject ) . split ( "\\s" ) ; } else if ( ciphersObject instanceof String [ ] ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "enabledCipherSuites is a String array" ) ; } ciphers = ( String [ ] ) ciphersObject ; } else { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Invalid object for enabledCipherSuites: " + ciphersObject ) ; } } } if ( null == ciphers || 0 == ciphers . length ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Unable to find any enabled ciphers" ) ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . exit ( tc , "getEnabledCipherSuites" ) ; } return ciphers ; }
Query the list of enabled cipher suites for this connection .
24,335
public String getSSLProtocol ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "getSSLProtocol" ) ; } String protocol = ( String ) this . myConfig . get ( Constants . SSLPROP_PROTOCOL ) ; if ( protocol . equals ( Constants . PROTOCOL_SSL ) || protocol . equals ( Constants . PROTOCOL_TLS ) ) protocol = null ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . exit ( tc , "getSSLProtocol " + protocol ) ; } return protocol ; }
Query the SSL Protocol for this connection .
24,336
private void generatePom ( LibertyFeature feature , List < MavenCoordinates > featureCompileDependencies , Map < String , LibertyFeature > allFeatures , File outputDir , Constants . ArtifactType type ) throws MavenRepoGeneratorException { MavenCoordinates coordinates = feature . getMavenCoordinates ( ) ; Model model = new Model ( ) ; model . setModelVersion ( Constants . MAVEN_MODEL_VERSION ) ; model . setGroupId ( coordinates . getGroupId ( ) ) ; model . setArtifactId ( coordinates . getArtifactId ( ) ) ; model . setVersion ( coordinates . getVersion ( ) ) ; model . setName ( feature . getName ( ) ) ; model . setDescription ( feature . getDescription ( ) ) ; model . setPackaging ( type . getType ( ) ) ; setLicense ( model , coordinates . getVersion ( ) , true , feature . isRestrictedLicense ( ) , Constants . WEBSPHERE_LIBERTY_FEATURES_GROUP_ID . equals ( coordinates . getGroupId ( ) ) ) ; boolean isWebsphereLiberty = Constants . WEBSPHERE_LIBERTY_FEATURES_GROUP_ID . equals ( coordinates . getGroupId ( ) ) ; if ( ! isWebsphereLiberty ) { setScmDevUrl ( model ) ; } List < Dependency > dependencies = new ArrayList < Dependency > ( ) ; model . setDependencies ( dependencies ) ; List < LibertyFeature > requiredFeatures = getRequiredFeatures ( feature , allFeatures ) ; if ( ! requiredFeatures . isEmpty ( ) ) { for ( LibertyFeature requiredFeature : requiredFeatures ) { MavenCoordinates requiredArtifact = requiredFeature . getMavenCoordinates ( ) ; addDependency ( dependencies , requiredArtifact , type , null ) ; } } if ( featureCompileDependencies != null ) { for ( MavenCoordinates requiredArtifact : featureCompileDependencies ) { addDependency ( dependencies , requiredArtifact , null , null ) ; } } File artifactDir = new File ( outputDir , Utils . getRepositorySubpath ( coordinates ) ) ; File targetFile = new File ( artifactDir , Utils . getFileName ( coordinates , Constants . ArtifactType . POM ) ) ; try { Writer writer = new FileWriter ( targetFile ) ; new MavenXpp3Writer ( ) . write ( writer , model ) ; writer . close ( ) ; } catch ( IOException e ) { throw new MavenRepoGeneratorException ( "Could not write POM file " + targetFile , e ) ; } }
Generate POM file .
24,337
private static void addDependency ( List < Dependency > dependencies , MavenCoordinates requiredArtifact , Constants . ArtifactType type , String scope ) { Dependency dependency = new Dependency ( ) ; dependency . setGroupId ( requiredArtifact . getGroupId ( ) ) ; dependency . setArtifactId ( requiredArtifact . getArtifactId ( ) ) ; dependency . setVersion ( requiredArtifact . getVersion ( ) ) ; if ( scope != null ) { dependency . setScope ( scope ) ; } if ( type != null ) { dependency . setType ( type . getType ( ) ) ; } dependencies . add ( dependency ) ; }
Add dependency to the list of Maven Dependencies .
24,338
private static List < MavenCoordinates > getFeatureCompileDependencies ( File inputDir , LibertyFeature feature ) throws MavenRepoGeneratorException { List < MavenCoordinates > compileDependencies = new ArrayList < MavenCoordinates > ( ) ; File esa = new File ( inputDir , feature . getSymbolicName ( ) + Constants . ArtifactType . ESA . getLibertyFileExtension ( ) ) ; if ( ! esa . exists ( ) ) { throw new MavenRepoGeneratorException ( "ESA " + esa + " does not exist for feature " + feature . getSymbolicName ( ) ) ; } ZipFile zipFile = null ; try { zipFile = new ZipFile ( esa ) ; Enumeration < ? extends ZipEntry > entries = zipFile . entries ( ) ; while ( entries . hasMoreElements ( ) ) { ZipEntry zipEntry = entries . nextElement ( ) ; MavenCoordinates c = findCompileDependency ( zipEntry . getName ( ) , Constants . API_DEPENDENCIES_GROUP_ID ) ; if ( c != null ) { compileDependencies . add ( c ) ; continue ; } c = findCompileDependency ( zipEntry . getName ( ) , Constants . SPI_DEPENDENCIES_GROUP_ID ) ; if ( c != null ) { compileDependencies . add ( c ) ; continue ; } } ZipEntry manifest = zipFile . getEntry ( Constants . MANIFEST_ZIP_ENTRY ) ; if ( manifest != null ) { compileDependencies . addAll ( findCompileDependenciesFromManifest ( zipFile , manifest ) ) ; } else { throw new MavenRepoGeneratorException ( "Could not find manifest file " + Constants . MANIFEST_ZIP_ENTRY + " within the ESA file " + esa ) ; } } catch ( IOException e ) { throw new MavenRepoGeneratorException ( "ESA " + esa + " could not be read as a zip file." ) ; } finally { if ( zipFile != null ) { try { zipFile . close ( ) ; } catch ( IOException e ) { } } } return compileDependencies ; }
Get list of compile dependencies for each feature by looking in its ESA file .
24,339
private static MavenCoordinates findCompileDependency ( String zipEntryPath , String groupId ) { int apiNameIndex = zipEntryPath . indexOf ( groupId ) ; int extensionIndex = zipEntryPath . lastIndexOf ( ".jar" ) ; if ( apiNameIndex >= 0 && extensionIndex >= 0 ) { String fileNameWithoutExtension = zipEntryPath . substring ( apiNameIndex , extensionIndex ) ; String artifactId = fileNameWithoutExtension . substring ( 0 , fileNameWithoutExtension . lastIndexOf ( "_" ) ) ; String versionId = fileNameWithoutExtension . substring ( fileNameWithoutExtension . lastIndexOf ( "_" ) + 1 , fileNameWithoutExtension . length ( ) ) ; MavenCoordinates coordinates = new MavenCoordinates ( groupId , artifactId , versionId ) ; System . out . println ( "Found compile dependency: " + coordinates ) ; return coordinates ; } return null ; }
Find compile dependency from a zip entry in the ESA
24,340
private static List < MavenCoordinates > findCompileDependenciesFromManifest ( ZipFile zipFile , ZipEntry zipEntry ) throws MavenRepoGeneratorException { List < MavenCoordinates > result = new ArrayList < MavenCoordinates > ( ) ; InputStream inputStream = null ; try { inputStream = zipFile . getInputStream ( zipEntry ) ; Manifest manifest = new Manifest ( inputStream ) ; Attributes mainAttributes = manifest . getMainAttributes ( ) ; String subsystemContent = mainAttributes . getValue ( Constants . SUBSYSTEM_CONTENT ) ; List < String > lines = ManifestProcessor . split ( subsystemContent , "," ) ; for ( String line : lines ) { if ( line . contains ( Constants . SUBSYSTEM_MAVEN_COORDINATES ) ) { List < String > components = ManifestProcessor . split ( line , ";" ) ; String requiredFeature = components . get ( 0 ) ; String mavenCoordinates = null ; for ( String component : components ) { if ( component . startsWith ( Constants . SUBSYSTEM_MAVEN_COORDINATES ) ) { mavenCoordinates = component . substring ( Constants . SUBSYSTEM_MAVEN_COORDINATES . length ( ) + 1 , component . length ( ) ) ; if ( mavenCoordinates . startsWith ( "\"" ) && mavenCoordinates . endsWith ( "\"" ) ) { mavenCoordinates = mavenCoordinates . substring ( 1 , mavenCoordinates . length ( ) - 1 ) ; } break ; } } if ( mavenCoordinates != null ) { try { result . add ( new MavenCoordinates ( mavenCoordinates ) ) ; System . out . println ( "Found compile dependency for subsystem content " + requiredFeature + ": " + mavenCoordinates ) ; } catch ( IllegalArgumentException e ) { throw new MavenRepoGeneratorException ( "Invalid Maven coordinates defined in subsystem content " + requiredFeature + " in the manifest for ESA file " + zipFile . getName ( ) , e ) ; } } else { throw new MavenRepoGeneratorException ( "For ESA " + zipFile . getName ( ) + ", found " + Constants . SUBSYSTEM_MAVEN_COORDINATES + " key in manifest but failed to parse it from the string: " + line ) ; } } } } catch ( IOException e ) { throw new MavenRepoGeneratorException ( "Could not read manifest file " + zipEntry . getName ( ) + " from ESA file " + zipFile . getName ( ) , e ) ; } finally { if ( inputStream != null ) { try { inputStream . close ( ) ; } catch ( IOException e ) { } } } return result ; }
Find compile dependencies from the manifest file in the ESA
24,341
private static void copyArtifact ( File inputDir , File outputDir , LibertyFeature feature , Constants . ArtifactType type ) throws MavenRepoGeneratorException { MavenCoordinates artifact = feature . getMavenCoordinates ( ) ; File artifactDir = new File ( outputDir , Utils . getRepositorySubpath ( artifact ) ) ; artifactDir . mkdirs ( ) ; if ( ! artifactDir . isDirectory ( ) ) { throw new MavenRepoGeneratorException ( "Artifact directory " + artifactDir + " could not be created." ) ; } File sourceFile = new File ( inputDir , feature . getSymbolicName ( ) + type . getLibertyFileExtension ( ) ) ; System . out . println ( "Source file: " + sourceFile ) ; if ( ! sourceFile . exists ( ) ) { throw new MavenRepoGeneratorException ( "Artifact source file " + sourceFile + " does not exist." ) ; } File targetFile = new File ( artifactDir , Utils . getFileName ( artifact , type ) ) ; try { Files . copy ( sourceFile . toPath ( ) , targetFile . toPath ( ) , StandardCopyOption . REPLACE_EXISTING ) ; } catch ( IOException e ) { throw new MavenRepoGeneratorException ( "Could not copy artifact from " + sourceFile . getAbsolutePath ( ) + " to " + targetFile . getAbsolutePath ( ) , e ) ; } }
Copy artifact file from inputDir to outputDir .
24,342
private static void addMavenCoordinates ( File modifiedJsonFile , JsonArray jsonArray , Map < String , LibertyFeature > features ) throws IOException { JsonArrayBuilder jsonArrayBuilder = Json . createArrayBuilder ( ) ; for ( int i = 0 ; i < jsonArray . size ( ) ; i ++ ) { JsonObject jsonObject = jsonArray . getJsonObject ( i ) ; JsonObjectBuilder jsonObjectBuilder = Json . createObjectBuilder ( jsonObject ) ; JsonObject wlpInfo = jsonObject . getJsonObject ( Constants . WLP_INFORMATION_KEY ) ; JsonObjectBuilder wlpInfoBuilder = Json . createObjectBuilder ( wlpInfo ) ; JsonArray provideFeatureArray = wlpInfo . getJsonArray ( Constants . PROVIDE_FEATURE_KEY ) ; String symbolicName = provideFeatureArray . getString ( 0 ) ; wlpInfoBuilder . add ( Constants . MAVEN_COORDINATES_KEY , features . get ( symbolicName ) . getMavenCoordinates ( ) . toString ( ) ) ; jsonObjectBuilder . add ( Constants . WLP_INFORMATION_KEY , wlpInfoBuilder ) ; jsonArrayBuilder . add ( jsonObjectBuilder ) ; } FileOutputStream out = null ; try { Map < String , Object > config = new HashMap < String , Object > ( ) ; config . put ( JsonGenerator . PRETTY_PRINTING , true ) ; JsonWriterFactory writerFactory = Json . createWriterFactory ( config ) ; out = new FileOutputStream ( modifiedJsonFile ) ; JsonWriter streamWriter = writerFactory . createWriter ( out ) ; streamWriter . write ( jsonArrayBuilder . build ( ) ) ; } finally { if ( out != null ) { out . close ( ) ; } } }
Add Maven coordinates into the modified JSON file .
24,343
public List < LibertyFeature > getRequiredFeatures ( LibertyFeature feature , Map < String , LibertyFeature > allFeatures ) throws MavenRepoGeneratorException { List < LibertyFeature > dependencies = new ArrayList < LibertyFeature > ( ) ; Map < String , Collection < String > > requiredFeaturesWithTolerates = feature . getRequiredFeaturesWithTolerates ( ) ; if ( requiredFeaturesWithTolerates != null ) { for ( String requireFeature : requiredFeaturesWithTolerates . keySet ( ) ) { Collection < String > toleratesVersions = null ; if ( allFeatures . containsKey ( requireFeature ) ) { dependencies . add ( allFeatures . get ( requireFeature ) ) ; } else if ( ( toleratesVersions = requiredFeaturesWithTolerates . get ( requireFeature ) ) != null ) { log ( "For feature " + feature . getSymbolicName ( ) + ", cannot find direct dependency to required feature " + requireFeature + " so it must use tolerates list: " + toleratesVersions , LogLevel . WARN . getLevel ( ) ) ; boolean tolerateFeatureFound = false ; for ( String version : toleratesVersions ) { String tolerateFeatureAndVersion = requireFeature . substring ( 0 , requireFeature . lastIndexOf ( "-" ) ) + "-" + version ; if ( allFeatures . containsKey ( tolerateFeatureAndVersion ) ) { dependencies . add ( allFeatures . get ( tolerateFeatureAndVersion ) ) ; log ( "For feature " + feature . getSymbolicName ( ) + ", found tolerated dependency " + tolerateFeatureAndVersion , LogLevel . DEBUG . getLevel ( ) ) ; tolerateFeatureFound = true ; break ; } } if ( ! tolerateFeatureFound ) { throw new MavenRepoGeneratorException ( "For feature " + feature . getSymbolicName ( ) + ", cannot find required feature " + requireFeature + " or any of its tolerated versions: " + toleratesVersions ) ; } } else { throw new MavenRepoGeneratorException ( "For feature " + feature . getSymbolicName ( ) + ", cannot find required feature " + requireFeature ) ; } } } return dependencies ; }
Gets the list of features that this feature depends on .
24,344
public void close ( int requestNumber ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "close" , requestNumber ) ; try { ConsumerSession cs = getConsumerSession ( ) ; if ( cs != null ) cs . close ( ) ; try { getConversation ( ) . send ( poolManager . allocate ( ) , JFapChannelConstants . SEG_CLOSE_CONSUMER_SESS_R , requestNumber , getLowestPriority ( ) , true , ThrottlingPolicy . BLOCK_THREAD , null ) ; } catch ( SIException e ) { FFDCFilter . processException ( e , CLASS_NAME + ".close" , CommsConstants . CATCONSUMER_CLOSE_02 , this ) ; SibTr . error ( tc , "COMMUNICATION_ERROR_SICO2013" , e ) ; } } catch ( SIException e ) { if ( ! ( ( ConversationState ) getConversation ( ) . getAttachment ( ) ) . hasMETerminated ( ) ) { FFDCFilter . processException ( e , CLASS_NAME + ".close" , CommsConstants . CATCONSUMER_CLOSE_01 , this ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , e . getMessage ( ) , e ) ; StaticCATHelper . sendExceptionToClient ( e , CommsConstants . CATCONSUMER_CLOSE_01 , getConversation ( ) , requestNumber ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "close" ) ; }
Performs the generic session close . A response is sent to the client when this has been comleted .
24,345
public void unsetAsynchConsumerCallback ( int requestNumber , boolean stoppable ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "unsetAsynchConsumerCallback" , "requestNumber=" + requestNumber ) ; try { if ( stoppable ) { getConsumerSession ( ) . deregisterStoppableAsynchConsumerCallback ( ) ; } else { getConsumerSession ( ) . deregisterAsynchConsumerCallback ( ) ; } try { getConversation ( ) . send ( poolManager . allocate ( ) , JFapChannelConstants . SEG_DEREGISTER_ASYNC_CONSUMER_R , requestNumber , getLowestPriority ( ) , true , ThrottlingPolicy . BLOCK_THREAD , null ) ; } catch ( SIException e ) { FFDCFilter . processException ( e , CLASS_NAME + ".unsetAsynchConsumerCallback" , CommsConstants . CATCONSUMER_UNSETASYNCHCALLBACK_01 , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , e . getMessage ( ) , e ) ; SibTr . error ( tc , "COMMUNICATION_ERROR_SICO2013" , e ) ; } } catch ( SIException e ) { if ( ! ( ( ConversationState ) getConversation ( ) . getAttachment ( ) ) . hasMETerminated ( ) ) { FFDCFilter . processException ( e , CLASS_NAME + ".unsetAsynchConsumerCallback" , CommsConstants . CATCONSUMER_UNSETASYNCHCALLBACK_02 , this ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , e . getMessage ( ) , e ) ; StaticCATHelper . sendExceptionToClient ( e , CommsConstants . CATCONSUMER_UNSETASYNCHCALLBACK_02 , getConversation ( ) , requestNumber ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "unsetAsynchConsumerCallback" ) ; }
This method will unset an asynch callback .
24,346
public void start ( int requestNumber , boolean deliverImmediately , boolean sendReply , SendListener sendListener ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "start" , new Object [ ] { "" + requestNumber , "" + deliverImmediately , "" + sendReply , sendListener } ) ; try { started = true ; getConsumerSession ( ) . start ( deliverImmediately ) ; requestsReceived ++ ; if ( sendReply ) { try { getConversation ( ) . send ( poolManager . allocate ( ) , JFapChannelConstants . SEG_START_SESS_R , requestNumber , JFapChannelConstants . PRIORITY_HIGHEST , true , ThrottlingPolicy . BLOCK_THREAD , sendListener ) ; } catch ( SIException e ) { FFDCFilter . processException ( e , CLASS_NAME + ".start" , CommsConstants . CATCONSUMER_START_02 , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , e . getMessage ( ) , e ) ; SibTr . error ( tc , "COMMUNICATION_ERROR_SICO2013" , e ) ; SIConnectionLostException cle = ( e instanceof SIConnectionLostException ) ? ( SIConnectionLostException ) e : null ; sendListener . errorOccurred ( cle , getConversation ( ) ) ; } } else { sendListener . dataSent ( getConversation ( ) ) ; } } catch ( SIException e ) { started = false ; if ( ! ( ( ConversationState ) getConversation ( ) . getAttachment ( ) ) . hasMETerminated ( ) ) { FFDCFilter . processException ( e , CLASS_NAME + ".start" , CommsConstants . CATCONSUMER_START_01 , this ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , e . getMessage ( ) , e ) ; if ( sendReply ) { StaticCATHelper . sendExceptionToClient ( e , CommsConstants . CATCONSUMER_START_01 , getConversation ( ) , requestNumber ) ; } sendListener . errorOccurred ( null , getConversation ( ) ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "start" ) ; }
Performs the generic session start . No response is normally required to be sent to the client unless the sendReply parameter is true .
24,347
public int incrementCount ( ) { int depth = stackDepth . get ( ) ; depth = depth + 1 ; stackDepth . set ( depth ) ; return depth ; }
Increments the recursion count for this thread .
24,348
private static void validateFunctions ( ELNode . Nodes el , ValidateResult result , Element jspElement , HashMap prefixToUriMap ) throws JspTranslationException { el . visit ( new FVVisitor ( jspElement , result , prefixToUriMap ) ) ; }
Validate functions in EL expressions
24,349
public List < PropertyControl . ContextProperties > getContextProperties ( ) { if ( contextProperties == null ) { contextProperties = new ArrayList < PropertyControl . ContextProperties > ( ) ; } return this . contextProperties ; }
Gets the value of the contextProperties property .
24,350
private synchronized boolean getServerLock ( ) { Boolean fileExists = Boolean . FALSE ; final File sDir = lockFile ; try { fileExists = AccessController . doPrivileged ( new java . security . PrivilegedExceptionAction < Boolean > ( ) { public Boolean run ( ) throws Exception { if ( ! sDir . exists ( ) ) { return Boolean . FALSE ; } return Boolean . TRUE ; } } ) ; } catch ( Exception ex ) { } if ( ! ( fileExists . booleanValue ( ) ) ) return false ; FileOutputStream fos = null ; FileChannel fc = null ; try { fos = new FileOutputStream ( lockFile ) ; fc = fos . getChannel ( ) ; lockFileChannel = fc ; for ( int i = 0 ; i < BootstrapConstants . MAX_POLL_ATTEMPTS ; i ++ ) { serverLock = fc . tryLock ( ) ; if ( serverLock != null ) { break ; } else { try { Thread . sleep ( BootstrapConstants . POLL_INTERVAL_MS ) ; } catch ( InterruptedException e ) { } } } } catch ( OverlappingFileLockException e ) { if ( ! Utils . tryToClose ( fc ) ) Utils . tryToClose ( fos ) ; } catch ( IOException e ) { if ( ! Utils . tryToClose ( fc ) ) Utils . tryToClose ( fos ) ; } return serverLock != null && serverLock . isValid ( ) ; }
Try to obtain server lock
24,351
public synchronized void releaseServerLock ( ) { if ( serverLock != null ) { try { serverLock . release ( ) ; } catch ( IOException e ) { } finally { Utils . tryToClose ( lockFileChannel ) ; } serverLock = null ; lockFileChannel = null ; } }
Release server lock .
24,352
private int calculateWaitCyclesFromWaitTime ( ) { String serverWaitTime = System . getProperty ( BootstrapConstants . SERVER_START_WAIT_TIME ) ; if ( ( serverWaitTime == null ) || serverWaitTime . trim ( ) . equals ( "" ) ) { return BootstrapConstants . MAX_POLL_ATTEMPTS ; } int waitTime = 0 ; try { waitTime = Integer . parseInt ( System . getProperty ( BootstrapConstants . SERVER_START_WAIT_TIME ) ) ; if ( waitTime < 1 ) { return 1 ; } } catch ( Throwable t ) { return BootstrapConstants . MAX_POLL_ATTEMPTS ; } int waitCycles = ( int ) ( TimeUnit . MILLISECONDS . convert ( waitTime , TimeUnit . SECONDS ) / BootstrapConstants . POLL_INTERVAL_MS ) ; return waitCycles ; }
Calculate the number of times to wait 500ms
24,353
public static void createServerRunningMarkerFile ( BootstrapConfig bootConfig ) { File serverWorkArea = bootConfig . getWorkareaFile ( null ) ; File serverRunningMarkerFile = null ; try { serverRunningMarkerFile = new File ( serverWorkArea , BootstrapConstants . SERVER_RUNNING_FILE ) ; serverRunningMarkerFile . deleteOnExit ( ) ; boolean newFile = serverRunningMarkerFile . createNewFile ( ) ; if ( ! newFile ) bootConfig . forceCleanStart ( ) ; } catch ( IOException e ) { throw new LaunchException ( "Can not create or write to server running marker file, check file permissions" , MessageFormat . format ( BootstrapConstants . messages . getString ( "error.serverDirPermission" ) , serverRunningMarkerFile . getAbsolutePath ( ) ) , e ) ; } }
Create a marker file when the server is running to determine if the JVM terminated normally . This file is deleted automatically when the JVM exits normally on a normal server stop . If the marker file already exists when the server is starting it assumes the JVM abended or the JVM process was forcefully terminated . In this case we mark the bootstrap properties to do a full clean of the workarea to remove any possible corruption that might have occurred as a result of the JVM abend .
24,354
public void contextChange ( int typeOfChange ) throws IllegalStateException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { String type = "UNKNOWN" ; switch ( typeOfChange ) { case UOWCallback . PRE_BEGIN : type = "PRE_BEGIN" ; break ; case UOWCallback . POST_BEGIN : type = "POST_BEGIN" ; break ; case UOWCallback . PRE_END : type = "PRE_END" ; break ; case UOWCallback . POST_END : type = "POST_END" ; break ; } Tr . entry ( tc , "contextChange" , type ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "UOWCurrent" , _uowCurrent ) ; UOWCoordinator coord = null ; if ( ( typeOfChange == UOWCallback . POST_BEGIN ) || ( typeOfChange == UOWCallback . PRE_END ) ) { coord = _uowCurrent . getUOWCoord ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Coordinator=" + coord ) ; IllegalStateException ex = null ; for ( int i = 0 ; i < _callbacks . size ( ) ; i ++ ) { UOWCallback callback = _callbacks . get ( i ) ; try { callback . contextChange ( typeOfChange , coord ) ; } catch ( IllegalStateException ise ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Exception caught during UOW callback at context change" , ise ) ; ex = ise ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "contextChange" ) ; if ( ex != null ) { throw ex ; } }
Notify registered callbacks of context change .
24,355
private void removeFile ( int index ) { String file = files . remove ( index ) ; FileLogUtils . deleteFile ( directory , file ) ; }
Remove and delete a file from the file list .
24,356
public Cursor newCursor ( String name ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "newCursor" , name ) ; Cursor cursor = new Cursor ( name , this , true ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "newCursor" , cursor ) ; return cursor ; }
Synchronized . Creates a new cursor over this list initially sitting at the top of the list .
24,357
public Cursor newCursorAtBottom ( String name ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "newCursorAtBottom" , name ) ; Cursor cursor = new Cursor ( name , this , false ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "newCursorAtBottom" , cursor ) ; return cursor ; }
Synchronized . Creates a new cursor over this list initially sitting at the bottoms of the list .
24,358
public Entry insertAtBottom ( Entry entry ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "insertAtBottom" , new Object [ ] { entry } ) ; if ( entry . parentList == null ) { if ( last == null ) { entry . previous = null ; entry . next = null ; first = entry ; last = entry ; entry . parentList = this ; } else { insertAfter ( entry , last ) ; } if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "insertAtBottom" , entry ) ; return entry ; } SIErrorException e = new SIErrorException ( nls . getFormattedMessage ( "INTERNAL_MESSAGING_ERROR_CWSIP0001" , new Object [ ] { "com.ibm.ws.sib.processor.utils.linkedlist.LinkedList" , "1:166:1.18" } , null ) ) ; FFDCFilter . processException ( e , "com.ibm.ws.sib.processor.utils.linkedlist.LinkedList.insertAtBottom" , "1:172:1.18" , this ) ; SibTr . exception ( tc , e ) ; SibTr . error ( tc , "INTERNAL_MESSAGING_ERROR_CWSIP0001" , new Object [ ] { "com.ibm.ws.sib.processor.utils.linkedlist.LinkedList" , "1:179:1.18" } ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "insertAtBottom" , e ) ; throw e ; }
Synchronized . Insert a new entry in to the list at the bottom . The new entry must not be already in any list including this one .
24,359
public Entry insertAfter ( Entry newEntry , Entry insertAfter ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "insertAfter" , new Object [ ] { newEntry , insertAfter } ) ; Entry insertedEntry = null ; if ( newEntry != null && insertAfter != null ) { insertedEntry = insertAfter . forceInsertAfter ( newEntry ) ; } if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "insertAfter" , insertedEntry ) ; return insertedEntry ; }
Synchronized . Insert an entry into the list after a given one . The new entry must not already be in a list . The entry after which the new one is to be inserted must be in this list .
24,360
public void transfer ( LinkedList transferFrom ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "transfer" , new Object [ ] { transferFrom } ) ; synchronized ( transferFrom ) { Entry entry = transferFrom . first ; while ( entry != null ) { insertAtBottom ( entry . forceRemove ( ) ) ; entry = transferFrom . first ; } } if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "transfer" ) ; }
Synchronized . Transfer all of the entries in a given list in to this one . This is the same as removing each one from the given list and inserting it in to this list at the bottom .
24,361
protected JPAApplInfo startingApplication ( JPAApplInfo applInfo ) throws RuntimeWarning { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "startingApplication : " + applInfo . getApplName ( ) ) ; } String applName = applInfo . getApplName ( ) ; JPAApplInfo oldApplInfo = applList . get ( applName ) ; if ( oldApplInfo == null ) { if ( isTraceOn && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "added to applList - applName: " + applName + " applInfo: " + applInfo ) ; } applList . put ( applInfo . getApplName ( ) , applInfo ) ; } else { Tr . warning ( tc , "APPL_STARTED_CWWJP0019W" , applName ) ; applInfo = oldApplInfo ; if ( isTraceOn && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Found in applList - applName: " + applName + " applInfo: " + applInfo ) ; } } if ( isTraceOn && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Current application list : " + getSortedAppNames ( ) ) ; } if ( isTraceOn && tc . isEntryEnabled ( ) ) { Tr . exit ( tc , "startingApplication : " + applName ) ; } return applInfo ; }
Process application starting event .
24,362
public void startedApplication ( JPAApplInfo applInfo ) throws RuntimeWarning { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "startedApplication : " + applInfo . getApplName ( ) ) ; if ( applInfo . getScopeSize ( ) == 0 ) { if ( isTraceOn && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "App has no JPA access - removing from applList" ) ; applList . remove ( applInfo . getApplName ( ) ) ; } if ( isTraceOn && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Current application list : " + getSortedAppNames ( ) ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "startedApplication : " + applInfo . getApplName ( ) ) ; }
Process application started event .
24,363
public void destroyingApplication ( JPAApplInfo applInfo ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "destroyingApplication : " + applInfo . getApplName ( ) ) ; applInfo . closeAllScopeModules ( ) ; applList . remove ( applInfo . getApplName ( ) ) ; if ( isTraceOn && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Current application list : " + getSortedAppNames ( ) ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "destroyingApplication : " + applInfo . getApplName ( ) ) ; }
Process application destroying event .
24,364
protected Set < String > getSortedAppNames ( ) { if ( applList == null ) { return Collections . emptySet ( ) ; } Set < String > appNames = applList . keySet ( ) ; synchronized ( applList ) { return new TreeSet < String > ( appNames ) ; } }
Convenience method for trace that obtains a sorted list of the known JPA application names . This method is thread safe .
24,365
public < T extends EventListener > T createAsyncListener ( Class < T > classToCreate ) throws ServletException { return super . createListener ( classToCreate ) ; }
This method should only be used to create an AsyncListener as the WebApp31 . createListener no longer accepts AsyncListeners as per the specification . This method is currently called from AsyncContext31Impl . createListener .
24,366
@ Reference ( name = REFERENCE_LIBRARY , service = Library . class ) protected void setLibrary ( ServiceReference < Library > ref ) { libraryRef . setReference ( ref ) ; }
The reference target is specified via metatype
24,367
public static MatchResponse match ( SecurityConstraintCollection securityConstraintCollection , String resourceName , String method ) { MatchingStrategy matchingStrategy = getMatchingStrategy ( method ) ; return matchingStrategy . performMatch ( securityConstraintCollection , resourceName , method ) ; }
Determine what constraints match the given resource access .
24,368
protected CollectionMatch getCollectionMatch ( List < WebResourceCollection > webResourceCollections , String resourceName , String method ) { CollectionMatch bestMatch = getInitialCollectionMatch ( ) ; for ( WebResourceCollection webResourceCollection : webResourceCollections ) { CollectionMatch currentMatch = getCollectionMatchForWebResourceCollection ( webResourceCollection , resourceName , method ) ; if ( currentMatch != null ) { bestMatch = selectBestCollectionMatch ( bestMatch , currentMatch ) ; } if ( bestMatch != null && bestMatch . isExactMatch ( ) ) { break ; } } return bestMatch ; }
Gets the match for the resource access . The web resource collections are individually used to determine what is the match for this resource access . The best match is selected . The seven standard HTTP methods are GET POST DELETE PUT HEAD OPTIONS and TRACE .
24,369
protected CollectionMatch selectBestCollectionMatch ( CollectionMatch previousMatch , CollectionMatch currentMatch ) { CollectionMatch bestMatch = null ; if ( previousMatch == null ) { bestMatch = currentMatch ; } else if ( previousMatch . isDenyMatchByOmission ( ) ) { bestMatch = previousMatch ; } else if ( currentMatch . isDenyMatchByOmission ( ) ) { bestMatch = currentMatch ; } else if ( previousMatch . isDenyMatch ( ) ) { bestMatch = previousMatch ; } else if ( currentMatch . isDenyMatch ( ) ) { bestMatch = currentMatch ; } else if ( previousMatch . isPermitMatch ( ) ) { bestMatch = previousMatch ; } else if ( currentMatch . isPermitMatch ( ) ) { bestMatch = currentMatch ; } else if ( previousMatch . isExactMatch ( ) ) { bestMatch = previousMatch ; } else if ( currentMatch . isExactMatch ( ) ) { bestMatch = currentMatch ; } else if ( previousMatch . isPathMatch ( ) && previousMatch . getUrlPattern ( ) . length ( ) >= currentMatch . getUrlPattern ( ) . length ( ) ) { bestMatch = previousMatch ; } else { bestMatch = currentMatch ; } return bestMatch ; }
Exact match is best then path match with longest URI matched finally extension match .
24,370
public String getFirstValidationGroupFromStack ( ) { if ( _validationGroupsStack != null && ! _validationGroupsStack . isEmpty ( ) ) { return _validationGroupsStack . getFirst ( ) ; } return null ; }
Gets the top of the validationGroups stack .
24,371
public void pushValidationGroupsToStack ( String validationGroups ) { if ( _validationGroupsStack == null ) { _validationGroupsStack = new LinkedList < String > ( ) ; } _validationGroupsStack . addFirst ( validationGroups ) ; }
Pushes validationGroups to the stack .
24,372
public void pushExcludedValidatorIdToStack ( String validatorId ) { if ( _excludedValidatorIdsStack == null ) { _excludedValidatorIdsStack = new LinkedList < String > ( ) ; } _excludedValidatorIdsStack . addFirst ( validatorId ) ; }
Pushes validatorId to the stack of excluded validatorIds .
24,373
private void increaseComponentLevelMarkedForDeletion ( ) { _deletionLevel ++ ; if ( _componentsMarkedForDeletion . size ( ) <= _deletionLevel ) { _componentsMarkedForDeletion . add ( new HashMap < String , UIComponent > ( ) ) ; } }
Add a level of components marked for deletion .
24,374
private void decreaseComponentLevelMarkedForDeletion ( ) { if ( ! _componentsMarkedForDeletion . get ( _deletionLevel ) . isEmpty ( ) ) { _componentsMarkedForDeletion . get ( _deletionLevel ) . clear ( ) ; } _deletionLevel -- ; }
Remove the last component level from the components marked to be deleted . The components are removed from this list because they are deleted from the tree . This is done in ComponentSupport . finalizeForDeletion .
24,375
private void markComponentForDeletion ( String id , UIComponent component ) { _componentsMarkedForDeletion . get ( _deletionLevel ) . put ( id , component ) ; }
Mark a component to be deleted from the tree . The component to be deleted is addded on the current level . This is done from ComponentSupport . markForDeletion
24,376
private UIComponent removeComponentForDeletion ( String id ) { UIComponent removedComponent = _componentsMarkedForDeletion . get ( _deletionLevel ) . remove ( id ) ; if ( removedComponent != null && _deletionLevel > 0 ) { _componentsMarkedForDeletion . get ( _deletionLevel - 1 ) . remove ( id ) ; } return removedComponent ; }
Remove a component from the last level of components marked to be deleted .
24,377
public ExternalAutoCommitTransaction createAutoCommitTransaction ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createAutoCommitTransaction" ) ; ExternalAutoCommitTransaction instance = new MSAutoCommitTransaction ( _ms , _persistence , getMaximumTransactionSize ( ) ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "createAutoCommitTransaction" , "return=" + instance ) ; return instance ; }
This method returns an object that represents a zero - phase or AutoCommit transaction . It can be used to ensure that a piece of work is carried out at once essentially outside of a transaction coordination scope .
24,378
public ExternalLocalTransaction createLocalTransaction ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createLocalTransaction" ) ; ExternalLocalTransaction instance ; if ( _persistenceSupports1PCOptimisation ) { instance = new MSDelegatingLocalTransactionSynchronization ( _ms , _persistence , getMaximumTransactionSize ( ) ) ; } else { instance = new MSDelegatingLocalTransaction ( _ms , _persistence , getMaximumTransactionSize ( ) ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "createLocalTransaction" , "return=" + instance ) ; return instance ; }
This method is used to create a LocalResource that can either be enlisted as a particpant in a WebSphere LocalTransactionCoordination scope or used directly to demarcate a one - phase Resource Manager Local Transaction .
24,379
public ExternalXAResource createXAResource ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createXAResource" ) ; ExternalXAResource instance = new MSDelegatingXAResource ( _ms , _persistence , getMaximumTransactionSize ( ) ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "createXAResource" , "return=" + instance ) ; return instance ; }
This method is used to create an XAResource that can be enlisted as a particpant in a two - phase XA compliant transaction .
24,380
public Object getChannelAccessor ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getChannelAccessor" ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getChannelAccessor" , this ) ; return this ; }
Returns the interface provided by this channel . Always ourself .
24,381
public ConversationMetaData getMetaData ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getMetaData" ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getMetaData" , metaData ) ; return metaData ; }
begin D196678 . 10 . 1
24,382
@ SuppressWarnings ( "unchecked" ) public void connect ( Object address ) throws Exception { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "connect" , address ) ; final JFapAddress jfapAddress = ( JFapAddress ) address ; if ( ( jfapAddress != null ) && ( jfapAddress . getAttachType ( ) == Conversation . CLIENT ) ) { vc . getStateMap ( ) . put ( OutboundProtocol . PROTOCOL , "BUS_CLIENT" ) ; } else vc . getStateMap ( ) . put ( OutboundProtocol . PROTOCOL , "BUS_TO_BUS" ) ; super . connect ( address ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "connect" ) ; }
end D196678 . 10 . 1
24,383
private void buildSubJobBatchWorkUnits ( ) { List < Flow > flows = this . split . getFlows ( ) ; splitFlowWorkUnits = new ArrayList < BatchSplitFlowWorkUnit > ( ) ; for ( Flow flow : flows ) { JSLJob splitFlowJSLJob = ParallelStepBuilder . buildFlowInSplitSubJob ( runtimeWorkUnitExecution . getTopLevelInstanceId ( ) , runtimeWorkUnitExecution . getWorkUnitJobContext ( ) , this . split , flow ) ; subJobs . add ( splitFlowJSLJob ) ; SplitFlowConfig splitFlowConfig = new SplitFlowConfig ( runtimeWorkUnitExecution . getTopLevelNameInstanceExecutionInfo ( ) , split . getId ( ) , flow . getId ( ) , runtimeWorkUnitExecution . getCorrelationId ( ) ) ; BatchSplitFlowWorkUnit workUnit = getBatchKernelService ( ) . createSplitFlowWorkUnit ( splitFlowConfig , splitFlowJSLJob , completedWorkQueue ) ; splitFlowWorkUnits . add ( workUnit ) ; } }
about reobtaining .
24,384
public String [ ] getShortPath ( ) { if ( path == null || path . length == 0 ) return null ; int index = 0 ; if ( path [ 0 ] . equals ( pmiroot ) ) { index = 1 ; } if ( index == 0 ) return path ; String [ ] ret = new String [ path . length - index ] ; for ( int i = 0 ; i < ret . length ; i ++ ) ret [ i ] = path [ i + index ] ; return ret ; }
Returns the path of the PerfLevelDescriptor without the preleading pmi .
24,385
public int comparePath ( String [ ] otherPath ) { if ( path == null ) return - 1 ; else if ( otherPath == null ) return 1 ; int minLen = ( path . length < otherPath . length ) ? path . length : otherPath . length ; for ( int i = 0 ; i < minLen ; i ++ ) { int result = path [ i ] . compareTo ( otherPath [ i ] ) ; if ( result != 0 ) return result ; } return path . length - otherPath . length ; }
Returns 0 if exactly same
24,386
public boolean isSubPath ( String [ ] otherPath ) { if ( path == null || otherPath == null ) return false ; if ( path . length >= otherPath . length ) return false ; for ( int i = 0 ; i < path . length ; i ++ ) { int result = path [ i ] . compareTo ( otherPath [ i ] ) ; if ( result != 0 ) return false ; } return true ; }
Returns true if it s path is a subpath of otherPath
24,387
public String getModuleName ( ) { if ( moduleID != null ) { return moduleID ; } if ( path != null && path . length > MODULE_INDEX ) return path [ 1 ] ; else return null ; }
Returns the module name in the path
24,388
public String getSubmoduleName ( ) { if ( path != null && path . length > SUBMODULE_INDEX ) return path [ SUBMODULE_INDEX ] ; else return null ; }
Returns the submodule name in the path
24,389
private String getStoredReq ( HttpServletRequest req , ReferrerURLCookieHandler referrerURLHandler ) { String storedReq = referrerURLHandler . getReferrerURLFromCookies ( req , ReferrerURLCookieHandler . REFERRER_URL_COOKIENAME ) ; if ( storedReq != null ) { if ( storedReq . equals ( "/" ) ) storedReq = "" ; else if ( storedReq . startsWith ( "/" ) ) storedReq = storedReq . substring ( 1 ) ; } else { storedReq = "" ; } return storedReq ; }
Always be redirecting to a stored req with the web app ... strip any initial slash
24,390
private String getCustomReloginErrorPage ( HttpServletRequest req ) { String reLogin = CookieHelper . getCookieValue ( req . getCookies ( ) , ReferrerURLCookieHandler . CUSTOM_RELOGIN_URL_COOKIENAME ) ; if ( reLogin != null && reLogin . length ( ) > 0 ) { if ( reLogin . indexOf ( "?" ) < 0 ) reLogin += "?error=error" ; } return reLogin ; }
Get custom error page that specified in the custom login page
24,391
@ FFDCIgnore ( IllegalArgumentException . class ) private String evaluateBindDn ( boolean immediateOnly ) { try { return elHelper . processString ( "bindDn" , this . idStoreDefinition . bindDn ( ) , immediateOnly ) ; } catch ( IllegalArgumentException e ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isWarningEnabled ( ) ) { Tr . warning ( tc , "JAVAEESEC_WARNING_IDSTORE_CONFIG" , new Object [ ] { "bindDn" , "" } ) ; } return "" ; } }
Evaluate and return the bindDn .
24,392
@ FFDCIgnore ( IllegalArgumentException . class ) private ProtectedString evaluateBindDnPassword ( boolean immediateOnly ) { String result ; try { result = elHelper . processString ( "bindDnPassword" , this . idStoreDefinition . bindDnPassword ( ) , immediateOnly , true ) ; } catch ( IllegalArgumentException e ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isWarningEnabled ( ) ) { Tr . warning ( tc , "JAVAEESEC_WARNING_IDSTORE_CONFIG" , new Object [ ] { "bindDnPassword" , "" } ) ; } result = "" ; } return ( result == null ) ? null : new ProtectedString ( result . toCharArray ( ) ) ; }
Evaluate and return the bindDnPassword .
24,393
@ FFDCIgnore ( IllegalArgumentException . class ) private String evaluateCallerBaseDn ( boolean immediateOnly ) { try { return elHelper . processString ( "callerBaseDn" , this . idStoreDefinition . callerBaseDn ( ) , immediateOnly ) ; } catch ( IllegalArgumentException e ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isWarningEnabled ( ) ) { Tr . warning ( tc , "JAVAEESEC_WARNING_IDSTORE_CONFIG" , new Object [ ] { "callerBaseDn" , "" } ) ; } return "" ; } }
Evaluate and return the callerBaseDn .
24,394
@ FFDCIgnore ( IllegalArgumentException . class ) private String evaluateCallerNameAttribute ( boolean immediateOnly ) { try { return elHelper . processString ( "callerNameAttribute" , this . idStoreDefinition . callerNameAttribute ( ) , immediateOnly ) ; } catch ( IllegalArgumentException e ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isWarningEnabled ( ) ) { Tr . warning ( tc , "JAVAEESEC_WARNING_IDSTORE_CONFIG" , new Object [ ] { "callerNameAttribute" , "uid" } ) ; } return "uid" ; } }
Evaluate and return the callerNameAttribute .
24,395
@ FFDCIgnore ( IllegalArgumentException . class ) private String evaluateCallerSearchBase ( boolean immediateOnly ) { try { return elHelper . processString ( "callerSearchBase" , this . idStoreDefinition . callerSearchBase ( ) , immediateOnly ) ; } catch ( IllegalArgumentException e ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isWarningEnabled ( ) ) { Tr . warning ( tc , "JAVAEESEC_WARNING_IDSTORE_CONFIG" , new Object [ ] { "callerSearchBase" , "" } ) ; } return "" ; } }
Evaluate and return the callerSearchBase .
24,396
@ FFDCIgnore ( IllegalArgumentException . class ) private String evaluateCallerSearchFilter ( boolean immediateOnly ) { try { return elHelper . processString ( "callerSearchFilter" , this . idStoreDefinition . callerSearchFilter ( ) , immediateOnly ) ; } catch ( IllegalArgumentException e ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isWarningEnabled ( ) ) { Tr . warning ( tc , "JAVAEESEC_WARNING_IDSTORE_CONFIG" , new Object [ ] { "callerSearchFilter" , "" } ) ; } return "" ; } }
Evaluate and return the callerSearchFilter .
24,397
@ FFDCIgnore ( IllegalArgumentException . class ) private LdapSearchScope evaluateCallerSearchScope ( boolean immediateOnly ) { try { return elHelper . processLdapSearchScope ( "callerSearchScopeExpression" , this . idStoreDefinition . callerSearchScopeExpression ( ) , this . idStoreDefinition . callerSearchScope ( ) , immediateOnly ) ; } catch ( IllegalArgumentException e ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isWarningEnabled ( ) ) { Tr . warning ( tc , "JAVAEESEC_WARNING_IDSTORE_CONFIG" , new Object [ ] { "callerSearchScope/callerSearchScopeExpression" , "LdapSearchScope.SUBTREE" } ) ; } return LdapSearchScope . SUBTREE ; } }
Evaluate and return the callerSearchScope .
24,398
@ FFDCIgnore ( IllegalArgumentException . class ) private String evaluateGroupMemberAttribute ( boolean immediateOnly ) { try { return elHelper . processString ( "groupMemberAttribute" , this . idStoreDefinition . groupMemberAttribute ( ) , immediateOnly ) ; } catch ( IllegalArgumentException e ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isWarningEnabled ( ) ) { Tr . warning ( tc , "JAVAEESEC_WARNING_IDSTORE_CONFIG" , new Object [ ] { "groupMemberAttribute" , "member" } ) ; } return "member" ; } }
Evaluate and return the groupMemberAttribute .
24,399
@ FFDCIgnore ( IllegalArgumentException . class ) private String evaluateGroupMemberOfAttribute ( boolean immediateOnly ) { try { return elHelper . processString ( "groupMemberOfAttribute" , this . idStoreDefinition . groupMemberOfAttribute ( ) , immediateOnly ) ; } catch ( IllegalArgumentException e ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isWarningEnabled ( ) ) { Tr . warning ( tc , "JAVAEESEC_WARNING_IDSTORE_CONFIG" , new Object [ ] { "groupMemberOfAttribute" , "memberOf" } ) ; } return "memberOf" ; } }
Evaluate and return the groupMemberOfAttribute .