id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
68,000
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java
SibRaCommonEndpointActivation.createMultipleListeners
private void createMultipleListeners(final SibRaMessagingEngineConnection connection) throws ResourceException { final String methodName = "createMultipleListeners"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, connect...
java
private void createMultipleListeners(final SibRaMessagingEngineConnection connection) throws ResourceException { final String methodName = "createMultipleListeners"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, connect...
[ "private", "void", "createMultipleListeners", "(", "final", "SibRaMessagingEngineConnection", "connection", ")", "throws", "ResourceException", "{", "final", "String", "methodName", "=", "\"createMultipleListeners\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnab...
This method will create a listener to each destination that matches the wildcarded destination @param connection The connection to an ME
[ "This", "method", "will", "create", "a", "listener", "to", "each", "destination", "that", "matches", "the", "wildcarded", "destination" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java#L683-L770
68,001
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java
SibRaCommonEndpointActivation.checkIfRemote
boolean checkIfRemote(SibRaMessagingEngineConnection conn) { final String methodName = "checkIfRemote"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, new Object[] { conn }); } String meName = conn.getCo...
java
boolean checkIfRemote(SibRaMessagingEngineConnection conn) { final String methodName = "checkIfRemote"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, new Object[] { conn }); } String meName = conn.getCo...
[ "boolean", "checkIfRemote", "(", "SibRaMessagingEngineConnection", "conn", ")", "{", "final", "String", "methodName", "=", "\"checkIfRemote\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ...
This method checks to see if the specified connection is to a remote ME. It will check the name of the ME the connection is connected to againgst the list of local MEs that are on the locla server. @param conn The connection to check. @return True if the connection passed is a connection to a remote ME
[ "This", "method", "checks", "to", "see", "if", "the", "specified", "connection", "is", "to", "a", "remote", "ME", ".", "It", "will", "check", "the", "name", "of", "the", "ME", "the", "connection", "is", "connected", "to", "againgst", "the", "list", "of",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java#L813-L855
68,002
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java
SibRaCommonEndpointActivation.dropNonPreferredConnections
void dropNonPreferredConnections() { final String methodName = "dropNonPreferredConnections"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } // If we are connected to a non preferred then we will NEVE...
java
void dropNonPreferredConnections() { final String methodName = "dropNonPreferredConnections"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } // If we are connected to a non preferred then we will NEVE...
[ "void", "dropNonPreferredConnections", "(", ")", "{", "final", "String", "methodName", "=", "\"dropNonPreferredConnections\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr"...
This method will close any connections that are considered "non preferred". Non preferred connections are only created when target significane is set to preferred and the system was not able to create a connection that match the target data.
[ "This", "method", "will", "close", "any", "connections", "that", "are", "considered", "non", "preferred", ".", "Non", "preferred", "connections", "are", "only", "created", "when", "target", "significane", "is", "set", "to", "preferred", "and", "the", "system", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java#L862-L881
68,003
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java
SibRaCommonEndpointActivation.dropRemoteConnections
void dropRemoteConnections() { final String methodName = "dropRemoteConnections"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } if (_connectedRemotely) { closeConnections(); ...
java
void dropRemoteConnections() { final String methodName = "dropRemoteConnections"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } if (_connectedRemotely) { closeConnections(); ...
[ "void", "dropRemoteConnections", "(", ")", "{", "final", "String", "methodName", "=", "\"dropRemoteConnections\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "...
If we are connected remotely then drop the connection.
[ "If", "we", "are", "connected", "remotely", "then", "drop", "the", "connection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java#L886-L903
68,004
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java
SibRaCommonEndpointActivation.closeConnections
void closeConnections() { final String methodName = "closeConnections"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } synchronized (_connections) { Collection<SibRaMessagingEngine...
java
void closeConnections() { final String methodName = "closeConnections"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } synchronized (_connections) { Collection<SibRaMessagingEngine...
[ "void", "closeConnections", "(", ")", "{", "final", "String", "methodName", "=", "\"closeConnections\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", ...
Close all the connections we currently have open.
[ "Close", "all", "the", "connections", "we", "currently", "have", "open", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java#L908-L932
68,005
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java
SibRaCommonEndpointActivation.messagingEngineStopping
@Override public synchronized void messagingEngineStopping( final JsMessagingEngine messagingEngine, final int mode) { final String methodName = "messagingEngineStopping"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) ...
java
@Override public synchronized void messagingEngineStopping( final JsMessagingEngine messagingEngine, final int mode) { final String methodName = "messagingEngineStopping"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) ...
[ "@", "Override", "public", "synchronized", "void", "messagingEngineStopping", "(", "final", "JsMessagingEngine", "messagingEngine", ",", "final", "int", "mode", ")", "{", "final", "String", "methodName", "=", "\"messagingEngineStopping\"", ";", "if", "(", "TraceCompon...
Overrides the parent method so that if there are no connections left it will check to see if a new connection can be made @param messagingEngine the messaging engine that is stopping @param mode the mode with which the engine is stopping
[ "Overrides", "the", "parent", "method", "so", "that", "if", "there", "are", "no", "connections", "left", "it", "will", "check", "to", "see", "if", "a", "new", "connection", "can", "be", "made" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java#L1221-L1242
68,006
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java
SibRaCommonEndpointActivation.dropConnection
void dropConnection(SibRaMessagingEngineConnection connection, boolean isSessionError, boolean retryImmediately, boolean alreadyClosed) { String methodName = "dropConnection"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodNam...
java
void dropConnection(SibRaMessagingEngineConnection connection, boolean isSessionError, boolean retryImmediately, boolean alreadyClosed) { String methodName = "dropConnection"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodNam...
[ "void", "dropConnection", "(", "SibRaMessagingEngineConnection", "connection", ",", "boolean", "isSessionError", ",", "boolean", "retryImmediately", ",", "boolean", "alreadyClosed", ")", "{", "String", "methodName", "=", "\"dropConnection\"", ";", "if", "(", "TraceCompo...
Drop the connection to the specified ME. If we have no connections left then try to create a new connection. @param meUuid The Uuid of the ME we should drop our connection to.
[ "Drop", "the", "connection", "to", "the", "specified", "ME", ".", "If", "we", "have", "no", "connections", "left", "then", "try", "to", "create", "a", "new", "connection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java#L1250-L1330
68,007
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java
SibRaCommonEndpointActivation.messagingEngineDestroyed
@Override public void messagingEngineDestroyed(JsMessagingEngine messagingEngine) { final String methodName = "messagingEngineDestroyed"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, messagingEngine); } ...
java
@Override public void messagingEngineDestroyed(JsMessagingEngine messagingEngine) { final String methodName = "messagingEngineDestroyed"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, messagingEngine); } ...
[ "@", "Override", "public", "void", "messagingEngineDestroyed", "(", "JsMessagingEngine", "messagingEngine", ")", "{", "final", "String", "methodName", "=", "\"messagingEngineDestroyed\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "T...
The messaging engine has been destroyed, nothing to do here.
[ "The", "messaging", "engine", "has", "been", "destroyed", "nothing", "to", "do", "here", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java#L1335-L1348
68,008
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java
LogFileHeader.validMagicNumber
private boolean validMagicNumber(byte[] magicNumberBuffer) { if (tc.isEntryEnabled()) Tr.entry(tc, "validMagicNumber", new java.lang.Object[] { RLSUtils.toHexString(magicNumberBuffer, RLSUtils.MAX_DISPLAY_BYTES), this }); boolean incorrectByteDetected = false; int currentByte = ...
java
private boolean validMagicNumber(byte[] magicNumberBuffer) { if (tc.isEntryEnabled()) Tr.entry(tc, "validMagicNumber", new java.lang.Object[] { RLSUtils.toHexString(magicNumberBuffer, RLSUtils.MAX_DISPLAY_BYTES), this }); boolean incorrectByteDetected = false; int currentByte = ...
[ "private", "boolean", "validMagicNumber", "(", "byte", "[", "]", "magicNumberBuffer", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"validMagicNumber\"", ",", "new", "java", ".", "lang", ".", "Obje...
Determines if the supplied magic number is a valid log file header magic number as stored in MAGIC_NUMBER @param magicNumberBuffer The buffer containing the magic number tio compare @return boolean true if the headers match, otherwise false
[ "Determines", "if", "the", "supplied", "magic", "number", "is", "a", "valid", "log", "file", "header", "magic", "number", "as", "stored", "in", "MAGIC_NUMBER" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L846-L866
68,009
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java
LogFileHeader.date
public long date() { if (tc.isEntryEnabled()) Tr.entry(tc, "date", this); if (tc.isEntryEnabled()) Tr.exit(tc, "date", new Long(_date)); return _date; }
java
public long date() { if (tc.isEntryEnabled()) Tr.entry(tc, "date", this); if (tc.isEntryEnabled()) Tr.exit(tc, "date", new Long(_date)); return _date; }
[ "public", "long", "date", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"date\"", ",", "this", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "exit", "("...
Return the date field stored in the target header @return long The date field.
[ "Return", "the", "date", "field", "stored", "in", "the", "target", "header" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L876-L883
68,010
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java
LogFileHeader.firstRecordSequenceNumber
public long firstRecordSequenceNumber() { if (tc.isEntryEnabled()) Tr.entry(tc, "firstRecordSequenceNumber", this); if (tc.isEntryEnabled()) Tr.exit(tc, "firstRecordSequenceNumber", new Long(_firstRecordSequenceNumber)); return _firstRecordSequenceNumber; }
java
public long firstRecordSequenceNumber() { if (tc.isEntryEnabled()) Tr.entry(tc, "firstRecordSequenceNumber", this); if (tc.isEntryEnabled()) Tr.exit(tc, "firstRecordSequenceNumber", new Long(_firstRecordSequenceNumber)); return _firstRecordSequenceNumber; }
[ "public", "long", "firstRecordSequenceNumber", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"firstRecordSequenceNumber\"", ",", "this", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ...
Return the firstRecordSequenceNumber field stored in the target header @return long The firstRecordSequenceNumber field.
[ "Return", "the", "firstRecordSequenceNumber", "field", "stored", "in", "the", "target", "header" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L893-L900
68,011
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java
LogFileHeader.serviceName
public String serviceName() { if (tc.isEntryEnabled()) Tr.entry(tc, "serviceName", this); if (tc.isEntryEnabled()) Tr.exit(tc, "serviceName", _serviceName); return _serviceName; }
java
public String serviceName() { if (tc.isEntryEnabled()) Tr.entry(tc, "serviceName", this); if (tc.isEntryEnabled()) Tr.exit(tc, "serviceName", _serviceName); return _serviceName; }
[ "public", "String", "serviceName", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"serviceName\"", ",", "this", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".",...
Return the serviceName field stored in the target header @return String The serviceName field.
[ "Return", "the", "serviceName", "field", "stored", "in", "the", "target", "header" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L927-L934
68,012
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java
LogFileHeader.serviceVersion
public int serviceVersion() { if (tc.isEntryEnabled()) Tr.entry(tc, "serviceVersion", this); if (tc.isEntryEnabled()) Tr.exit(tc, "serviceVersion", new Integer(_serviceVersion)); return _serviceVersion; }
java
public int serviceVersion() { if (tc.isEntryEnabled()) Tr.entry(tc, "serviceVersion", this); if (tc.isEntryEnabled()) Tr.exit(tc, "serviceVersion", new Integer(_serviceVersion)); return _serviceVersion; }
[ "public", "int", "serviceVersion", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"serviceVersion\"", ",", "this", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", "...
Return the serviceVersion field stored in the target header @return int The serviceVersion field.
[ "Return", "the", "serviceVersion", "field", "stored", "in", "the", "target", "header" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L944-L951
68,013
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java
LogFileHeader.logName
public String logName() { if (tc.isEntryEnabled()) Tr.entry(tc, "logName", this); if (tc.isEntryEnabled()) Tr.exit(tc, "logName", _logName); return _logName; }
java
public String logName() { if (tc.isEntryEnabled()) Tr.entry(tc, "logName", this); if (tc.isEntryEnabled()) Tr.exit(tc, "logName", _logName); return _logName; }
[ "public", "String", "logName", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"logName\"", ",", "this", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "exit...
Return the logName field stored in the target header @return long The logName field.
[ "Return", "the", "logName", "field", "stored", "in", "the", "target", "header" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L961-L968
68,014
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java
LogFileHeader.getServiceData
public byte[] getServiceData() { if (tc.isEntryEnabled()) Tr.entry(tc, "getServiceData", this); if (tc.isEntryEnabled()) Tr.exit(tc, "getServiceData", RLSUtils.toHexString(_serviceData, RLSUtils.MAX_DISPLAY_BYTES)); return _serviceData; }
java
public byte[] getServiceData() { if (tc.isEntryEnabled()) Tr.entry(tc, "getServiceData", this); if (tc.isEntryEnabled()) Tr.exit(tc, "getServiceData", RLSUtils.toHexString(_serviceData, RLSUtils.MAX_DISPLAY_BYTES)); return _serviceData; }
[ "public", "byte", "[", "]", "getServiceData", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"getServiceData\"", ",", "this", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", "...
Return the service data stored in the target header. @return The service data refernece.
[ "Return", "the", "service", "data", "stored", "in", "the", "target", "header", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L978-L985
68,015
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java
LogFileHeader.setServiceData
public void setServiceData(byte[] serviceData) { if (tc.isEntryEnabled()) Tr.entry(tc, "setServiceData", new java.lang.Object[] { RLSUtils.toHexString(serviceData, RLSUtils.MAX_DISPLAY_BYTES), this }); _serviceData = serviceData; if (tc.isEntryEnabled()) Tr.exit(tc,...
java
public void setServiceData(byte[] serviceData) { if (tc.isEntryEnabled()) Tr.entry(tc, "setServiceData", new java.lang.Object[] { RLSUtils.toHexString(serviceData, RLSUtils.MAX_DISPLAY_BYTES), this }); _serviceData = serviceData; if (tc.isEntryEnabled()) Tr.exit(tc,...
[ "public", "void", "setServiceData", "(", "byte", "[", "]", "serviceData", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"setServiceData\"", ",", "new", "java", ".", "lang", ".", "Object", "[", ...
Change the service data associated with the target log file header. @param serviceData The new service data reference.
[ "Change", "the", "service", "data", "associated", "with", "the", "target", "log", "file", "header", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L995-L1004
68,016
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java
LogFileHeader.compatible
public boolean compatible() { if (tc.isEntryEnabled()) Tr.entry(tc, "compatible", this); if (tc.isEntryEnabled()) Tr.exit(tc, "compatible", new Boolean(_compatible)); return _compatible; }
java
public boolean compatible() { if (tc.isEntryEnabled()) Tr.entry(tc, "compatible", this); if (tc.isEntryEnabled()) Tr.exit(tc, "compatible", new Boolean(_compatible)); return _compatible; }
[ "public", "boolean", "compatible", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"compatible\"", ",", "this", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", ...
Test to determine if the target log file header belongs to a compatible RLS file. @return boolean true if the log file header is compatible, otherwise false.
[ "Test", "to", "determine", "if", "the", "target", "log", "file", "header", "belongs", "to", "a", "compatible", "RLS", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L1015-L1022
68,017
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java
LogFileHeader.valid
public boolean valid() { boolean valid = true; if (tc.isEntryEnabled()) Tr.entry(tc, "valid", this); if (_status == STATUS_INVALID) valid = false; if (tc.isEntryEnabled()) Tr.exit(tc, "valid", new Boolean(valid)); return valid; }
java
public boolean valid() { boolean valid = true; if (tc.isEntryEnabled()) Tr.entry(tc, "valid", this); if (_status == STATUS_INVALID) valid = false; if (tc.isEntryEnabled()) Tr.exit(tc, "valid", new Boolean(valid)); return valid; }
[ "public", "boolean", "valid", "(", ")", "{", "boolean", "valid", "=", "true", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"valid\"", ",", "this", ")", ";", "if", "(", "_status", "==", "STATUS_IN...
Test to determine if the target log file header belongs to a valid RLS file. @return boolean true if the log file header is valid, otherwise false.
[ "Test", "to", "determine", "if", "the", "target", "log", "file", "header", "belongs", "to", "a", "valid", "RLS", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L1033-L1043
68,018
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java
LogFileHeader.status
public int status() { if (tc.isEntryEnabled()) Tr.entry(tc, "status", this); if (tc.isEntryEnabled()) Tr.exit(tc, "status", new Integer(_status)); return _status; }
java
public int status() { if (tc.isEntryEnabled()) Tr.entry(tc, "status", this); if (tc.isEntryEnabled()) Tr.exit(tc, "status", new Integer(_status)); return _status; }
[ "public", "int", "status", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"status\"", ",", "this", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "exit", ...
Return the status field stored in the target header @return int The status field.
[ "Return", "the", "status", "field", "stored", "in", "the", "target", "header" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L1053-L1060
68,019
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java
LogFileHeader.reset
public void reset() { if (tc.isEntryEnabled()) Tr.entry(tc, "reset", this); _status = STATUS_ACTIVE; _date = 0; _firstRecordSequenceNumber = 0; _serverName = null; _serviceName = null; _serviceVersion = 0; _logName = null; _variabl...
java
public void reset() { if (tc.isEntryEnabled()) Tr.entry(tc, "reset", this); _status = STATUS_ACTIVE; _date = 0; _firstRecordSequenceNumber = 0; _serverName = null; _serviceName = null; _serviceVersion = 0; _logName = null; _variabl...
[ "public", "void", "reset", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"reset\"", ",", "this", ")", ";", "_status", "=", "STATUS_ACTIVE", ";", "_date", "=", "0", ";", "_firstRecordSequen...
Destroy the internal state of this header object. Note that we don't reset the _compatible flag as we call this method from points in the code wher its both true and false and we want to ensure that it is represented in the exceptions that get thrown when other calls are made.
[ "Destroy", "the", "internal", "state", "of", "this", "header", "object", ".", "Note", "that", "we", "don", "t", "reset", "the", "_compatible", "flag", "as", "we", "call", "this", "method", "from", "points", "in", "the", "code", "wher", "its", "both", "tr...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L1071-L1088
68,020
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java
LogFileHeader.changeStatus
public void changeStatus(int newStatus) { if (tc.isEntryEnabled()) Tr.entry(tc, "changeStatus", new java.lang.Object[] { this, new Integer(newStatus) }); _status = newStatus; if (tc.isEntryEnabled()) Tr.exit(tc, "changeStatus"); }
java
public void changeStatus(int newStatus) { if (tc.isEntryEnabled()) Tr.entry(tc, "changeStatus", new java.lang.Object[] { this, new Integer(newStatus) }); _status = newStatus; if (tc.isEntryEnabled()) Tr.exit(tc, "changeStatus"); }
[ "public", "void", "changeStatus", "(", "int", "newStatus", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"changeStatus\"", ",", "new", "java", ".", "lang", ".", "Object", "[", "]", "{", "this",...
Update the status field stored in the target header. @param newStatus The new status field value.
[ "Update", "the", "status", "field", "stored", "in", "the", "target", "header", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L1121-L1130
68,021
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java
LogFileHeader.keypointStarting
public void keypointStarting(long nextRecordSequenceNumber) { if (tc.isEntryEnabled()) Tr.entry(tc, "keypointStarting", new Object[] { this, new Long(nextRecordSequenceNumber) }); GregorianCalendar currentCal = new GregorianCalendar(); Date currentDate = currentCal.getTime(); ...
java
public void keypointStarting(long nextRecordSequenceNumber) { if (tc.isEntryEnabled()) Tr.entry(tc, "keypointStarting", new Object[] { this, new Long(nextRecordSequenceNumber) }); GregorianCalendar currentCal = new GregorianCalendar(); Date currentDate = currentCal.getTime(); ...
[ "public", "void", "keypointStarting", "(", "long", "nextRecordSequenceNumber", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"keypointStarting\"", ",", "new", "Object", "[", "]", "{", "this", ",", ...
Informs the LogFileHeader instance that a keypoint operation is about begin into file associated with this LogFileHeader instance. The status of the header is updated to KEYPOINTING. @param nextRecordSequenceNumber The sequence number to be used for the first record in the file.
[ "Informs", "the", "LogFileHeader", "instance", "that", "a", "keypoint", "operation", "is", "about", "begin", "into", "file", "associated", "with", "this", "LogFileHeader", "instance", ".", "The", "status", "of", "the", "header", "is", "updated", "to", "KEYPOINTI...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L1143-L1159
68,022
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java
LogFileHeader.keypointComplete
public void keypointComplete() { if (tc.isEntryEnabled()) Tr.entry(tc, "keypointComplete", this); _status = STATUS_ACTIVE; if (tc.isEntryEnabled()) Tr.exit(tc, "keypointComplete"); }
java
public void keypointComplete() { if (tc.isEntryEnabled()) Tr.entry(tc, "keypointComplete", this); _status = STATUS_ACTIVE; if (tc.isEntryEnabled()) Tr.exit(tc, "keypointComplete"); }
[ "public", "void", "keypointComplete", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"keypointComplete\"", ",", "this", ")", ";", "_status", "=", "STATUS_ACTIVE", ";", "if", "(", "tc", ".", ...
Informs the LogFileHeader instance that the keypoint operation has completed. The status of the header is updated to ACTIVE.
[ "Informs", "the", "LogFileHeader", "instance", "that", "the", "keypoint", "operation", "has", "completed", ".", "The", "status", "of", "the", "header", "is", "updated", "to", "ACTIVE", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L1168-L1177
68,023
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java
LogFileHeader.statusToString
static String statusToString(int status) { String result = null; if (status == STATUS_INACTIVE) { result = "INACTIVE"; } else if (status == STATUS_ACTIVE) { result = "ACTIVE"; } else if (status == STATUS_KEYPOINTING) { ...
java
static String statusToString(int status) { String result = null; if (status == STATUS_INACTIVE) { result = "INACTIVE"; } else if (status == STATUS_ACTIVE) { result = "ACTIVE"; } else if (status == STATUS_KEYPOINTING) { ...
[ "static", "String", "statusToString", "(", "int", "status", ")", "{", "String", "result", "=", "null", ";", "if", "(", "status", "==", "STATUS_INACTIVE", ")", "{", "result", "=", "\"INACTIVE\"", ";", "}", "else", "if", "(", "status", "==", "STATUS_ACTIVE",...
Utility method to convert a numerical status into a printable string form. @param status The status to convert @return String A printable form of the status ("ACTIVE","INACTIVE","KEYPOINTING", "INVALID" or "UNKNOWN")
[ "Utility", "method", "to", "convert", "a", "numerical", "status", "into", "a", "printable", "string", "form", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L1263-L1289
68,024
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/BatchHandler.java
BatchHandler.registerInBatch
public TransactionCommon registerInBatch() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "registerInBatch"); _readWriteLock.lock(); // Register as a reader synchronized(this) // lock the state against other readers { if(_currentTran == null) ...
java
public TransactionCommon registerInBatch() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "registerInBatch"); _readWriteLock.lock(); // Register as a reader synchronized(this) // lock the state against other readers { if(_currentTran == null) ...
[ "public", "TransactionCommon", "registerInBatch", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"registerInBatch\"", "...
Register an interest in the current batch. The batch can not be completed until messagesAdded is called. @return The transaction being used for this batch. @throws SIStoreException
[ "Register", "an", "interest", "in", "the", "current", "batch", ".", "The", "batch", "can", "not", "be", "completed", "until", "messagesAdded", "is", "called", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/BatchHandler.java#L91-L107
68,025
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/BatchHandler.java
BatchHandler.messagesAdded
public void messagesAdded(int msgCount, BatchListener listener) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "messagesAdded","msgCount="+msgCount+",listener="+listener); boolean completeBatch = false; try { synchroniz...
java
public void messagesAdded(int msgCount, BatchListener listener) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "messagesAdded","msgCount="+msgCount+",listener="+listener); boolean completeBatch = false; try { synchroniz...
[ "public", "void", "messagesAdded", "(", "int", "msgCount", ",", "BatchListener", "listener", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ...
Tell the BatchHandler how many messages were added under the current transaction. registerInBatch must have been called first to register the users interest in the current batch and to get hold of the current transaction. After this method returns, if there are no remaining interested users, the BatchHandler is free t...
[ "Tell", "the", "BatchHandler", "how", "many", "messages", "were", "added", "under", "the", "current", "transaction", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/BatchHandler.java#L141-L184
68,026
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/BatchHandler.java
BatchHandler.completeBatch
public void completeBatch(boolean force, BatchListener finalListener) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "completeBatch","force="+force+",finalListener="+finalListener); _readWriteLock.lockExclusive(); // Lock the batchHan...
java
public void completeBatch(boolean force, BatchListener finalListener) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "completeBatch","force="+force+",finalListener="+finalListener); _readWriteLock.lockExclusive(); // Lock the batchHan...
[ "public", "void", "completeBatch", "(", "boolean", "force", ",", "BatchListener", "finalListener", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Si...
Complete the current batch. If timer is false then the batch is only completed if the batch is full. If timer is true then the batch is completed so long as there are one or more messages in the batch. @param force true if the batch should commit even when not full @param finalListener an optional extra batch listener
[ "Complete", "the", "current", "batch", ".", "If", "timer", "is", "false", "then", "the", "batch", "is", "only", "completed", "if", "the", "batch", "is", "full", ".", "If", "timer", "is", "true", "then", "the", "batch", "is", "completed", "so", "long", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/BatchHandler.java#L199-L294
68,027
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/BatchHandler.java
BatchHandler.alarm
public void alarm (Object alarmContext) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "alarm", alarmContext); synchronized(this) { _alarm = null; } try { completeBatch(true); } catch(SIException e) { //No FFDC code needed SibTr.e...
java
public void alarm (Object alarmContext) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "alarm", alarmContext); synchronized(this) { _alarm = null; } try { completeBatch(true); } catch(SIException e) { //No FFDC code needed SibTr.e...
[ "public", "void", "alarm", "(", "Object", "alarmContext", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"alarm\"", ",",...
Method called when an alarm pops
[ "Method", "called", "when", "an", "alarm", "pops" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/BatchHandler.java#L324-L341
68,028
OpenLiberty/open-liberty
dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java
SessionInfo.parseIDFromURL
private void parseIDFromURL(RequestMessage request) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Looking for ID in URL"); } String url = request.getRawRequestURI(); String target = getSessionConfig().getURLRewritingMarker(); URLPa...
java
private void parseIDFromURL(RequestMessage request) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Looking for ID in URL"); } String url = request.getRawRequestURI(); String target = getSessionConfig().getURLRewritingMarker(); URLPa...
[ "private", "void", "parseIDFromURL", "(", "RequestMessage", "request", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"Looking for ID i...
Look for the possible session ID in the URL of the input request message. @param request
[ "Look", "for", "the", "possible", "session", "ID", "in", "the", "URL", "of", "the", "input", "request", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java#L88-L107
68,029
OpenLiberty/open-liberty
dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java
SessionInfo.encodeURL
public static String encodeURL(String url, SessionInfo info) { // could be /path/page#fragment?query // could be /page/page;session=existing#fragment?query // where fragment and query are both optional HttpSession session = info.getSession(); if (null == session) { r...
java
public static String encodeURL(String url, SessionInfo info) { // could be /path/page#fragment?query // could be /page/page;session=existing#fragment?query // where fragment and query are both optional HttpSession session = info.getSession(); if (null == session) { r...
[ "public", "static", "String", "encodeURL", "(", "String", "url", ",", "SessionInfo", "info", ")", "{", "// could be /path/page#fragment?query", "// could be /page/page;session=existing#fragment?query", "// where fragment and query are both optional", "HttpSession", "session", "=", ...
Encode session information into the provided URL. This will replace any existing session in that URL. @param url @param info @return String
[ "Encode", "session", "information", "into", "the", "provided", "URL", ".", "This", "will", "replace", "any", "existing", "session", "in", "that", "URL", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java#L117-L162
68,030
OpenLiberty/open-liberty
dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java
SessionInfo.stripURL
public static String stripURL(String url, SessionInfo info) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Removing any session id from [" + url + "]"); } String target = info.getSessionConfig().getURLRewritingMarker(); URLParser parser = n...
java
public static String stripURL(String url, SessionInfo info) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Removing any session id from [" + url + "]"); } String target = info.getSessionConfig().getURLRewritingMarker(); URLParser parser = n...
[ "public", "static", "String", "stripURL", "(", "String", "url", ",", "SessionInfo", "info", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc",...
Strip out any session id information from the input URL. @param url @param info @return String
[ "Strip", "out", "any", "session", "id", "information", "from", "the", "input", "URL", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java#L171-L189
68,031
OpenLiberty/open-liberty
dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java
SessionInfo.parseIDFromCookies
private void parseIDFromCookies(RequestMessage request) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Looking for ID in cookies"); } Enumeration<String> list = request.getHeaders("Cookie"); while (list.hasMoreElements()) { Stri...
java
private void parseIDFromCookies(RequestMessage request) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Looking for ID in cookies"); } Enumeration<String> list = request.getHeaders("Cookie"); while (list.hasMoreElements()) { Stri...
[ "private", "void", "parseIDFromCookies", "(", "RequestMessage", "request", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"Looking for ...
Look for a possible session id in the cookies of the request message. @param request
[ "Look", "for", "a", "possible", "session", "id", "in", "the", "cookies", "of", "the", "request", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java#L225-L247
68,032
OpenLiberty/open-liberty
dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java
SessionInfo.encodeCookie
public static Cookie encodeCookie(SessionInfo info) { // create a cookie using the configuration information HttpSession session = info.getSession(); SessionConfig config = info.getSessionConfig(); Cookie cookie = new Cookie( config.getIDName(), ...
java
public static Cookie encodeCookie(SessionInfo info) { // create a cookie using the configuration information HttpSession session = info.getSession(); SessionConfig config = info.getSessionConfig(); Cookie cookie = new Cookie( config.getIDName(), ...
[ "public", "static", "Cookie", "encodeCookie", "(", "SessionInfo", "info", ")", "{", "// create a cookie using the configuration information", "HttpSession", "session", "=", "info", ".", "getSession", "(", ")", ";", "SessionConfig", "config", "=", "info", ".", "getSess...
Create a proper Cookie for the given session object. @param info @return Cookie
[ "Create", "a", "proper", "Cookie", "for", "the", "given", "session", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java#L255-L268
68,033
OpenLiberty/open-liberty
dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java
SessionInfo.getSession
public HttpSession getSession(boolean create) { if (null != this.mySession) { if (this.mySession.isInvalid()) { this.mySession = null; } else { return this.mySession; } } this.mySession = mgr.getSession(this, create); re...
java
public HttpSession getSession(boolean create) { if (null != this.mySession) { if (this.mySession.isInvalid()) { this.mySession = null; } else { return this.mySession; } } this.mySession = mgr.getSession(this, create); re...
[ "public", "HttpSession", "getSession", "(", "boolean", "create", ")", "{", "if", "(", "null", "!=", "this", ".", "mySession", ")", "{", "if", "(", "this", ".", "mySession", ".", "isInvalid", "(", ")", ")", "{", "this", ".", "mySession", "=", "null", ...
Access the current session for this connection. This may return null if one was not found and the create flag was false. If a cached session is found but it reports as invalid, then this will look for a new session if the create flag is true. @param create @return HttpSession
[ "Access", "the", "current", "session", "for", "this", "connection", ".", "This", "may", "return", "null", "if", "one", "was", "not", "found", "and", "the", "create", "flag", "was", "false", ".", "If", "a", "cached", "session", "is", "found", "but", "it",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java#L349-L359
68,034
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapURL.java
LdapURL.get_searchScope
public int get_searchScope() { int searchScope = SearchControls.OBJECT_SCOPE; String scopeBuf = get_scope(); if (scopeBuf != null) { if (scopeBuf.compareToIgnoreCase("base") == 0) { searchScope = SearchControls.OBJECT_SCOPE; } else if (scopeBuf.compareToIg...
java
public int get_searchScope() { int searchScope = SearchControls.OBJECT_SCOPE; String scopeBuf = get_scope(); if (scopeBuf != null) { if (scopeBuf.compareToIgnoreCase("base") == 0) { searchScope = SearchControls.OBJECT_SCOPE; } else if (scopeBuf.compareToIg...
[ "public", "int", "get_searchScope", "(", ")", "{", "int", "searchScope", "=", "SearchControls", ".", "OBJECT_SCOPE", ";", "String", "scopeBuf", "=", "get_scope", "(", ")", ";", "if", "(", "scopeBuf", "!=", "null", ")", "{", "if", "(", "scopeBuf", ".", "c...
Returns the search scope used in LDAP search
[ "Returns", "the", "search", "scope", "used", "in", "LDAP", "search" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapURL.java#L368-L381
68,035
OpenLiberty/open-liberty
dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JaxbPUnit21.java
JaxbPUnit21.getTransactionType
public PersistenceUnitTransactionType getTransactionType() { // Convert this TransactionType from the class defined in JAXB // (com.ibm.ws.jpa.pxml21.PersistenceUnitTransactionType) to JPA // (javax.persistence.spi.PersistenceUnitTransactionType). PersistenceUnitTransactionType ...
java
public PersistenceUnitTransactionType getTransactionType() { // Convert this TransactionType from the class defined in JAXB // (com.ibm.ws.jpa.pxml21.PersistenceUnitTransactionType) to JPA // (javax.persistence.spi.PersistenceUnitTransactionType). PersistenceUnitTransactionType ...
[ "public", "PersistenceUnitTransactionType", "getTransactionType", "(", ")", "{", "// Convert this TransactionType from the class defined in JAXB", "// (com.ibm.ws.jpa.pxml21.PersistenceUnitTransactionType) to JPA", "// (javax.persistence.spi.PersistenceUnitTransactionType).", "PersistenceUnitTrans...
Gets the value of the transactionType property. @return value of the transactionType property.
[ "Gets", "the", "value", "of", "the", "transactionType", "property", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JaxbPUnit21.java#L299-L314
68,036
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service/src/com/ibm/ws/container/service/metadata/MetaDataUtils.java
MetaDataUtils.copyModuleMetaDataSlot
public static boolean copyModuleMetaDataSlot(MetaDataEvent<ModuleMetaData> event, MetaDataSlot slot) { Container container = event.getContainer(); MetaData metaData = event.getMetaData(); try { // For now, we just need to copy from WebModuleInfo, and ClientModuleInfo // ...
java
public static boolean copyModuleMetaDataSlot(MetaDataEvent<ModuleMetaData> event, MetaDataSlot slot) { Container container = event.getContainer(); MetaData metaData = event.getMetaData(); try { // For now, we just need to copy from WebModuleInfo, and ClientModuleInfo // ...
[ "public", "static", "boolean", "copyModuleMetaDataSlot", "(", "MetaDataEvent", "<", "ModuleMetaData", ">", "event", ",", "MetaDataSlot", "slot", ")", "{", "Container", "container", "=", "event", ".", "getContainer", "(", ")", ";", "MetaData", "metaData", "=", "e...
Copy slot data from a primary module metadata to a nested module metadata. This is necessary for containers that want to share module-level data for all components in a module, because nested modules have their own distinct metadata. @param event event from {@link ModuleMetaDataListener#moduleMetaDataCreated} @param s...
[ "Copy", "slot", "data", "from", "a", "primary", "module", "metadata", "to", "a", "nested", "module", "metadata", ".", "This", "is", "necessary", "for", "containers", "that", "want", "to", "share", "module", "-", "level", "data", "for", "all", "components", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service/src/com/ibm/ws/container/service/metadata/MetaDataUtils.java#L36-L66
68,037
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/FactoryFinder.java
FactoryFinder.injectAndPostConstruct
private static Object injectAndPostConstruct(Object injectionProvider, Class Klass, List injectedBeanStorage) { Object instance = null; if (injectionProvider != null) { try { Object managedObject = _FactoryFinderProviderFactory.INJECTION_PROVIDER_INJE...
java
private static Object injectAndPostConstruct(Object injectionProvider, Class Klass, List injectedBeanStorage) { Object instance = null; if (injectionProvider != null) { try { Object managedObject = _FactoryFinderProviderFactory.INJECTION_PROVIDER_INJE...
[ "private", "static", "Object", "injectAndPostConstruct", "(", "Object", "injectionProvider", ",", "Class", "Klass", ",", "List", "injectedBeanStorage", ")", "{", "Object", "instance", "=", "null", ";", "if", "(", "injectionProvider", "!=", "null", ")", "{", "try...
injectANDPostConstruct based on a class added for CDI 1.2 support.
[ "injectANDPostConstruct", "based", "on", "a", "class", "added", "for", "CDI", "1", ".", "2", "support", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/FactoryFinder.java#L427-L455
68,038
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/behavior/AjaxBehavior.java
AjaxBehavior.getCollectionFromSpaceSplitString
private Collection<String> getCollectionFromSpaceSplitString(String stringValue) { //@special handling for @all, @none, @form and @this if (stringValue.equals(VAL_FORM)) { return VAL_FORM_LIST; } else if (stringValue.equals(VAL_ALL)) { retur...
java
private Collection<String> getCollectionFromSpaceSplitString(String stringValue) { //@special handling for @all, @none, @form and @this if (stringValue.equals(VAL_FORM)) { return VAL_FORM_LIST; } else if (stringValue.equals(VAL_ALL)) { retur...
[ "private", "Collection", "<", "String", ">", "getCollectionFromSpaceSplitString", "(", "String", "stringValue", ")", "{", "//@special handling for @all, @none, @form and @this", "if", "(", "stringValue", ".", "equals", "(", "VAL_FORM", ")", ")", "{", "return", "VAL_FORM...
Splits the String based on spaces and returns the resulting Strings as Collection. @param stringValue @return
[ "Splits", "the", "String", "based", "on", "spaces", "and", "returns", "the", "resulting", "Strings", "as", "Collection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/behavior/AjaxBehavior.java#L384-L407
68,039
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/traceinfo/ejbcontainer/TETxLifeCycleInfo.java
TETxLifeCycleInfo.traceSetTxCommon
public static void traceSetTxCommon(int opType, String txId, String desc) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { StringBuffer sbuf = new StringBuffer(); sbuf .append(TxLifeCycle_Set_Tx_Type_Str).append(DataDelimiter) ...
java
public static void traceSetTxCommon(int opType, String txId, String desc) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { StringBuffer sbuf = new StringBuffer(); sbuf .append(TxLifeCycle_Set_Tx_Type_Str).append(DataDelimiter) ...
[ "public", "static", "void", "traceSetTxCommon", "(", "int", "opType", ",", "String", "txId", ",", "String", "desc", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "StringB...
This is called by the EJB container server code to write a set transaction record to the trace log, if enabled.
[ "This", "is", "called", "by", "the", "EJB", "container", "server", "code", "to", "write", "a", "set", "transaction", "record", "to", "the", "trace", "log", "if", "enabled", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/traceinfo/ejbcontainer/TETxLifeCycleInfo.java#L29-L43
68,040
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/traceinfo/ejbcontainer/TETxLifeCycleInfo.java
TETxLifeCycleInfo.traceCommon
public static void traceCommon(int opType, String txId, String desc) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { StringBuffer sbuf = new StringBuffer(); sbuf .append(TxLifeCycle_State_Type_Str).append(DataDelimiter) ...
java
public static void traceCommon(int opType, String txId, String desc) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { StringBuffer sbuf = new StringBuffer(); sbuf .append(TxLifeCycle_State_Type_Str).append(DataDelimiter) ...
[ "public", "static", "void", "traceCommon", "(", "int", "opType", ",", "String", "txId", ",", "String", "desc", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "StringBuffer...
This is called by the EJB container server code to write a common record to the trace log, if enabled.
[ "This", "is", "called", "by", "the", "EJB", "container", "server", "code", "to", "write", "a", "common", "record", "to", "the", "trace", "log", "if", "enabled", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/traceinfo/ejbcontainer/TETxLifeCycleInfo.java#L76-L91
68,041
OpenLiberty/open-liberty
dev/com.ibm.ws.security.jaspic/src/com/ibm/ws/security/jaspi/XMLJaspiConfiguration.java
XMLJaspiConfiguration.readConfigFile
synchronized private JaspiConfig readConfigFile(final File configFile) throws PrivilegedActionException { if (tc.isEntryEnabled()) Tr.entry(tc, "readConfigFile", new Object[] { configFile }); if (configFile == null) { // TODO handle persistence // String msg = Message...
java
synchronized private JaspiConfig readConfigFile(final File configFile) throws PrivilegedActionException { if (tc.isEntryEnabled()) Tr.entry(tc, "readConfigFile", new Object[] { configFile }); if (configFile == null) { // TODO handle persistence // String msg = Message...
[ "synchronized", "private", "JaspiConfig", "readConfigFile", "(", "final", "File", "configFile", ")", "throws", "PrivilegedActionException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"readConfigFile\"", ",",...
Return a Java representation of the JASPI persistent providers that are defined in the given configuration file or null if the object returned by JAXB is not an JaspiConfig instance or an exception is thrown by method AccessController.doPrivileged. @param configFile @return @throws PrivilegedActionException
[ "Return", "a", "Java", "representation", "of", "the", "JASPI", "persistent", "providers", "that", "are", "defined", "in", "the", "given", "configuration", "file", "or", "null", "if", "the", "object", "returned", "by", "JAXB", "is", "not", "an", "JaspiConfig", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jaspic/src/com/ibm/ws/security/jaspi/XMLJaspiConfiguration.java#L256-L282
68,042
OpenLiberty/open-liberty
dev/com.ibm.ws.security.jaspic/src/com/ibm/ws/security/jaspi/XMLJaspiConfiguration.java
XMLJaspiConfiguration.writeConfigFile
synchronized private void writeConfigFile(final JaspiConfig jaspiConfig) { if (tc.isEntryEnabled()) Tr.entry(tc, "writeConfigFile", new Object[] { jaspiConfig }); if (configFile == null) { // TODO handle persistence //String msg = MessageFormatHelper.getFormattedMessa...
java
synchronized private void writeConfigFile(final JaspiConfig jaspiConfig) { if (tc.isEntryEnabled()) Tr.entry(tc, "writeConfigFile", new Object[] { jaspiConfig }); if (configFile == null) { // TODO handle persistence //String msg = MessageFormatHelper.getFormattedMessa...
[ "synchronized", "private", "void", "writeConfigFile", "(", "final", "JaspiConfig", "jaspiConfig", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"writeConfigFile\"", ",", "new", "Object", "[", "]", "{...
Store the in-memory Java representation of the JASPI persistent providers into the given configuration file. @param jaspiConfig @throws RuntimeException if an exception occurs in method AccessController.doPrivileged.
[ "Store", "the", "in", "-", "memory", "Java", "representation", "of", "the", "JASPI", "persistent", "providers", "into", "the", "given", "configuration", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jaspic/src/com/ibm/ws/security/jaspi/XMLJaspiConfiguration.java#L290-L317
68,043
OpenLiberty/open-liberty
dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OIDCClientAuthenticatorUtil.java
OIDCClientAuthenticatorUtil.authenticate
public ProviderAuthenticationResult authenticate(HttpServletRequest req, HttpServletResponse res, ConvergedClientConfig clientConfig) { ProviderAuthenticationResult oidcResult = null; if (!isEndpointValid(clientConfig)) { return new ProviderAuthenticationResult(AuthR...
java
public ProviderAuthenticationResult authenticate(HttpServletRequest req, HttpServletResponse res, ConvergedClientConfig clientConfig) { ProviderAuthenticationResult oidcResult = null; if (!isEndpointValid(clientConfig)) { return new ProviderAuthenticationResult(AuthR...
[ "public", "ProviderAuthenticationResult", "authenticate", "(", "HttpServletRequest", "req", ",", "HttpServletResponse", "res", ",", "ConvergedClientConfig", "clientConfig", ")", "{", "ProviderAuthenticationResult", "oidcResult", "=", "null", ";", "if", "(", "!", "isEndpoi...
Perform OpenID Connect client authenticate for the given web request. Return an OidcAuthenticationResult which contains the status and subject A routine flow can come through here twice. First there's no state and it goes to handleRedirectToServer second time, oidcclientimpl.authenticate sends us here after the brows...
[ "Perform", "OpenID", "Connect", "client", "authenticate", "for", "the", "given", "web", "request", ".", "Return", "an", "OidcAuthenticationResult", "which", "contains", "the", "status", "and", "subject" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OIDCClientAuthenticatorUtil.java#L162-L238
68,044
OpenLiberty/open-liberty
dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OIDCClientAuthenticatorUtil.java
OIDCClientAuthenticatorUtil.getRedirectUrlFromServerToClient
public String getRedirectUrlFromServerToClient(String clientId, String contextPath, String redirectToRPHostAndPort) { String redirectURL = null; if (redirectToRPHostAndPort != null && redirectToRPHostAndPort.length() > 0) { try { final String fHostPort = redirectToRPHostAndPo...
java
public String getRedirectUrlFromServerToClient(String clientId, String contextPath, String redirectToRPHostAndPort) { String redirectURL = null; if (redirectToRPHostAndPort != null && redirectToRPHostAndPort.length() > 0) { try { final String fHostPort = redirectToRPHostAndPo...
[ "public", "String", "getRedirectUrlFromServerToClient", "(", "String", "clientId", ",", "String", "contextPath", ",", "String", "redirectToRPHostAndPort", ")", "{", "String", "redirectURL", "=", "null", ";", "if", "(", "redirectToRPHostAndPort", "!=", "null", "&&", ...
moved from oidcconfigimpl so social can use it.
[ "moved", "from", "oidcconfigimpl", "so", "social", "can", "use", "it", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OIDCClientAuthenticatorUtil.java#L305-L336
68,045
OpenLiberty/open-liberty
dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OIDCClientAuthenticatorUtil.java
OIDCClientAuthenticatorUtil.validateReqParameters
@FFDCIgnore({ IndexOutOfBoundsException.class }) public boolean validateReqParameters(ConvergedClientConfig clientConfig, Hashtable<String, String> reqParameters, String cookieValue) { boolean validCookie = true; String encoded = null; String cookieName = "WASOidcCode"; String reques...
java
@FFDCIgnore({ IndexOutOfBoundsException.class }) public boolean validateReqParameters(ConvergedClientConfig clientConfig, Hashtable<String, String> reqParameters, String cookieValue) { boolean validCookie = true; String encoded = null; String cookieName = "WASOidcCode"; String reques...
[ "@", "FFDCIgnore", "(", "{", "IndexOutOfBoundsException", ".", "class", "}", ")", "public", "boolean", "validateReqParameters", "(", "ConvergedClientConfig", "clientConfig", ",", "Hashtable", "<", "String", ",", "String", ">", "reqParameters", ",", "String", "cookie...
This gets called after an auth code or implicit token might have been received. This method examines the encodedReqParameters extracted from the WASOidcCode cookie along with the client config and request params, to determine if the params in the cookie are valid. @param clientConfig @param reqParameters @param encode...
[ "This", "gets", "called", "after", "an", "auth", "code", "or", "implicit", "token", "might", "have", "been", "received", ".", "This", "method", "examines", "the", "encodedReqParameters", "extracted", "from", "the", "WASOidcCode", "cookie", "along", "with", "the"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OIDCClientAuthenticatorUtil.java#L611-L675
68,046
OpenLiberty/open-liberty
dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OIDCClientAuthenticatorUtil.java
OIDCClientAuthenticatorUtil.verifyState
public Boolean verifyState(HttpServletRequest req, HttpServletResponse res, String responseState, ConvergedClientConfig clientConfig) { if (responseState.length() < OidcUtil.STATEVALUE_LENGTH) { return false; // the state does not even match the length, the verification failed } ...
java
public Boolean verifyState(HttpServletRequest req, HttpServletResponse res, String responseState, ConvergedClientConfig clientConfig) { if (responseState.length() < OidcUtil.STATEVALUE_LENGTH) { return false; // the state does not even match the length, the verification failed } ...
[ "public", "Boolean", "verifyState", "(", "HttpServletRequest", "req", ",", "HttpServletResponse", "res", ",", "String", "responseState", ",", "ConvergedClientConfig", "clientConfig", ")", "{", "if", "(", "responseState", ".", "length", "(", ")", "<", "OidcUtil", "...
Determine the name of the state cookie based on the state name key + hashcode of response state. Retrieve that cookie value, then create a check value by hashing the clinet config and resonseState again. If the hash result equals the cookie value, request is valid, proceed to check the clock skew. @param req @param re...
[ "Determine", "the", "name", "of", "the", "state", "cookie", "based", "on", "the", "state", "name", "key", "+", "hashcode", "of", "response", "state", ".", "Retrieve", "that", "cookie", "value", "then", "create", "a", "check", "value", "by", "hashing", "the...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OIDCClientAuthenticatorUtil.java#L708-L752
68,047
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/library/internal/SharedLibraryImpl.java
SharedLibraryImpl.update
void update(Dictionary<String, Object> props) { if (deleted) { return; } final String instancePid = (String) props.get("service.pid"); final String instanceId = (String) props.get("id"); if (instanceId == null) { Tr.error(tc, "cls.library.id.missing"); ...
java
void update(Dictionary<String, Object> props) { if (deleted) { return; } final String instancePid = (String) props.get("service.pid"); final String instanceId = (String) props.get("id"); if (instanceId == null) { Tr.error(tc, "cls.library.id.missing"); ...
[ "void", "update", "(", "Dictionary", "<", "String", ",", "Object", ">", "props", ")", "{", "if", "(", "deleted", ")", "{", "return", ";", "}", "final", "String", "instancePid", "=", "(", "String", ")", "props", ".", "get", "(", "\"service.pid\"", ")", ...
called from SharedLibraryFactory inside a synchronized block over this instance
[ "called", "from", "SharedLibraryFactory", "inside", "a", "synchronized", "block", "over", "this", "instance" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/library/internal/SharedLibraryImpl.java#L94-L136
68,048
OpenLiberty/open-liberty
dev/com.ibm.ws.jsp/src/org/apache/jasper/runtime/ProtectedFunctionMapper.java
ProtectedFunctionMapper.mapFunction
public void mapFunction( String prefix, String fnName, final Class c, final String methodName, final Class[] args ) { //192474 start //We can get in to this method with null parameters if a JSP was compiled against the jsp-2.3 feature but running in a jsp-2.2 server. //This check is needed f...
java
public void mapFunction( String prefix, String fnName, final Class c, final String methodName, final Class[] args ) { //192474 start //We can get in to this method with null parameters if a JSP was compiled against the jsp-2.3 feature but running in a jsp-2.2 server. //This check is needed f...
[ "public", "void", "mapFunction", "(", "String", "prefix", ",", "String", "fnName", ",", "final", "Class", "c", ",", "final", "String", "methodName", ",", "final", "Class", "[", "]", "args", ")", "{", "//192474 start", "//We can get in to this method with null para...
Stores a mapping from the given EL function prefix and name to the given Java method. @param prefix The EL function prefix @param fnName The EL function name @param c The class containing the Java method @param methodName The name of the Java method @param args The arguments of the Java method @throws RuntimeException...
[ "Stores", "a", "mapping", "from", "the", "given", "EL", "function", "prefix", "and", "name", "to", "the", "given", "Java", "method", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/org/apache/jasper/runtime/ProtectedFunctionMapper.java#L130-L164
68,049
OpenLiberty/open-liberty
dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/PollingManager.java
PollingManager.add
void add(int event) { int b = bits.addAndGet(event); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "add " + event + ", polling state: " + b); }
java
void add(int event) { int b = bits.addAndGet(event); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "add " + event + ", polling state: " + b); }
[ "void", "add", "(", "int", "event", ")", "{", "int", "b", "=", "bits", ".", "addAndGet", "(", "event", ")", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", ...
Add an event without checking if we are ready to start polling. @param event an event such as SERVER_STARTED or SIGNAL_RECEIVED
[ "Add", "an", "event", "without", "checking", "if", "we", "are", "ready", "to", "start", "polling", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/PollingManager.java#L57-L61
68,050
OpenLiberty/open-liberty
dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/PollingManager.java
PollingManager.addAndCheckIfReady
boolean addAndCheckIfReady(int event) { int b = bits.addAndGet(event); boolean isReady = b == READY_WITHOUT_SIGNAL || b == READY_WITH_UNNECESSARY_SIGNAL || b == READY_WITH_SIGNAL; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "addAndCheckIfReady ...
java
boolean addAndCheckIfReady(int event) { int b = bits.addAndGet(event); boolean isReady = b == READY_WITHOUT_SIGNAL || b == READY_WITH_UNNECESSARY_SIGNAL || b == READY_WITH_SIGNAL; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "addAndCheckIfReady ...
[ "boolean", "addAndCheckIfReady", "(", "int", "event", ")", "{", "int", "b", "=", "bits", ".", "addAndGet", "(", "event", ")", ";", "boolean", "isReady", "=", "b", "==", "READY_WITHOUT_SIGNAL", "||", "b", "==", "READY_WITH_UNNECESSARY_SIGNAL", "||", "b", "=="...
Add an event and then check if we are ready for polling. @param event an event such as SERVER_STARTED or SIGNAL_RECEIVED @return true if ready for polling. Otherwise false.
[ "Add", "an", "event", "and", "then", "check", "if", "we", "are", "ready", "for", "polling", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/PollingManager.java#L69-L75
68,051
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/SIXAResourceProxy.java
SIXAResourceProxy.getTransactionTimeout
public int getTransactionTimeout() throws XAException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getTransactionTimeout"); int timeout = 0; try { CommsByteBuffer request = getCommsByteBuffer(); request.putInt(...
java
public int getTransactionTimeout() throws XAException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getTransactionTimeout"); int timeout = 0; try { CommsByteBuffer request = getCommsByteBuffer(); request.putInt(...
[ "public", "int", "getTransactionTimeout", "(", ")", "throws", "XAException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"ge...
Returns the transaction timeout for this XAResource instance. @return int @throws XAException if an exception is thrown at the ME. In the event of a comms failure, an XAException with XAER_RMFAIL will be thrown.
[ "Returns", "the", "transaction", "timeout", "for", "this", "XAResource", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/SIXAResourceProxy.java#L253-L297
68,052
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/SIXAResourceProxy.java
SIXAResourceProxy.getLinkLevelXAResourceMap
private HashMap<Xid, SIXAResourceProxy> getLinkLevelXAResourceMap() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getLinkLevelXAResourceMap"); HashMap<Xid, SIXAResourceProxy> map = ((ClientLinkLevelState)getConversation().getLinkLevelAttachment()).getXidToXARes...
java
private HashMap<Xid, SIXAResourceProxy> getLinkLevelXAResourceMap() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getLinkLevelXAResourceMap"); HashMap<Xid, SIXAResourceProxy> map = ((ClientLinkLevelState)getConversation().getLinkLevelAttachment()).getXidToXARes...
[ "private", "HashMap", "<", "Xid", ",", "SIXAResourceProxy", ">", "getLinkLevelXAResourceMap", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "thi...
Helper method to retrieve the map in the link level state that contains the XAResources and the XId they are currently enlisted with. @return Returns the map.
[ "Helper", "method", "to", "retrieve", "the", "map", "in", "the", "link", "level", "state", "that", "contains", "the", "XAResources", "and", "the", "XId", "they", "are", "currently", "enlisted", "with", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/SIXAResourceProxy.java#L575-L581
68,053
OpenLiberty/open-liberty
dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/visitor/generator/BaseTagGenerator.java
BaseTagGenerator.replaceCharacters
private String replaceCharacters(String name) { name = name.replaceAll("&gt;", ">"); name = name.replaceAll("&lt;", "<"); name = name.replaceAll("&amp;", "&"); name = name.replaceAll("<\\%", "<%"); name = name.replaceAll("%\\>", "%>"); return name; }
java
private String replaceCharacters(String name) { name = name.replaceAll("&gt;", ">"); name = name.replaceAll("&lt;", "<"); name = name.replaceAll("&amp;", "&"); name = name.replaceAll("<\\%", "<%"); name = name.replaceAll("%\\>", "%>"); return name; }
[ "private", "String", "replaceCharacters", "(", "String", "name", ")", "{", "name", "=", "name", ".", "replaceAll", "(", "\"&gt;\"", ",", "\">\"", ")", ";", "name", "=", "name", ".", "replaceAll", "(", "\"&lt;\"", ",", "\"<\"", ")", ";", "name", "=", "n...
PK40417 Method to replace translated characters to their original form. This prevents compilation errors when escaped characters are used in tags.
[ "PK40417", "Method", "to", "replace", "translated", "characters", "to", "their", "original", "form", ".", "This", "prevents", "compilation", "errors", "when", "escaped", "characters", "are", "used", "in", "tags", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/visitor/generator/BaseTagGenerator.java#L1157-L1164
68,054
OpenLiberty/open-liberty
dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/webcontainerext/AbstractJSPExtensionProcessor.java
AbstractJSPExtensionProcessor.handleCaseSensitivityCheck
private boolean handleCaseSensitivityCheck(String path, boolean checkWEBINF) throws IOException { if (System.getSecurityManager() != null) { final String tmpPath = path; final boolean tmpCheckWEBINF = checkWEBINF; //PK81387 try { return ((Boolean) AccessContro...
java
private boolean handleCaseSensitivityCheck(String path, boolean checkWEBINF) throws IOException { if (System.getSecurityManager() != null) { final String tmpPath = path; final boolean tmpCheckWEBINF = checkWEBINF; //PK81387 try { return ((Boolean) AccessContro...
[ "private", "boolean", "handleCaseSensitivityCheck", "(", "String", "path", ",", "boolean", "checkWEBINF", ")", "throws", "IOException", "{", "if", "(", "System", ".", "getSecurityManager", "(", ")", "!=", "null", ")", "{", "final", "String", "tmpPath", "=", "p...
PK81387 - added checkWEBINF param
[ "PK81387", "-", "added", "checkWEBINF", "param" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/webcontainerext/AbstractJSPExtensionProcessor.java#L632-L648
68,055
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ras/FormattedWriter.java
FormattedWriter.nameSpace
public final void nameSpace (String namespace) { if (namespace == null || namespace.equals("")) { _namespace = ""; } else { _namespace = namespace + ":"; } }
java
public final void nameSpace (String namespace) { if (namespace == null || namespace.equals("")) { _namespace = ""; } else { _namespace = namespace + ":"; } }
[ "public", "final", "void", "nameSpace", "(", "String", "namespace", ")", "{", "if", "(", "namespace", "==", "null", "||", "namespace", ".", "equals", "(", "\"\"", ")", ")", "{", "_namespace", "=", "\"\"", ";", "}", "else", "{", "_namespace", "=", "name...
Set the namespace prefix to be prefixed to subseqyent tags. The namespace prefix allow different components to use the same tag without risk of confusion. @param namespace The name of the namespace prefix to be set
[ "Set", "the", "namespace", "prefix", "to", "be", "prefixed", "to", "subseqyent", "tags", ".", "The", "namespace", "prefix", "allow", "different", "components", "to", "use", "the", "same", "tag", "without", "risk", "of", "confusion", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ras/FormattedWriter.java#L151-L157
68,056
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ras/FormattedWriter.java
FormattedWriter.write
public final void write(Throwable e) throws IOException { indent(); newLine(); write(e.toString()); StackTraceElement[] elements = e.getStackTrace(); for (int i = 0; i < elements.length; i++) { newLine(); write(elements[i].toString()); } Throwable cause = e.getCause(); if ...
java
public final void write(Throwable e) throws IOException { indent(); newLine(); write(e.toString()); StackTraceElement[] elements = e.getStackTrace(); for (int i = 0; i < elements.length; i++) { newLine(); write(elements[i].toString()); } Throwable cause = e.getCause(); if ...
[ "public", "final", "void", "write", "(", "Throwable", "e", ")", "throws", "IOException", "{", "indent", "(", ")", ";", "newLine", "(", ")", ";", "write", "(", "e", ".", "toString", "(", ")", ")", ";", "StackTraceElement", "[", "]", "elements", "=", "...
Write a throwable, used to indicate a problem during data collection, not formatted. @param e The throwable object @throws IOException If an I/O error occurs while attempting to write the characters
[ "Write", "a", "throwable", "used", "to", "indicate", "a", "problem", "during", "data", "collection", "not", "formatted", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ras/FormattedWriter.java#L246-L265
68,057
OpenLiberty/open-liberty
dev/com.ibm.ws.security.common.jsonwebkey/src/com/ibm/ws/security/common/jwk/impl/JwKRetriever.java
JwKRetriever.getPublicKeyFromJwk
public PublicKey getPublicKeyFromJwk(String kid, String x5t, boolean useSystemPropertiesForHttpClientConnections) throws PrivilegedActionException, IOException, KeyStoreException, InterruptedException { return getPublicKeyFromJwk(kid, x5t, null, useSystemPropertiesForHttpClientConnections); }
java
public PublicKey getPublicKeyFromJwk(String kid, String x5t, boolean useSystemPropertiesForHttpClientConnections) throws PrivilegedActionException, IOException, KeyStoreException, InterruptedException { return getPublicKeyFromJwk(kid, x5t, null, useSystemPropertiesForHttpClientConnections); }
[ "public", "PublicKey", "getPublicKeyFromJwk", "(", "String", "kid", ",", "String", "x5t", ",", "boolean", "useSystemPropertiesForHttpClientConnections", ")", "throws", "PrivilegedActionException", ",", "IOException", ",", "KeyStoreException", ",", "InterruptedException", "{...
Either kid or x5t will work. But not both
[ "Either", "kid", "or", "x5t", "will", "work", ".", "But", "not", "both" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.common.jsonwebkey/src/com/ibm/ws/security/common/jwk/impl/JwKRetriever.java#L134-L137
68,058
OpenLiberty/open-liberty
dev/com.ibm.ws.security.common.jsonwebkey/src/com/ibm/ws/security/common/jwk/impl/JwKRetriever.java
JwKRetriever.getPublicKeyFromJwk
@FFDCIgnore({ KeyStoreException.class }) public PublicKey getPublicKeyFromJwk(String kid, String x5t, String use, boolean useSystemPropertiesForHttpClientConnections) throws PrivilegedActionException, IOException, KeyStoreException, InterruptedException { PublicKey key = null; KeyStoreEx...
java
@FFDCIgnore({ KeyStoreException.class }) public PublicKey getPublicKeyFromJwk(String kid, String x5t, String use, boolean useSystemPropertiesForHttpClientConnections) throws PrivilegedActionException, IOException, KeyStoreException, InterruptedException { PublicKey key = null; KeyStoreEx...
[ "@", "FFDCIgnore", "(", "{", "KeyStoreException", ".", "class", "}", ")", "public", "PublicKey", "getPublicKeyFromJwk", "(", "String", "kid", ",", "String", "x5t", ",", "String", "use", ",", "boolean", "useSystemPropertiesForHttpClientConnections", ")", "throws", ...
Either kid, x5t, or use will work, but not all
[ "Either", "kid", "x5t", "or", "use", "will", "work", "but", "not", "all" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.common.jsonwebkey/src/com/ibm/ws/security/common/jwk/impl/JwKRetriever.java#L142-L171
68,059
OpenLiberty/open-liberty
dev/com.ibm.ws.security.common.jsonwebkey/src/com/ibm/ws/security/common/jwk/impl/JwKRetriever.java
JwKRetriever.getInputStream
@FFDCIgnore({ PrivilegedActionException.class }) protected InputStream getInputStream(final File f, String fileSystemSelector, String location, String classLoadingSelector ) throws IOException { // check file system first like we used to do if (f != null) { InputStream is = null; ...
java
@FFDCIgnore({ PrivilegedActionException.class }) protected InputStream getInputStream(final File f, String fileSystemSelector, String location, String classLoadingSelector ) throws IOException { // check file system first like we used to do if (f != null) { InputStream is = null; ...
[ "@", "FFDCIgnore", "(", "{", "PrivilegedActionException", ".", "class", "}", ")", "protected", "InputStream", "getInputStream", "(", "final", "File", "f", ",", "String", "fileSystemSelector", ",", "String", "location", ",", "String", "classLoadingSelector", ")", "...
open an input stream to either a file on the file system or a url on the classpath. Update the locationUsed class variable to note where we got the stream from so results of reading it can be cached properly
[ "open", "an", "input", "stream", "to", "either", "a", "file", "on", "the", "file", "system", "or", "a", "url", "on", "the", "classpath", ".", "Update", "the", "locationUsed", "class", "variable", "to", "note", "where", "we", "got", "the", "stream", "from...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.common.jsonwebkey/src/com/ibm/ws/security/common/jwk/impl/JwKRetriever.java#L254-L292
68,060
OpenLiberty/open-liberty
dev/com.ibm.ws.security.common.jsonwebkey/src/com/ibm/ws/security/common/jwk/impl/JwKRetriever.java
JwKRetriever.parseJwk
public boolean parseJwk(String keyText, FileInputStream inputStream, JWKSet jwkset, String signatureAlgorithm) { boolean bJwk = false; if (keyText != null) { bJwk = parseKeyText(keyText, locationUsed, jwkset, signatureAlgorithm); } else if (inputStream != null) { String ...
java
public boolean parseJwk(String keyText, FileInputStream inputStream, JWKSet jwkset, String signatureAlgorithm) { boolean bJwk = false; if (keyText != null) { bJwk = parseKeyText(keyText, locationUsed, jwkset, signatureAlgorithm); } else if (inputStream != null) { String ...
[ "public", "boolean", "parseJwk", "(", "String", "keyText", ",", "FileInputStream", "inputStream", ",", "JWKSet", "jwkset", ",", "String", "signatureAlgorithm", ")", "{", "boolean", "bJwk", "=", "false", ";", "if", "(", "keyText", "!=", "null", ")", "{", "bJw...
separate to be an independent method for unit tests
[ "separate", "to", "be", "an", "independent", "method", "for", "unit", "tests" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.common.jsonwebkey/src/com/ibm/ws/security/common/jwk/impl/JwKRetriever.java#L401-L412
68,061
OpenLiberty/open-liberty
dev/com.ibm.ws.concurrent.mp.1.0/src/com/ibm/ws/concurrent/mp/ManagedCompletionStage.java
ManagedCompletionStage.newIncompleteFuture
@Override public CompletableFuture<T> newIncompleteFuture() { if (JAVA8) return new ManagedCompletionStage<T>(new CompletableFuture<T>(), defaultExecutor, null); else return new ManagedCompletionStage<T>(defaultExecutor); }
java
@Override public CompletableFuture<T> newIncompleteFuture() { if (JAVA8) return new ManagedCompletionStage<T>(new CompletableFuture<T>(), defaultExecutor, null); else return new ManagedCompletionStage<T>(defaultExecutor); }
[ "@", "Override", "public", "CompletableFuture", "<", "T", ">", "newIncompleteFuture", "(", ")", "{", "if", "(", "JAVA8", ")", "return", "new", "ManagedCompletionStage", "<", "T", ">", "(", "new", "CompletableFuture", "<", "T", ">", "(", ")", ",", "defaultE...
minimalCompletionStage is allowed because java.util.concurrent.CompletableFuture's minimalCompletionStage allows it
[ "minimalCompletionStage", "is", "allowed", "because", "java", ".", "util", ".", "concurrent", ".", "CompletableFuture", "s", "minimalCompletionStage", "allows", "it" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.mp.1.0/src/com/ibm/ws/concurrent/mp/ManagedCompletionStage.java#L132-L138
68,062
OpenLiberty/open-liberty
dev/com.ibm.ws.concurrent.mp.1.0/src/com/ibm/ws/concurrent/mp/ManagedCompletionStage.java
ManagedCompletionStage.newInstance
@Override @SuppressWarnings("hiding") @Trivial <T> CompletableFuture<T> newInstance(CompletableFuture<T> completableFuture, Executor managedExecutor, FutureRefExecutor futureRef) { return new ManagedCompletionStage<T>(completableFuture, managedExecutor, futureRef); }
java
@Override @SuppressWarnings("hiding") @Trivial <T> CompletableFuture<T> newInstance(CompletableFuture<T> completableFuture, Executor managedExecutor, FutureRefExecutor futureRef) { return new ManagedCompletionStage<T>(completableFuture, managedExecutor, futureRef); }
[ "@", "Override", "@", "SuppressWarnings", "(", "\"hiding\"", ")", "@", "Trivial", "<", "T", ">", "CompletableFuture", "<", "T", ">", "newInstance", "(", "CompletableFuture", "<", "T", ">", "completableFuture", ",", "Executor", "managedExecutor", ",", "FutureRefE...
This method is only for Java SE 8. It is used to override the newInstance method of ManagedCompletableFuture to ensure that newly created instances are ManagedCompletionStage. @param completableFuture underlying completable future upon which this instance is backed. @param managedExecutor managed executor service @par...
[ "This", "method", "is", "only", "for", "Java", "SE", "8", ".", "It", "is", "used", "to", "override", "the", "newInstance", "method", "of", "ManagedCompletableFuture", "to", "ensure", "that", "newly", "created", "instances", "are", "ManagedCompletionStage", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.mp.1.0/src/com/ibm/ws/concurrent/mp/ManagedCompletionStage.java#L150-L155
68,063
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/DummyManagedObject.java
DummyManagedObject.becomeCloneOf
public void becomeCloneOf(ManagedObject other) { final String methodName = "becomeCloneOf"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName, other); //!! See...
java
public void becomeCloneOf(ManagedObject other) { final String methodName = "becomeCloneOf"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName, other); //!! See...
[ "public", "void", "becomeCloneOf", "(", "ManagedObject", "other", ")", "{", "final", "String", "methodName", "=", "\"becomeCloneOf\"", ";", "if", "(", "Tracing", ".", "isAnyTracingEnabled", "(", ")", "&&", "trace", ".", "isEntryEnabled", "(", ")", ")", "trace"...
Replace the state of this object with the same object in some other state. Used for to restore the before immage if a transaction rolls back or is read from the log during restart. @param other the object this object is to become a clone of.
[ "Replace", "the", "state", "of", "this", "object", "with", "the", "same", "object", "in", "some", "other", "state", ".", "Used", "for", "to", "restore", "the", "before", "immage", "if", "a", "transaction", "rolls", "back", "or", "is", "read", "from", "th...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/DummyManagedObject.java#L62-L82
68,064
OpenLiberty/open-liberty
dev/com.ibm.ws.app.manager.wab/src/com/ibm/ws/app/manager/wab/internal/WAB.java
WAB.setState
private boolean setState(State newState) { switch (newState) { case DEPLOYED: return changeState(State.DEPLOYING, State.DEPLOYED); case DEPLOYING: //can move from either UNDEPLOYED or FAILED into DEPLOYING state return (changeState(State.UN...
java
private boolean setState(State newState) { switch (newState) { case DEPLOYED: return changeState(State.DEPLOYING, State.DEPLOYED); case DEPLOYING: //can move from either UNDEPLOYED or FAILED into DEPLOYING state return (changeState(State.UN...
[ "private", "boolean", "setState", "(", "State", "newState", ")", "{", "switch", "(", "newState", ")", "{", "case", "DEPLOYED", ":", "return", "changeState", "(", "State", ".", "DEPLOYING", ",", "State", ".", "DEPLOYED", ")", ";", "case", "DEPLOYING", ":", ...
state should only transition while the terminated lock is held. @param newState @return
[ "state", "should", "only", "transition", "while", "the", "terminated", "lock", "is", "held", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.wab/src/com/ibm/ws/app/manager/wab/internal/WAB.java#L262-L278
68,065
OpenLiberty/open-liberty
dev/com.ibm.ws.app.manager.wab/src/com/ibm/ws/app/manager/wab/internal/WAB.java
WAB.createFailedEvent
Event createFailedEvent(Throwable t) { synchronized (terminated) { if (terminated.get()) { return null; } if (setState(State.FAILED)) { installer.removeWabFromEligibleForCollisionResolution(this); installer.attemptRedeployOfPrev...
java
Event createFailedEvent(Throwable t) { synchronized (terminated) { if (terminated.get()) { return null; } if (setState(State.FAILED)) { installer.removeWabFromEligibleForCollisionResolution(this); installer.attemptRedeployOfPrev...
[ "Event", "createFailedEvent", "(", "Throwable", "t", ")", "{", "synchronized", "(", "terminated", ")", "{", "if", "(", "terminated", ".", "get", "(", ")", ")", "{", "return", "null", ";", "}", "if", "(", "setState", "(", "State", ".", "FAILED", ")", ...
and kicks off the collision resolution process
[ "and", "kicks", "off", "the", "collision", "resolution", "process" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.wab/src/com/ibm/ws/app/manager/wab/internal/WAB.java#L360-L372
68,066
OpenLiberty/open-liberty
dev/com.ibm.ws.app.manager.wab/src/com/ibm/ws/app/manager/wab/internal/WAB.java
WAB.createFailedEvent
Event createFailedEvent(String collisionContext, long[] cIds) { synchronized (terminated) { if (terminated.get()) { return null; } if (setState(State.FAILED)) return createEvent(State.FAILED, null, collisionContext, cIds); } ret...
java
Event createFailedEvent(String collisionContext, long[] cIds) { synchronized (terminated) { if (terminated.get()) { return null; } if (setState(State.FAILED)) return createEvent(State.FAILED, null, collisionContext, cIds); } ret...
[ "Event", "createFailedEvent", "(", "String", "collisionContext", ",", "long", "[", "]", "cIds", ")", "{", "synchronized", "(", "terminated", ")", "{", "if", "(", "terminated", ".", "get", "(", ")", ")", "{", "return", "null", ";", "}", "if", "(", "setS...
as it's used only to report collision failures =)
[ "as", "it", "s", "used", "only", "to", "report", "collision", "failures", "=", ")" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.wab/src/com/ibm/ws/app/manager/wab/internal/WAB.java#L376-L385
68,067
OpenLiberty/open-liberty
dev/com.ibm.ws.app.manager.wab/src/com/ibm/ws/app/manager/wab/internal/WAB.java
WAB.addingBundle
@Override @Trivial public WAB addingBundle(Bundle bundle, BundleEvent event) { //the bundle is in STARTING | ACTIVE state because of our state mask //only action work for the bundle represented by this WAB. if (bundle.getBundleId() == wabBundleId) { //sync lock inside bundle...
java
@Override @Trivial public WAB addingBundle(Bundle bundle, BundleEvent event) { //the bundle is in STARTING | ACTIVE state because of our state mask //only action work for the bundle represented by this WAB. if (bundle.getBundleId() == wabBundleId) { //sync lock inside bundle...
[ "@", "Override", "@", "Trivial", "public", "WAB", "addingBundle", "(", "Bundle", "bundle", ",", "BundleEvent", "event", ")", "{", "//the bundle is in STARTING | ACTIVE state because of our state mask", "//only action work for the bundle represented by this WAB.", "if", "(", "bu...
so we don't want that in the trace all the time
[ "so", "we", "don", "t", "want", "that", "in", "the", "trace", "all", "the", "time" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.wab/src/com/ibm/ws/app/manager/wab/internal/WAB.java#L515-L547
68,068
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/DataFormatHelper.java
DataFormatHelper.identityToString
public static String identityToString(Object o) { return o == null ? null : o.getClass().getName() + '@' + Integer.toHexString(System.identityHashCode(o)); }
java
public static String identityToString(Object o) { return o == null ? null : o.getClass().getName() + '@' + Integer.toHexString(System.identityHashCode(o)); }
[ "public", "static", "String", "identityToString", "(", "Object", "o", ")", "{", "return", "o", "==", "null", "?", "null", ":", "o", ".", "getClass", "(", ")", ".", "getName", "(", ")", "+", "'", "'", "+", "Integer", ".", "toHexString", "(", "System",...
Returns a string containing a concise, human-readable description of the object. The string is the same as the one that would be returned by Object.toString even if the object's class has overriden the toString or hashCode methods. The return value for a null object is null. @param o the object @return the string repr...
[ "Returns", "a", "string", "containing", "a", "concise", "human", "-", "readable", "description", "of", "the", "object", ".", "The", "string", "is", "the", "same", "as", "the", "one", "that", "would", "be", "returned", "by", "Object", ".", "toString", "even...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/DataFormatHelper.java#L42-L44
68,069
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/DataFormatHelper.java
DataFormatHelper.getThreadId
public static final String getThreadId() { String id = threadids.get(); if (null == id) { // Pad the tid out to 8 characters id = getThreadId(Thread.currentThread()); threadids.set(id); } return id; }
java
public static final String getThreadId() { String id = threadids.get(); if (null == id) { // Pad the tid out to 8 characters id = getThreadId(Thread.currentThread()); threadids.set(id); } return id; }
[ "public", "static", "final", "String", "getThreadId", "(", ")", "{", "String", "id", "=", "threadids", ".", "get", "(", ")", ";", "if", "(", "null", "==", "id", ")", "{", "// Pad the tid out to 8 characters", "id", "=", "getThreadId", "(", "Thread", ".", ...
Get and return the thread id, padded to 8 characters. @return 8 character string representation of thread id
[ "Get", "and", "return", "the", "thread", "id", "padded", "to", "8", "characters", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/DataFormatHelper.java#L173-L181
68,070
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/DataFormatHelper.java
DataFormatHelper.padHexString
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.substr...
java
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.substr...
[ "public", "static", "final", "String", "padHexString", "(", "int", "num", ",", "int", "width", ")", "{", "final", "String", "zeroPad", "=", "\"0000000000000000\"", ";", "String", "str", "=", "Integer", ".", "toHexString", "(", "num", ")", ";", "final", "in...
Returns the provided integer, padded to the specified number of characters with zeros. @param num Input number as an integer @param width Number of characters to return, including padding @return input number as zero-padded string
[ "Returns", "the", "provided", "integer", "padded", "to", "the", "specified", "number", "of", "characters", "with", "zeros", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/DataFormatHelper.java#L202-L214
68,071
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/DataFormatHelper.java
DataFormatHelper.throwableToString
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(...
java
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(...
[ "public", "static", "final", "String", "throwableToString", "(", "Throwable", "t", ")", "{", "final", "StringWriter", "s", "=", "new", "StringWriter", "(", ")", ";", "final", "PrintWriter", "p", "=", "new", "PrintWriter", "(", "s", ")", ";", "if", "(", "...
Returns a string containing the formatted exception stack @param t throwable @return formatted exception stack as a string
[ "Returns", "a", "string", "containing", "the", "formatted", "exception", "stack" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/DataFormatHelper.java#L223-L234
68,072
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/DataFormatHelper.java
DataFormatHelper.printFieldStackTrace
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(fie...
java
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(fie...
[ "private", "static", "final", "boolean", "printFieldStackTrace", "(", "PrintWriter", "p", ",", "Throwable", "t", ",", "String", "className", ",", "String", "fieldName", ")", "{", "for", "(", "Class", "<", "?", ">", "c", "=", "t", ".", "getClass", "(", ")...
Find a field value in the class hierarchy of an exception, and if the field contains another Throwable, then print its stack trace. @param p the writer to print to @param t the outer throwable @param className the name of the class to look for @param fieldName the field in the class to look for @return true if the fie...
[ "Find", "a", "field", "value", "in", "the", "class", "hierarchy", "of", "an", "exception", "and", "if", "the", "field", "contains", "another", "Throwable", "then", "print", "its", "stack", "trace", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/DataFormatHelper.java#L260-L277
68,073
OpenLiberty/open-liberty
dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/compiler/JikesJspCompiler.java
JikesJspCompiler.createErrorMsg
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.getFilePath...
java
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.getFilePath...
[ "private", "String", "createErrorMsg", "(", "JspLineId", "jspLineId", ",", "int", "errorLineNr", ")", "{", "StringBuffer", "compilerOutput", "=", "new", "StringBuffer", "(", ")", ";", "if", "(", "jspLineId", ".", "getSourceLineCount", "(", ")", "<=", "1", ")",...
name of parent file
[ "name", "of", "parent", "file" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/compiler/JikesJspCompiler.java#L360-L409
68,074
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/WebConfigParamUtils.java
WebConfigParamUtils.getInstanceInitParameter
@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 defaultVal...
java
@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 defaultVal...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "static", "<", "T", ">", "T", "getInstanceInitParameter", "(", "ExternalContext", "context", ",", "String", "name", ",", "String", "deprecatedName", ",", "T", "defaultValue", ")", "{", "String", "para...
Gets the init parameter value from the specified context and instanciate it. If the parameter was not specified, the default value is used instead. @param context the application's external context @param name the init parameter's name @param deprecatedName the init parameter's deprecated name. @param defaultValue the...
[ "Gets", "the", "init", "parameter", "value", "from", "the", "specified", "context", "and", "instanciate", "it", ".", "If", "the", "parameter", "was", "not", "specified", "the", "default", "value", "is", "used", "instead", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/WebConfigParamUtils.java#L687-L707
68,075
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.service/src/com/ibm/wsspi/kernel/service/utils/LDAPUtils.java
LDAPUtils.escapeLDAPFilterTerm
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().ch...
java
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().ch...
[ "public", "static", "String", "escapeLDAPFilterTerm", "(", "String", "term", ")", "{", "if", "(", "term", "==", "null", ")", "return", "null", ";", "Matcher", "m", "=", "FILTER_CHARS_TO_ESCAPE", ".", "matcher", "(", "term", ")", ";", "StringBuffer", "sb", ...
Escape a term for use in an LDAP filter. @param term @return
[ "Escape", "a", "term", "for", "use", "in", "an", "LDAP", "filter", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.service/src/com/ibm/wsspi/kernel/service/utils/LDAPUtils.java#L28-L39
68,076
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/RestoreStateUtils.java
RestoreStateUtils.getBindingMethod
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 ...
java
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 ...
[ "private", "static", "Method", "getBindingMethod", "(", "UIComponent", "parent", ")", "{", "Class", "[", "]", "clazzes", "=", "parent", ".", "getClass", "(", ")", ".", "getInterfaces", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "...
This is all a hack to work around a spec-bug which will be fixed in JSF2.0 @param parent @return true if this component is bindingAware (e.g. aliasBean)
[ "This", "is", "all", "a", "hack", "to", "work", "around", "a", "spec", "-", "bug", "which", "will", "be", "fixed", "in", "JSF2", ".", "0" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/RestoreStateUtils.java#L99-L121
68,077
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapEntity.java
LdapEntity.setObjectClasses
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...
java
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...
[ "public", "void", "setObjectClasses", "(", "List", "<", "String", ">", "objectClasses", ")", "{", "int", "size", "=", "objectClasses", ".", "size", "(", ")", ";", "iObjectClasses", "=", "new", "ArrayList", "<", "String", ">", "(", "objectClasses", ".", "si...
Sets a list of defining object classes for this entity type. The object classes will be stored in lower case form for comparison. @param objectClasses A list of defining object class names to be added.
[ "Sets", "a", "list", "of", "defining", "object", "classes", "for", "this", "entity", "type", ".", "The", "object", "classes", "will", "be", "stored", "in", "lower", "case", "form", "for", "comparison", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapEntity.java#L232-L241
68,078
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapEntity.java
LdapEntity.setObjectClassesForCreate
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 BasicA...
java
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 BasicA...
[ "public", "void", "setObjectClassesForCreate", "(", "List", "<", "String", ">", "objectClasses", ")", "{", "if", "(", "iRDNObjectClass", "!=", "null", "&&", "iRDNObjectClass", ".", "length", ">", "1", ")", "{", "iObjectClassAttrs", "=", "new", "Attribute", "["...
Sets the object classes attribute for creating. @param objectClasses A list of defining object class names to be added.
[ "Sets", "the", "object", "classes", "attribute", "for", "creating", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapEntity.java#L249-L277
68,079
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapEntity.java
LdapEntity.setRDNAttributes
public void setRDNAttributes(List<Map<String, Object>> rdnAttrList) throws MissingInitPropertyException { int size = rdnAttrList.size(); // if size = 0, No RDN attributes defined. Same as RDN properties. if (size > 0) { iRDNAttrs = new String[size][]; iRDNObjectClass = ne...
java
public void setRDNAttributes(List<Map<String, Object>> rdnAttrList) throws MissingInitPropertyException { int size = rdnAttrList.size(); // if size = 0, No RDN attributes defined. Same as RDN properties. if (size > 0) { iRDNAttrs = new String[size][]; iRDNObjectClass = ne...
[ "public", "void", "setRDNAttributes", "(", "List", "<", "Map", "<", "String", ",", "Object", ">", ">", "rdnAttrList", ")", "throws", "MissingInitPropertyException", "{", "int", "size", "=", "rdnAttrList", ".", "size", "(", ")", ";", "// if size = 0, No RDN attri...
Sets the RDN attribute types of this member type. RDN attribute types will be converted to lower case. @param The RDN attribute types of this member type.
[ "Sets", "the", "RDN", "attribute", "types", "of", "this", "member", "type", ".", "RDN", "attribute", "types", "will", "be", "converted", "to", "lower", "case", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapEntity.java#L400-L429
68,080
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapEntity.java
LdapEntity.getObjectClassAttribute
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[] attr...
java
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[] attr...
[ "public", "Attribute", "getObjectClassAttribute", "(", "String", "dn", ")", "{", "if", "(", "iObjectClassAttrs", ".", "length", "==", "1", "||", "dn", "==", "null", ")", "{", "return", "iObjectClassAttrs", "[", "0", "]", ";", "}", "else", "{", "String", ...
Gets the LDAP object class attribute that contains all object classes needed to create the member on LDAP server. @return The LDAP object class attribute of this member type.
[ "Gets", "the", "LDAP", "object", "class", "attribute", "that", "contains", "all", "object", "classes", "needed", "to", "create", "the", "member", "on", "LDAP", "server", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapEntity.java#L436-L455
68,081
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist/SimpleEntry.java
SimpleEntry.next
public SimpleEntry next() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "next", this); SibTr.exit(tc, "next", this.next); } return this.next; }
java
public SimpleEntry next() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "next", this); SibTr.exit(tc, "next", this.next); } return this.next; }
[ "public", "SimpleEntry", "next", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"next\"", ",", "this", ")", ";", "SibTr",...
Return the next entry in the list @return
[ "Return", "the", "next", "entry", "in", "the", "list" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist/SimpleEntry.java#L44-L53
68,082
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist/SimpleEntry.java
SimpleEntry.remove
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; ...
java
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; ...
[ "public", "void", "remove", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"remove\"", ",", "this", ")", ";", "if", "(", "pr...
Remove this entry from the list
[ "Remove", "this", "entry", "from", "the", "list" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist/SimpleEntry.java#L59-L79
68,083
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.utils/src/com/ibm/ws/jca/utils/metagen/ChildAliasSelector.java
ChildAliasSelector.rank
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); ...
java
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); ...
[ "void", "rank", "(", "MetatypeOcd", "ocd", ",", "List", "<", "String", ">", "rankedSuffixes", ")", "{", "List", "<", "String", ">", "childAliasSuffixes", "=", "new", "LinkedList", "<", "String", ">", "(", ")", ";", "for", "(", "String", "suffix", ":", ...
Specifies rankings for child alias suffixes. @param ocd represents an object class definition (OCD) element. @param rankedSuffixes ordered list that indicates the rankings. Elements at the beginning of the list are considered to have the highest preference.
[ "Specifies", "rankings", "for", "child", "alias", "suffixes", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.utils/src/com/ibm/ws/jca/utils/metagen/ChildAliasSelector.java#L71-L85
68,084
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.utils/src/com/ibm/ws/jca/utils/metagen/ChildAliasSelector.java
ChildAliasSelector.reserve
void reserve(String suffix, MetatypeOcd ocd) { MetatypeOcd previous = unavailableSuffixes.put(suffix, ocd); if (previous != null) throw new IllegalArgumentException("aliasSuffix: " + suffix); }
java
void reserve(String suffix, MetatypeOcd ocd) { MetatypeOcd previous = unavailableSuffixes.put(suffix, ocd); if (previous != null) throw new IllegalArgumentException("aliasSuffix: " + suffix); }
[ "void", "reserve", "(", "String", "suffix", ",", "MetatypeOcd", "ocd", ")", "{", "MetatypeOcd", "previous", "=", "unavailableSuffixes", ".", "put", "(", "suffix", ",", "ocd", ")", ";", "if", "(", "previous", "!=", "null", ")", "throw", "new", "IllegalArgum...
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. @param suffix name of the child alias. @param ocd OCD element that is claiming it. @throws IllegalArgumentException if another OCD has already reserved the child alias...
[ "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", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.utils/src/com/ibm/ws/jca/utils/metagen/ChildAliasSelector.java#L95-L99
68,085
OpenLiberty/open-liberty
dev/com.ibm.ws.repository.resolver/src/com/ibm/ws/repository/resolver/internal/kernel/KernelResolverEsa.java
KernelResolverEsa.matchCapability
private CapabilityMatchingResult matchCapability(Collection<? extends ProvisioningFeatureDefinition> features) { String capabilityString = esaResource.getProvisionCapability(); if (capabilityString == null) { CapabilityMatchingResult result = new CapabilityMatchingResult(); resu...
java
private CapabilityMatchingResult matchCapability(Collection<? extends ProvisioningFeatureDefinition> features) { String capabilityString = esaResource.getProvisionCapability(); if (capabilityString == null) { CapabilityMatchingResult result = new CapabilityMatchingResult(); resu...
[ "private", "CapabilityMatchingResult", "matchCapability", "(", "Collection", "<", "?", "extends", "ProvisioningFeatureDefinition", ">", "features", ")", "{", "String", "capabilityString", "=", "esaResource", ".", "getProvisionCapability", "(", ")", ";", "if", "(", "ca...
Attempt to match the ProvisionCapability requirements against the given list of features @param features the list of features to match against @return a {@link CapabilityMatchingResult} specifying whether all requirements were satisfied and which features were used to satisfy them
[ "Attempt", "to", "match", "the", "ProvisionCapability", "requirements", "against", "the", "given", "list", "of", "features" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.resolver/src/com/ibm/ws/repository/resolver/internal/kernel/KernelResolverEsa.java#L180-L212
68,086
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/connections/RestRepositoryConnection.java
RestRepositoryConnection.getAssetURL
public String getAssetURL(String id) { String url = getRepositoryUrl() + "/assets/" + id + "?"; if (getUserId() != null) { url += "userId=" + getUserId(); } if (getUserId() != null && getPassword() != null) { url += "&password=" + getPassword(); } ...
java
public String getAssetURL(String id) { String url = getRepositoryUrl() + "/assets/" + id + "?"; if (getUserId() != null) { url += "userId=" + getUserId(); } if (getUserId() != null && getPassword() != null) { url += "&password=" + getPassword(); } ...
[ "public", "String", "getAssetURL", "(", "String", "id", ")", "{", "String", "url", "=", "getRepositoryUrl", "(", ")", "+", "\"/assets/\"", "+", "id", "+", "\"?\"", ";", "if", "(", "getUserId", "(", ")", "!=", "null", ")", "{", "url", "+=", "\"userId=\"...
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. @param asset - an Asset @return String - the asset URL
[ "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"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/connections/RestRepositoryConnection.java#L147-L159
68,087
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/cmdline/ExeHelpAction.java
ExeHelpAction.getTaskUsage
public String getTaskUsage(ExeAction task) { StringBuilder taskUsage = new StringBuilder(NL); // print a empty line taskUsage.append(getHelpPart("global.usage")); taskUsage.append(NL); taskUsage.append('\t'); taskUsage.append(COMMAND); taskUsage.append(' '); ...
java
public String getTaskUsage(ExeAction task) { StringBuilder taskUsage = new StringBuilder(NL); // print a empty line taskUsage.append(getHelpPart("global.usage")); taskUsage.append(NL); taskUsage.append('\t'); taskUsage.append(COMMAND); taskUsage.append(' '); ...
[ "public", "String", "getTaskUsage", "(", "ExeAction", "task", ")", "{", "StringBuilder", "taskUsage", "=", "new", "StringBuilder", "(", "NL", ")", ";", "// print a empty line", "taskUsage", ".", "append", "(", "getHelpPart", "(", "\"global.usage\"", ")", ")", ";...
Constructs a string to represent the usage for a particular task. @param task - type of action @return string that holds the usage for param:task
[ "Constructs", "a", "string", "to", "represent", "the", "usage", "for", "a", "particular", "task", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/cmdline/ExeHelpAction.java#L74-L125
68,088
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/BoundedBuffer.java
BoundedBuffer.getQueueIndex
private int getQueueIndex(Object[] queue, java.util.concurrent.atomic.AtomicInteger counter, boolean increment) { // fast path for single element array if (queue.length == 1) { return 0; } else if (increment) { // get the next long value from counter int i =...
java
private int getQueueIndex(Object[] queue, java.util.concurrent.atomic.AtomicInteger counter, boolean increment) { // fast path for single element array if (queue.length == 1) { return 0; } else if (increment) { // get the next long value from counter int i =...
[ "private", "int", "getQueueIndex", "(", "Object", "[", "]", "queue", ",", "java", ".", "util", ".", "concurrent", ".", "atomic", ".", "AtomicInteger", "counter", ",", "boolean", "increment", ")", "{", "// fast path for single element array", "if", "(", "queue", ...
has waited.
[ "has", "waited", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/BoundedBuffer.java#L230-L252
68,089
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/BoundedBuffer.java
BoundedBuffer.put
public void put(Object x) throws InterruptedException { if (x == null) { throw new IllegalArgumentException(); } // D186845 if (Thread.interrupted()) // D186845 throw new InterruptedException(); // D312598 - begin boolean ret = false; while (true) { ...
java
public void put(Object x) throws InterruptedException { if (x == null) { throw new IllegalArgumentException(); } // D186845 if (Thread.interrupted()) // D186845 throw new InterruptedException(); // D312598 - begin boolean ret = false; while (true) { ...
[ "public", "void", "put", "(", "Object", "x", ")", "throws", "InterruptedException", "{", "if", "(", "x", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "// D186845 if (Thread.interrupted())", "// D186845 throw new Interrupted...
Puts an object into the buffer. If the buffer is full, the call will block indefinitely until space is freed up. @param x the object being placed in the buffer. @exception IllegalArgumentException if the object is null.
[ "Puts", "an", "object", "into", "the", "buffer", ".", "If", "the", "buffer", "is", "full", "the", "call", "will", "block", "indefinitely", "until", "space", "is", "freed", "up", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/BoundedBuffer.java#L466-L505
68,090
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaActivationSpecImpl.java
JmsJcaActivationSpecImpl.setTarget
@Override public void setTarget(String target) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) { SibTr.debug(this, TRACE, "setTarget", target); } _target = target; }
java
@Override public void setTarget(String target) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) { SibTr.debug(this, TRACE, "setTarget", target); } _target = target; }
[ "@", "Override", "public", "void", "setTarget", "(", "String", "target", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isDebugEnabled", "(", ")", ")", "{", "SibTr", ".", "debug", "(", "this", ",", "TRAC...
Set the target property. @param target
[ "Set", "the", "target", "property", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaActivationSpecImpl.java#L891-L899
68,091
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaActivationSpecImpl.java
JmsJcaActivationSpecImpl.setTargetType
@Override public void setTargetType(String targetType) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) { SibTr.debug(this, TRACE, "setTargetType", targetType); } _targetType = targetType; }
java
@Override public void setTargetType(String targetType) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) { SibTr.debug(this, TRACE, "setTargetType", targetType); } _targetType = targetType; }
[ "@", "Override", "public", "void", "setTargetType", "(", "String", "targetType", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isDebugEnabled", "(", ")", ")", "{", "SibTr", ".", "debug", "(", "this", ",",...
Set the target type property. @param targetType
[ "Set", "the", "target", "type", "property", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaActivationSpecImpl.java#L918-L926
68,092
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaActivationSpecImpl.java
JmsJcaActivationSpecImpl.setMaxSequentialMessageFailure
@Override public void setMaxSequentialMessageFailure(final String maxSequentialMessageFailure) { _maxSequentialMessageFailure = (maxSequentialMessageFailure == null ? null : Integer.valueOf(maxSequentialMessageFailure)); }
java
@Override public void setMaxSequentialMessageFailure(final String maxSequentialMessageFailure) { _maxSequentialMessageFailure = (maxSequentialMessageFailure == null ? null : Integer.valueOf(maxSequentialMessageFailure)); }
[ "@", "Override", "public", "void", "setMaxSequentialMessageFailure", "(", "final", "String", "maxSequentialMessageFailure", ")", "{", "_maxSequentialMessageFailure", "=", "(", "maxSequentialMessageFailure", "==", "null", "?", "null", ":", "Integer", ".", "valueOf", "(",...
Set the MaxSequentialMessageFailure property @param maxSequentialMessageFailure The maximum number of failed messages
[ "Set", "the", "MaxSequentialMessageFailure", "property" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaActivationSpecImpl.java#L1051-L1055
68,093
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaActivationSpecImpl.java
JmsJcaActivationSpecImpl.setAutoStopSequentialMessageFailure
@Override public void setAutoStopSequentialMessageFailure(final String autoStopSequentialMessageFailure) { _autoStopSequentialMessageFailure = (autoStopSequentialMessageFailure == null ? null : Integer.valueOf(autoStopSequentialMessageFailure)); }
java
@Override public void setAutoStopSequentialMessageFailure(final String autoStopSequentialMessageFailure) { _autoStopSequentialMessageFailure = (autoStopSequentialMessageFailure == null ? null : Integer.valueOf(autoStopSequentialMessageFailure)); }
[ "@", "Override", "public", "void", "setAutoStopSequentialMessageFailure", "(", "final", "String", "autoStopSequentialMessageFailure", ")", "{", "_autoStopSequentialMessageFailure", "=", "(", "autoStopSequentialMessageFailure", "==", "null", "?", "null", ":", "Integer", ".",...
Set the AutoStopSequentialMessageFailure property @param autoStopSequentialMessageFailure The maximum number of failed messages before stopping the MDB
[ "Set", "the", "AutoStopSequentialMessageFailure", "property" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaActivationSpecImpl.java#L1082-L1086
68,094
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/tx/ltc/impl/LTCUOWCallback.java
LTCUOWCallback.createUserTransactionCallback
public static UOWScopeCallback createUserTransactionCallback() { if (tc.isEntryEnabled()) Tr.entry(tc, "createUserTransactionCallback"); if (userTranCallback == null) { userTranCallback = new LTCUOWCallback(UOW_TYPE_TRANSACTION); } if (tc.isEntryEnabled()) ...
java
public static UOWScopeCallback createUserTransactionCallback() { if (tc.isEntryEnabled()) Tr.entry(tc, "createUserTransactionCallback"); if (userTranCallback == null) { userTranCallback = new LTCUOWCallback(UOW_TYPE_TRANSACTION); } if (tc.isEntryEnabled()) ...
[ "public", "static", "UOWScopeCallback", "createUserTransactionCallback", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"createUserTransactionCallback\"", ")", ";", "if", "(", "userTranCallback", "==",...
may be different in derived classes
[ "may", "be", "different", "in", "derived", "classes" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/ltc/impl/LTCUOWCallback.java#L41-L52
68,095
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/X509Name.java
X509Name.getInstance
public static X509Name getInstance( ASN1TaggedObject obj, boolean explicit) { return getInstance(ASN1Sequence.getInstance(obj, explicit)); }
java
public static X509Name getInstance( ASN1TaggedObject obj, boolean explicit) { return getInstance(ASN1Sequence.getInstance(obj, explicit)); }
[ "public", "static", "X509Name", "getInstance", "(", "ASN1TaggedObject", "obj", ",", "boolean", "explicit", ")", "{", "return", "getInstance", "(", "ASN1Sequence", ".", "getInstance", "(", "obj", ",", "explicit", ")", ")", ";", "}" ]
Return a X509Name based on the passed in tagged object. @param obj tag object holding name. @param explicit true if explicitly tagged false otherwise. @return the X509Name
[ "Return", "a", "X509Name", "based", "on", "the", "passed", "in", "tagged", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/X509Name.java#L228-L233
68,096
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/X509Name.java
X509Name.getOIDs
public Vector getOIDs() { Vector v = new Vector(); for (int i = 0; i != ordering.size(); i++) { v.addElement(ordering.elementAt(i)); } return v; }
java
public Vector getOIDs() { Vector v = new Vector(); for (int i = 0; i != ordering.size(); i++) { v.addElement(ordering.elementAt(i)); } return v; }
[ "public", "Vector", "getOIDs", "(", ")", "{", "Vector", "v", "=", "new", "Vector", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "!=", "ordering", ".", "size", "(", ")", ";", "i", "++", ")", "{", "v", ".", "addElement", "(", "ord...
return a vector of the oids in the name, in the order they were found.
[ "return", "a", "vector", "of", "the", "oids", "in", "the", "name", "in", "the", "order", "they", "were", "found", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/X509Name.java#L577-L587
68,097
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/X509Name.java
X509Name.getValues
public Vector getValues() { Vector v = new Vector(); for (int i = 0; i != values.size(); i++) { v.addElement(values.elementAt(i)); } return v; }
java
public Vector getValues() { Vector v = new Vector(); for (int i = 0; i != values.size(); i++) { v.addElement(values.elementAt(i)); } return v; }
[ "public", "Vector", "getValues", "(", ")", "{", "Vector", "v", "=", "new", "Vector", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "!=", "values", ".", "size", "(", ")", ";", "i", "++", ")", "{", "v", ".", "addElement", "(", "val...
return a vector of the values found in the name, in the order they were found.
[ "return", "a", "vector", "of", "the", "values", "found", "in", "the", "name", "in", "the", "order", "they", "were", "found", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/X509Name.java#L593-L603
68,098
OpenLiberty/open-liberty
dev/com.ibm.ws.config/src/com/ibm/ws/config/admin/ConfigID.java
ConfigID.fromProperty
public static ConfigID fromProperty(String property) { //TODO Perhaps there is a clever regex that could handle this String[] parents = property.split("//"); ConfigID id = null; for (String parentString : parents) { id = constructId(id, parentString); } retu...
java
public static ConfigID fromProperty(String property) { //TODO Perhaps there is a clever regex that could handle this String[] parents = property.split("//"); ConfigID id = null; for (String parentString : parents) { id = constructId(id, parentString); } retu...
[ "public", "static", "ConfigID", "fromProperty", "(", "String", "property", ")", "{", "//TODO Perhaps there is a clever regex that could handle this", "String", "[", "]", "parents", "=", "property", ".", "split", "(", "\"//\"", ")", ";", "ConfigID", "id", "=", "null"...
Translate config.id back into an ConfigID object @param property @return
[ "Translate", "config", ".", "id", "back", "into", "an", "ConfigID", "object" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/admin/ConfigID.java#L68-L78
68,099
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ClientConnectionManagerImpl.java
ClientConnectionManagerImpl.connect
@Override public Conversation connect(InetSocketAddress remoteHost, ConversationReceiveListener arl, String chainName) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
@Override public Conversation connect(InetSocketAddress remoteHost, ConversationReceiveListener arl, String chainName) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
[ "@", "Override", "public", "Conversation", "connect", "(", "InetSocketAddress", "remoteHost", ",", "ConversationReceiveListener", "arl", ",", "String", "chainName", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ...
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 pro...
[ "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", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ClientConnectionManagerImpl.java#L78-L100