idx int64 0 41.2k | question stringlengths 83 4.15k | target stringlengths 5 715 |
|---|---|---|
39,800 | public Map < String , String > getDurableSelectorNamespaceMap ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getDurableSelectorNamespaceMap" ) ; Map < String , String > map = null ; if ( jmo . getChoiceField ( ControlAccess . BODY_CREATEDURABLE_NAMESPACEMAP... | Get the map of prefixes to namespace URLs that are associated with the selector . |
39,801 | public void setDurableSelectorNamespaceMap ( Map < String , String > namespaceMap ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setDurableSelectorNamespaceMap" , namespaceMap ) ; if ( namespaceMap == null ) { jmo . setChoiceField ( ControlAccess . BODY_CREAT... | Sets a map of prefixes to namespace URLs that are associated with the selector . |
39,802 | public void close ( ) throws IOException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "close" , new Object [ ] { this , _file } ) ; synchronized ( RLSAccessFile . class ) { _useCount -- ; if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "remaining file use count" , new Integer ( _useCount ) ) ; if ( tc . isDebugE... | The logic in close needs to account for recursive calls . See notes below . |
39,803 | public int getInteger ( String key ) throws MissingResourceException { String result = getString ( key ) ; try { return Integer . parseInt ( result ) ; } catch ( NumberFormatException nfe ) { if ( tc . isEventEnabled ( ) ) { Tr . event ( tc , "Unable to parse " + result + " as Integer." ) ; } String msg = getMessages (... | Not sure why this is here . Looks like it is a replacement for Integer . getInteger . |
39,804 | public void stop ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "stop" ) ; mpioLockManager . lockExclusive ( ) ; started = false ; mpioLockManager . unlockExclusive ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc ,... | Method to stop MPIO from processing any new messages . This will take an exclusive lock on the lock manager and change the started flag to false . |
39,805 | public void receiveMessage ( MEConnection conn , AbstractMessage aMessage ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "receiveMessage" , new Object [ ] { conn , aMessage , "verboseMsg IN : " + aMessage . toVerboseString ( ) } ) ; if ( TraceComponent . isAnyTracing... | Receive a new Control message from an ME - ME connection . |
39,806 | public MPConnection getOrCreateNewMPConnection ( SIBUuid8 remoteUuid , MEConnection conn ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getOrCreateNewMPConnection" , new Object [ ] { remoteUuid , conn } ) ; MPConnection mpConn ; synchronized ( _mpConnectionsByMEConn... | Get a MPConnection from the cache and if there isn t one create a new one and put it in the cache . |
39,807 | public MPConnection removeConnection ( MEConnection conn ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeConnection" , new Object [ ] { conn } ) ; MPConnection mpConn ; synchronized ( _mpConnectionsByMEConnection ) { mpConn = _mpConnectionsByMEConnection . remo... | remove a MPConnection from the cache |
39,808 | public void error ( MEConnection conn , Throwable ex ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "error" , new Object [ ] { this , conn , ex } ) ; _commsErrorListener . error ( conn , ex ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ... | Indicates an error has occurred on a connection . |
39,809 | public void changeConnection ( MEConnection downConn , MEConnection upConn ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "changeConnection" , new Object [ ] { this , downConn , upConn } ) ; if ( downConn != null ) { removeConnection ( downConn ) ; } if ( TraceCompon... | Indiciates a failed connection a newly created connection or a connection swap . If upConn is null then connection downConn has been removed from the system . If downConn is null then connection upConn has been added to the system . Otherwise downConn has been removed and replaced by upConn . |
39,810 | public void sendToMe ( SIBUuid8 targetME , int priority , AbstractMessage aMessage ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "sendToMe" , new Object [ ] { aMessage , Integer . valueOf ( priority ) , targetME } ) ; MPConnection firstChoice = findMPConnection ( ta... | Send a ControlMessage to one specific ME |
39,811 | public void sendDownTree ( SIBUuid8 [ ] targets , int priority , AbstractMessage cMsg ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "sendDownTree" , new Object [ ] { this , cMsg , Integer . valueOf ( priority ) , targets } ) ; int length = targets . length ; MPConne... | Send a control message to a list of MEs |
39,812 | public boolean isMEReachable ( SIBUuid8 meUuid ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "isMEReachable" , new Object [ ] { this , meUuid } ) ; boolean result = ( findMPConnection ( meUuid ) != null ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEnt... | Test whether or not a particular ME is reachable . |
39,813 | public boolean isCompatibleME ( SIBUuid8 meUuid , ProtocolVersion version ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "isCompatibleME" , new Object [ ] { meUuid } ) ; boolean result = false ; MPConnection conn = findMPConnection ( meUuid ) ; if ( conn != null ) { ... | Test whether or not a particular ME is of a version compatible with this one . |
39,814 | public void forceConnect ( SIBUuid8 meUuid ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "forceConnect" , meUuid ) ; if ( _routingManager != null ) _routingManager . connectToME ( meUuid ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) ... | Can potentially block for up to 5 seconds |
39,815 | private List < SecurityConstraint > createSecurityConstraints ( SecurityMetadata securityMetadataFromDD , ServletSecurityElement servletSecurity , Collection < String > urlPatterns ) { List < SecurityConstraint > securityConstraints = new ArrayList < SecurityConstraint > ( ) ; securityConstraints . add ( getConstraintF... | Constructs a list of SecurityConstraint objects from the given ServletSecurityElement and list of URL patterns . |
39,816 | private SecurityConstraint getConstraintFromHttpElement ( SecurityMetadata securityMetadataFromDD , Collection < String > urlPatterns , ServletSecurityElement servletSecurity ) { List < String > omissionMethods = new ArrayList < String > ( ) ; if ( ! servletSecurity . getMethodNames ( ) . isEmpty ( ) ) { omissionMethod... | Gets the security constraint from the HttpConstraint element defined in the given ServletSecurityElement with the given list of url patterns . |
39,817 | private List < SecurityConstraint > getConstraintsFromHttpMethodElement ( SecurityMetadata securityMetadataFromDD , Collection < String > urlPatterns , ServletSecurityElement servletSecurity ) { List < SecurityConstraint > securityConstraints = new ArrayList < SecurityConstraint > ( ) ; Collection < HttpMethodConstrain... | Gets the security constraints from the HttpMethodConstraint elements defined in the given ServletSecurityElement with the given list of url patterns . |
39,818 | private SecurityConstraint createSecurityConstraint ( SecurityMetadata securityMetadataFromDD , List < WebResourceCollection > webResourceCollections , HttpConstraintElement httpConstraint , boolean fromHttpConstraint ) { List < String > roles = createRoles ( httpConstraint ) ; List < String > allRoles = securityMetada... | Creates a security constraint from the given web resource collections url patterns and HttpConstraint element . |
39,819 | private boolean isSSLRequired ( HttpConstraintElement httpConstraint ) { boolean sslRequired = false ; TransportGuarantee transportGuarantee = httpConstraint . getTransportGuarantee ( ) ; if ( transportGuarantee != TransportGuarantee . NONE ) { sslRequired = true ; } return sslRequired ; } | Determines if SSL is required for the given HTTP constraint . |
39,820 | private boolean isAccessPrecluded ( HttpConstraintElement httpConstraint ) { boolean accessPrecluded = false ; String [ ] roles = httpConstraint . getRolesAllowed ( ) ; if ( roles == null || roles . length == 0 ) { if ( EmptyRoleSemantic . DENY == httpConstraint . getEmptyRoleSemantic ( ) ) accessPrecluded = true ; } r... | Determines if access is precluded for the given HTTP constraint . |
39,821 | private boolean isAccessUncovered ( HttpConstraintElement httpConstraint ) { boolean accessUncovered = false ; String [ ] roles = httpConstraint . getRolesAllowed ( ) ; if ( roles == null || roles . length == 0 ) { if ( EmptyRoleSemantic . PERMIT == httpConstraint . getEmptyRoleSemantic ( ) ) accessUncovered = true ; }... | Determines if access is uncovered for the given HTTP constraint . |
39,822 | private void setModuleSecurityMetaData ( Container moduleContainer , SecurityMetadata securityMetadataFromDD ) { try { WebModuleMetaData wmmd = moduleContainer . adapt ( WebModuleMetaData . class ) ; wmmd . setSecurityMetaData ( securityMetadataFromDD ) ; } catch ( UnableToAdaptException e ) { if ( TraceComponent . isA... | Sets the given security metadata on the deployed module s web module metadata for retrieval later . |
39,823 | public void release ( ) { _applicationFactory = null ; _currentFacesContext = null ; if ( _defaultExternalContext != null ) { _defaultExternalContext . release ( ) ; _defaultExternalContext = null ; } _application = null ; _externalContext = null ; _viewRoot = null ; _renderKitFactory = null ; _elContext = null ; _exce... | Releases the instance fields on FacesContextImplBase . Must be called by sub - classes when overriding it! |
39,824 | private void findMarkers ( String url , String target ) { final char [ ] data = url . toCharArray ( ) ; int i = 0 ; int lastSlash = 0 ; for ( ; i < data . length ; i ++ ) { if ( '/' == data [ i ] ) { lastSlash = i ; } else if ( '?' == data [ i ] ) { this . queryMarker = i ; break ; } } for ( i = lastSlash ; i < data . ... | Scan the data for various markers including the provided session id target . |
39,825 | private void formLogout ( HttpServletRequest req , HttpServletResponse res ) throws ServletException , IOException { try { String exitPage = getValidLogoutExitPage ( req ) ; if ( exitPage != null ) { req . setAttribute ( "FormLogoutExitPage" , exitPage ) ; } authenticateApi . logout ( req , res , webAppSecurityConfig )... | Log the user out by clearing the LTPA cookie if LTPA and SSO are enabled . Must also invalidate the http session since it contains user id and password . Finally if the user specified an exit page with a form parameter of logoutExitPage redirect to the specified page . |
39,826 | private String getValidLogoutExitPage ( HttpServletRequest req ) { boolean valid = false ; String exitPage = req . getParameter ( "logoutExitPage" ) ; if ( exitPage != null && exitPage . length ( ) != 0 ) { boolean logoutExitURLaccepted = verifyLogoutURL ( req , exitPage ) ; if ( logoutExitURLaccepted ) { exitPage = re... | return a logoutExitPage string suitable for redirection if one is defined and valid . else return null |
39,827 | private void useDefaultLogoutMsg ( HttpServletResponse res ) { try { PrintWriter pw = res . getWriter ( ) ; pw . println ( DEFAULT_LOGOUT_MSG ) ; } catch ( IOException e ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , e . getMessage ( ) ) ; } if ( TraceComponent . isAnyT... | Display the default logout message . |
39,828 | private boolean isRedirectHostTheSameAsLocalHost ( String exitPage , String logoutURLhost , String hostFullName , String shortName , String ipAddress ) { String localHostIpAddress = "127.0.0.1" ; boolean acceptURL = false ; if ( logoutURLhost . equalsIgnoreCase ( "localhost" ) || logoutURLhost . equals ( localHostIpAdd... | Check the logout URL host name with various combination of shortName full name and ipAddress . |
39,829 | private boolean isRequestURLEqualsExitPageHost ( HttpServletRequest req , String logoutURLhost ) { boolean acceptURL = false ; try { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "about to attempt matching the logout exit url with the domain of the request." ) ; StringBuff... | Attempt to match the request URL s host with the URL for the exitPage this might be the case of a proxy URL that is used in the request . |
39,830 | public synchronized boolean makeExclusiveDependency ( int depStreamID , int exclusiveParentStreamID ) { Node depNode = root . findNode ( depStreamID ) ; Node exclusiveParentNode = root . findNode ( exclusiveParentStreamID ) ; return makeExclusiveDependency ( depNode , exclusiveParentNode ) ; } | Helper method to find the nodes given the stream IDs and then call the method that does the real work . |
39,831 | public synchronized boolean changeParent ( int depStreamID , int newPriority , int newParentStreamID , boolean exclusive ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "changeParent entry: depStreamID: " + depStreamID + " newParentStreamID: " + newParentStreamID + " e... | Implement the above spec functionality |
39,832 | private void populateTopics ( String [ ] topics ) { for ( String t : topics ) { t = t . trim ( ) ; if ( t . startsWith ( "/" ) || t . endsWith ( "/" ) || t . contains ( "//" ) || t . isEmpty ( ) ) { continue ; } checkTopicSubscribePermission ( t ) ; if ( t . equals ( "*" ) ) { wildcardTopics . add ( "" ) ; } else if ( ... | Parse the topic specifications into the appropriate lists . |
39,833 | private void checkTopicSubscribePermission ( String topic ) { SecurityManager sm = System . getSecurityManager ( ) ; if ( sm == null ) return ; sm . checkPermission ( new TopicPermission ( topic , SUBSCRIBE ) ) ; } | Check if the caller has permission to subscribe to events published to the specified topic . |
39,834 | void fireEvent ( ) { boolean useLock = ! isReentrant ( ) ; if ( useLock ) { lock . lock ( ) ; } EventImpl event = eventQueue . poll ( ) ; try { if ( event != null ) { fireEvent ( event ) ; } } finally { if ( useLock ) { lock . unlock ( ) ; } } } | Deliver this event to the next target handler pulled from the handlerQueue . If the handler is not reentrant the delivery will be serialized to prevent multiple threads entering the handler concurrently . |
39,835 | public Throwable getCause ( ) { if ( exceptions != null && exceptions . size ( ) > 0 ) return ( Throwable ) exceptions . get ( 0 ) ; else return null ; } | Returns the root cause exception . |
39,836 | public void addBootJars ( List < URL > urlList ) { addBootJars ( cache . getJarFiles ( kernelMf ) , urlList ) ; addBootJars ( cache . getJarFiles ( logProviderMf ) , urlList ) ; if ( osExtensionMf != null ) addBootJars ( cache . getJarFiles ( osExtensionMf ) , urlList ) ; } | Add any boot . jar resources specified by the kernel log provider or os extension definition files |
39,837 | private void addBootJars ( List < File > jarFiles , List < URL > urlList ) { for ( File jarFile : jarFiles ) { try { urlList . add ( jarFile . toURI ( ) . toURL ( ) ) ; } catch ( MalformedURLException e ) { } } } | Given the list of files add the URL for each file to the list of URLs |
39,838 | public SIMessageHandle getMessageHandle ( ) { if ( cachedMessageHandle == null ) { byte [ ] b = ( byte [ ] ) jmo . getField ( JsHdrAccess . SYSTEMMESSAGESOURCEUUID ) ; if ( b != null ) { cachedMessageHandle = new JsMessageHandleImpl ( new SIBUuid8 ( b ) , ( Long ) jmo . getField ( JsHdrAccess . SYSTEMMESSAGEVALUE ) ) ;... | Get the message handle which uniquely identifies this message . |
39,839 | final void setProducerType ( ProducerType value ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setProducerType" , value ) ; getHdr2 ( ) . setField ( JsHdr2Access . PRODUCERTYPE , value . toByte ( ) ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isE... | Set the value of the ProducerType field in the message header . This method is only used by message constructors so is not public final . |
39,840 | final void setJsMessageType ( MessageType value ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setJsMessageType" , value ) ; jmo . setField ( JsHdrAccess . MESSAGETYPE , value . toByte ( ) ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabl... | Set the value of the JsMessageType in the message header . This method is only used by message constructors so is not public final . |
39,841 | public final void setGuaranteedRemoteGetPrevTick ( long value ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setGuaranteedRemoteGetPrevTick" , Long . valueOf ( value ) ) ; getHdr2 ( ) . setLongField ( JsHdr2Access . GUARANTEEDREMOTEGET_SET_PREVTICK , value ) ... | Set the Guaranteed Delivery Remote Get Prev Tick value from the message . |
39,842 | final void setSubtype ( Byte value ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setSubtype" , value ) ; jmo . setField ( JsHdrAccess . SUBTYPE , value ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , ... | Set the Byte field which indicates the subtype of the message . |
39,843 | void copyTransients ( JsHdrsImpl copy ) { copy . cachedMessageWaitTime = cachedMessageWaitTime ; copy . cachedReliability = cachedReliability ; copy . cachedPriority = cachedPriority ; copy . cachedMessageHandle = cachedMessageHandle ; copy . flags = flags ; copy . gotFlags = gotFlags ; } | Copies any interesting transient data into the given message copy . |
39,844 | synchronized final JsMsgPart getHdr2 ( ) { if ( hdr2 == null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "getHdr2 will call getPart" ) ; hdr2 = jmo . getPart ( JsHdrAccess . HDR2 , JsHdr2Access . schema ) ; } return hdr2 ; } | Get the JsMsgPart which contains the JMF Message described by the JsHdr2 schema . Once obtained the value is cached and the cached value is returned until the cache is cleared . |
39,845 | synchronized final JsMsgPart getApi ( ) { if ( api == null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "getApi will call getPart" ) ; api = jmo . getPart ( JsHdrAccess . API_DATA , JsApiAccess . schema ) ; } return api ; } | Get the JsMsgPart which contains the JMF Message described by the JsApi schema . Once obtained the value is cached and the cached value is returned until the cache is cleared . |
39,846 | synchronized final JsMsgPart getPayload ( JMFSchema schema ) { if ( payload == null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "getPayload will call getPart" ) ; payload = jmo . getPayloadPart ( ) . getPart ( JsPayloadAccess . PAYLOAD_DATA , schema ) ; } r... | Get the JsMsgPart which contains the JMF Message described by the schema for the data field in the JsPayload Schema . Once obtained the value is cached and the cached value is returned until the cache is cleared . |
39,847 | synchronized final JsMsgPart getPayloadIfFluffed ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { if ( payload == null ) SibTr . debug ( this , tc , "getPayloadIfFluffed returning null" ) ; } return payload ; } | Get the JsMsgPart which contains the JMF Message described by the schema for the data field in the JsPayload Schema if it has already been fluffed up and cached . If the part is not already fluffed and cached just return null as the caller does NOT want to fluff it up . |
39,848 | synchronized final void clearPartCaches ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "clearPartCaches" ) ; hdr2 = api = payload = null ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "clearPartCaches"... | Clear the cached references to other message parts . |
39,849 | private final void setFlagValue ( byte flagBit , boolean value ) { if ( value ) { flags = ( byte ) ( getFlags ( ) | flagBit ) ; } else { flags = ( byte ) ( getFlags ( ) & ( ~ flagBit ) ) ; } } | Set the boolean value of one of the flags in the FLAGS field of th message . |
39,850 | public String getValue ( FaceletContext ctx ) { if ( ( this . capabilities & EL_LITERAL ) != 0 ) { return this . value ; } else { return ( String ) this . getObject ( ctx , String . class ) ; } } | If literal then return our value otherwise delegate to getObject passing String . class . |
39,851 | public Object getObject ( FaceletContext ctx , Class type ) { if ( ( this . capabilities & EL_LITERAL ) != 0 ) { if ( String . class . equals ( type ) ) { return this . value ; } else { try { return ctx . getExpressionFactory ( ) . coerceToType ( this . value , type ) ; } catch ( Exception e ) { throw new TagAttributeE... | If literal simply coerce our String literal value using an ExpressionFactory otherwise create a ValueExpression and evaluate it . |
39,852 | public ValueExpression getValueExpression ( FaceletContext ctx , Class type ) { AbstractFaceletContext actx = ( AbstractFaceletContext ) ctx ; Object [ ] localCachedExpression = cachedExpression ; if ( actx . isAllowCacheELExpressions ( ) && localCachedExpression != null && localCachedExpression . length == 2 ) { if ( ... | Create a ValueExpression using this attribute s literal value and the passed expected type . |
39,853 | protected String stripFileSeparateAtTheEnd ( String path ) { return ( path != null && ( path . endsWith ( "/" ) || path . endsWith ( "\\" ) ) ) ? path . substring ( 0 , path . length ( ) - 1 ) : path ; } | remove separator at the end of userDir directory if exist |
39,854 | protected void renderId ( FacesContext context , UIComponent component ) throws IOException { if ( shouldRenderId ( context , component ) ) { String clientId = getClientId ( context , component ) ; context . getResponseWriter ( ) . writeAttribute ( HTML . ID_ATTR , clientId , JSFAttr . ID_ATTR ) ; } } | Renders the client ID as an id . |
39,855 | protected boolean shouldRenderId ( FacesContext context , UIComponent component ) { String id = component . getId ( ) ; if ( id == null ) { return false ; } if ( id . startsWith ( UIViewRoot . UNIQUE_ID_PREFIX ) ) { return false ; } return true ; } | Returns true if the component should render an ID . Components that deliver events should always return true . |
39,856 | static public String toUri ( Object o ) { if ( o == null ) { return null ; } String uri = o . toString ( ) ; if ( uri . startsWith ( "/" ) ) { if ( uri . startsWith ( "//" ) ) { uri = uri . substring ( 1 ) ; } else { FacesContext fContext = FacesContext . getCurrentInstance ( ) ; uri = fContext . getExternalContext ( )... | Coerces an object into a URI accounting for JSF rules with initial slashes . |
39,857 | public ValueExpression resolveVariable ( String variable ) { ValueExpression ve = null ; try { if ( _vars != null ) { ve = ( ValueExpression ) _vars . get ( variable ) ; if ( _trackResolveVariables && ve != null ) { _variableResolved = true ; } } if ( ve == null ) { return _target . resolveVariable ( variable ) ; } ret... | First tries to resolve agains the inner Map then the wrapped ValueExpression . |
39,858 | public String [ ] introspectSelf ( ) { List < ? > nameValuePairs = Arrays . asList ( BEGIN_TRAN_FOR_SCROLLING_APIS , beginTranForResultSetScrollingAPIs , BEGIN_TRAN_FOR_VENDOR_APIS , beginTranForVendorAPIs , COMMIT_OR_ROLLBACK_ON_CLEANUP , commitOrRollbackOnCleanup , CONNECTION_SHARING , connectionSharing , DataSourceD... | Returns information to log on first failure . |
39,859 | public final static ControlMessageType getControlMessageType ( Byte aValue ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "Value = " + aValue ) ; return set [ aValue . intValue ( ) ] ; } | Returns the corresponding ControlMessageType for a given integer . This method should NOT be called by any code outside the MFP component . It is only public so that it can be accessed by sub - packages . |
39,860 | public void updateDefinition ( ForeignBusDefinition foreignBusDefinition ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "updateDefinition" , foreignBusDefinition ) ; ForeignDestinationDefault newForeignDefault = null ; updateSendAllowed ( _... | Dynamically update the foreignBusDefinition |
39,861 | public void updateSendAllowed ( boolean oldSendAllowed , boolean newSendAllowed ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "updateSendAllowed" , new Object [ ] { Boolean . valueOf ( oldSendAllowed ) , Boolean . valueOf ( newSendAllowed ) } ) ; if ( oldSendAllowed... | Update sendAllowed setting for this bus and any targetting Handlers . |
39,862 | public void updateVirtualLinkDefinition ( VirtualLinkDefinition newVirtualLinkDefinition ) throws SIIncorrectCallException , SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "updateVirtualLinkDefinition" , new Object [ ] { newVirtualLinkDefinition } )... | Update VirtualLinkDefinition attributes such as inbound or outbound userid settings for this bus and any targetting Handlers . |
39,863 | public boolean checkDestinationAccess ( SecurityContext secContext , OperationType operation ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkDestinationAccess" , new Object [ ] { secContext , operation } ) ; boolean allow = false ; if ( accessChecker . checkFore... | Check permission to access a Destination |
39,864 | @ FFDCIgnore ( NullPointerException . class ) private void addEventToRingBuffer ( Object event ) { if ( ringBuffer != null ) { try { ringBuffer . add ( event ) ; } catch ( NullPointerException npe ) { } } } | Method to add events to the ringBufferthat and ignores a possible NPE with ringBuffer which is due to the removeHandler method call from this same class |
39,865 | public synchronized void addSyncHandler ( SynchronousHandler syncHandler ) { if ( earlyMessageQueue != null && earlyMessageQueue . size ( ) != 0 && ! synchronousHandlerSet . contains ( syncHandler ) ) { for ( Object message : earlyMessageQueue . toArray ( ) ) { if ( message != null ) { syncHandler . synchronousWrite ( ... | Add a synchronousHandler that will receive log events directly |
39,866 | public synchronized void removeSyncHandler ( SynchronousHandler syncHandler ) { Set < SynchronousHandler > synchronousHandlerSetCopy = new HashSet < SynchronousHandler > ( synchronousHandlerSet ) ; synchronousHandlerSetCopy . remove ( syncHandler ) ; Tr . event ( tc , "Removed Synchronous Handler: " + syncHandler . get... | Remove a synchronousHandler from receiving log events directly |
39,867 | public synchronized void removeHandler ( String handlerId ) { handlerEventMap . remove ( handlerId ) ; Tr . event ( tc , "Removed Asynchronous Handler: " + handlerId ) ; if ( handlerEventMap . isEmpty ( ) ) { ringBuffer = null ; Tr . event ( tc , "ringBuffer for this BufferManagerImpl has now been set to null" ) ; } } | Remove the given handlerId from this BufferManager |
39,868 | public static EJBSerializer instance ( ) { EJBSerializer theInstance ; synchronized ( CLASS_NAME ) { if ( cvInstance == null ) { try { cvInstance = ( EJBSerializer ) Class . forName ( IMPL_CLASS_NAME ) . newInstance ( ) ; } catch ( Throwable t ) { FFDCFilter . processException ( t , CLASS_NAME + ".cvInstance" , "46" ) ... | Returns singleton instance . |
39,869 | public void initializeAppCounters ( String appName ) { if ( StatsFactory . isPMIEnabled ( ) ) { synchronized ( this ) { appPmi = new WebAppModule ( appName , true ) ; appPmiState = APP_PMI_WEB ; } } } | This method initialize the module instance and register it . |
39,870 | protected List < AuthorizationValue > transform ( List < AuthorizationValue > input ) { if ( input == null ) { return null ; } List < AuthorizationValue > output = new ArrayList < > ( ) ; for ( AuthorizationValue value : input ) { AuthorizationValue v = new AuthorizationValue ( ) ; v . setKeyName ( value . getKeyName (... | Transform the swagger - model version of AuthorizationValue into a parser - specific one to avoid dependencies across extensions |
39,871 | static < T > T ensureNotNull ( String msg , T t ) throws ClassLoadingConfigurationException { ensure ( msg , t != null ) ; return t ; } | Check that the parameter is not null . |
39,872 | static < T > String join ( Iterable < T > elems , String delim ) { if ( elems == null ) return "" ; StringBuilder result = new StringBuilder ( ) ; for ( T elem : elems ) result . append ( elem ) . append ( delim ) ; if ( result . length ( ) > 0 ) result . setLength ( result . length ( ) - delim . length ( ) ) ; return ... | Join several objects into a string |
39,873 | static < T > Enumeration < T > compose ( Enumeration < T > e1 , Enumeration < T > e2 ) { return isEmpty ( e1 ) ? e2 : isEmpty ( e2 ) ? e1 : new CompositeEnumeration < T > ( e1 ) . add ( e2 ) ; } | Compose two enumerations into one . |
39,874 | public synchronized void add ( int requestId , ReceiveListener rl , SendListener s ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "add" , new Object [ ] { "" + requestId , rl , s } ) ; if ( containsId ( requestId ) ) { if ( TraceComponent . isAnyTracingEnabled... | Adds an entry to the request ID table using the specified request ID . |
39,875 | public synchronized SendListener getSendListener ( int requestId ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getSendListener" , "" + requestId ) ; if ( ! containsId ( requestId ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ... | Returns the semaphore assocaited with the specified request ID . The request ID must be present in the table otherwise a runtime exception is thrown . |
39,876 | public synchronized ReceiveListener getListener ( int requestId ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getListener" , "" + requestId ) ; if ( ! containsId ( requestId ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) deb... | Returns the receive listener associated with the specified request ID . The request ID must be present in the table otherwise a runtime exception will be thrown . |
39,877 | public synchronized boolean containsId ( int requestId ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "containsId" , "" + requestId ) ; testReqIdTableEntry . requestId = requestId ; boolean result = table . containsKey ( testReqIdTableEntry ) ; if ( TraceCompo... | Tests to see if the table contains a specified request ID . |
39,878 | public synchronized Iterator receiveListenerIterator ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "receiveListenerIterator" ) ; final LinkedList < ReceiveListener > linkedList = new LinkedList < ReceiveListener > ( ) ; final Iterator iterator = table . val... | Returns an iterator which iterates over receive listeners in the table . |
39,879 | public synchronized Iterator sendListenerIterator ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "sendListenerIterator" ) ; final LinkedList < SendListener > linkedList = new LinkedList < SendListener > ( ) ; final Iterator iterator = table . values ( ) . it... | Returns an iterator which iterates over the send listeners in the table . |
39,880 | protected List < String > getFileLocationsFromSubsystemContent ( String subsystemContent ) { String sc = subsystemContent + "," ; List < String > files = new ArrayList < String > ( ) ; boolean isFile = false ; String location = null ; int strLen = sc . length ( ) ; boolean quoted = false ; for ( int i = 0 , pos = 0 ; i... | returns the list of location attribute of which type is file in the given text of Subsystem - Content . the location may or may not be an absolute path . If there is not a mathing data returns empty List . |
39,881 | protected String getValue ( String str ) { int index = str . indexOf ( '=' ) ; String value = null ; if ( index > 0 ) { value = str . substring ( index + 1 ) . trim ( ) ; if ( value . charAt ( 0 ) == '\"' ) { value = value . substring ( 1 , value . length ( ) - 1 ) ; } } return value ; } | returns the value of key = value pair . if the value is quoted the quotation characters are stripped . |
39,882 | protected String getFeatureSymbolicName ( Attributes attrs ) { String output = null ; if ( attrs != null ) { String value = attrs . getValue ( HDR_SUB_SYM_NAME ) ; if ( value != null ) { String [ ] parts = value . split ( ";" ) ; if ( parts . length > 0 ) { output = parts [ 0 ] . trim ( ) ; } } } return output ; } | returns the feature symbolic name from Attribute object . |
39,883 | protected String getFeatureName ( Attributes attrs ) { String output = null ; if ( attrs != null ) { String value = attrs . getValue ( HDR_SUB_SHORT_NAME ) ; if ( value != null ) { output = value . trim ( ) ; } else { output = getFeatureSymbolicName ( attrs ) ; } } return output ; } | returns the feature name from Attribute object . if IBM - ShortName exists use this value otherwise use the symbolic name . |
39,884 | protected String getLocalizedString ( File featureManifest , String value ) { if ( value != null && value . startsWith ( "%" ) ) { ResourceBundle res = CustomUtils . getResourceBundle ( new File ( featureManifest . getParentFile ( ) , "l10n" ) , featureSymbolicName , Locale . getDefault ( ) ) ; if ( res != null ) { Str... | returns the localized string of specified value . the localization file supposes to be located the l10n directory of the location where the feature manifest file exists and the name of the resource file is feature symbolic name + _ + locale + . properties . prior to call this method featureSymbolicName field needs to b... |
39,885 | public ManagedObject injectAndPostConstruct ( final Object target ) throws InjectionException { final String METHOD_NAME = "injectAndPostConstruct" ; if ( TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { logger . entering ( CLASS_NAME , METHOD_NAME , target ) ; } ManagedObject r = in... | This method injects the target object then immediately performs PostConstruct operations |
39,886 | @ FFDCIgnore ( IOException . class ) public static Map < String , Object > parseExtensions ( Extension [ ] extensions ) { final Map < String , Object > map = new HashMap < String , Object > ( ) ; for ( Extension extension : extensions ) { final String name = extension . name ( ) ; final String key = name . length ( ) >... | Collects extensions . |
39,887 | protected String add_escapes ( String str ) { StringBuffer retval = new StringBuffer ( ) ; char ch ; for ( int i = 0 ; i < str . length ( ) ; i ++ ) { switch ( str . charAt ( i ) ) { case 0 : continue ; case '\b' : retval . append ( "\\b" ) ; continue ; case '\t' : retval . append ( "\\t" ) ; continue ; case '\n' : ret... | Used to convert raw characters to their escaped version when these raw version cannot be used as part of an ASCII string literal . |
39,888 | public void checkWritePermission ( TimedDirContext ctx ) throws OperationNotSupportedException { if ( ! iWriteToSecondary ) { String providerURL = getProviderURL ( ctx ) ; if ( ! getPrimaryURL ( ) . equalsIgnoreCase ( providerURL ) ) { String msg = Tr . formatMessage ( tc , WIMMessageKey . WRITE_TO_SECONDARY_SERVERS_NO... | Check whether we can write on the LDAP server the context is currently connected to . It is not permissible to write to a fail - over server if write to secondary is disabled . |
39,889 | @ FFDCIgnore ( NamingException . class ) private void closeContextPool ( List < TimedDirContext > contexts ) { final String METHODNAME = "closeContextPool" ; if ( contexts != null ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , METHODNAME + " Context pool being closed by " + Thread . currentThread ( ) + ", Conte... | Close the context pool . |
39,890 | private void createContextPool ( Integer poolSize , String providerURL ) throws NamingException { final String METHODNAME = "createContextPool" ; if ( providerURL == null ) { providerURL = getPrimaryURL ( ) ; } if ( poolSize == null ) { poolSize = DEFAULT_INIT_POOL_SIZE ; } if ( iContextPoolEnabled ) { long currentTime... | Create a directory context pool of the specified size . |
39,891 | public DirContext createSubcontext ( String name , Attributes attrs ) throws OperationNotSupportedException , WIMSystemException , EntityAlreadyExistsException , EntityNotFoundException { final String METHODNAME = "createSubcontext" ; DirContext dirContext = null ; TimedDirContext ctx = getDirContext ( ) ; checkWritePe... | Creates and binds a new context along with associated attributes . |
39,892 | public void destroySubcontext ( String name ) throws EntityHasDescendantsException , EntityNotFoundException , WIMSystemException { TimedDirContext ctx = getDirContext ( ) ; try { try { ctx . destroySubcontext ( new LdapName ( name ) ) ; } catch ( NamingException e ) { if ( ! isConnectionException ( e ) ) { throw e ; }... | Delete the given name from the LDAP tree . |
39,893 | private static String formatIPv6Addr ( String host ) { if ( host == null ) { return null ; } else { return ( new StringBuilder ( ) ) . append ( "[" ) . append ( host ) . append ( "]" ) . toString ( ) ; } } | Format the given address as an IPv6 Address . |
39,894 | @ SuppressWarnings ( "unchecked" ) private Hashtable < String , Object > getEnvironment ( int type , String startingURL ) { Hashtable < String , Object > env = new Hashtable < String , Object > ( iEnvironment ) ; List < String > urlList = ( List < String > ) env . remove ( ENVKEY_URL_LIST ) ; int numURLs = urlList . si... | Returns LDAP environment containing specified URL sequence . |
39,895 | @ SuppressWarnings ( "unchecked" ) private List < String > getEnvURLList ( ) { return ( List < String > ) iEnvironment . get ( ENVKEY_URL_LIST ) ; } | Helper method to get the configured list of URLs . |
39,896 | private String getNextURL ( String currentURL ) { List < String > urlList = getEnvURLList ( ) ; int urlIndex = getURLIndex ( currentURL , urlList ) ; return urlList . get ( ( urlIndex + 1 ) % urlList . size ( ) ) ; } | Returns the next URL after the specified URL . |
39,897 | @ FFDCIgnore ( NamingException . class ) private String getProviderURL ( TimedDirContext ctx ) { try { return ( String ) ctx . getEnvironment ( ) . get ( Context . PROVIDER_URL ) ; } catch ( NamingException e ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "getProviderURL" , e . toString ( true ) ) ; } return "(... | Get the provider URL from the given directory context . |
39,898 | private int getURLIndex ( String url , List < String > urlList ) { int urlIndex = 0 ; int numURLs = urlList . size ( ) ; if ( url != null ) for ( int i = 0 ; i < numURLs ; i ++ ) if ( ( urlList . get ( i ) ) . equalsIgnoreCase ( url ) ) { urlIndex = i ; break ; } return urlIndex ; } | Returns URL index in the URL list . |
39,899 | private void handleBindStat ( long elapsedTime ) { String METHODNAME = "handleBindStat(long)" ; if ( elapsedTime < LDAP_CONNECT_TIMEOUT_TRACE ) { QUICK_LDAP_BIND . getAndIncrement ( ) ; } long now = System . currentTimeMillis ( ) ; if ( now - LDAP_STATS_TIMER . get ( ) > 1800000 ) { long lastUpdated = LDAP_STATS_TIMER ... | Track the count of quick binds . Dump the updated statistic to the log at most once every 30 seconds . |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.