idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
159,500
public void close ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "close" ) ; synchronized ( this ) { if ( closed ) { idToProxyQueueMap . clear ( ) ; factory . groupCloseNotification ( conversation , this ) ; } } if ( TraceComponent . isAnyTracingEnabled ( ) ...
Closes this proxy queue conversation group .
159,501
public void conversationDroppedNotification ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "conversationDroppedNotification" ) ; LinkedList < ProxyQueue > notifyList = null ; synchronized ( this ) { notifyList = new LinkedList < ProxyQueue > ( ) ; notifyList...
Invoked to notify the group that the conversation that backs it has gone away . Iterate over the queues and notify them .
159,502
public void setExtraAttribute ( String name , String value ) { if ( extraAttributes == null ) { extraAttributes = new HashMap < QName , Object > ( ) ; } if ( value == null ) { extraAttributes . remove ( new QName ( null , name ) ) ; } else { extraAttributes . put ( new QName ( null , name ) , value ) ; } }
Sets an attribute on this element that does not have an explicit setter .
159,503
public static String getValue ( String value ) { if ( value == null ) { return null ; } String v = removeQuotes ( value . trim ( ) ) . trim ( ) ; if ( v . isEmpty ( ) ) { return null ; } return v ; }
Sometimes the JACL representation of a null or empty value includes quotation marks . Calling this method will parse away the extra JACL syntax and return a real or null value
159,504
public static String removeQuotes ( String arg ) { if ( arg == null ) { return null ; } int length = arg . length ( ) ; if ( length > 1 && arg . startsWith ( "\"" ) && arg . endsWith ( "\"" ) ) { return arg . substring ( 1 , length - 1 ) ; } return arg ; }
Removes leading and trailing quotes from the input argument if they exist .
159,505
protected VirtualConnection processWork ( TCPBaseRequestContext req , int options ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "processWork" ) ; } TCPConnLink conn = req . getTCPConnLink ( ) ; VirtualConnection vc = null ; if ( options != 1 ) { if ( req . isRequestT...
Processes the request . If the request is already associated with a work queue - send it there . Otherwise round robin requests amongst our set of queues .
159,506
protected boolean dispatch ( TCPBaseRequestContext req , IOException ioe ) { if ( req . blockedThread ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "dispatcher notifying waiting synch request " ) ; } if ( ioe != null ) { req . blockingIOError = ioe ; } req . blockWai...
Dispatches requests to workrer threds or notifies waiting thread .
159,507
private boolean dispatchWorker ( Worker worker ) { ExecutorService executorService = CHFWBundle . getExecutorService ( ) ; if ( null == executorService ) { if ( FrameworkState . isValid ( ) ) { Tr . error ( tc , "EXECUTOR_SVC_MISSING" ) ; throw new RuntimeException ( "Missing executor service" ) ; } else { return false...
Dispatch a work item .
159,508
protected void queueConnectForSelector ( ConnectInfo connectInfo ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "queueConnectForSelector" ) ; } try { moveIntoPosition ( connectCount , connect , connectInfo , CS_CONNECTOR ) ; } catch ( IOException x ) { FFDCFilter . pr...
This method is called when work must be added to the connect selector .
159,509
protected void createNewThread ( ChannelSelector sr , int threadType , int number ) { StartPrivilegedThread privThread = new StartPrivilegedThread ( sr , threadType , number , this . tGroup ) ; AccessController . doPrivileged ( privThread ) ; }
Create a new reader thread . Provided so we can support pulling these from a thread pool in the SyncWorkQueueManager . This will allow these threads to have WSTHreadLocal .
159,510
void workerRun ( TCPBaseRequestContext req , IOException ioe ) { if ( null == req || req . getTCPConnLink ( ) . isClosed ( ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Ignoring IO on closed socket: " + req ) ; } return ; } try { if ( ioe == null ) { if ( TraceCom...
Main worker thread routine .
159,511
protected boolean dispatchConnect ( ConnectInfo work ) { if ( work . getSyncObject ( ) != null ) { work . getSyncObject ( ) . simpleNotify ( ) ; return true ; } return dispatchWorker ( new Worker ( work ) ) ; }
This is the entry point where work is added to the connect work list . As a result a separate thread from the caller will do the work .
159,512
public static Map < String , List < String > > getEvaluatedNavigationParameters ( FacesContext facesContext , Map < String , List < String > > parameters ) { Map < String , List < String > > evaluatedParameters = null ; if ( parameters != null && parameters . size ( ) > 0 ) { evaluatedParameters = new HashMap < String ...
Evaluate all EL expressions found as parameters and return a map that can be used for redirect or render bookmark links
159,513
private static List < String > _evaluateValueExpressions ( FacesContext context , List < String > values ) { List < String > target = new ArrayList < String > ( values . size ( ) ) ; for ( String value : values ) { if ( _isExpression ( value ) ) { value = context . getApplication ( ) . evaluateExpressionGet ( context ,...
Checks the Strings in the List for EL expressions and evaluates them . Note that the returned List will be a copy of the given List because otherwise it will have unwanted side - effects .
159,514
public void register ( JMFEncapsulationManager mgr , int id ) { if ( id > JMFPart . MODEL_ID_JMF ) mmmgrTable . put ( Integer . valueOf ( id - 1 ) , mgr ) ; else throw new IllegalArgumentException ( "model ID cannot be negative" ) ; }
Register the JMFEncapsulationManager for a particular Model ID .
159,515
private void registerInternal ( JMFSchema schema ) { schemaTable . set ( ( HashedArray . Element ) schema ) ; Object assoc = schema . getJMFType ( ) . getAssociation ( ) ; if ( assoc != null ) associations . put ( assoc , schema ) ; }
Subroutine used by register and registerAll
159,516
private boolean isPresent ( JMFSchema schema ) throws JMFSchemaIdException { long id = schema . getID ( ) ; JMFSchema reg = ( JMFSchema ) schemaTable . get ( id ) ; if ( reg != null ) { if ( ! schema . equals ( reg ) ) { throw new JMFSchemaIdException ( "Schema id clash: id=" + id ) ; } Object newAssoc = schema . getJM...
to the same schema .
159,517
public static Vector getLocales ( HttpServletRequest req ) { init ( ) ; String acceptLanguage = req . getHeader ( "Accept-Language" ) ; if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { logger . logp ( Level . FINE , CLASS_NAME , "getLocales" , "Accept-Lan...
Returns a Vector of locales from the passed in request object .
159,518
public static Vector processAcceptLanguage ( String acceptLanguage ) { init ( ) ; StringTokenizer languageTokenizer = new StringTokenizer ( acceptLanguage , "," ) ; TreeMap map = new TreeMap ( Collections . reverseOrder ( ) ) ; while ( languageTokenizer . hasMoreTokens ( ) ) { String language = languageTokenizer . next...
Processes the accept languages in a passed in String into a Vector object .
159,519
public static Vector extractLocales ( Vector languages , boolean secure ) { init ( ) ; Enumeration e = languages . elements ( ) ; Vector l = new Vector ( ) ; while ( e . hasMoreElements ( ) ) { Vector langVector = ( Vector ) e . nextElement ( ) ; Enumeration enumeration = langVector . elements ( ) ; while ( enumeration...
This method will validate the values .
159,520
public static String getEncodingFromLocale ( Locale locale ) { init ( ) ; if ( locale == cachedLocale ) { return cachedEncoding ; } String encoding = null ; if ( encoding == null ) { com . ibm . wsspi . http . EncodingUtils encodingUtils = com . ibm . ws . webcontainer . osgi . WebContainer . getEncodingUtils ( ) ; if ...
Get the encoding for a passed in locale .
159,521
public static String getJvmConverter ( String encoding ) { init ( ) ; String converter = null ; com . ibm . wsspi . http . EncodingUtils encodingUtils = com . ibm . ws . webcontainer . osgi . WebContainer . getEncodingUtils ( ) ; if ( encodingUtils != null ) { converter = encodingUtils . getJvmConverter ( encoding ) ; ...
Get the JVM Converter for the specified encoding .
159,522
public static boolean isCharsetSupported ( String charset ) { Boolean supported = ( Boolean ) supportedEncodingsCache . get ( charset ) ; if ( supported != null ) { return supported . booleanValue ( ) ; } try { new String ( TEST_CHAR , charset ) ; supportedEncodingsCache . put ( charset , Boolean . TRUE ) ; } catch ( U...
rewritten as part of PK13492
159,523
public static < T > boolean compareInstance ( T t1 , T t2 ) { if ( t1 == t2 ) { return true ; } if ( t1 != null && t2 != null && t1 . equals ( t2 ) ) { return true ; } return false ; }
Compare tow instance . If both are null still equal
159,524
public static boolean compareStrings ( String s1 , String s2 ) { if ( s1 == s2 ) return true ; if ( s1 != null && s2 != null && s1 . equals ( s2 ) ) return true ; return false ; }
Compares two strings for equality . Either or both of the values may be null .
159,525
public static boolean compareQNames ( QName qn1 , QName qn2 ) { if ( qn1 == qn2 ) return true ; if ( qn1 == null || qn2 == null ) return false ; return qn1 . equals ( qn2 ) ; }
Compares two QNames for equality . Either or both of the values may be null .
159,526
public static boolean compareStringLists ( List < String > list1 , List < String > list2 ) { if ( list1 == null && list2 == null ) return true ; if ( list1 == null || list2 == null ) return false ; if ( list1 . size ( ) != list2 . size ( ) ) return false ; for ( int i = 0 ; i < list1 . size ( ) ; i ++ ) { if ( ! compar...
Compares two lists of strings for equality .
159,527
public static boolean compareQNameLists ( List < QName > list1 , List < QName > list2 ) { if ( list1 == list2 ) return true ; if ( list1 == null || list2 == null ) return false ; if ( list1 . size ( ) != list2 . size ( ) ) return false ; for ( int i = 0 ; i < list1 . size ( ) ; i ++ ) { if ( ! compareQNames ( list1 . g...
Compares two lists of QNames for equality .
159,528
public static < T > boolean compareLists ( List < T > list1 , List < T > list2 ) { if ( list1 == list2 ) return true ; if ( list1 == null || list2 == null ) return false ; if ( list1 . size ( ) != list2 . size ( ) ) return false ; for ( int i = 0 ; i < list1 . size ( ) ; i ++ ) { if ( ! list1 . get ( i ) . equals ( lis...
Compare two lists
159,529
public boolean preProcess ( ConfigEntry configEntry ) { boolean valid = true ; if ( configEntry . processorData == null ) configEntry . processorData = new Object [ BASE_SLOTS ] ; Property p = ( Property ) configEntry . properties . get ( PROPERTY_PERSIST_TO_DISK ) ; String val = p != null ? ( String ) p . value : null...
preprocess any data
159,530
public JSConsumerSet getConsumerSet ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getConsumerSet" ) ; SibTr . exit ( tc , "getConsumerSet" , consumerSet ) ; } return consumerSet ; }
Returns the consumerSet .
159,531
public long size ( Transaction transaction ) throws ObjectManagerException { long sizeFound ; synchronized ( this ) { sizeFound = availableSize ; if ( transaction != null ) { Entry entry = firstEntry ( transaction ) ; while ( entry != null ) { if ( entry . state == Entry . stateToBeAdded && entry . lockedBy ( transacti...
Returns the number of key - value mappings in this map which ara available to the transaction .
159,532
public synchronized boolean isEmpty ( Transaction transaction ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "isEmpty" , new Object [ ] { transaction } ) ; boolean returnValue ; if ( firstEntry ( transaction ) == null ) { returnVa...
Determines if the tree is empty as viewed by the transaction . Returns true if there are no entries visible to the transaction and false if there are entries visible .
159,533
private Entry getEntry ( Object key ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "getEntry" , new Object [ ] { key } ) ; Entry entry = ( Entry ) super . find ( key ) ; if ( entry != null ) { duplicateSearch : for ( ; ; ) { Entry...
Returns the first Entry matching the key or null if the map does not contain an entry for the key . The entry returned may be uncommited .
159,534
public synchronized void putDuplicate ( Object key , Token value , Transaction transaction ) throws ObjectManagerException { put ( key , value , transaction , true ) ; }
Associates the specified value with the specified key in this map . If the map previously contained a mapping for this key the old value is left alone and a new one added .
159,535
private void add ( Object key , Token value , Entry currentEntry , Transaction transaction , long logSpaceDelta ) throws ObjectManagerException { final String methodName = "add" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { key , v...
Add a new value to the tree at a point where they key is after all less than or equal keys and below the currentEntry .
159,536
private void undoPut ( ) throws ObjectManagerException { final String methodName = "undoPut" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName ) ; owningToken . objectStore . reserve ( ( int ) - reservedSpaceInStore , false ) ; if ( Tracing . isAnyTracin...
Reverse the action of addition to the map used after an add has failed to log anything .
159,537
public synchronized void clear ( Transaction transaction ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , "clear" + "transaction=" + transaction + "(Transaction)" ) ; Entry entry = firstEntry ( transaction ) ; while ( entry != null ...
Removes all mappings from this TreeMap which are visible to the transaction . Actual deletion of the entries takes place when the transaction commits .
159,538
private int compare ( Object key1 , Object key2 ) { if ( comparator == null ) return ( ( Comparable ) key1 ) . compareTo ( key2 ) ; else return comparator . compare ( key1 , key2 ) ; }
Use the comparator to compare the two keys .
159,539
private synchronized void deleteEntry ( Entry entry , Transaction transaction ) throws ObjectManagerException { final String methodName = "deleteEntry" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { entry , transaction } ) ; managed...
Finalise removal of an Entry from the tree .
159,540
void move ( AbstractTreeMap . Entry x , AbstractTreeMap . Entry y ) throws ObjectManagerException { if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , cclass , "move" , new Object [ ] { x , y } ) ; Entry yParent = ( Entry ) y . getParent ( ) ; x . setParent ( yParent ) ; if ( y...
Move x to occupy the position currently held by y .
159,541
public synchronized void print ( java . io . PrintWriter printWriter ) { printWriter . println ( "Dump of TreeMap size=" + size + "(long)" ) ; try { for ( Iterator iterator = entrySet ( ) . iterator ( ) ; iterator . hasNext ( ) ; ) { Entry entry = ( Entry ) iterator . next ( ) ; printWriter . println ( ( indexLabel ( e...
Print a dump of the Map .
159,542
public static boolean containsMultipleRoutingContext ( RESTRequest request ) { if ( request instanceof ServletRESTRequestWithParams ) { ServletRESTRequestWithParams req = ( ServletRESTRequestWithParams ) request ; return ( req . getParam ( ClientProvider . COLLECTIVE_HOST_NAMES ) != null || request . getHeader ( Client...
Quick check for multiple - target routing context without actually fetching all pieces
159,543
public static String [ ] getRoutingContext ( RESTRequest request , boolean errorIfNull ) { String targetHost = request . getHeader ( ClientProvider . ROUTING_KEY_HOST_NAME ) ; if ( targetHost != null ) { targetHost = URLDecoder ( targetHost , null ) ; String targetUserDir = request . getHeader ( ClientProvider . ROUTIN...
This helper method looks for the routing keys in the HTTP headers first and then fallsback into looking at the query string .
159,544
public static boolean isDefaultAttributeValue ( Object value ) { if ( value == null ) { return true ; } else if ( value instanceof Boolean ) { return ! ( ( Boolean ) value ) . booleanValue ( ) ; } else if ( value instanceof Number ) { if ( value instanceof Integer ) { return ( ( Number ) value ) . intValue ( ) == Integ...
See JSF Spec . 8 . 5 Table 8 - 1
159,545
public static Converter findUIOutputConverter ( FacesContext facesContext , UIOutput component ) throws FacesException { return _SharedRendererUtils . findUIOutputConverter ( facesContext , component ) ; }
Find the proper Converter for the given UIOutput component .
159,546
public static Converter findUISelectManyConverter ( FacesContext facesContext , UISelectMany component ) { return findUISelectManyConverter ( facesContext , component , false ) ; }
Calls findUISelectManyConverter with considerValueType = false .
159,547
public static Converter findUISelectManyConverter ( FacesContext facesContext , UISelectMany component , boolean considerValueType ) { Converter converter = component . getConverter ( ) ; if ( converter != null ) { return converter ; } if ( considerValueType ) { converter = _SharedRendererUtils . getValueTypeConverter ...
Find proper Converter for the entries in the associated Collection or array of the given UISelectMany as specified in API Doc of UISelectMany . If considerValueType is true the valueType attribute will be used in addition to the standard algorithm to get a valid converter .
159,548
public static Set getSelectedValuesAsSet ( FacesContext context , UIComponent component , Converter converter , UISelectMany uiSelectMany ) { Object selectedValues = uiSelectMany . getValue ( ) ; return internalSubmittedOrSelectedValuesAsSet ( context , component , converter , uiSelectMany , selectedValues , true ) ; }
Convenient utility method that returns the currently selected values of a UISelectMany component as a Set of which the contains method can then be easily used to determine if a value is currently selected . Calling the contains method of this Set with the item value as argument returns true if this item is selected .
159,549
public static String getConvertedStringValue ( FacesContext context , UIComponent component , Converter converter , Object value ) { if ( converter == null ) { if ( value == null ) { return "" ; } else if ( value instanceof String ) { return ( String ) value ; } else { return value . toString ( ) ; } } return converter...
Convenient utility method that returns the currently given value as String using the given converter . Especially usefull for dealing with primitive types .
159,550
public static String getConvertedStringValue ( FacesContext context , UIComponent component , Converter converter , SelectItem selectItem ) { return getConvertedStringValue ( context , component , converter , selectItem . getValue ( ) ) ; }
Convenient utility method that returns the currently given SelectItem value as String using the given converter . Especially usefull for dealing with primitive types .
159,551
public static Object getConvertedUISelectManyValue ( FacesContext facesContext , UISelectMany selectMany , Object submittedValue , boolean considerValueType ) throws ConverterException { if ( submittedValue == null ) { return null ; } if ( ! ( submittedValue instanceof String [ ] ) ) { throw new ConverterException ( "S...
Gets the converted value of a UISelectMany component .
159,552
public static void initPartialValidationAndModelUpdate ( UIComponent component , FacesContext facesContext ) { String actionFor = ( String ) component . getAttributes ( ) . get ( "actionFor" ) ; if ( actionFor != null ) { List li = convertIdsToClientIds ( actionFor , facesContext , component ) ; facesContext . getExter...
check for partial validation or model update attributes being set and initialize the request - map accordingly . SubForms will work with this information .
159,553
public static ResponseStateManager getResponseStateManager ( FacesContext facesContext , String renderKitId ) throws FacesException { RenderKit renderKit = facesContext . getRenderKit ( ) ; if ( renderKit == null ) { Map attributesMap = facesContext . getAttributes ( ) ; RenderKitFactory factory = ( RenderKitFactory ) ...
Gets the ResponseStateManager for the renderKit Id provided
159,554
static public String toResourceUri ( FacesContext facesContext , Object o ) { if ( o == null ) { return null ; } String uri = o . toString ( ) ; if ( uri . length ( ) == 0 ) { return null ; } if ( uri . contains ( ResourceHandler . RESOURCE_IDENTIFIER ) ) { return uri ; } if ( uri . startsWith ( "//" ) ) { return uri ....
Coerces an object into a resource URI calling the view - handler .
159,555
public final static String trim ( String value ) { String result = null ; if ( null != value ) { result = value . trim ( ) ; } return result ; }
remove the blank characters in the left and right for a given value .
159,556
protected void customizeClientProperties ( Message message ) { if ( null == configPropertiesSet ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "There are no client properties." ) ; } return ; } Bus bus = message . getExchange ( ) . getBus ( ) ; if ( null == bus ) { if...
Customize the client properties .
159,557
protected void customizePortAddress ( Message message ) { String address = null ; PortComponentRefInfo portInfo = null ; if ( null != wsrInfo ) { QName portQName = getPortQName ( message ) ; if ( null != portQName ) { portInfo = wsrInfo . getPortComponentRefInfo ( portQName ) ; address = ( null != portInfo && null != p...
Customize the port address
159,558
private static String discoverClassName ( ClassLoader tccl ) { String className = null ; className = getClassNameServices ( tccl ) ; if ( className == null ) { if ( IS_SECURITY_ENABLED ) { className = AccessController . doPrivileged ( new PrivilegedAction < String > ( ) { public String run ( ) { return getClassNameJreD...
Discover the name of class that implements ExpressionFactory .
159,559
private static void addBundleManifestRequireCapability ( FileSystem zipSystem , Path bundle , Map < Path , String > requiresMap ) throws IOException { Path extractedJar = null ; try { extractedJar = Files . createTempFile ( "unpackedBundle" , ".jar" ) ; extractedJar . toFile ( ) . deleteOnExit ( ) ; Files . copy ( bund...
Adds the Require - Capability Strings from a bundle jar to the Map of Require - Capabilities found
159,560
private static void addSubsystemManifestRequireCapability ( File esa , Map < Path , String > requiresMap ) throws IOException { String esaLocation = esa . getAbsolutePath ( ) ; ZipFile zip = null ; try { zip = new ZipFile ( esaLocation ) ; Enumeration < ? extends ZipEntry > zipEntries = zip . entries ( ) ; ZipEntry sub...
Adds the Require - Capability Strings from a SUBSYSTEM . MF to the Map of Require - Capabilities found
159,561
public void filter ( ClientRequestContext requestContext ) { if ( requestContext == null || jwt == null || requestContext . getHeaders ( ) . containsKey ( "Authorization" ) ) { return ; } if ( header == null || header . equals ( "" ) ) { header = "Authorization" ; } final String headerValue ; if ( "Authorization" . equ...
Adds the JWT token to the Authorization header in the jax - rs client requests to propagate the token .
159,562
public static String urlDecode ( String value , String enc ) { return urlDecode ( value , enc , false ) ; }
Decodes using URLDecoder - use when queries or form post values are decoded
159,563
public static String pathDecode ( String value ) { return urlDecode ( value , StandardCharsets . UTF_8 . name ( ) , true ) ; }
URL path segments may contain + symbols which should not be decoded into This method replaces + with %2B and delegates to URLDecoder
159,564
public static Map < String , String > parseQueryString ( String s ) { Map < String , String > ht = new HashMap < String , String > ( ) ; StringTokenizer st = new StringTokenizer ( s , "&" ) ; while ( st . hasMoreTokens ( ) ) { String pair = st . nextToken ( ) ; int pos = pair . indexOf ( '=' ) ; if ( pos == - 1 ) { ht ...
Create a map from String to String that represents the contents of the query portion of a URL . For each x = y x is the key and y is the value .
159,565
public static String getStem ( String baseURI ) { int idx = baseURI . lastIndexOf ( '/' ) ; String result = baseURI ; if ( idx != - 1 ) { result = baseURI . substring ( 0 , idx ) ; } return result ; }
Return everything in the path up to the last slash in a URI .
159,566
private synchronized CacheEntryWrapper updateCacheList ( Object key ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && LoggingUtil . SESSION_LOGGER_CORE . isLoggable ( Level . FINER ) ) { LoggingUtil . SESSION_LOGGER_CORE . entering ( methodClassName , methodNames [ UPDATE_CACHE_LIST ] , "key=...
remove the input entry from it s spot in the list and make it the mru
159,567
public SICoreConnection getSICoreConnection ( ) throws IllegalStateException { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "getSICoreConnection" ) ; } if ( _sessionClosed ) { throw new IllegalStateException ( NLS . getFormattedMessage ( ( "ILLEGAL_STATE...
A convenience method that returns the core connection associated with this session s connection .
159,568
void dissociate ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "dissociate" ) ; } _managedConnection = null ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . exit ( this , TRACE , "dissociate" ) ; } }
Dissociates this session from its current managed connection .
159,569
void associate ( final JmsJcaManagedConnection managedConnection ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "associate" , managedConnection ) ; } if ( _managedConnection != null ) { _managedConnection . disassociateSession ( this ) ; } _managedConn...
Associates this session with a new managed connection .
159,570
void invalidate ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "invalidate" ) ; } _sessionInvalidated = true ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . exit ( this , TRACE , "invalidate" ) ; } }
Marks this session as invalid .
159,571
void setParentConnection ( final JmsJcaConnectionImpl connection ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "setParentConnection" , connection ) ; } _connection = connection ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ...
Sets the parent connection for this session .
159,572
static public InterceptorMetaData createInterceptorMetaData ( EJBMDOrchestrator ejbMDOrchestrator , BeanMetaData bmd , final Map < Method , ArrayList < EJBMethodInfoImpl > > methodInfoMap ) throws EJBConfigurationException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isE...
Create InterceptorMetaData instance to use for a specified EJB module and bean meta data object . Also update EJBMethodInfoImpl object with method level interceptor data as needed .
159,573
private void addJCDIInterceptors ( ) { JCDIHelper jcdiHelper = ivEJBModuleMetaDataImpl . ivJCDIHelper ; if ( jcdiHelper != null && ! ivBmd . isManagedBean ( ) ) { J2EEName j2eeName = ivEJBModuleMetaDataImpl . ivJ2EEName ; ivJCDIFirstInterceptorClass = jcdiHelper . getFirstEJBInterceptor ( j2eeName , ivEjbClass ) ; if (...
F743 - 15628 d649636
159,574
private List < String > addLoadedInterceptorClasses ( Class < ? > [ ] classes ) { List < String > names = new ArrayList < String > ( ) ; for ( Class < ? > klass : classes ) { String className = klass . getName ( ) ; ivInterceptorNameToClassMap . put ( className , klass ) ; names . add ( className ) ; } return names ; }
Adds a class to the list of loaded classes . getInterceptorProxies relies on every interceptor class either being added via updateNamesToClassMap or this method .
159,575
private ArrayList < String > addMethodLevelInterceptors ( Method method , EJBInterceptorBinding methodBinding ) throws EJBConfigurationException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "addMethodLevelInterceptors method: " + ...
d367572 . 9 updated for xml and metadata - complete .
159,576
private void updateEJBMethodInfoInterceptorProxies ( ) throws EJBConfigurationException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "updateEJBMethodInfoInterceptorProxies: " + ivEjbName ) ; } for ( Map . Entry < Method , ArrayLis...
d367572 . 9 updated for xml
159,577
private InterceptorProxy [ ] getAroundInterceptorProxies ( InterceptorMethodKind kind , Method m ) throws EJBConfigurationException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "getAroundInterceptorProxies: " + kind + ", " + m ) ;...
Get the array of InterceptorProxy objects required for invoking the AroundInvoke or AroundTimeout interceptors methods when a method is invoked .
159,578
private void processBeanInterceptors ( ) throws EJBConfigurationException { ivBeanInterceptorProxyMap = createInterceptorProxyMap ( ivEjbClass , - 1 ) ; if ( ivBeanLifecycleMethods != null ) { for ( InterceptorMethodKind kind : InterceptorMethodKind . values ( ) ) { int mid = kind . getMethodID ( ) ; if ( mid != - 1 ) ...
Processes interceptor methods on the bean class .
159,579
private InterceptorProxy [ ] getInterceptorProxies ( InterceptorMethodKind kind , List < String > orderedList ) throws EJBConfigurationException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "getInterceptorProxies: " + kind + ", " ...
Gets an ordered list of interceptor proxies of the specified kind . processBeanInterceptors must have been called prior to calling this method .
159,580
private void validateEJBCallbackMethod ( InterceptorMethodKind actualKind , Method m , boolean annotation ) throws EJBConfigurationException { String methodName = m . getName ( ) ; InterceptorMethodKind requiredKind = mapEjbCallbackName ( methodName ) ; if ( requiredKind != null && actualKind != requiredKind ) { String...
d463727 entire method added .
159,581
private ArrayList < String > orderClassLevelInterceptors ( ) throws EJBConfigurationException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "orderClassLevelInterceptors" ) ; } ArrayList < String > orderedList = new ArrayList < Stri...
Get an ordered list of class level interceptors to be used for this EJB .
159,582
private ArrayList < String > orderMethodLevelInterceptors ( Method m ) throws EJBConfigurationException { ArrayList < String > orderedList = new ArrayList < String > ( ) ; EJBInterceptorBinding binding = findInterceptorBindingForMethod ( m ) ; boolean excludeClassInterceptors = isClassInterceptorsExcluded ( m , binding...
Get an ordered list of method level interceptors for specified method of an EJB .
159,583
public boolean containsCacheId ( Object cacheId ) { boolean found = false ; if ( cacheId != null ) { found = this . coreCache . containsCacheId ( cacheId ) ; } return found ; }
Returns true if memory cache contains a mapping for the specified cache ID .
159,584
public com . ibm . websphere . cache . CacheEntry getEntryFromMemory ( Object id ) { final String methodName = "getEntryFromMemory()" ; com . ibm . websphere . cache . CacheEntry ce = this . coreCache . get ( id ) ; if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName + " cacheName=" + cacheName + " id=" + id ...
This returns the cache entry from memory cache identified by the specified cache id . It returns null if not in the cache .
159,585
public Enumeration getAllIds ( ) { Set ids = this . coreCache . getCacheIds ( ) ; ValueSet idvs = new ValueSet ( ids . iterator ( ) ) ; return idvs . elements ( ) ; }
Returns an enumeration view of the cache IDs contained in the memory cache .
159,586
public void internalInvalidateByDepId ( Object id , int causeOfInvalidation , int source , boolean bFireIL ) { final String methodName = "internalInvalidateByDepId()" ; if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName + " cacheName=" + cacheName + " id=" + id ) ; } this . invalidateExternalCaches ( id , nu...
This invalidates all entries in this Cache having a dependency on this dependency id .
159,587
public void invalidateByTemplate ( String template , boolean waitOnInvalidation ) { final String methodName = "invalidateByTemplate()" ; if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName + " cacheName=" + cacheName + " template=" + template ) ; } this . invalidateExternalCaches ( null , template ) ; this . ...
This invalidates all entries in this Cache having a dependency on this template .
159,588
public void addAlias ( Object key , Object [ ] aliasArray , boolean askPermission , boolean coordinate ) { final String methodName = "addAlias()" ; if ( this . featureSupport . isAliasSupported ( ) ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName + " cacheName=" + cacheName + " ERROR because it is not ...
Adds an alias for the given key in the cache s mapping table . If the alias is already associated with another key it will be changed to associate with the new key .
159,589
public void removeAlias ( Object alias , boolean askPermission , boolean coordinate ) { final String methodName = "removeAlias()" ; if ( this . featureSupport . isAliasSupported ( ) ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName + " cacheName=" + cacheName + " ERROR because it is not implemented yet"...
Removes an alias from the cache mapping .
159,590
public List getCacheIdsInPushPullTable ( ) { final String methodName = "getCacheIdsInPushPullTable()" ; List list = new ArrayList ( ) ; if ( this . featureSupport . isReplicationSupported ( ) ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName + " cacheName=" + cacheName + " ERROR because it is not implem...
Returns all of the cache IDs in the PushPullTable
159,591
public boolean shouldPull ( int share , Object id ) { final String methodName = "shouldPull()" ; boolean shouldPull = false ; if ( this . featureSupport . isReplicationSupported ( ) ) { } else { } return shouldPull ; }
Return to indicate the entry can be pulled from other remote caches which caching this value .
159,592
public int getDepIdsSizeDisk ( ) { final String methodName = "getDepIdsSizeDisk()" ; if ( this . swapToDisk ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName + " cacheName=" + cacheName + " ERROR because it is not implemented yet" ) ; } } else { if ( this . featureSupport . isDiskCacheSupported ( ) == f...
Returns the current dependency IDs size for the disk cache .
159,593
public Exception getDiskCacheException ( ) { final String methodName = "getDiskCacheException()" ; Exception ex = null ; if ( this . swapToDisk ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName + " cacheName=" + cacheName + " ERROR because it is not implemented yet" ) ; } } else { if ( this . featureSup...
Returns the exception object from the disk cache because disk cache reported the error .
159,594
public void resetPMICounters ( ) { final String methodName = "resetPMICounters()" ; if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName + " cacheName=" + cacheName ) ; } }
This method needs to change if cache provider supports PMI counters .
159,595
public void updateStatisticsForVBC ( com . ibm . websphere . cache . CacheEntry cacheEntry , boolean directive ) { final String methodName = "updateStatisticsForVBC()" ; Object id = null ; if ( cacheEntry != null ) { id = cacheEntry . getIdObject ( ) ; } if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName + "...
This method needs to change if cache provider supports PMI and CacheStatisticsListener .
159,596
private static String reduceStringLiteralToken ( String image ) { image = image . substring ( 1 , image . length ( ) - 1 ) ; for ( int i = 0 ; i < image . length ( ) ; i ++ ) if ( image . charAt ( i ) == '\'' ) image = image . substring ( 0 , i + 1 ) + image . substring ( i + 2 ) ; return image ; }
processing characters in the image
159,597
static Selector parseIntegerLiteral ( String val ) { char tag = val . charAt ( val . length ( ) - 1 ) ; boolean mustBeLong = false ; if ( tag == 'l' || tag == 'L' ) { val = val . substring ( 0 , val . length ( ) - 1 ) ; mustBeLong = true ; } long longVal = Long . decode ( val ) . longValue ( ) ; if ( mustBeLong || long...
Parse an integer literal
159,598
static Selector parseFloatingLiteral ( String val ) { Number value ; char tag = val . charAt ( val . length ( ) - 1 ) ; if ( tag == 'f' || tag == 'F' ) value = new Float ( val ) ; else value = new Double ( val ) ; return new LiteralImpl ( value ) ; }
Parse a floating point literal
159,599
static Selector convertSet ( Selector expr , List set ) { Selector ans = null ; for ( int i = 0 ; i < set . size ( ) ; i ++ ) { Selector comparand = ( Selector ) set . get ( i ) ; Selector comparison = new OperatorImpl ( Operator . EQ , ( Selector ) expr . clone ( ) , comparand ) ; if ( ans == null ) ans = comparison ;...
Convert a partially parsed set expression into its more primitive form as a disjunction of equalities .