idx
int64
0
165k
question
stringlengths
73
4.15k
target
stringlengths
5
918
len_question
int64
21
890
len_target
int64
3
255
163,000
private void handleGenericHNIError ( Throwable t , HttpInboundServiceContextImpl hisc ) { hisc . setHeadersParsed ( ) ; sendErrorMessage ( t ) ; setPartiallyParsed ( false ) ; }
the same thing so now they will just call this one method
53
12
163,001
private void handleNewRequest ( ) { // if this is an http/2 request, skip to discrimination if ( ! isAlpnHttp2Link ( this . vc ) ) { final HttpInboundServiceContextImpl sc = getHTTPContext ( ) ; // save the request info that was parsed in case somebody changes it sc . setRequestVersion ( sc . getRequest ( ) . getVersio...
Process a new request message updating internal stats and calling the discrimination to pass it along the channel chain .
253
20
163,002
private void sendErrorMessage ( Throwable t ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Sending a 400 for throwable [" + t + "]" ) ; } sendErrorMessage ( StatusCodes . BAD_REQUEST ) ; }
Send an error message when a generic throwable occurs .
71
11
163,003
private void sendErrorMessage ( StatusCodes code ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Sending an error page back [code: " + code + "]" ) ; } try { getHTTPContext ( ) . sendError ( code . getHttpError ( ) ) ; } catch ( MessageSentException mse ) { // no FFDC...
Send an error message back to the client with a defined status code instead of an exception .
115
18
163,004
private void handlePipeLining ( ) { HttpServiceContextImpl sc = getHTTPContext ( ) ; WsByteBuffer buffer = sc . returnLastBuffer ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Pipelined request found: " + buffer ) ; } sc . clear ( ) ; // save it back so that we alw...
Handle a pipelined request discovered while closing the handling of the last request .
219
16
163,005
@ Override public void error ( VirtualConnection inVC , Throwable t ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "error() called on " + this + " " + inVC ) ; } try { close ( inVC , ( Exception ) t ) ; } catch ( ClassCastException cce ) { // no FFDC required close ( ...
Called when an error occurs on this connection .
109
10
163,006
private boolean checkIfUpgradeHeaders ( Map < String , String > headers ) { // looking for two headers. // connection header with a value of "upgrade" // upgrade header with a value of "h2c" boolean connection_upgrade = false ; boolean upgrade_h2c = false ; String headerValue = null ; Set < Entry < String , String > > ...
Determine if a map of headers contains http2 upgrade headers
499
13
163,007
@ Override protected LicenseProvider createLicenseProvider ( String licenseAgreementPrefix , String licenseInformationPrefix , String subsystemLicenseType ) { String featureLicenseAgreementPrefix = this . featureName + "/" + licenseAgreementPrefix ; String featureLicenseInformationPrefix = licenseInformationPrefix == n...
will need to override
267
4
163,008
public LocalTransaction createLocalTransaction ( boolean useSingleResourceOnly ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createLocalTransaction" ) ; LocalTransaction tran = null ; //Venu Removing the createLocalTransactionWithSubordinates() as it has to happen ...
Creates a local transaction .
140
6
163,009
public ExternalAutoCommitTransaction createAutoCommitTransaction ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createAutoCommitTransaction" ) ; ExternalAutoCommitTransaction transaction = transactionFactory . createAutoCommitTransaction ( ) ; if ( TraceComponent ...
Creates a Auto Commit Transaction
114
6
163,010
public SIXAResource createXAResource ( boolean useSingleResource ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createXAResource" , new Boolean ( useSingleResource ) ) ; SIXAResource resource = null ; //get the message store resource resource = transactionFactory . ...
Creates an XA transaction resource
136
7
163,011
public Object createObjectCache ( String reference ) { final String methodName = "createCacheInstance()" ; if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , methodName + " cacheName=" + reference ) ; CacheConfig config = ServerCache . getCacheService ( ) . getCacheInstanceConfig ( reference ) ; if ( config == null ) { /...
Create a DistributedObjectCache from a string reference . The config for the reference must already exist .
420
20
163,012
private DistributedObjectCache createDistributedObjectCache ( CacheConfig config ) { final String methodName = "createDistributedObjectCache()" ; if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , methodName + " cacheName=" + ( config != null ? config . getCacheName ( ) : "null" ) ) ; DCache dCache = ServerCache . create...
Create a DistributedObjectCache from a cacheConfig object .
197
12
163,013
public EventSource createEventSource ( boolean createAsyncEventSource , String cacheName ) { EventSource eventSource = new DCEventSource ( cacheName , createAsyncEventSource ) ; if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Using caller thread context for callback - cacheName= " + cacheName ) ; return eventSource ;...
This implements the method in the ServletCacheUnit interface . This method is used to initialize event source for invalidation listener
76
24
163,014
public static Map < JNDIEnvironmentRefType , Map < String , String > > createAllBindingsMap ( ) { Map < JNDIEnvironmentRefType , Map < String , String > > allBindings = new EnumMap < JNDIEnvironmentRefType , Map < String , String > > ( JNDIEnvironmentRefType . class ) ; for ( JNDIEnvironmentRefType refType : JNDIEnviro...
Create a new map for holding all JNDIEnvironmentRef bindings .
143
14
163,015
public static void setAllBndAndExt ( ComponentNameSpaceConfiguration compNSConfig , Map < JNDIEnvironmentRefType , Map < String , String > > allBindings , Map < String , String > envEntryValues , ResourceRefConfigList resRefList ) { for ( JNDIEnvironmentRefType refType : JNDIEnvironmentRefType . VALUES ) { if ( refType...
Update a ComponentNameSpaceConfiguration object with processed binding and extension metadata .
160
14
163,016
public static void chainRequestDispatchers ( RequestDispatcher [ ] dispatchers , HttpServletRequest request , HttpServletResponse response ) throws IOException , ServletException { for ( int i = 0 ; i < dispatchers . length - 1 ; i ++ ) { ChainedResponse chainedResp = new ChainedResponse ( request , response ) ; dispat...
Chain the responses of a set of request dispatchers together .
127
13
163,017
@ Reference ( name = KEY_GENERATOR , service = DDLGenerationParticipant . class , policy = ReferencePolicy . DYNAMIC , cardinality = ReferenceCardinality . MULTIPLE ) protected void setGenerator ( ServiceReference < DDLGenerationParticipant > ref ) { generators . addReference ( ref ) ; }
Method which registers a DDL generator . All OSGi services providing this interface will be set here .
73
20
163,018
@ Override public MetaRuleset createMetaRuleset ( Class type ) { MetaRuleset ruleset = new MetaRulesetImpl ( _delegate . getTag ( ) , type ) ; ruleset . ignore ( "binding" ) ; ruleset . ignore ( "event" ) ; return ruleset ; }
This tag call _delegate . setAttributes so the returned MetaRuleset should ignore attributes that are not supposed to be there like binding and event
65
29
163,019
public void applyAttachedObject ( FacesContext context , UIComponent parent ) { // Retrieve the current FaceletContext from FacesContext object FaceletContext faceletContext = ( FaceletContext ) context . getAttributes ( ) . get ( FaceletContext . FACELET_CONTEXT_KEY ) ; ValueExpression ve = null ; Behavior behavior = ...
Create a ClientBehavior and attach it to the component
496
11
163,020
@ FFDCIgnore ( InvocationTargetException . class ) Object getDB ( String databaseName ) throws Exception { final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; lock . readLock ( ) . lock ( ) ; try { if ( mongoClient == null ) { // Switch to write lock for lazy initialization lock . readLock ( ) . unlock ( )...
Get a Mongo DB instance authenticated with the specified user and password if specified .
758
15
163,021
private String getCerticateSubject ( AtomicServiceReference < Object > serviceRef , Properties sslProperties ) { String certificateDN = null ; try { certificateDN = sslHelper . getClientKeyCertSubject ( serviceRef , sslProperties ) ; } catch ( KeyStoreException ke ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc...
Call security code to read the subject name from the key in the keystore
364
15
163,022
@ FFDCIgnore ( Throwable . class ) @ Trivial private void set ( Class < ? > MongoClientOptions_Builder , Object optionsBuilder , String propName , Object value ) throws IntrospectionException , IllegalArgumentException , IllegalAccessException , InvocationTargetException { try { if ( TraceComponent . isAnyTracingEnable...
Configure a mongo option .
377
7
163,023
@ FFDCIgnore ( Throwable . class ) @ Trivial private void setReadPreference ( Class < ? > MongoClientOptions_Builder , Object optionsBuilder , String creatorMethod ) throws ClassNotFoundException , IllegalArgumentException , SecurityException , IllegalAccessException , InvocationTargetException , NoSuchMethodException ...
Configure the readPreference mongo option which is a special case .
347
15
163,024
@ FFDCIgnore ( Throwable . class ) @ Trivial private void setWriteConcern ( Class < ? > MongoClientOptions_Builder , Object optionsBuilder , String fieldName ) throws ClassNotFoundException , IllegalArgumentException , SecurityException , IllegalAccessException , InvocationTargetException , NoSuchMethodException { try ...
Configure the writeConcern mongo option which is a special case .
319
15
163,025
protected void setSsl ( ServiceReference < Object > reference ) { sslConfigurationRef . setReference ( reference ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( this , tc , "sslRef set to " + reference . getProperty ( CONFIG_DISPLAY_ID ) ) ; } }
Declarative Services method for setting the SSL Support service reference
78
12
163,026
protected void unsetSsl ( ServiceReference < Object > reference ) { sslConfigurationRef . unsetReference ( reference ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( this , tc , "sslRef unset" ) ; } }
Declarative Services method for unsetting the SSL Support service reference
67
13
163,027
private void assertValidSSLConfig ( ) { final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; boolean sslEnabled = ( ( ( Boolean ) props . get ( SSL_ENABLED ) ) == null ) ? false : ( Boolean ) props . get ( SSL_ENABLED ) ; boolean sslRefExists = ( ( props . get ( SSL_REF ) ) == null ) ? false : true ; if ( s...
Validate combination of security parameters for certificate authentication . If useCertificateAuthentication is specified SSL must be enabled an ssslRef must be specified and user and password should not be specified .
410
38
163,028
@ Sensitive public String getReferrerURLFromCookies ( HttpServletRequest req , String cookieName ) { Cookie [ ] cookies = req . getCookies ( ) ; String referrerURL = CookieHelper . getCookieValue ( cookies , cookieName ) ; if ( referrerURL != null ) { StringBuffer URL = req . getRequestURL ( ) ; referrerURL = decodeURL...
Retrieve the referrer URL from the HttpServletRequest s cookies . This will decode the URL and restore the host name if it was removed .
119
31
163,029
public void clearReferrerURLCookie ( HttpServletRequest req , HttpServletResponse res , String cookieName ) { String url = CookieHelper . getCookieValue ( req . getCookies ( ) , cookieName ) ; if ( url != null && url . length ( ) > 0 ) { invalidateReferrerURLCookie ( req , res , cookieName ) ; } }
Removes the referrer URL cookie from the HttpServletResponse if set in the HttpServletRequest .
84
24
163,030
public void setReferrerURLCookie ( HttpServletRequest req , AuthenticationResult authResult , String url ) { //PM81345: If the URL contains favicon, then we will not update the value of the ReffererURL. The only way //we will do it, is if the value of the cookie is null. This will solve the Error 500. if ( url . contai...
Sets the referrer URL cookie into the AuthenticationResult . If PRESERVE_FULLY_QUALIFIED_REFERRER_URL is not set or set to false then the host name of the referrer URL is removed .
291
50
163,031
@ FFDCIgnore ( Exception . class ) private boolean checkDataSource ( DataSource nonTranDataSource ) { boolean fullyFormedDS = false ; try { nonTranDataSource = ( DataSource ) _dataSourceFactory . createResource ( null ) ; if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Non Tran dataSource is " + nonTranDataSource ) ;...
See whether it is possible to get a connection and metatdata from a DataSOurce .
282
20
163,032
public void bytes ( Object source , Class sourceClass , byte [ ] data ) { internalBytes ( source , sourceClass , data , 0 , 0 ) ; }
Byte data trace .
33
4
163,033
public final void entry ( Class sourceClass , String methodName ) { internalEntry ( null , sourceClass , methodName , null ) ; }
Method entry tracing for static classes .
29
7
163,034
public final void exit ( Class sourceClass , String methodName ) { internalExit ( null , sourceClass , methodName , null ) ; }
Method exit tracing for static methods .
29
7
163,035
private final void internalExit ( Object source , Class sourceClass , String methodName , Object object ) { StringBuffer stringBuffer = new StringBuffer ( ) ; stringBuffer . append ( methodName ) ; stringBuffer . append ( " [" ) ; if ( source != null ) { stringBuffer . append ( source ) ; } else { stringBuffer . append...
Internal implementation of method exit tracing .
322
7
163,036
public final void event ( Class sourceClass , String methodName , Throwable throwable ) { internalEvent ( null , sourceClass , methodName , throwable ) ; }
Event tracing when a throwable is caught in a static class .
35
13
163,037
public final void event ( Object source , Class sourceClass , String methodName , Throwable throwable ) { internalEvent ( source , sourceClass , methodName , throwable ) ; }
Event tracing .
38
3
163,038
private final void internalEvent ( Object source , Class sourceClass , String methodName , Throwable throwable ) { StringBuffer stringBuffer = new StringBuffer ( ) ; stringBuffer . append ( methodName ) ; stringBuffer . append ( " [" ) ; if ( source != null ) { stringBuffer . append ( source ) ; } else { stringBuffer ....
Internal implementation of event tracing .
276
6
163,039
public final void info ( Class sourceClass , String methodName , String messageIdentifier , Object object ) { internalInfo ( null , sourceClass , methodName , messageIdentifier , object ) ; }
Method information tracing for static objects .
41
7
163,040
public final void warning ( Class sourceClass , String methodName , String messageIdentifier , Object object ) { internalWarning ( null , sourceClass , methodName , messageIdentifier , object ) ; }
Method warning tracing for static objects .
41
7
163,041
public void overrideCacheConfig ( Properties properties ) { if ( properties != null ) { FieldInitializer . initFromSystemProperties ( this , properties ) ; } processOffloadDirectory ( ) ; if ( ! this . enableServletSupport ) { this . disableTemplatesSupport = true ; } }
used by com . ibm . ws . cache . spi . DistributedMapFactory
62
19
163,042
public void determineCacheProvider ( ) { this . defaultProvider = true ; if ( cacheProviderName . equals ( "" ) ) { cacheProviderName = CacheConfig . CACHE_PROVIDER_DYNACACHE ; } if ( ! cacheProviderName . equals ( CACHE_PROVIDER_DYNACACHE ) ) { defaultProvider = false ; if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc...
Determines if default cache provider is being used and sets flag accordingly .
117
15
163,043
public void resetProvider ( String cacheName ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Reverting to the default Dynacache cache provider" ) ; } this . cacheProviderName = CACHE_PROVIDER_DYNACACHE ; this . enableCacheReplication = false ; this . defaultProvider = true ; this . cacheName = cacheName ; }
only called when the alternate cache provider could not create the cache .. we need to then revert to the default
87
21
163,044
void restoreDynacacheProviderDefaults ( ) { // restore commonConfig to Dynacache defaults if ( restoreDynacacheDefaults ) { if ( cacheProviderName != CacheConfig . CACHE_PROVIDER_DYNACACHE ) { cacheProviderName = CacheConfig . CACHE_PROVIDER_DYNACACHE ; enableCacheReplication = false ; if ( tc . isDebugEnabled ( ) ) { ...
This method reverts the common configuration template for all cache instances to use Dynaache defaults . This method only comes into play when ObjectGrid is configured as the cache provider for the default cache .
118
39
163,045
public String pluginId ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "pluginId" , this ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "pluginId" , _pluginId ) ; return _pluginId ; }
Returns the pluginId associated with this type of log
63
10
163,046
public Properties properties ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "propertis" , this ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "properties" , _props ) ; return _props ; }
Returns the set of properties associated with this log implementation
62
10
163,047
public ResourceFactory resourceFactory ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "resourceFactory" , this ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "resourceFactory" , _resourceFactory ) ; return _resourceFactory ; }
Returns the Resource Factory associated with this log implementation
64
9
163,048
protected void loadCipherToBit ( ) { boolean keySizeFromCipherMap = Boolean . valueOf ( WebContainer . getWebContainerProperties ( ) . getProperty ( "com.ibm.ws.webcontainer.keysizefromciphermap" , "true" ) ) . booleanValue ( ) ; //721610 if ( keySizeFromCipherMap ) { this . getKeySizefromCipherMap ( "toLoad" ) ; // th...
112102 - added method below to fill the cipher to bit size table
322
14
163,049
public VirtualHost getVirtualHost ( String targetHost ) throws WebAppHostNotFoundException { Iterator i = requestMapper . targetMappings ( ) ; while ( i . hasNext ( ) ) { RequestProcessor rp = ( RequestProcessor ) i . next ( ) ; if ( rp instanceof VirtualHost ) { VirtualHost vHost = ( VirtualHost ) rp ; if ( targetHost...
Method getVirtualHost . Returns null if the input name does not match any configured host .
111
18
163,050
private PathInfoHelper removeExtraPathInfo ( String pathInfo ) { if ( pathInfo == null ) return null ; int semicolon = pathInfo . indexOf ( ' ' ) ; if ( semicolon != - 1 ) { String tmpPathInfo = pathInfo . substring ( 0 , semicolon ) ; String extraPathInfo = pathInfo . substring ( semicolon ) ; return new PathInfoHelpe...
begin 272738 Duplicate CacheServletWrappers when url - rewriting is enabled WAS . webcontainer
112
21
163,051
public static void sendAppUnavailableException ( HttpServletRequest req , HttpServletResponse res ) throws IOException { if ( ( req instanceof SRTServletRequest ) && ( res instanceof SRTServletResponse ) ) { IRequest ireq = ( ( SRTServletRequest ) req ) . getIRequest ( ) ; IResponse ires = ( ( SRTServletResponse ) res ...
and throw a NPE because we couldn t get the application s configuration
111
14
163,052
protected static void sendUnavailableException ( IRequest req , IResponse res ) throws IOException { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) //306998.15 logger . logp ( Level . FINE , CLASS_NAME , "sendUnavailableException" , "Inside sendUnavailabl...
582053 change it to protected from private
289
9
163,053
@ Test public void MPJwtNoMpJwtConfig_notInWebXML_notInApp ( ) throws Exception { genericLoginConfigVariationTest ( MpJwtFatConstants . LOGINCONFIG_NOT_IN_WEB_XML_SERVLET_NOT_IN_APP_ROOT_CONTEXT , MpJwtFatConstants . LOGINCONFIG_NOT_IN_WEB_XML_SERVLET_NOT_IN_APP , MpJwtFatConstants . MPJWT_APP_CLASS_NO_LOGIN_CONFIG , E...
login - config does NOT exist in web . xml login - config does NOT exist in the app the mpJwt feature is NOT enabled We should receive a 401 status in an exception
138
36
163,054
@ Test public void MPJwtNoMpJwtConfig_notInWebXML_basicInApp ( ) throws Exception { genericLoginConfigVariationTest ( MpJwtFatConstants . LOGINCONFIG_NOT_IN_WEB_XML_SERVLET_BASIC_IN_APP_ROOT_CONTEXT , MpJwtFatConstants . LOGINCONFIG_NOT_IN_WEB_XML_SERVLET_BASIC_IN_APP , MpJwtFatConstants . MPJWT_APP_CLASS_LOGIN_CONFIG_...
login - config does NOT exist in web . xml login - config does exist in the app but is set to BASIC the mpJwt feature is NOT enabled We should receive a 401 status in an exception
144
41
163,055
@ Test public void MPJwtNoMpJwtConfig_formLoginInWebXML_notInApp ( ) throws Exception { genericLoginConfigFormLoginVariationTest ( MpJwtFatConstants . LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_NOT_IN_APP_ROOT_CONTEXT , MpJwtFatConstants . LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_NOT_IN_APP , MpJwtFatConstants . MPJWT_...
login - config does exist in web . xml but is set to FORM_LOGIN login - config does NOT exist in the app the mpJwt feature is NOT enabled We should use FORM_LOGIN
161
41
163,056
@ Test public void MPJwtNoMpJwtConfig_formLoginInWebXML_basicInApp ( ) throws Exception { genericLoginConfigFormLoginVariationTest ( MpJwtFatConstants . LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_BASIC_IN_APP_ROOT_CONTEXT , MpJwtFatConstants . LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_BASIC_IN_APP , MpJwtFatConstants . ...
login - config does exist in web . xml but is set to FORM_LOGIN login - config does NOT exist in the app but is set to BASIC the mpJwt feature is NOT enabled We should use FORM_LOGIN
167
47
163,057
@ Test public void MPJwtNoMpJwtConfig_formLoginInWebXML_mpJwtInApp ( ) throws Exception { genericLoginConfigFormLoginVariationTest ( MpJwtFatConstants . LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_MP_JWT_IN_APP_ROOT_CONTEXT , MpJwtFatConstants . LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_MP_JWT_IN_APP , MpJwtFatConstants ...
login - config does exist in web . xml but is set to FORM_LOGIN login - config does exist in the app and is set to MP - JWT the mpJwt feature is NOT enabled We should use FORM_LOGIN
171
48
163,058
@ Test public void MPJwtNoMpJwtConfig_mpJwtInWebXML_notInApp ( ) throws Exception { genericLoginConfigVariationTest ( MpJwtFatConstants . LOGINCONFIG_MP_JWT_IN_WEB_XML_SERVLET_NOT_IN_APP_ROOT_CONTEXT , MpJwtFatConstants . LOGINCONFIG_MP_JWT_IN_WEB_XML_SERVLET_NOT_IN_APP , MpJwtFatConstants . MPJWT_APP_CLASS_LOGIN_CONFI...
login - config does exist in web . xml and is set to MP - JWT login - config does NOT exist in the app the mpJwt feature is NOT enabled We should receive a 401 status in an exception
157
43
163,059
@ Test public void MPJwtNoMpJwtConfig_mpJwtInWebXML_basicInApp ( ) throws Exception { genericLoginConfigVariationTest ( MpJwtFatConstants . LOGINCONFIG_MP_JWT_IN_WEB_XML_SERVLET_BASIC_IN_APP_ROOT_CONTEXT , MpJwtFatConstants . LOGINCONFIG_MP_JWT_IN_WEB_XML_SERVLET_BASIC_IN_APP , MpJwtFatConstants . MPJWT_APP_CLASS_LOGIN...
login - config does exist in web . xml and is set to MP - JWT login - config does exist in the app but is set to BASIC the mpJwt feature is NOT enabled We should receive a 401 status in an exception
163
48
163,060
@ Mode ( TestMode . LITE ) @ Test public void MPJwtNoMpJwtConfig_mpJwtInWebXML_mpJwtInApp ( ) throws Exception { genericLoginConfigVariationTest ( MpJwtFatConstants . LOGINCONFIG_MP_JWT_IN_WEB_XML_SERVLET_MP_JWT_IN_APP_ROOT_CONTEXT , MpJwtFatConstants . LOGINCONFIG_MP_JWT_IN_WEB_XML_SERVLET_MP_JWT_IN_APP , MpJwtFatCons...
login - config does exist in web . xml and is set to MP - JWT login - config does exist in the app and is set to MP - JWT the mpJwt feature is NOT enabled We should receive a 401 status in an exception
176
50
163,061
@ Override public void setTopicName ( String tName ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setTopicName" , tName ) ; setDestDiscrim ( tName ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ...
Set the topicName .
107
5
163,062
@ Override public String getTopicSpace ( ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getTopicSpace" ) ; String result = getDestName ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , t...
Get the topicSpace .
106
5
163,063
@ Override public void setTopicSpace ( String tSpace ) throws JMSException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setTopicSpace" , tSpace ) ; setDestName ( tSpace ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exi...
Set the topicSpace
106
4
163,064
public static void initialise ( AcceptListenerFactory _acceptListenerFactory ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "initalise" ) ; acceptListenerFactory = _acceptListenerFactory ; // Create the maintainer of the configuration. Framework framework = Framework...
Initialises the server connection manager by getting hold of the framework .
169
13
163,065
public static void initialiseAcceptListenerFactory ( AcceptListenerFactory _acceptListenerFactory ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "initialiseAcceptListenerFactory" , _acceptListenerFactory ) ; acceptListenerFactory = _acceptListenerFactory ; if ( Trace...
Set the AcceptListenerFactory .
109
6
163,066
@ Override public List getActiveOutboundMEtoMEConversations ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getActiveOutboundMEtoMEConversations" ) ; List convs = null ; if ( connectionTracker != null ) { convs = connectionTracker . getAllOutboundConversatio...
Obtains a list of active outbound ME to ME conversations in this JVM .
150
17
163,067
@ Override public void open ( ) throws InfoStoreException { String methodName = "open" ; try { getClassSource ( ) . open ( ) ; } catch ( ClassSource_Exception e ) { // defect 84235:we are generating multiple Warning/Error messages for each error due to each level reporting them. // Disable the following warning and def...
Open the InfoStore for processing . Primarily this will open the ClassSources attached to this InfoStore which will then allow classes to be accessed .
168
29
163,068
public void scanClass ( String className ) throws InfoStoreException { Object [ ] logParms ; if ( tc . isDebugEnabled ( ) ) { logParms = new Object [ ] { getHashText ( ) , className } ; Tr . debug ( tc , MessageFormat . format ( "[ {0} ] Class [ {1} ] ENTER" , logParms ) ) ; } else { logParms = null ; } ClassInfoImpl c...
Visitor helpers ...
224
4
163,069
@ Override public PackageInfoImpl getPackageInfo ( String name ) { return getClassInfoCache ( ) . getPackageInfo ( name , ClassInfoCache . DO_NOT_FORCE_PACKAGE ) ; }
a package info even if an error occurrs .
46
10
163,070
private void updateBindings ( Map < String , Object > props ) { // Process the user element processProps ( props , CFG_KEY_USER , users ) ; // Process the user-access-id element processProps ( props , CFG_KEY_USER_ACCESSID , users ) ; // Process the group element processProps ( props , CFG_KEY_GROUP , groups ) ; // Pro...
Update the binding sets based on the properties from the configuration .
116
12
163,071
public void cancel ( Exception reason ) { // IMPROVEMENT: need to rework how syncs on the future.complete() work. We really should be // syncing here, so we don't do the channel.cancel if the request is processing // future.complete() on another thread at the same time. Should just do a quick // sync, check the future....
Attempts to cancel the operation represented by the AsyncFuture . Cancellation will not succeed if the operation is already complete .
247
25
163,072
protected void fireCompletionActions ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "fireCompletionActions" ) ; } if ( this . firstListener != null ) { ICompletionListener listenerToInvoke = this . firstListener ; // reset listener so it can't be inadvertently be ca...
Impl Assumes we are holding the completed sem lock
245
10
163,073
protected void throwException ( ) throws InterruptedException , IOException { if ( this . exception instanceof IOException ) { throw ( IOException ) this . exception ; } if ( this . exception instanceof InterruptedException ) { throw ( InterruptedException ) this . exception ; } if ( this . exception instanceof Runtime...
Throws the receiver s exception in its correct class .
90
11
163,074
private void internalBytes ( Object source , Class sourceClass , byte [ ] data , int start , int count ) { StringBuffer stringBuffer = new StringBuffer ( ) ; stringBuffer . append ( sourceClass . getName ( ) ) ; stringBuffer . append ( " [" ) ; if ( source != null ) { stringBuffer . append ( source ) ; } else { stringB...
Internal implementation of byte data trace .
253
7
163,075
public AppConfigurationEntry createAppConfigurationEntry ( JAASLoginModuleConfig loginModule , String loginContextEntryName ) { String loginModuleClassName = loginModule . getClassName ( ) ; LoginModuleControlFlag controlFlag = loginModule . getControlFlag ( ) ; Map < String , Object > options = new HashMap < String , ...
Create an AppConfigurationEntry object for the given JAAS login module
258
13
163,076
@ Override public List < AnnotationInfoImpl > getAnnotations ( ) { if ( annotations != null ) { return annotations ; } // Several cases where superclasses contribute no annotations. In // each of these cases case, simply re-use the declared annotations // collection. // // (One case: All of the inheritable superclass a...
declared + inherited
482
4
163,077
private void checkNotClosed ( ) throws SISessionUnavailableException { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkNotClosed" ) ; // Check that the consumer session isn't closed _consumerSession . checkNotClosed ( ) ; // Now check that this consumer hasn't closed. synchronized ( this ) { if ( _closed ) { ...
First check is to make sure that the original Consumer hasn t been closed . Then check that this bifurcated consumer session is not closed .
246
30
163,078
@ Override public Map < Object , Object > getSwappableData ( ) { if ( mSwappableData == null ) { mSwappableData = new ConcurrentHashMap < Object , Object > ( ) ; if ( isNew ( ) ) { //if this is a new session, then we have the updated app data populatedAppData = true ; } } return mSwappableData ; }
This method is copied from DatabaseSession . getSwappableData .
86
14
163,079
@ Override public boolean getSwappableListeners ( short requestedListener ) { short thisListenerFlag = getListenerFlag ( ) ; boolean rc = false ; // check session's listenrCnt to see if it has any of the type we want // input listener is either BINDING or ACTIVATION, so if the session has both, its a match if ( thisLis...
Copied from DatabaseSession . getSwappableListeners . Get the swappable listeners Called to load session attributes if the session contains Activation or Binding listeners Note we always load ALL attributes here since we can t tell which are listeners until they are loaded .
219
53
163,080
public boolean enlistResource ( XAResource xaRes ) throws RollbackException , SystemException , IllegalStateException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "enlistResource" , xaRes ) ; // Determine if we are attempting to enlist a second resource within a transaction // that can't support 2PC anyway. if ( ...
Attempts to add a one - Phase XA Resource to this unit of work .
818
16
163,081
protected boolean delistResource ( XAResource xaRes , int flag ) throws SystemException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "delistResource" , new Object [ ] { xaRes , Util . printFlag ( flag ) } ) ; // get resource manager instance JTAResourceBase jtaRes = ( JTAResourceBase ) getResourceTable ( ) . get ...
Delist the specified resource from the transaction .
813
9
163,082
protected Xid generateNewBranch ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "generateNewBranch" ) ; // Create a new Xid branch final XidImpl result = new XidImpl ( _txServiceXid , ++ _branchCount ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "generateNewBranch" , result ) ; return result ; }
Generates a new XidImpl to represent a new branch of this transaction .
97
16
163,083
protected void startRes ( JTAResource resource ) throws RollbackException , SystemException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "startRes" , new Object [ ] { this , resource } ) ; try { resource . start ( ) ; } catch ( XAException xae ) { _errorCode = xae . errorCode ; // Save locally for FFDC FFDCFilter...
Starts association of the resource with the current transaction and if required adds a reference to a Resource object to the list in the registered state .
760
28
163,084
public int numRegistered ( ) { final int result = _resourceObjects . size ( ) ; if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "numRegistered" , result ) ; return result ; }
Returns the number of Resources currently in the list .
48
10
163,085
public boolean distributeEnd ( int flags ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "distributeEnd" , Util . printFlag ( flags ) ) ; boolean result = true ; for ( int i = _resourceObjects . size ( ) ; -- i >= 0 ; ) { final JTAResource resource = _resourceObjects . get ( i ) ; if ( ! sendEnd ( resource , flags...
Send end to all registered resources
163
6
163,086
private void updateHeuristicState ( boolean commit ) throws SystemException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "updateHeuristicState" , commit ) ; if ( _transaction . isSubordinate ( ) ) { // Get the current transaction state. Need to do this in case we are // in recovery and have already logged a heuri...
Possibly update the heuristic state of the transaction . This is only required if this is a subordinate . If we are a subordinate we need to update the state and log it for recovery .
253
38
163,087
public boolean distributeForget ( ) throws SystemException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "distributeForget" , this ) ; boolean retryRequired = false ; // indicates whether retry necessary final int resourceCount = _resourceObjects . size ( ) ; // Browse through the participants, processing them as ...
Distributes forget messages to all Resources in the appropriate state . Called during retry and mainline .
319
19
163,088
public void distributeCommit ( ) throws SystemException , HeuristicHazardException , HeuristicMixedException , HeuristicRollbackException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "distributeCommit" ) ; final TransactionState ts = _transaction . getTransactionState ( ) ; ts . setCommittingStateUnlogged ( ) ; /...
Distributes commit messages to all Resources in the registered state .
458
12
163,089
public void destroyResources ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "destroyResources" ) ; // Browse through the participants, processing them as appropriate final ArrayList < JTAResource > resources = getResourceObjects ( ) ; for ( JTAResource resource : resources ) { destroyResource ( resource ) ; } i...
Cleanup resources that have not yet been completed . A utility function called when transaction completion has been abandonned either when retries have been exhausted or the operator has cancelled the transaction .
120
36
163,090
@ Override public int compare ( JTAResource o1 , JTAResource o2 ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "compare" , new Object [ ] { o1 , o2 , this } ) ; int result = 0 ; int p1 = o1 . getPriority ( ) ; int p2 = o2 . getPriority ( ) ; if ( p1 < p2 ) result = 1 ; else if ( p1 > p2 ) result = - 1 ; if ( tc ....
Comparator returning 0 should leave elements in list alone preserving original order .
145
14
163,091
protected boolean sortResources ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "sortResources" , _resourceObjects . toArray ( ) ) ; if ( ! _sorted ) { final int resourceCount = _resourceObjects . size ( ) ; if ( _gotPriorityResourcesEnlisted ) { if ( resourceCount > 1 ) Collections . sort ( _resourceObjects , t...
Shuffle commitInLastPhase resources to the end of the list preserving their ordering or reorder resources based on commitPriority in descending order for commit phase .
135
32
163,092
protected void sortPreparePriorityResources ( ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "sortPreparePriorityResources" , _resourceObjects . toArray ( ) ) ; Collections . sort ( _resourceObjects , prepareComparator ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "sortPreparePriorityResources" , _resourceO...
Reorder resources based on commitPriority in asccending order for prepare phase .
100
17
163,093
public boolean isLastAgentEnlisted ( ) { final boolean lastAgentEnlisted = ( _onePhaseResourceEnlisted != null ) ; if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "isLastAgentEnlisted" , lastAgentEnlisted ) ; return lastAgentEnlisted ; }
Informs the caller if a 1PC resource is enlisted in this unit of work .
65
17
163,094
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 .
279
16
163,095
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 .
321
17
163,096
public void close ( ) throws IOException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "close" , new Object [ ] { this , _file } ) ; // By locking on the class rather than the object, and removing // the inner lock on the class, this seems to resolve the problems // reported in d347231 that file handles were not b...
The logic in close needs to account for recursive calls . See notes below .
457
15
163,097
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." ) ; } // DGH20040823: Begin fix ...
Not sure why this is here . Looks like it is a replacement for Integer . getInteger .
191
19
163,098
public void stop ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "stop" ) ; // Lock exclusively for start operations mpioLockManager . lockExclusive ( ) ; started = false ; mpioLockManager . unlockExclusive ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && 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 .
107
29
163,099
public void receiveMessage ( MEConnection conn , AbstractMessage aMessage ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "receiveMessage" , new Object [ ] { conn , aMessage , "verboseMsg IN : " + aMessage . toVerboseString ( ) } ) ; // Minimal comms trace of the mess...
Receive a new Control message from an ME - ME connection .
617
13