idx int64 0 41.2k | question stringlengths 83 4.15k | target stringlengths 5 715 |
|---|---|---|
35,800 | public RemoteInstanceResult getLogListForServerInstance ( RemoteInstanceDetails indicator , RepositoryPointer after , int offset , int maxRecords , Locale locale ) throws LogRepositoryException { ServerInstanceLogRecordList instance ; if ( after == null ) { instance = logReader . getLogListForServerInstance ( indicator... | retrieves records and header for one server instance . |
35,801 | public void setValidating ( boolean isValidating ) { if ( isValidating ) MCWrapper . isValidating . set ( true ) ; else MCWrapper . isValidating . remove ( ) ; } | Indicates to the connection manager whether validation is occurring on the current thread . |
35,802 | public synchronized BrowserProxyQueue createBrowserProxyQueue ( ) throws SIResourceException , SIIncorrectCallException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createBrowserProxyQueue" ) ; checkClosed ( ) ; short id = nextId ( ) ; BrowserProxyQueue proxyQueue =... | Creates a new browser proxy queue for this group . |
35,803 | public synchronized AsynchConsumerProxyQueue createAsynchConsumerProxyQueue ( OrderingContext oc ) throws SIResourceException , SIIncorrectCallException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createAsynchConsumerProxyQueue" ) ; short id = nextId ( ) ; AsynchCo... | Creates a new asynchronous consumer proxy queue for this group . |
35,804 | public synchronized AsynchConsumerProxyQueue createReadAheadProxyQueue ( Reliability unrecoverableReliability ) throws SIResourceException , SIIncorrectCallException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createReadAheadProxyQueue" ) ; checkClosed ( ) ; short ... | Creates a new read ahead proxy queue for this group . |
35,805 | public synchronized void bury ( ProxyQueue queue ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "bury" ) ; short id = queue . getId ( ) ; mutableId . setValue ( id ) ; idToProxyQueueMap . remove ( mutableId ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . is... | If a session is failed to be created then we need to bury it so that it never bothers us again . The queue is simply removed from the conversation group - no attempt is made to remove messages . It is assumed that if something went wrong in the creation then no messages would ever get to the queue . |
35,806 | public synchronized ProxyQueue find ( short proxyQueueId ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "find" , "" + proxyQueueId ) ; mutableId . setValue ( proxyQueueId ) ; ProxyQueue retQueue = idToProxyQueueMap . get ( mutableId ) ; if ( TraceComponent . isAnyTra... | Locates a proxy queue from this group via its queue ID . |
35,807 | protected void notifyClose ( ProxyQueue queue ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "notifyClose" , queue ) ; try { final short id = queue . getId ( ) ; idAllocator . releaseId ( id ) ; synchronized ( this ) { idToProxyQueueMap . remove ( new ImmutableId ( i... | Notified when a proxy queue in this group is closed . Allows us to free up the ID assigned to it . |
35,808 | private short nextId ( ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "nextId" ) ; short id ; try { id = idAllocator . allocateId ( ) ; } catch ( IdAllocatorException e ) { SIResourceException resourceException = new SIResourceException ( n... | Helper method . Returns the next id to be used for a proxy queue . |
35,809 | private void checkClosed ( ) throws SIIncorrectCallException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkClosed" , "" + closed ) ; if ( closed ) throw new SIIncorrectCallException ( TraceNLS . getFormattedMessage ( CommsConstants . MSG_BUNDLE , "PROXY_QUEUE_CO... | Helper method . Checks if this group has been closed and throws an exception if it has . |
35,810 | 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 . |
35,811 | 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 . |
35,812 | 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 . |
35,813 | 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 |
35,814 | 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 . |
35,815 | 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 . |
35,816 | 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 . |
35,817 | 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 . |
35,818 | 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 . |
35,819 | 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 . |
35,820 | 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 . |
35,821 | 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 . |
35,822 | 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 |
35,823 | 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 . |
35,824 | 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 . |
35,825 | 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 |
35,826 | 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 . |
35,827 | 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 . |
35,828 | 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 . |
35,829 | 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 . |
35,830 | 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 . |
35,831 | 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 . |
35,832 | 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 |
35,833 | 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 |
35,834 | 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 . |
35,835 | 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 . |
35,836 | 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 . |
35,837 | 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 . |
35,838 | 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 |
35,839 | 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 |
35,840 | public JSConsumerSet getConsumerSet ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getConsumerSet" ) ; SibTr . exit ( tc , "getConsumerSet" , consumerSet ) ; } return consumerSet ; } | Returns the consumerSet . |
35,841 | 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 . |
35,842 | 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 . |
35,843 | 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 . |
35,844 | 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 . |
35,845 | 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 . |
35,846 | 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 . |
35,847 | 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 . |
35,848 | 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 . |
35,849 | 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 . |
35,850 | 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 . |
35,851 | 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 . |
35,852 | 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 |
35,853 | 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 . |
35,854 | 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 |
35,855 | public static Converter findUIOutputConverter ( FacesContext facesContext , UIOutput component ) throws FacesException { return _SharedRendererUtils . findUIOutputConverter ( facesContext , component ) ; } | Find the proper Converter for the given UIOutput component . |
35,856 | public static Converter findUISelectManyConverter ( FacesContext facesContext , UISelectMany component ) { return findUISelectManyConverter ( facesContext , component , false ) ; } | Calls findUISelectManyConverter with considerValueType = false . |
35,857 | 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 . |
35,858 | 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 . |
35,859 | 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 . |
35,860 | 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 . |
35,861 | 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 . |
35,862 | 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 . |
35,863 | 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 |
35,864 | 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 . |
35,865 | 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 . |
35,866 | 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 . |
35,867 | 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 |
35,868 | 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 . |
35,869 | 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 |
35,870 | 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 |
35,871 | 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 . |
35,872 | 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 |
35,873 | 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 |
35,874 | 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 . |
35,875 | 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 . |
35,876 | 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 |
35,877 | 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 . |
35,878 | 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 . |
35,879 | 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 . |
35,880 | 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 . |
35,881 | 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 . |
35,882 | 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 . |
35,883 | 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 |
35,884 | 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 . |
35,885 | 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 . |
35,886 | 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 |
35,887 | 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 . |
35,888 | 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 . |
35,889 | 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 . |
35,890 | 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 . |
35,891 | 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 . |
35,892 | 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 . |
35,893 | 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 . |
35,894 | 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 . |
35,895 | 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 . |
35,896 | 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 . |
35,897 | 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 . |
35,898 | 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 . |
35,899 | 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 . |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.