idx
int64
0
165k
question
stringlengths
73
4.15k
target
stringlengths
5
918
len_question
int64
21
890
len_target
int64
3
255
162,200
private DirContext bind ( String bindDn , ProtectedString bindPw ) throws NamingException { Hashtable < Object , Object > env = new Hashtable < Object , Object > ( ) ; String url = this . idStoreDefinition . getUrl ( ) ; if ( url == null || url . isEmpty ( ) ) { throw new IllegalArgumentException ( "No URL was provided...
Bind to the LDAP server .
440
7
162,201
private Set < String > getGroups ( DirContext context , String callerDn ) { Set < String > groups = null ; String groupSearchBase = idStoreDefinition . getGroupSearchBase ( ) ; String groupSearchFilter = idStoreDefinition . getGroupSearchFilter ( ) ; if ( groupSearchBase . isEmpty ( ) || groupSearchFilter . isEmpty ( )...
Get the groups for the caller
127
6
162,202
private Set < String > getGroupsByMember ( DirContext context , String callerDn , String groupSearchBase , String groupSearchFilter ) { String groupNameAttribute = idStoreDefinition . getGroupNameAttribute ( ) ; String [ ] attrIds = { groupNameAttribute } ; long limit = Long . valueOf ( idStoreDefinition . getMaxResult...
Get the groups for the caller by using a member - style attribute found on group LDAP entities .
583
20
162,203
private String getFormattedFilter ( String searchFilter , String caller , String attribute ) { //Allow %v in addition to %s for string replacement String filter = searchFilter . replaceAll ( "%v" , "%s" ) ; if ( ! ( filter . startsWith ( "(" ) && filter . endsWith ( ")" ) ) && ! filter . isEmpty ( ) ) { filter = "(" + ...
Format the callerSearchFilter or groupSearchFilter . We need to check for String substitution . If a substitution is needed use the result as is . Otherwise construct the remainder of the filter using the name attribute of the group or caller .
144
46
162,204
private Set < String > getGroupsByMembership ( DirContext context , String callerDn ) { String memberOfAttribute = idStoreDefinition . getGroupMemberOfAttribute ( ) ; String groupNameAttribute = idStoreDefinition . getGroupNameAttribute ( ) ; Attributes attrs ; Set < String > groupDns = new HashSet < String > ( ) ; if ...
Get the groups for the caller by using the memberOf - style attribute found on user LDAP entities .
672
21
162,205
@ Deprecated public static ValidatorFactory getValidatorFactory ( ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getValidatorFactory" ) ; ValidatorFactory validatorFactory = AbstractBeanValidation . getValidatorFactory ( ) ; if ( i...
This method will return null if no BeanValidationService is available in the process
128
16
162,206
public void message ( MessageType type , String me , TraceComponent tc , String msgKey , Object objs , Object [ ] formattedMessage ) { switch ( type ) { case AUDIT : if ( TraceComponent . isAnyTracingEnabled ( ) && myTc . isAuditEnabled ( ) ) Tr . audit ( myTc , SIB_MESSAGE , formattedMessage ) ; break ; case ERROR : T...
The method called to indicate that a message is being generated by SibMessage
188
15
162,207
public final static void fireProbe ( long probeId , Object instance , Object target , Object args ) { // Load statics onto the stack to avoid a window where they can be cleared // between the test for null and the invocation of the method Object proxyTarget = fireProbeTarget ; Method method = fireProbeMethod ; if ( pro...
Fire a probe event to the registered target .
120
9
162,208
public synchronized void releaseId ( short id ) throws IdAllocatorException { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "releaseId" , "" + id ) ; deallocate ( id ) ; // If we are releasing the id 1 less than the next id, set the next id to this one if ( id == ( nextId - 1 ) ) { nextId = id ; // Ensure the nex...
Releases an ID making it available to be allocated once more .
166
13
162,209
private String firstConstantOfEnum ( ) { Object [ ] enumConstants = targetClass . getEnumConstants ( ) ; if ( enumConstants . length != 0 ) { return enumConstants [ 0 ] . toString ( ) ; } return "" ; // if empty Enum }
find the first constant value of the targetClass and return as a String
63
14
162,210
void checkTopicPublishPermission ( String topic ) { SecurityManager sm = System . getSecurityManager ( ) ; if ( sm == null ) return ; sm . checkPermission ( new TopicPermission ( topic , PUBLISH ) ) ; }
Check if the caller has permission to publish events to the specified topic .
52
14
162,211
@ Activate protected void activate ( ComponentContext componentContext , Map < String , Object > props ) { this . componentContext = componentContext ; // // Parse the configuration that we've been provided // Dictionary<?, ?> configProperties = componentContext.getProperties(); // processConfigProperties(configPropert...
Activate the EventEngine implementation . This method will be called by OSGi Declarative Services implementation when the component is initially activated and when changes to our configuration have occurred .
236
35
162,212
@ Deactivate protected void deactivate ( ComponentContext componentContext ) { // Remove the framework event adapter bundleContext . removeFrameworkListener ( frameworkEventAdapter ) ; frameworkEventAdapter = null ; // Remove the bundle event adapter bundleContext . removeBundleListener ( bundleEventAdapter ) ; bundleE...
Deactivate the EventAdmin service . This method will be called by the OSGi Declarative Services implementation when the component is deactivated . Deactivation will occur when the service configuration needs to be refreshed when the bundle is stopped or when the DS implementation is stopped .
101
53
162,213
public void addTopic ( String topic ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "addTopic" , topic ) ; SelectionCriteria criteria = _messageProcessor . getSelectionCriteriaFactory ( ) . createSelectionCriteria ( topic , null , SelectorDomain . SIMESSAGE ) ; if ( _...
Adds a topic to the subscription state for this OutputHandler .
181
12
162,214
public void removeTopic ( String topic ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeTopic" , topic ) ; if ( _subscriptionState == null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "removeTopic" , "Topic ...
Removes a topic from the set of topics with this OutputHandler
146
13
162,215
public String [ ] getTopics ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getTopics" ) ; String [ ] topics = null ; if ( _subscriptionState != null ) topics = _subscriptionState . getTopics ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnable...
Get the set of topics associated with this OutputHandler
113
10
162,216
public SIBUuid12 getTopicSpaceUuid ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getTopicSpaceUuid" ) ; SIBUuid12 retval = _destinationHandler . getUuid ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getTopic...
Get the topic space name associated with this OutputHandler
117
10
162,217
void processAckExpected ( long ackExpStamp , int priority , Reliability reliability , SIBUuid12 stream ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "processAckExpected" , new Long ( ackExpStamp ) ) ; _internalOutputStreamManager . process...
needs to be forwarded downstream .
147
6
162,218
public void sendSilenceMessage ( long startStamp , long endStamp , long completedPrefix , boolean requestedOnly , int priority , Reliability reliability , SIBUuid12 stream ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "sendSilenceMessage" ...
sendSilenceMessage may be called from InternalOutputStream when a Nack is recevied
772
19
162,219
public void sendLinkMessage ( MessageItem msgItem , boolean rollback ) throws SIResourceException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "sendLinkMessage" , msgItem ) ; JsMessage jsMsg = null ; try { //defect 245624 jsMsg = msgItem . getMessage ( ) . getReceive...
properties need to be set on the mssage
553
10
162,220
public void removeStream ( SIBUuid12 stream ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeStream" , stream ) ; // nuke the stream out of our internal store _internalOutputStreamManager . remove ( stream ) ; deregisterControlAdapterMBean ( ) ; if ( TraceCompon...
This method is called by the input handler when it flushes a local stream . This is our cue to remove any data structures we may be maintaining for this stream .
117
33
162,221
public void setTopicSpaceMapping ( String foreignTSName ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setTopicSpaceMapping" , foreignTSName ) ; // Create routingDestination object _routingDestination = SIMPUtils . createJsDestinationAddress ( foreignTSName , null ,...
Creates the JsDestinationAddress object passed over in publications to foreign buses .
147
17
162,222
public SynchronizationRegistryUOWScope getCurrentTransactionalUOW ( boolean checkMarkedRollback ) throws CSITransactionRolledbackException { UOWCoordinator coord = uowCurrent . getUOWCoord ( ) ; // 131880-6 if ( coord != null ) { if ( checkMarkedRollback && coord . getRollbackOnly ( ) ) // 131880-6 d173218.1 { if ( Tra...
Added checkMarkedRollback parameter . d166414
191
12
162,223
public void setRollbackOnly ( ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) { // d173022.3 Tr . entry ( tc , "setRollbackOnly" , this ) ; } LocalTransactionCoordinator lCoord = getLocalCoord ( ) ; if ( lCoord != null ) { lCoord . setRollbackOnly ( )...
Marks the current local or global transaction to be rolled back
238
12
162,224
public boolean getRollbackOnly ( ) { LocalTransactionCoordinator lCoord = getLocalCoord ( ) ; if ( lCoord != null ) { return ( lCoord . getRollbackOnly ( ) ) ; } else { int status = Status . STATUS_NO_TRANSACTION ; //LIDB1673.2.1.5 try { //LIDB1673.2.1.5 status = txService . getStatus ( ) ; //LIDB1673.2.1.5 } //LIDB167...
Returns true iff the current local or global transaction has been marked rollback only
290
16
162,225
public void enlistWithTransaction ( javax . transaction . Synchronization sync ) throws CSIException { SynchronizationRegistryUOWScope uowScope = getCurrentTransactionalUOW ( false ) ; if ( uowScope == null ) { throw new IllegalStateException ( "No active transaction" ) ; } enlistWithTransaction ( uowScope , sync ) ; }
Enlist synchronization instance with the current local or global transaction .
79
12
162,226
public void enlistWithTransaction ( SynchronizationRegistryUOWScope uowCoord , Synchronization sync ) throws CSIException { try { if ( uowCoord . getUOWType ( ) == UOWSynchronizationRegistry . UOW_TYPE_GLOBAL_TRANSACTION ) { ( ( Transaction ) uowCoord ) . registerSynchronization ( sync ) ; } else { ( ( LocalTransaction...
Enlist synchronization instance with the specified UOWCoord
135
11
162,227
final LocalTransactionCoordinator beginLocalTx ( ) { LocalTransactionCoordinator lCoord = null ; try { ltcCurrent . begin ( ) ; lCoord = getLocalCoord ( ) ; // d175585 if ( TraceComponent . isAnyTracingEnabled ( ) ) // d527372 { if ( tc . isEventEnabled ( ) ) { if ( lCoord != null ) { Tr . event ( tc , "Began LTC cntxt...
Begin a new local trasaction context
316
8
162,228
final Transaction suspendGlobalTx ( int action ) throws CSIException //LIDB1673.2.1.5 //d174358.1 { Transaction ctrl = null ; //LIDB1673.2.1.5 try { //LIDB1673.2.1.5 ctrl = txService . suspend ( ) ; //LIDB1673.2.1.5 if ( TraceComponent . isAnyTracingEnabled ( ) ) // d527372 { if ( tc . isEventEnabled ( ) ) //LIDB1673.2...
Suspend the current global transaction and return the Control instance for it ; the inactivity timeout is either started or stopped according to action . If no global transaction exists on the thread do nothing ; returned Control object will be null is this case
650
48
162,229
final void resumeGlobalTx ( Transaction ctrl , int action ) //LIDB1673.2.1.5 throws SystemException , InvalidTransactionException //LIDB1673.2.1.5 { try { //LIDB1673.2.1.5 txService . resume ( ctrl ) ; //LIDB1673.2.1.5 } //LIDB1673.2.1.5 catch ( SystemException e ) //LIDB1673.2.1.5 { //LIDB1673.2.1.5 FFDCFilter . proce...
Resume the global transaction associated with the given Control instance . The inactivity timeout is either started or stopped according to action . If InvalidTransactionException is raised by the global tx service it is passed on to the caller of this method .
599
47
162,230
final public void completeTxTimeout ( ) throws //LIDB1673.2.1.5 CSITransactionRolledbackException //LIDB1673.2.1.5 { //LIDB1673.2.1.5 final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; try { //LIDB1673.2.1.5 if ( isTraceOn && tc . isEntryEnabled ( ) ) { // d173022.3 Tr . entry ( tc , "completeTxTimeou...
Complete processing of passive transaction timeout . The timer pops on a timeout thread ; the transaction is rolled back on the application thread when the container has control . d171654
385
34
162,231
public boolean isBmtActive ( EJBMethodInfoImpl methodInfo ) { TranStrategy ts = txStrategies [ methodInfo . getTransactionAttribute ( ) . getValue ( ) ] ; return ts . isBmtActive ( ) ; }
167937 - added entire method
53
7
162,232
public BundleList findExtraBundles ( BundleList newBundleList , FeatureManager featureManager ) { List < RuntimeFeatureResource > bundles = new ArrayList < RuntimeFeatureResource > ( resources ) ; bundles . removeAll ( newBundleList . resources ) ; resources . removeAll ( bundles ) ; BundleList result = new BundleList ...
This is like retain all except it returns a list of what was removed .
96
15
162,233
@ FFDCIgnore ( NumberFormatException . class ) private void readWriteTimeAndJavaSpecVersion ( WsResource res , String line ) { int timeIndex = line . indexOf ( ' ' ) ; int javaSpecVersionIndex = timeIndex >= 0 ? line . indexOf ( ' ' , timeIndex ) : - 1 ; if ( timeIndex != - 1 ) { try { String sTime = javaSpecVersionInd...
ignore the NumberFormatException as we deal with it .
201
11
162,234
public synchronized void add ( int id , SICoreConnection connection ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "add" , "" + id ) ; map . put ( id , connection ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "add" ) ; }
Adds an SICoreConnection into this map with the specified ID .
75
14
162,235
public synchronized SICoreConnection get ( int id ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "get" , "" + id ) ; SICoreConnection retValue = ( SICoreConnection ) map . get ( id ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "get" , retValue ) ; return retValue ; }
Returns the SICoreConnection previously stored with the specified ID .
90
13
162,236
public synchronized void remove ( int id ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "remove" , "" + id ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "remove" , "" + id ) ; map . remove ( id ) ; }
Removes an SICoreConnection from the map .
71
11
162,237
public Selector resolve ( Selector tree , Resolver resolver , PositionAssigner positionAssigner ) { if ( tree instanceof Identifier ) { Identifier id = ( Identifier ) tree ; // The subtree to resolve is an Identifier. Resolve the Identifier. return resolver . resolve ( id , positionAssigner ) ; } else if ( tree . getNu...
Walks a Selector tree and resolves all the Identifiers
190
12
162,238
private static Selector DNF0 ( Selector tree ) { if ( ! ( tree instanceof Operator ) ) return tree ; Operator oper = ( Operator ) tree ; switch ( oper . getOp ( ) ) { case Selector . AND : return processAND ( oper . getOperands ( ) [ 0 ] , oper . getOperands ( ) [ 1 ] ) ; case Selector . OR : return makeOR ( DNF0 ( ope...
Working recursive subroutine of DNF
127
8
162,239
private static Selector processAND ( Selector sel0 , Selector sel1 ) { sel0 = DNF0 ( sel0 ) ; sel1 = DNF0 ( sel1 ) ; if ( sel0 instanceof Operator ) { Operator oper = ( Operator ) sel0 ; if ( oper . getOp ( ) == Selector . OR ) return makeOR ( processAND ( oper . getOperands ( ) [ 0 ] , sel1 ) , processAND ( oper . get...
Subroutine of DNF0 to process AND nodes
159
11
162,240
private static Selector processANDRight ( Selector sel0 , Selector sel1 ) { if ( sel1 instanceof Operator ) { Operator oper = ( Operator ) sel1 ; if ( oper . getOp ( ) == Selector . OR ) return makeOR ( processANDRight ( sel0 , oper . getOperands ( ) [ 0 ] ) , processANDRight ( sel0 , oper . getOperands ( ) [ 1 ] ) ) ;...
Subroutine of DNF0 to process AND nodes whose left child is an atom
133
17
162,241
private static Selector makeOR ( Selector sel0 , Selector sel1 ) { if ( sel0 . getNumIds ( ) == 0 ) { Boolean staticResult = ( Boolean ) // was BooleanValue Matching . getEvaluator ( ) . eval ( sel0 ) ; if ( staticResult != null && staticResult . booleanValue ( ) ) return new LiteralImpl ( Boolean . TRUE ) ; // was Boo...
must be true .
211
4
162,242
private static Selector makeAND ( Selector sel0 , Selector sel1 ) { if ( sel0 . getNumIds ( ) == 0 ) { Boolean staticResult = ( Boolean ) // was BooleanValue Matching . getEvaluator ( ) . eval ( sel0 ) ; if ( staticResult == null || ! staticResult . booleanValue ( ) ) return new LiteralImpl ( Boolean . FALSE ) ; // was...
must be false .
213
4
162,243
private static Selector evalOf ( Selector arg ) { if ( arg . getNumIds ( ) > 0 ) return arg ; return new LiteralImpl ( Matching . getEvaluator ( ) . eval ( arg ) ) ; }
if the argument has no identifiers
52
6
162,244
private static Selector simplifyTree ( Selector tree ) { if ( ! ( tree instanceof Operator ) || tree instanceof ExtensionOperatorImpl ) return tree ; Operator oper = ( Operator ) tree ; switch ( oper . getOp ( ) ) { case Selector . NOT : return simplifyNOT ( oper . getOperands ( ) [ 0 ] ) ; case Selector . EQ : return ...
and OR nodes
327
3
162,245
private static Selector simplifyNOT ( Selector tree ) { if ( tree instanceof Literal ) return new LiteralImpl ( EvaluatorImpl . not ( ( Boolean ) ( ( Literal ) tree ) . getValue ( ) ) ) ; // was BooleanValue if ( ! ( tree instanceof Operator ) ) return new OperatorImpl ( Selector . NOT , tree ) ; Operator oper = ( Oper...
Subroutine of simplifyTree to handle NOT nodes
440
10
162,246
private static Selector simplifyEQ ( Selector sel0 , Selector sel1 ) { if ( sel0 . getType ( ) != Selector . BOOLEAN ) return new OperatorImpl ( Selector . EQ , sel0 , sel1 ) ; else return makeOR ( makeAND ( simplifyTree ( sel0 ) , simplifyTree ( sel1 ) ) , makeAND ( simplifyNOT ( sel0 ) , simplifyNOT ( sel1 ) ) ) ; }
Subroutine of simplifyTree to handle EQ nodes
106
10
162,247
private static Selector simplifyNE ( Selector sel0 , Selector sel1 ) { if ( sel0 . getType ( ) == Selector . BOOLEAN ) return makeOR ( makeAND ( simplifyTree ( sel0 ) , simplifyNOT ( sel1 ) ) , makeAND ( simplifyNOT ( sel0 ) , simplifyTree ( sel1 ) ) ) ; else if ( sel0 . getType ( ) == Selector . STRING || sel0 . getTy...
Subroutine of simplifyTree to handle NE nodes
189
10
162,248
private static boolean augmentConjunction ( ConjunctionImpl target , Selector toAdd ) { if ( toAdd instanceof Operator ) { Operator oper = ( Operator ) toAdd ; if ( oper . getOp ( ) == Selector . AND ) return augmentConjunction ( target , oper . getOperands ( ) [ 0 ] ) && augmentConjunction ( target , oper . getOperand...
or false if the Conjunction will always be false .
293
11
162,249
public static String getRandomAlphaNumeric ( int length ) { if ( length <= 0 ) { return "" ; } Random r = getRandom ( ) ; StringBuffer result = new StringBuffer ( length ) ; for ( int i = 0 ; i < length ; i ++ ) { int n = r . nextInt ( alphaNumChars . length ) ; result . append ( alphaNumChars [ n ] ) ; } return result...
Generates a random alphanumeric string of length n .
97
12
162,250
static String getLogHeader ( Map < String , String > config ) { StringBuilder builder = new StringBuilder ( 512 ) ; String productInfo = config . get ( "websphere.product.info" ) ; if ( productInfo != null ) { builder . append ( "product = " ) . append ( productInfo ) . append ( LoggingConstants . nl ) ; } String insta...
Returns the header to be written at the beginning of all log files .
710
14
162,251
@ Override public synchronized void init ( LogProviderConfig config ) { ffdcSummaryPolicy = ( ( LogProviderConfigImpl ) config ) . getFfdcSummaryPolicy ( ) ; update ( config ) ; }
Initialize the FFDC service based on the provided configuration
45
11
162,252
@ Override public synchronized void update ( LogProviderConfig config ) { // Get the configured log location, and derive the ffdc location from it File location = config . getLogDirectory ( ) ; if ( location == null ) { location = new File ( "." ) ; } location = new File ( location , FFDCConfigurator . FFDC_DIR ) ; ffd...
Update the FFDC service based on the provided configuration
235
10
162,253
@ Override public synchronized void stop ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Stopping the basic FFDC service" ) ; } logSummary ( true ) ; }
Stop this FFDC service instance and free up any resources currently used .
57
14
162,254
@ Override public void processException ( Throwable th , String sourceId , String probeId , Object callerThis , Object [ ] objectArray ) { log ( sourceId , probeId , th , callerThis , objectArray ) ; }
Process an exception
49
3
162,255
@ FFDCIgnore ( PrivilegedActionException . class ) private void log ( String sourceId , String probeId , Throwable th , Object callerThis , Object [ ] objectArray ) { IncidentImpl incident = getIncident ( sourceId , probeId , th , callerThis , objectArray ) ; incident . log ( th , callerThis , objectArray ) ; if ( Syst...
Log a problem to the global incident stream ( creating it if necessary
237
13
162,256
private OutputStream createSummaryStream ( File targetFile ) throws IOException { if ( targetFile == null ) return null ; TextFileOutputStreamFactory factory = FFDCConfigurator . getFileOutputStreamFactory ( ) ; OutputStream newStream = null ; // Creation and rolling of files should be done as the server Object token =...
This wrapper method for creating streams should be called while synchronized on the targetFile ..
113
16
162,257
public void alertClose ( ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) //306998.15 logger . logp ( Level . FINE , CLASS_NAME , "alertClose" , " _outWriter: --> " + _outWriter ) ; // 104771 writerClosed = true ; if ( com . ibm . ejs . ras . TraceCompo...
Alert message that the outputstream has been closed .
158
10
162,258
public void alertException ( ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) //306998.15 logger . logp ( Level . FINE , CLASS_NAME , "alertException" , "entry _outWriter: --> " + _outWriter ) ; writerException = true ; if ( com . ibm . ejs . ras . Trac...
Alert message that there has been an exception in the outputstream .
154
13
162,259
public boolean writerObtained ( ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) //306998.15 logger . logp ( Level . FINE , CLASS_NAME , "writerObtained" , " " + String . valueOf ( _gotWriter ) , "[" + this + "]" ) ; return _gotWriter ; }
Used to check whether the writer has been obtained .
98
10
162,260
public boolean outputStreamObtained ( ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) //306998.15 logger . logp ( Level . FINE , CLASS_NAME , "outputStreamObtained" , " " + String . valueOf ( _gotOutputStream ) , "[" + this + "]" ) ; return _gotOutputS...
Used to check whether the output stream has been obtained .
102
11
162,261
public void finish ( ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) //306998.15 logger . entering ( CLASS_NAME , "finish" , "[" + this + "]" ) ; if ( ! isCommitted ( ) ) { commit ( ) ; } // flush the OutputStream and Writer try { flushBuffer ( false )...
Close this response .
371
4
162,262
protected void cleanupFromFinish ( ) { _response = null ; _bufferSize = 0 ; _encoding = null ; // LIBERTY _responseBuffer = null; // _outWriterEncoding = null; _gotOutputStream = false ; _gotWriter = false ; this . _pwriter = null ; }
shared cleanup from finish & finishKeepConnection
66
8
162,263
public void resetBuffer ( ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) //306998.15 logger . entering ( CLASS_NAME , "resetBuffer" , "[" + this + "]" ) ; //is committed check done in underlying layer in tWAS if ( isCommitted ( ) ) throw new IllegalSt...
Clears the content of the underlying buffer in the response without clearing headers or status code .
243
18
162,264
public ServletOutputStream getOutputStream ( ) { final boolean isTraceOn = com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && logger . isLoggable ( Level . FINE ) ) //306998.15 logger . entering ( CLASS_NAME , "getOutputStream" , "gotWriter=" + String . valueOf ( _gotWriter ) + " [" + ...
Returns an output stream for writing binary response data .
367
10
162,265
public void addCookie ( Cookie cookie ) { // // Note: this method is overwritten in servlet 4.0 // if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { //306998.15 logger . logp ( Level . FINE , CLASS_NAME , "addCookie" , "Adding cookie --> " + cookie . getNa...
Uses the given HTTP response message to assign a new value to a browser - specific cookie . Updates the response to restrict caching of sensitive cookie - related data .
415
32
162,266
synchronized protected void commit ( ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { logger . entering ( CLASS_NAME , "commit" , "[" + this + "] ,_headersWritten -->" + _headersWritten ) ; } // begin 134537: part 2 // (!isCommitted()) if ( ! _headers...
Commits the response by sending response codes and headers . A response may only be commited once .
762
20
162,267
public String getCharacterEncoding ( ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { //306998.15 logger . entering ( CLASS_NAME , "getCharacterEncoding" , "[" + this + "]" ) ; } if ( _encoding == null ) { setDefaultResponseEncoding ( ) ; } // 311717 ...
Returns the character encoding used for writing text to the body of this response .
174
15
162,268
public Cookie [ ] getCookies ( ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { //306998.15 logger . logp ( Level . FINE , CLASS_NAME , "getCookies" , "[" + this + "]" ) ; } return ( _response . getCookies ( ) ) ; }
Get the Cookies that have been set in this response .
96
11
162,269
public void sendError ( int status ) throws IOException { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { //306998.15 logger . logp ( Level . FINE , CLASS_NAME , "sendError" , "error --> " + String . valueOf ( status ) , "[" + this + "]" ) ; } Object [ ]...
Sends an error response to the client using the specified status code and no default message .
149
18
162,270
public void sendError ( int status , String msg ) throws IOException { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { //306998.15 logger . entering ( CLASS_NAME , "sendError" , "status --> " + status + " " + msg + " [" + this + "]" ) ; } WebAppDispatche...
Sends an error response to the client using the specified status code and detail message .
352
17
162,271
public void setReason ( String msg ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { //306998.15 logger . logp ( Level . FINE , CLASS_NAME , "setReason" , " message --> " + msg , "[" + this + "]" ) ; } _response . setReason ( msg ) ; }
Sends an error response directly to the client using the specified status code and detail message .
98
18
162,272
public void setContentLength ( int len ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { //306998.15 logger . entering ( CLASS_NAME , "setContentLength" , "length --> " + String . valueOf ( len ) + " [" + this + "]" ) ; } // d151464 - check the include...
Defines the content length for this response . This call must be made only once . Not setting the content length may cause significant performance degradation .
429
28
162,273
public void setDateHeader ( String name , long t ) { // 311717 if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { //306998.15 logger . entering ( CLASS_NAME , "setDateHeader" , " name --> " + name + " value --> " + String . valueOf ( t ) + " [" + this + "]"...
Adds a date header with the specified time . If this is called more than once the current value will replace the previous value .
553
25
162,274
protected boolean logWarningActionNow ( IServletWrapper w ) { if ( w instanceof IServletWrapperInternal ) { boolean firstTime = ( ( IServletWrapperInternal ) w ) . hitWarningStatus ( ) ; return firstTime ; } else { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FI...
Do not sync for performance reasons . It is ok to print this warning more than once just trying to limit it for the most part .
131
27
162,275
public void setInternalHeader ( String name , String s ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { //306998.15 logger . logp ( Level . FINE , CLASS_NAME , "setInternalHeader" , " name --> " + name + " value --> " + s , "[" + this + "]" ) ; } setH...
Adds a header field with the specified string value . Does not check to see if this is an include . If this is called more than once the current value will replace the previous value .
111
37
162,276
public void setStatus ( int status ) { // 311717 if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { //306998.15 logger . entering ( CLASS_NAME , "setStatus" , " status --> " + String . valueOf ( status ) + " [" + this + "]" ) ; } WebAppDispatcherContext dis...
Sets the status code and a default message for this response .
411
13
162,277
public TransactionParticipant start ( PersistentTranId ptid , int flags ) throws XidUnknownException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "start" , new Object [ ] { "PersistentTranId=" + ptid , xaFlagsToString ( flags ) } ) ; TransactionParticipant ret...
using either the TMJOIN or TMRESUME flags .
621
13
162,278
public void start ( PersistentTranId ptid , TransactionParticipant participant ) throws XidAlreadyKnownException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "start" , new Object [ ] { "PersistentTranId=" + ptid , "Participant=" + participant } ) ; // Defect 4...
with a NEW transaction branch .
415
6
162,279
public void end ( PersistentTranId ptid , int flags ) throws XidUnknownException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "end" , new Object [ ] { "PersistentTranId=" + ptid , xaFlagsToString ( flags ) } ) ; // Defect 455354 // We need to make sure that an...
later point .
666
3
162,280
public void restart ( PersistentMessageStore PM ) throws TransactionException , SevereMessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "restart" , "PersistenceManager=" + PM ) ; if ( PM != null ) { // We need to store the PM so that we can ca...
Called at server startup to rebuild our list of indoubt transactions from the datastore .
817
19
162,281
public Xid [ ] recover ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "recover" ) ; Xid [ ] xids = new Xid [ _indoubtXids . size ( ) ] ; _indoubtXids . toArray ( xids ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit...
This method returns the list of indoubt Xids that the MessageStore knows about at the time . This includes those recovered from the datastore at restart time and any that are currently known about as part of normal runtime processing .
146
46
162,282
public Xid [ ] listRemoteInDoubts ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "listRemoteInDoubts" ) ; Vector < PersistentTranId > xids = ( Vector < PersistentTranId > ) _indoubtXids . clone ( ) ; Xid [ ] retval = null ; if ( xids . size ( ) > 0 ) { retva...
This method returns a list representing all Xid known by the ME which do not match those currently known by the local Transaction Manager . The admin console can therefore use the output of this method to display a list of xids that can be completed through the ME admin console .
256
54
162,283
public String xaFlagsToString ( int flags ) { StringBuilder retval = new StringBuilder ( "Flags=" ) ; retval . append ( Integer . toHexString ( flags ) ) ; retval . append ( "( " ) ; if ( flags == XAResource . TMNOFLAGS ) { retval . append ( "TMNOFLAGS " ) ; } else { if ( ( flags & XAResource . TMENDRSCAN ) != 0 ) retv...
Feature SIB0048c . ms . 1
356
10
162,284
public void assign ( Identifier id ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) tc . entry ( cclass , "assign" , "identifier: " + id ) ; // Assign ordinal position String key = null ; switch ( id . getType ( ) ) { case Identifier . STRING : // Changed from using the Identifier name to ...
Implement the assignPosition method
592
6
162,285
public static void processBndAndExt ( Map < JNDIEnvironmentRefType , Map < String , String > > allBindings , Map < String , String > envEntryValues , ResourceRefConfigList resRefList , RefBindingsGroup refBindingsGroup , List < com . ibm . ws . javaee . dd . commonext . ResourceRef > resRefExts ) { RefBndAndExtHelper ....
Process bindings and extensions for all JNDIEnvironmentRef . This method can be called multiple times with different source objects .
355
24
162,286
static void rcvStartSess ( CommsByteBuffer request , Conversation conversation , int requestNumber , boolean allocatedFromBufferPool , boolean partOfExchange , boolean restart ) //471642 { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "rcvStartSess" , new Object [ ] { r...
Start the Synchronous Consumer Session provided by the client .
309
12
162,287
static void rcvStopSess ( CommsByteBuffer request , Conversation conversation , int requestNumber , boolean allocatedFromBufferPool , boolean partOfExchange ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "rcvStopSess" , new Object [ ] { request , conversation , "" + ...
Stop the Synchronous Consumer Session provided by the client .
285
12
162,288
static void rcvRegisterAsyncConsumer ( CommsByteBuffer request , Conversation conversation , int requestNumber , boolean allocatedFromBufferPool , boolean partOfExchange , boolean stoppable ) //SIB0115d.comms { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "rcvRegisterA...
Register an asynchronous consumer for this consumer session .
818
9
162,289
static void rcvRequestMsgs ( CommsByteBuffer request , Conversation conversation , int requestNumber , boolean allocatedFromBufferPool , boolean partOfExchange ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "rcvRequestMsgs" , new Object [ ] { request , conversation ,...
Request messages for this consumer .
361
6
162,290
static void rcvSessReceive ( CommsServerByteBuffer request , Conversation conversation , int requestNumber , boolean allocatedFromBufferPool , boolean partOfExchange ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "rcvSessReceive" , new Object [ ] { request , conversa...
Receive a message using the Synchronous Consumer Session provided by the client .
414
16
162,291
static void rcvUnlockAll ( CommsByteBuffer request , Conversation conversation , int requestNumber , boolean allocatedFromBufferPool , boolean partOfExchange ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "rcvUnlockAll" , new Object [ ] { request , conversation , "" ...
Unlocks all locked messages on the server .
283
9
162,292
static void rcvDeleteSet ( CommsServerByteBuffer request , Conversation conversation , int requestNumber , boolean allocatedFromBufferPool , boolean partOfExchange ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "rcvDeleteSet" , new Object [ ] { request , conversation...
Deletes a set of messages that are currently locked by the server .
427
14
162,293
static void rcvReadSet ( CommsByteBuffer request , Conversation conversation , int requestNumber , boolean allocatedFromBufferPool , boolean partOfExchange ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "rcvReadSet" , new Object [ ] { request , conversation , "" + re...
Reads a set of messages that are currently locked by the server .
303
14
162,294
private void cleanupSubscription ( SubscriptionItemStream stream ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "cleanupSubscription" , stream ) ; try { // Indicate that we don't want the asynch deletion thread restarted if the // subscription fails to delete, otherwise we might end up in a tight loop trying /...
Delete the subscription in question .
223
6
162,295
public void setRunning ( boolean running ) { if ( tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "setRunning" ) ; SibTr . exit ( tc , "setRunning" ) ; } _isRunning = running ; return ; }
Method setRunning - Set indicator that the asynchDeletionThread is running
58
17
162,296
public boolean isRunning ( ) { if ( tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "isRunning" ) ; SibTr . exit ( tc , "isRunning" , new Boolean ( _isRunning ) ) ; } return _isRunning ; }
Method isRunning - Determine if the AsynchDeletionThread is running or not .
61
20
162,297
public void setStopping ( ) { if ( tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "setStopping" ) ; SibTr . exit ( tc , "setStopping" ) ; } _isStopping = true ; return ; }
Method setStopping - Set indicator that the asynchDeletionThread is stopping
60
18
162,298
public boolean isStopping ( ) { if ( tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "isStopping" ) ; SibTr . exit ( tc , "isStopping" , new Boolean ( _isStopping ) ) ; } return _isStopping ; }
Method isStopping - Determine if the AsynchDeletionThread is stopping or not .
66
21
162,299
public void rerun ( ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "rerun" ) ; _rerunRequested = true ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "rerun" ) ; }
Indicate that we want the Asynch deletion thread to run again
64
14