idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
161,900
public static final String getThreadId ( ) { String id = threadids . get ( ) ; if ( null == id ) { id = getThreadId ( Thread . currentThread ( ) ) ; threadids . set ( id ) ; } return id ; }
Get and return the thread id padded to 8 characters .
161,901
public static final String padHexString ( int num , int width ) { final String zeroPad = "0000000000000000" ; String str = Integer . toHexString ( num ) ; final int length = str . length ( ) ; if ( length >= width ) return str ; StringBuilder buffer = new StringBuilder ( zeroPad . substring ( 0 , width ) ) ; buffer . r...
Returns the provided integer padded to the specified number of characters with zeros .
161,902
public static final String throwableToString ( Throwable t ) { final StringWriter s = new StringWriter ( ) ; final PrintWriter p = new PrintWriter ( s ) ; if ( t == null ) { p . println ( "none" ) ; } else { printStackTrace ( p , t ) ; } return DataFormatHelper . escape ( s . toString ( ) ) ; }
Returns a string containing the formatted exception stack
161,903
private static final boolean printFieldStackTrace ( PrintWriter p , Throwable t , String className , String fieldName ) { for ( Class < ? > c = t . getClass ( ) ; c != Object . class ; c = c . getSuperclass ( ) ) { if ( c . getName ( ) . equals ( className ) ) { try { Object value = c . getField ( fieldName ) . get ( t...
Find a field value in the class hierarchy of an exception and if the field contains another Throwable then print its stack trace .
161,904
private String createErrorMsg ( JspLineId jspLineId , int errorLineNr ) { StringBuffer compilerOutput = new StringBuffer ( ) ; if ( jspLineId . getSourceLineCount ( ) <= 1 ) { Object [ ] objArray = new Object [ ] { new Integer ( jspLineId . getStartSourceLineNum ( ) ) , jspLineId . getFilePath ( ) } ; if ( jspLineId . ...
name of parent file
161,905
@ SuppressWarnings ( "unchecked" ) public static < T > T getInstanceInitParameter ( ExternalContext context , String name , String deprecatedName , T defaultValue ) { String param = getStringInitParameter ( context , name , deprecatedName ) ; if ( param == null ) { return defaultValue ; } else { try { return ( T ) Clas...
Gets the init parameter value from the specified context and instanciate it . If the parameter was not specified the default value is used instead .
161,906
public static String escapeLDAPFilterTerm ( String term ) { if ( term == null ) return null ; Matcher m = FILTER_CHARS_TO_ESCAPE . matcher ( term ) ; StringBuffer sb = new StringBuffer ( term . length ( ) ) ; while ( m . find ( ) ) { final String replacement = escapeFilterChar ( m . group ( ) . charAt ( 0 ) ) ; m . app...
Escape a term for use in an LDAP filter .
161,907
private static Method getBindingMethod ( UIComponent parent ) { Class [ ] clazzes = parent . getClass ( ) . getInterfaces ( ) ; for ( int i = 0 ; i < clazzes . length ; i ++ ) { Class clazz = clazzes [ i ] ; if ( clazz . getName ( ) . indexOf ( "BindingAware" ) != - 1 ) { try { return parent . getClass ( ) . getMethod ...
This is all a hack to work around a spec - bug which will be fixed in JSF2 . 0
161,908
public void setObjectClasses ( List < String > objectClasses ) { int size = objectClasses . size ( ) ; iObjectClasses = new ArrayList < String > ( objectClasses . size ( ) ) ; for ( int i = 0 ; i < size ; i ++ ) { String objectClass = objectClasses . get ( i ) . toLowerCase ( ) ; if ( ! iObjectClasses . contains ( obje...
Sets a list of defining object classes for this entity type . The object classes will be stored in lower case form for comparison .
161,909
public void setObjectClassesForCreate ( List < String > objectClasses ) { if ( iRDNObjectClass != null && iRDNObjectClass . length > 1 ) { iObjectClassAttrs = new Attribute [ iRDNObjectClass . length ] ; for ( int i = 0 ; i < iRDNObjectClass . length ; i ++ ) { iObjectClassAttrs [ i ] = new BasicAttribute ( LdapConstan...
Sets the object classes attribute for creating .
161,910
public void setRDNAttributes ( List < Map < String , Object > > rdnAttrList ) throws MissingInitPropertyException { int size = rdnAttrList . size ( ) ; if ( size > 0 ) { iRDNAttrs = new String [ size ] [ ] ; iRDNObjectClass = new String [ size ] [ ] ; if ( size == 1 ) { Map < String , Object > rdnAttr = rdnAttrList . g...
Sets the RDN attribute types of this member type . RDN attribute types will be converted to lower case .
161,911
public Attribute getObjectClassAttribute ( String dn ) { if ( iObjectClassAttrs . length == 1 || dn == null ) { return iObjectClassAttrs [ 0 ] ; } else { String [ ] rdns = LdapHelper . getRDNAttributes ( dn ) ; for ( int i = 0 ; i < iRDNAttrs . length ; i ++ ) { String [ ] attrs = iRDNAttrs [ i ] ; for ( int j = 0 ; j ...
Gets the LDAP object class attribute that contains all object classes needed to create the member on LDAP server .
161,912
public SimpleEntry next ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "next" , this ) ; SibTr . exit ( tc , "next" , this . next ) ; } return this . next ; }
Return the next entry in the list
161,913
public void remove ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "remove" , this ) ; if ( previous != null ) previous . next = next ; else list . first = next ; if ( next != null ) next . previous = previous ; else list . last = previous ; previous = null ; next =...
Remove this entry from the list
161,914
void rank ( MetatypeOcd ocd , List < String > rankedSuffixes ) { List < String > childAliasSuffixes = new LinkedList < String > ( ) ; for ( String suffix : rankedSuffixes ) if ( ! childAliasSuffixes . contains ( suffix ) ) { MetatypeOcd collision = unavailableSuffixes . put ( suffix , ocd ) ; if ( collision == null ) c...
Specifies rankings for child alias suffixes .
161,915
void reserve ( String suffix , MetatypeOcd ocd ) { MetatypeOcd previous = unavailableSuffixes . put ( suffix , ocd ) ; if ( previous != null ) throw new IllegalArgumentException ( "aliasSuffix: " + suffix ) ; }
Reserve a child alias suffix so that no one else can claim it . This method should only be used when an aliasSuffix override is specified in wlp - ra . xml .
161,916
private CapabilityMatchingResult matchCapability ( Collection < ? extends ProvisioningFeatureDefinition > features ) { String capabilityString = esaResource . getProvisionCapability ( ) ; if ( capabilityString == null ) { CapabilityMatchingResult result = new CapabilityMatchingResult ( ) ; result . capabilitySatisfied ...
Attempt to match the ProvisionCapability requirements against the given list of features
161,917
public String getAssetURL ( String id ) { String url = getRepositoryUrl ( ) + "/assets/" + id + "?" ; if ( getUserId ( ) != null ) { url += "userId=" + getUserId ( ) ; } if ( getUserId ( ) != null && getPassword ( ) != null ) { url += "&password=" + getPassword ( ) ; } if ( getApiKey ( ) != null ) { url += "&apiKey=" +...
Returns a URL which represent the URL that can be used to view the asset in Massive . This is more for testing purposes the assets can be access programatically via various methods on this class .
161,918
public String getTaskUsage ( ExeAction task ) { StringBuilder taskUsage = new StringBuilder ( NL ) ; taskUsage . append ( getHelpPart ( "global.usage" ) ) ; taskUsage . append ( NL ) ; taskUsage . append ( '\t' ) ; taskUsage . append ( COMMAND ) ; taskUsage . append ( ' ' ) ; taskUsage . append ( task ) ; taskUsage . a...
Constructs a string to represent the usage for a particular task .
161,919
private int getQueueIndex ( Object [ ] queue , java . util . concurrent . atomic . AtomicInteger counter , boolean increment ) { if ( queue . length == 1 ) { return 0 ; } else if ( increment ) { int i = counter . incrementAndGet ( ) ; if ( i > MAX_COUNTER ) { if ( counter . compareAndSet ( i , 0 ) ) { System . out . pr...
has waited .
161,920
public void put ( Object x ) throws InterruptedException { if ( x == null ) { throw new IllegalArgumentException ( ) ; } boolean ret = false ; while ( true ) { synchronized ( lock ) { if ( numberOfUsedSlots . get ( ) < buffer . length ) { insert ( x ) ; numberOfUsedSlots . getAndIncrement ( ) ; ret = true ; } } if ( re...
Puts an object into the buffer . If the buffer is full the call will block indefinitely until space is freed up .
161,921
public void setTarget ( String target ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isDebugEnabled ( ) ) { SibTr . debug ( this , TRACE , "setTarget" , target ) ; } _target = target ; }
Set the target property .
161,922
public void setTargetType ( String targetType ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isDebugEnabled ( ) ) { SibTr . debug ( this , TRACE , "setTargetType" , targetType ) ; } _targetType = targetType ; }
Set the target type property .
161,923
public void setMaxSequentialMessageFailure ( final String maxSequentialMessageFailure ) { _maxSequentialMessageFailure = ( maxSequentialMessageFailure == null ? null : Integer . valueOf ( maxSequentialMessageFailure ) ) ; }
Set the MaxSequentialMessageFailure property
161,924
public void setAutoStopSequentialMessageFailure ( final String autoStopSequentialMessageFailure ) { _autoStopSequentialMessageFailure = ( autoStopSequentialMessageFailure == null ? null : Integer . valueOf ( autoStopSequentialMessageFailure ) ) ; }
Set the AutoStopSequentialMessageFailure property
161,925
public static UOWScopeCallback createUserTransactionCallback ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "createUserTransactionCallback" ) ; if ( userTranCallback == null ) { userTranCallback = new LTCUOWCallback ( UOW_TYPE_TRANSACTION ) ; } if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "createUserTransact...
may be different in derived classes
161,926
public static X509Name getInstance ( ASN1TaggedObject obj , boolean explicit ) { return getInstance ( ASN1Sequence . getInstance ( obj , explicit ) ) ; }
Return a X509Name based on the passed in tagged object .
161,927
public Vector getOIDs ( ) { Vector v = new Vector ( ) ; for ( int i = 0 ; i != ordering . size ( ) ; i ++ ) { v . addElement ( ordering . elementAt ( i ) ) ; } return v ; }
return a vector of the oids in the name in the order they were found .
161,928
public Vector getValues ( ) { Vector v = new Vector ( ) ; for ( int i = 0 ; i != values . size ( ) ; i ++ ) { v . addElement ( values . elementAt ( i ) ) ; } return v ; }
return a vector of the values found in the name in the order they were found .
161,929
public static ConfigID fromProperty ( String property ) { String [ ] parents = property . split ( "//" ) ; ConfigID id = null ; for ( String parentString : parents ) { id = constructId ( id , parentString ) ; } return id ; }
Translate config . id back into an ConfigID object
161,930
public Conversation connect ( InetSocketAddress remoteHost , ConversationReceiveListener arl , String chainName ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "connect" , new Object [ ] { remoteHost , arl , chainName } ) ; if ( initi...
Implementation of the connect method provided by our abstract parent . Attempts to establish a conversation to the specified remote host using the appropriate chain . This may involve creating a new connection or reusing an existing one . The harder part is doing this in such a way as to avoid blocking all calls while ...
161,931
public static void initialise ( ) throws SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "initialise" ) ; initialisationFailed = true ; Framework framework = Framework . getInstance ( ) ; if ( framework != null ) { tracker = new OutboundConnectionTracke...
Initialises the Client Connection Manager .
161,932
private void destroy ( ) { final boolean bTrace = TraceComponent . isAnyTracingEnabled ( ) ; if ( bTrace && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Session being destroyed; " + this ) ; } for ( String key : this . attributes . keySet ( ) ) { Object value = this . attributes . get ( key ) ; HttpSessionBindingEven...
Once a session has been invalidated this will perform final cleanup and notifying any listeners .
161,933
private void cleanup ( ) { final String methodName = "cleanup(): " ; try { final Bundle b = bundle . getAndSet ( null ) ; if ( b != null ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName + "Uninstalling bundle location: " + b . getLocation ( ) + ", bundle id: " + b . getBundleId ( ) ) ; } SecurityManage...
Cleans up the TCCL instance . Once called this TCCL is effectively disabled . It s associated gateway bundle will have been removed .
161,934
int decrementRefCount ( ) { final String methodName = "decrementRefCount(): " ; final int count = refCount . decrementAndGet ( ) ; if ( count < 0 ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName + " refCount < 0 - too many calls to destroy/cleaup" , new Throw...
The ClassLoadingService implementation should call this method when it s destroyThreadContextClassLoader method is called . Each call to destroyTCCL should decrement this ref counter . When there are no more references to this TCCL it will be cleaned up which effectively invalidates it .
161,935
private static PersistenceContext newPersistenceContext ( final String fJndiName , final String fUnitName , final int fCtxType , final List < Property > fCtxProperties ) { return new PersistenceContext ( ) { public Class < ? extends Annotation > annotationType ( ) { return PersistenceContext . class ; } public String n...
This transient PersistenceContext annotation class has no default value . i . e . null is a valid value for some fields .
161,936
private void processConnectionInfo ( CommsByteBuffer buffer , Conversation conversation ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "processConnectionInfo" , new Object [ ] { buffer , conversation } ) ; ClientConversationState convState = ( ClientConversati...
This method will process the connection information received from our peer . At the moment this consists of the connection object ID required at the server the name of the messaging engine and the ME Uuid .
161,937
private void processSchema ( CommsByteBuffer buffer , Conversation conversation ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "processSchema" , new Object [ ] { buffer , conversation } ) ; ClientConversationState convState = ( ClientConversationState ) conversation ...
This method will process a schema received from our peer s MFP compoennt . At the moment this consists of contacting MFP here on the client and giving it the schema . Schemas are received when the ME is about to send us a message and realises that we don t have the necessary schema to decode it . A High priority messag...
161,938
private void processSyncMessageChunk ( CommsByteBuffer buffer , Conversation conversation , boolean connectionMessage ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "processSyncMessageChunk" , new Object [ ] { buffer , conversation , connectionMessage } ) ; Cl...
Processes a chunk received from a synchronous message .
161,939
public BeanO getBean ( ContainerTx tx , BeanId id ) { return id . getActivationStrategy ( ) . atGet ( tx , id ) ; }
Return bean from cache for given transaction bean id . Return null if no entry in cache .
161,940
public void commitBean ( ContainerTx tx , BeanO bean ) { bean . getActivationStrategy ( ) . atCommit ( tx , bean ) ; }
Perform commit - time processing for the specified transaction and bean . This method should be called for each bean which was participating in a transaction which was successfully committed .
161,941
public void unitOfWorkEnd ( ContainerAS as , BeanO bean ) { bean . getActivationStrategy ( ) . atUnitOfWorkEnd ( as , bean ) ; }
LIDB441 . 5 - added
161,942
public void rollbackBean ( ContainerTx tx , BeanO bean ) { bean . getActivationStrategy ( ) . atRollback ( tx , bean ) ; }
Perform rollback - time processing for the specified transaction and bean . This method should be called for each bean which was participating in a transaction which was rolled back .
161,943
public final void enlistBean ( ContainerTx tx , BeanO bean ) { bean . getActivationStrategy ( ) . atEnlist ( tx , bean ) ; }
Perform actions required when a bean is enlisted in a transaction at some point in time other than at activation . Used only for beans using TX_BEAN_MANAGED .
161,944
public void terminate ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "terminate" ) ; statefulBeanReaper . cancel ( ) ; statefulBeanReaper . finalSweep ( passivator ) ; beanCache . terminate ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( )...
Enable cleanup of passivated beans kind of a hack required because all the bean s homes have already been cleaned up at this point
161,945
public void uninstallBean ( J2EEName homeName ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "uninstallBean " + homeName ) ; BeanO cacheMember ; J2EEName cacheHomeName ; Iterator < ? > statefulBeans ; int numEnumerated = 0 , numRemoved = 0 , numTimedout = 0 ; Enumeratio...
Uninstall a bean identified by the J2EEName . This is a partial solution to the general problem of how we can quiesce beans . Uninstalling a bean requires us to enumerate the whole bean cache We attempt to find beans which have the same J2EEName as the bean we are uninstalling . We then fire the uninstall event on the ...
161,946
synchronized long calculateNextExpiration ( ) { boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "calculateNextExpiration: " + this ) ; ivLastExpiration = ivExpiration ; if ( ivParsedScheduleExpression != null ) { ivExpiration = Math . max ( 0 ...
Calculate the next time that the timer should fire .
161,947
public static void removeTimersByJ2EEName ( J2EEName j2eeName ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "removeTimersByJ2EEName: " + j2eeName ) ; Collection < TimerNpImpl > timersToRemove = null ; synchronized ( svActiveTimers ...
Removes all timers associated with the specified application or module .
161,948
public void statisticCreated ( SPIStatistic s ) { if ( com . ibm . websphere . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) logger . logp ( Level . FINE , CLASS_NAME , "statisticCreated" , "Servlet statistic created with id=" + s . getId ( ) ) ; if ( s . getId ( ) == LOADED_S...
use ID defined in template to identify a statistic
161,949
public EJBModuleMetaDataImpl createEJBModuleMetaDataImpl ( EJBApplicationMetaData ejbAMD , ModuleInitData mid , SfFailoverCache statefulFailoverCache , EJSContainer container ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "createEJB...
Create the EJB Container s internal module metadata object and fill in the data from the metadata framework s generic ModuleDataObject . This occurs at application start time .
161,950
public void processDeferredBMD ( BeanMetaData bmd ) throws EJBConfigurationException , ContainerException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "processDeferredBMD: " + bmd . j2eeName ) ; if ( bmd . ivInitData . ivTimerMethod...
Perform metadata processing for a bean that is being deferred .
161,951
private void initializeLifecycleInterceptorMethodMD ( Method [ ] ejbMethods , List < ContainerTransaction > transactionList , List < ActivitySessionMethod > activitySessionList , BeanMetaData bmd ) throws EJBConfigurationException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && ...
Initialize lifecycleInterceptorMethodInfos and lifecycleInterceptorMethodNames fields in the specified BeanMetaData .
161,952
@ SuppressWarnings ( "deprecation" ) protected Throwable getNestedException ( Throwable t ) { Throwable root = t ; for ( ; ; ) { if ( root instanceof RemoteException ) { RemoteException re = ( RemoteException ) root ; if ( re . detail == null ) break ; root = re . detail ; } else if ( root instanceof NamingException ) ...
d494984 eliminate assignment to parameter t .
161,953
private void processSingletonConcurrencyManagementType ( BeanMetaData bmd ) throws EJBConfigurationException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "processSingletonConcurrencyManagementType" ) ; } ConcurrencyManagementType ...
F743 - 1752CodRev rewrote to do error checking and validation .
161,954
private void initializeManagedObjectFactoryOrConstructor ( BeanMetaData bmd ) throws EJBConfigurationException { if ( bmd . isManagedBean ( ) ) { bmd . ivEnterpriseBeanFactory = getManagedBeanManagedObjectFactory ( bmd , bmd . enterpriseBeanClass ) ; if ( bmd . ivEnterpriseBeanFactory != null && bmd . ivEnterpriseBeanF...
Create the appropriate ManagedObjectFactory for the bean type or obtain the constructor if a ManagedObjectFactory will not be used .
161,955
private void initializeEntityConstructor ( BeanMetaData bmd ) throws EJBConfigurationException { try { bmd . ivEnterpriseBeanClassConstructor = bmd . enterpriseBeanClass . getConstructor ( ( Class < ? > [ ] ) null ) ; } catch ( NoSuchMethodException e ) { Tr . error ( tc , "JIT_NO_DEFAULT_CTOR_CNTR5007E" , new Object [...
Obtain the constructor for the entity bean concrete class .
161,956
protected < T > ManagedObjectFactory < T > getManagedBeanManagedObjectFactory ( BeanMetaData bmd , Class < T > klass ) throws EJBConfigurationException { ManagedObjectFactory < T > factory = null ; ManagedObjectService managedObjectService = getManagedObjectService ( ) ; if ( managedObjectService != null ) { try { fact...
Gets a managed object factory for the specified ManagedBean class or null if instances of the class do not need to be managed .
161,957
protected < T > ManagedObjectFactory < T > getInterceptorManagedObjectFactory ( BeanMetaData bmd , Class < T > klass ) throws EJBConfigurationException { ManagedObjectFactory < T > factory = null ; ManagedObjectService managedObjectService = getManagedObjectService ( ) ; if ( managedObjectService != null ) { try { fact...
Gets a managed object factory for the specified interceptor class or null if instances of the class do not need to be managed .
161,958
protected < T > ManagedObjectFactory < T > getEJBManagedObjectFactory ( BeanMetaData bmd , Class < T > klass ) throws EJBConfigurationException { ManagedObjectFactory < T > factory = null ; ManagedObjectService managedObjectService = getManagedObjectService ( ) ; if ( managedObjectService != null ) { try { factory = ma...
Gets a managed object factory for the specified EJB class or null if instances of the class do not need to be managed .
161,959
private ClassLoader getWrapperProxyClassLoader ( BeanMetaData bmd , Class < ? > intf ) throws EJBConfigurationException { ClassLoader loader = intf . getClassLoader ( ) ; if ( loader != null ) { try { loader . loadClass ( BusinessLocalWrapperProxy . class . getName ( ) ) ; return loader ; } catch ( ClassNotFoundExcepti...
Returns a class loader that can be used to define a proxy for the specified interface .
161,960
private Constructor < ? > getWrapperProxyConstructor ( BeanMetaData bmd , String proxyClassName , Class < ? > interfaceClass , Method [ ] methods ) throws EJBConfigurationException , ClassNotFoundException { ClassLoader proxyClassLoader = getWrapperProxyClassLoader ( bmd , interfaceClass ) ; Class < ? > [ ] interfaces ...
Defines a wrapper proxy class and obtains its constructor that accepts a WrapperProxyStte .
161,961
private static boolean hasEmptyThrowsClause ( Method method ) { for ( Class < ? > klass : method . getExceptionTypes ( ) ) { if ( ! RuntimeException . class . isAssignableFrom ( klass ) && ! Error . class . isAssignableFrom ( klass ) ) { return false ; } } return true ; }
Returns true if the specified method has an empty throws clause .
161,962
private void dealWithUnsatisifedXMLTimers ( Map < String , List < com . ibm . ws . javaee . dd . ejb . Timer > > timers1ParmByMethodName , Map < String , List < com . ibm . ws . javaee . dd . ejb . Timer > > timers0ParmByMethodName , BeanMetaData bmd ) throws EJBConfigurationException { String oneMethodInError = null ;...
Verifies that every timer defined in xml was successfully associated with a Method .
161,963
private boolean hasTimeoutCallbackParameters ( MethodMap . MethodInfo methodInfo ) { int numParams = methodInfo . getNumParameters ( ) ; return numParams == 0 || ( numParams == 1 && methodInfo . getParameterType ( 0 ) == Timer . class ) ; }
Returns true if the specified method has the proper parameter types for a timeout callback method .
161,964
private void addTimerToCorrectMap ( Map < String , List < com . ibm . ws . javaee . dd . ejb . Timer > > timers1ParmByMethodName , Map < String , List < com . ibm . ws . javaee . dd . ejb . Timer > > timers0ParmByMethodName , Map < String , List < com . ibm . ws . javaee . dd . ejb . Timer > > timersUnspecifiedParmByMe...
Sticks a timer defined in xml into the correct list based on the number of parameters specified in xml for the timer .
161,965
private EJBMethodInfoImpl findMethodInEJBMethodInfoArray ( EJBMethodInfoImpl [ ] methodInfos , final Method targetMethod ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "findMethodInEJBMethodInfoArray for method \"" + targetMethod ...
d494984 . 1 - added entire method
161,966
protected void processReferenceContext ( BeanMetaData bmd ) throws InjectionException , EJBConfigurationException { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "ensureReferenceDataIsProcessed" ) ; ReferenceContext refContext = bmd . ...
Ensure that reference data is processed and that the resulting output data structures are stuffed in BeanMetaData .
161,967
private void removeTemporaryMethodData ( BeanMetaData bmd ) { bmd . methodsExposedOnLocalHomeInterface = null ; bmd . methodsExposedOnLocalInterface = null ; bmd . methodsExposedOnRemoteHomeInterface = null ; bmd . methodsExposedOnRemoteInterface = null ; bmd . allPublicMethodsOnBean = null ; bmd . methodsToMethodInfos...
Removes temporary lists of data from BMD when they are no longer needed .
161,968
public SIBusMessage next ( ) throws SISessionUnavailableException , SISessionDroppedException , SIResourceException , SIConnectionLostException , SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && CoreSPIBrowserSession . tc . isEntryEnabled ( ) ) SibTr . entry ( CoreSPIBrowserSession . tc , "next" , th...
Gets the next item from the BrowseCursor .
161,969
public void close ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && CoreSPIBrowserSession . tc . isEntryEnabled ( ) ) SibTr . entry ( CoreSPIBrowserSession . tc , "close" , this ) ; synchronized ( this ) { if ( ! _closed ) { _conn . removeBrowserSession ( this ) ; _close ( ) ; } } if ( TraceComponent . isAnyTracin...
Close this BrowserSession ... Dereference from the parent connection and set the closed flag to true .
161,970
void checkNotClosed ( ) throws SISessionUnavailableException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkNotClosed" ) ; synchronized ( this ) { if ( _closed ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "che...
Check if the session is closed . If the closed flag is set to true throw an exception .
161,971
public DestinationHandler getNamedDestination ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getNamedDestination" ) ; SibTr . exit ( tc , "getNamedDestination" , _dest ) ; } return _dest ; }
Returns the destination that the session was created against
161,972
public String getUserAgent ( FacesContext facesContext ) { if ( userAgent == null ) { synchronized ( this ) { if ( userAgent == null ) { Map < String , String [ ] > requestHeaders = facesContext . getExternalContext ( ) . getRequestHeaderValuesMap ( ) ; if ( requestHeaders != null && requestHeaders . containsKey ( "Use...
This information will get stored as it cannot change during the session anyway .
161,973
public static BigInteger decode ( String s ) { byte [ ] bytes = Base64 . decodeBase64 ( s ) ; BigInteger bi = new BigInteger ( 1 , bytes ) ; return bi ; }
This is in use by FAT only at the writing time
161,974
public static synchronized void initialise ( ) { if ( _instance == null ) { if ( _instance == null ) { if ( tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "We are NOT in Server mode" ) ; _instance = ClientCommsDiagnosticModule . getInstance ( ) ; } _instance . register ( packageList ) ; } }
Initialises the diagnostic module .
161,975
public void ffdcDumpDefault ( Throwable t , IncidentStream is , Object callerThis , Object [ ] objs , String sourceId ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "ffdcDumpDefault" , new Object [ ] { t , is , callerThis , objs , sourceId } ) ; super . ffdcDumpDefault ( t , is , callerThis , objs , sou...
Called when an FFDC is generated and the stack matches one of our packages .
161,976
boolean setObserver ( Observer observer ) { boolean success ; Observer oldObserver ; synchronized ( this ) { oldObserver = ivObserver ; success = oldObserver != null || ! isDone ( ) ; ivObserver = success ? observer : null ; } if ( oldObserver != null ) { oldObserver . update ( null , observer ) ; } return success ; }
Sets the current observer and updates the pending one . If the result is already available the existing observer if any will be updated and passed the new observer as data . Otherwise the observer will be updated when the result is available and will be passed null as data .
161,977
private void cleanup ( ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "cleanup" ) ; synchronized ( ivRemoteAsyncResultReaper ) { if ( ivAddedToReaper ) { this . ivRemoteAsyncResultReaper . remove ( this ) ; } else { unexportObject (...
Clean up all resources associated with this object .
161,978
RemoteAsyncResult exportObject ( ) throws RemoteException { ivObjectID = ivRemoteRuntime . activateAsyncResult ( ( Servant ) createTie ( ) ) ; return ivRemoteRuntime . getAsyncResultReference ( ivObjectID ) ; }
Export this object so that it is remotely accessible .
161,979
protected void unexportObject ( ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "unexportObject: " + this ) ; if ( ivObjectID != null ) { try { ivRemoteRuntime . deactivateAsyncResult ( ivObjectID ) ; } catch ( Throwable e ) { if ( i...
Unexport this object so that it is not remotely accessible .
161,980
public BeanId find ( EJSHome home , Serializable pkey , boolean isHome ) { int hashValue = BeanId . computeHashValue ( home . j2eeName , pkey , isHome ) ; BeanId [ ] buckets = this . ivBuckets ; BeanId element = buckets [ ( hashValue & 0x7FFFFFFF ) % buckets . length ] ; if ( element == null || ! element . equals ( hom...
d156807 . 3 Begins
161,981
protected boolean needsToBeRefreshed ( DefaultFacelet facelet ) { if ( _refreshPeriod == NO_CACHE_DELAY ) { return true ; } if ( _refreshPeriod == INFINITE_DELAY ) { return false ; } long target = facelet . getCreateTime ( ) + _refreshPeriod ; if ( System . currentTimeMillis ( ) > target ) { URLConnection conn = null ;...
Template method for determining if the Facelet needs to be refreshed .
161,982
int getState ( ) { if ( tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "getState" ) ; int state ; if ( ! prefixDone ) { Pattern . Clause prefix = pattern . getPrefix ( ) ; if ( prefix == null || next >= prefix . items . length ) { Pattern . Clause suffix = pattern . getSuffix ( ) ; state = suffix == null ? FINA...
Get the state of this Pattern ( which item is next to process
161,983
void advance ( ) { if ( tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "advance" ) ; if ( ! prefixDone ) { Pattern . Clause prefix = pattern . getPrefix ( ) ; if ( prefix == null || next >= prefix . items . length ) { Pattern . Clause suffix = pattern . getSuffix ( ) ; if ( suffix != null && suffix != prefix ) ...
Advance the state of this pattern
161,984
char [ ] getChars ( ) { if ( tc . isEntryEnabled ( ) ) tc . entry ( this , cclass , "getChars" ) ; char [ ] ans ; if ( prefixDone ) ans = ( char [ ] ) pattern . getSuffix ( ) . items [ next -- ] ; else ans = ( char [ ] ) pattern . getPrefix ( ) . items [ next ++ ] ; if ( tc . isEntryEnabled ( ) ) tc . exit ( this , ccl...
Get the characters and advance ( assumes the pattern is in one of the CHARS states
161,985
public boolean matchMidClauses ( char [ ] chars , int start , int length ) { return pattern . matchMiddle ( chars , start , start + length ) ; }
Test whether the underlying pattern s mid clauses match a set of characters .
161,986
public String extractPropertyFromURI ( String propName , String uri ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "extractPropertyFromURI" , new Object [ ] { propName , uri } ) ; String result = null ; if ( uri != null ) { uri = uri . trim ( ) ; if ( ! uri . ...
Extract the value of the named property from URI . Find the named property in the name value pairs of the uri and return the value or null if the property is not present .
161,987
private String [ ] splitOnNonEscapedChar ( String inputStr , char splitChar , int expectedPartCount ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "splitOnNonEscapedChar" , new Object [ ] { inputStr , splitChar , expectedPartCount } ) ; String [ ] parts = null...
Split the specified string into the requested number of pieces using the splitter character provided . This method is careful to only split on non - escaped instances of the splitter character .
161,988
private String unescape ( String input , char c ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "unescape" , new Object [ ] { input , c } ) ; String result = input ; if ( input . indexOf ( c ) != - 1 ) { int startValue = 0 ; StringBuffer temp = new StringBuffer...
Remove \ characters from input String when they precede specified character .
161,989
private String unescapeBackslash ( String input ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "unescapeBackslash" , input ) ; String result = input ; if ( input . indexOf ( "\\" ) != - 1 ) { int startValue = 0 ; StringBuffer tmp = new Stri...
Convert escaped backslash to single backslash . This method de - escapes double backslashes whilst at the same time checking that there are no single backslahes in the input string .
161,990
private String [ ] validateNVP ( String namePart , String valuePart , String uri , JmsDestination dest ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "validateNVP" , new Object [ ] { namePart , valuePart , uri , dest } ) ; if ( valuePart . ...
This utility method performs the validation on the name and value parts of the NVP . It performs several checks to make sure that neither part contain any illegal characters unless they are escaped by a backslash .
161,991
private void configureDestinationFromMap ( JmsDestination dest , Map < String , String > props , String uri ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "configureDestinationFromMap" , new Object [ ] { dest , props , uri } ) ; Iterator < ...
This utililty method uses the supplied Map to configure a destination property . The map contains the name and value pairs from the URI .
161,992
public Destination createDestinationFromURI ( String uri , int qmProcessing ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "createDestinationFromURI" , new Object [ ] { uri , qmProcessing } ) ; Destination result = null ; if ( uri != null )...
Create a Destination object from a full URI format String .
161,993
private static boolean charIsEscaped ( String str , int index ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "charIsEscaped" , new Object [ ] { str , index } ) ; if ( str == null || index < 0 || index >= str . length ( ) ) return false ; int nEscape = 0 ; int i = ind...
Test if the specified character is escaped . Checks whether the character at the specified index is preceded by an escape character . The test is non - trivial because it has to check that the escape character is itself non - escaped .
161,994
public static PrivateKey readPrivateKey ( String pemResName ) throws Exception { InputStream contentIS = TokenUtils . class . getResourceAsStream ( pemResName ) ; byte [ ] tmp = new byte [ 4096 ] ; int length = contentIS . read ( tmp ) ; PrivateKey privateKey = decodePrivateKey ( new String ( tmp , 0 , length ) ) ; ret...
Read a PEM encoded private key from the classpath
161,995
public static PublicKey readPublicKey ( String pemResName ) throws Exception { InputStream contentIS = TokenUtils . class . getResourceAsStream ( pemResName ) ; byte [ ] tmp = new byte [ 4096 ] ; int length = contentIS . read ( tmp ) ; PublicKey publicKey = decodePublicKey ( new String ( tmp , 0 , length ) ) ; return p...
Read a PEM encoded public key from the classpath
161,996
public static KeyPair generateKeyPair ( int keySize ) throws NoSuchAlgorithmException { KeyPairGenerator keyPairGenerator = KeyPairGenerator . getInstance ( "RSA" ) ; keyPairGenerator . initialize ( keySize ) ; KeyPair keyPair = keyPairGenerator . genKeyPair ( ) ; return keyPair ; }
Generate a new RSA keypair .
161,997
public static PrivateKey decodePrivateKey ( String pemEncoded ) throws Exception { pemEncoded = removeBeginEnd ( pemEncoded ) ; byte [ ] pkcs8EncodedBytes = Base64 . getDecoder ( ) . decode ( pemEncoded ) ; PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec ( pkcs8EncodedBytes ) ; KeyFactory kf = KeyFactory . getIns...
Decode a PEM encoded private key string to an RSA PrivateKey
161,998
public static PublicKey decodePublicKey ( String pemEncoded ) throws Exception { pemEncoded = removeBeginEnd ( pemEncoded ) ; byte [ ] encodedBytes = Base64 . getDecoder ( ) . decode ( pemEncoded ) ; X509EncodedKeySpec spec = new X509EncodedKeySpec ( encodedBytes ) ; KeyFactory kf = KeyFactory . getInstance ( "RSA" ) ;...
Decode a PEM encoded public key string to an RSA PublicKey
161,999
public void registerDeferredService ( BundleContext bundleContext , Class < ? > providedService , Dictionary dict ) { Object obj = serviceReg . get ( ) ; if ( obj instanceof ServiceRegistration < ? > ) { return ; } if ( obj instanceof CountDownLatch ) { try { ( ( CountDownLatch ) obj ) . await ( ) ; if ( serviceReg . g...
Register information available after class loader is created for use by RAR bundle