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,900 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java | TransactionImpl.rollback | @Override
public void rollback() throws IllegalStateException, SystemException {
if (tc.isEntryEnabled())
Tr.entry(tc, "rollback (SPI)");
final int state = _status.getState();
//
// We are only called in this method for superiors.
//
if (state == Transac... | java | @Override
public void rollback() throws IllegalStateException, SystemException {
if (tc.isEntryEnabled())
Tr.entry(tc, "rollback (SPI)");
final int state = _status.getState();
//
// We are only called in this method for superiors.
//
if (state == Transac... | [
"@",
"Override",
"public",
"void",
"rollback",
"(",
")",
"throws",
"IllegalStateException",
",",
"SystemException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"rollback (SPI)\"",
")",
";",
"final",
"in... | Rollback the transaction associated with the target Transaction Object
@exception IllegalStateException
@exception SystemException | [
"Rollback",
"the",
"transaction",
"associated",
"with",
"the",
"target",
"Transaction",
"Object"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java#L1037-L1127 |
68,901 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java | TransactionImpl.setPrepareXAFailed | protected void setPrepareXAFailed() // d266464A
{
if (tc.isEntryEnabled())
Tr.entry(tc, "setPrepareXAFailed");
setRBO(); // Ensure native context is informed
if (tc.isEntryEnabled())
Tr.exit(tc, "setPrepareXAFailed");
} | java | protected void setPrepareXAFailed() // d266464A
{
if (tc.isEntryEnabled())
Tr.entry(tc, "setPrepareXAFailed");
setRBO(); // Ensure native context is informed
if (tc.isEntryEnabled())
Tr.exit(tc, "setPrepareXAFailed");
} | [
"protected",
"void",
"setPrepareXAFailed",
"(",
")",
"// d266464A",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"setPrepareXAFailed\"",
")",
";",
"setRBO",
"(",
")",
";",
"// Ensure native context is inform... | Indicate that the prepare XA phase failed. | [
"Indicate",
"that",
"the",
"prepare",
"XA",
"phase",
"failed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java#L1370-L1379 |
68,902 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java | TransactionImpl.prePrepare | protected boolean prePrepare() {
if (tc.isEntryEnabled())
Tr.entry(tc, "prePrepare");
//
// Cancel timeout prior to completion phase
//
cancelAlarms();
//
// Inform the Synchronisations we are about to complete
//
if (!_rollbackOnly) ... | java | protected boolean prePrepare() {
if (tc.isEntryEnabled())
Tr.entry(tc, "prePrepare");
//
// Cancel timeout prior to completion phase
//
cancelAlarms();
//
// Inform the Synchronisations we are about to complete
//
if (!_rollbackOnly) ... | [
"protected",
"boolean",
"prePrepare",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"prePrepare\"",
")",
";",
"//",
"// Cancel timeout prior to completion phase",
"//",
"cancelAlarms",
"(",
")",
"... | Drive beforeCompletion against sync objects registered with
this transaction. | [
"Drive",
"beforeCompletion",
"against",
"sync",
"objects",
"registered",
"with",
"this",
"transaction",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java#L1385-L1406 |
68,903 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java | TransactionImpl.distributeEnd | protected boolean distributeEnd() throws SystemException {
if (tc.isEntryEnabled())
Tr.entry(tc, "distributeEnd");
if (!getResources().distributeEnd(XAResource.TMSUCCESS)) {
setRBO();
}
if (_rollbackOnly) {
try {
_status.setState(Tran... | java | protected boolean distributeEnd() throws SystemException {
if (tc.isEntryEnabled())
Tr.entry(tc, "distributeEnd");
if (!getResources().distributeEnd(XAResource.TMSUCCESS)) {
setRBO();
}
if (_rollbackOnly) {
try {
_status.setState(Tran... | [
"protected",
"boolean",
"distributeEnd",
"(",
")",
"throws",
"SystemException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"distributeEnd\"",
")",
";",
"if",
"(",
"!",
"getResources",
"(",
")",
".",
... | Distribute end to all XA resources | [
"Distribute",
"end",
"to",
"all",
"XA",
"resources"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java#L1427-L1449 |
68,904 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java | TransactionImpl.getOriginalException | public Throwable getOriginalException() {
if (tc.isEntryEnabled())
Tr.entry(tc, "getOriginalException");
if (tc.isEntryEnabled())
Tr.exit(tc, "getOriginalException", _originalException);
return _originalException;
} | java | public Throwable getOriginalException() {
if (tc.isEntryEnabled())
Tr.entry(tc, "getOriginalException");
if (tc.isEntryEnabled())
Tr.exit(tc, "getOriginalException", _originalException);
return _originalException;
} | [
"public",
"Throwable",
"getOriginalException",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"getOriginalException\"",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
... | returns the exception stored by RegisteredSyncs
@return Throwable the original exceptions | [
"returns",
"the",
"exception",
"stored",
"by",
"RegisteredSyncs"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java#L1882-L1888 |
68,905 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java | TransactionImpl.setRollbackOnly | @Override
public void setRollbackOnly() throws IllegalStateException {
if (tc.isEntryEnabled())
Tr.entry(tc, "setRollbackOnly (SPI)");
final int state = _status.getState();
if (state == TransactionState.STATE_NONE ||
state == TransactionState.STATE_COMMITTED ||
... | java | @Override
public void setRollbackOnly() throws IllegalStateException {
if (tc.isEntryEnabled())
Tr.entry(tc, "setRollbackOnly (SPI)");
final int state = _status.getState();
if (state == TransactionState.STATE_NONE ||
state == TransactionState.STATE_COMMITTED ||
... | [
"@",
"Override",
"public",
"void",
"setRollbackOnly",
"(",
")",
"throws",
"IllegalStateException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"setRollbackOnly (SPI)\"",
")",
";",
"final",
"int",
"state",... | Modify the transaction such that the only possible outcome
of the transaction is to rollback.
@exception IllegalStateException | [
"Modify",
"the",
"transaction",
"such",
"that",
"the",
"only",
"possible",
"outcome",
"of",
"the",
"transaction",
"is",
"to",
"rollback",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java#L1898-L1916 |
68,906 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java | TransactionImpl.enlistResource | public void enlistResource(JTAResource remoteRes) {
if (tc.isEntryEnabled())
Tr.entry(tc, "enlistResource (SPI): args: ", remoteRes);
getResources().addRes(remoteRes);
if (tc.isEntryEnabled())
Tr.exit(tc, "enlistResource (SPI)");
} | java | public void enlistResource(JTAResource remoteRes) {
if (tc.isEntryEnabled())
Tr.entry(tc, "enlistResource (SPI): args: ", remoteRes);
getResources().addRes(remoteRes);
if (tc.isEntryEnabled())
Tr.exit(tc, "enlistResource (SPI)");
} | [
"public",
"void",
"enlistResource",
"(",
"JTAResource",
"remoteRes",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"enlistResource (SPI): args: \"",
",",
"remoteRes",
")",
";",
"getResources",
"(",
")"... | Enlist a remote resouce with the transaction associated with the target
TransactionImpl object. Typically, this remote resource represents a
downstream suborindate server.
@param remoteRes the remote resource wrapped as a JTAResource | [
"Enlist",
"a",
"remote",
"resouce",
"with",
"the",
"transaction",
"associated",
"with",
"the",
"target",
"TransactionImpl",
"object",
".",
"Typically",
"this",
"remote",
"resource",
"represents",
"a",
"downstream",
"suborindate",
"server",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java#L2140-L2148 |
68,907 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java | TransactionImpl.logHeuristic | protected void logHeuristic(boolean commit) throws SystemException {
if (tc.isEntryEnabled())
Tr.entry(tc, "logHeuristic", commit);
if (_subordinate && _status.getState() != TransactionState.STATE_PREPARING) {
getResources().logHeuristic(commit);
}
if (tc.isEntr... | java | protected void logHeuristic(boolean commit) throws SystemException {
if (tc.isEntryEnabled())
Tr.entry(tc, "logHeuristic", commit);
if (_subordinate && _status.getState() != TransactionState.STATE_PREPARING) {
getResources().logHeuristic(commit);
}
if (tc.isEntr... | [
"protected",
"void",
"logHeuristic",
"(",
"boolean",
"commit",
")",
"throws",
"SystemException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"logHeuristic\"",
",",
"commit",
")",
";",
"if",
"(",
"_sub... | Log the fact that we have encountered a heuristic outcome.
@param commit boolean to indicate whether we were committing or rolling
back
@exception SystemException
Thrown if the state change is invalid. | [
"Log",
"the",
"fact",
"that",
"we",
"have",
"encountered",
"a",
"heuristic",
"outcome",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java#L2180-L2190 |
68,908 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java | TransactionImpl.getStatus | @Override
public int getStatus() {
int state = Status.STATUS_UNKNOWN;
switch (_status.getState()) {
case TransactionState.STATE_NONE:
state = Status.STATUS_NO_TRANSACTION;
break;
case TransactionState.STATE_ACTIVE:
if (_rollbac... | java | @Override
public int getStatus() {
int state = Status.STATUS_UNKNOWN;
switch (_status.getState()) {
case TransactionState.STATE_NONE:
state = Status.STATUS_NO_TRANSACTION;
break;
case TransactionState.STATE_ACTIVE:
if (_rollbac... | [
"@",
"Override",
"public",
"int",
"getStatus",
"(",
")",
"{",
"int",
"state",
"=",
"Status",
".",
"STATUS_UNKNOWN",
";",
"switch",
"(",
"_status",
".",
"getState",
"(",
")",
")",
"{",
"case",
"TransactionState",
".",
"STATE_NONE",
":",
"state",
"=",
"Sta... | Obtain the status of the transaction associated with the target object
@return the transaction status | [
"Obtain",
"the",
"status",
"of",
"the",
"transaction",
"associated",
"with",
"the",
"target",
"object"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java#L2309-L2350 |
68,909 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java | TransactionImpl.getXidImpl | public XidImpl getXidImpl(boolean createIfAbsent) {
if (tc.isEntryEnabled())
Tr.entry(tc, "getXidImpl", new Object[] { this, createIfAbsent });
if (createIfAbsent && (_xid == null)) {
// Create an XID as this transaction identifier.
_xid = new XidImpl(new TxPrimaryKe... | java | public XidImpl getXidImpl(boolean createIfAbsent) {
if (tc.isEntryEnabled())
Tr.entry(tc, "getXidImpl", new Object[] { this, createIfAbsent });
if (createIfAbsent && (_xid == null)) {
// Create an XID as this transaction identifier.
_xid = new XidImpl(new TxPrimaryKe... | [
"public",
"XidImpl",
"getXidImpl",
"(",
"boolean",
"createIfAbsent",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"getXidImpl\"",
",",
"new",
"Object",
"[",
"]",
"{",
"this",
",",
"createIfAbsent"... | Returns a global identifier that represents the TransactionImpl's transaction.
@return The global transaction identifier. | [
"Returns",
"a",
"global",
"identifier",
"that",
"represents",
"the",
"TransactionImpl",
"s",
"transaction",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java#L2386-L2398 |
68,910 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java | TransactionImpl.setXidImpl | public void setXidImpl(XidImpl xid) {
if (tc.isDebugEnabled())
Tr.debug(tc, "setXidImpl", new Object[] { xid, this });
_xid = xid;
} | java | public void setXidImpl(XidImpl xid) {
if (tc.isDebugEnabled())
Tr.debug(tc, "setXidImpl", new Object[] { xid, this });
_xid = xid;
} | [
"public",
"void",
"setXidImpl",
"(",
"XidImpl",
"xid",
")",
"{",
"if",
"(",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"setXidImpl\"",
",",
"new",
"Object",
"[",
"]",
"{",
"xid",
",",
"this",
"}",
")",
";",
... | For recovery only | [
"For",
"recovery",
"only"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java#L2401-L2405 |
68,911 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java | TransactionImpl.isJCAImportedAndPrepared | public boolean isJCAImportedAndPrepared(String providerId) {
return _JCARecoveryData != null &&
_status.getState() == TransactionState.STATE_PREPARED &&
_JCARecoveryData.getWrapper().getProviderId().equals(providerId);
} | java | public boolean isJCAImportedAndPrepared(String providerId) {
return _JCARecoveryData != null &&
_status.getState() == TransactionState.STATE_PREPARED &&
_JCARecoveryData.getWrapper().getProviderId().equals(providerId);
} | [
"public",
"boolean",
"isJCAImportedAndPrepared",
"(",
"String",
"providerId",
")",
"{",
"return",
"_JCARecoveryData",
"!=",
"null",
"&&",
"_status",
".",
"getState",
"(",
")",
"==",
"TransactionState",
".",
"STATE_PREPARED",
"&&",
"_JCARecoveryData",
".",
"getWrappe... | Returns true if this tx was imported by the given RA and is prepared
@param providerId
@return | [
"Returns",
"true",
"if",
"this",
"tx",
"was",
"imported",
"by",
"the",
"given",
"RA",
"and",
"is",
"prepared"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TransactionImpl.java#L3177-L3181 |
68,912 | OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/KeyStoreManager.java | KeyStoreManager.loadKeyStores | public void loadKeyStores(Map<String, WSKeyStore> config) {
// now process each keystore in the provided config
for (Entry<String, WSKeyStore> current : config.entrySet()) {
try {
String name = current.getKey();
WSKeyStore keystore = current.getValue();
... | java | public void loadKeyStores(Map<String, WSKeyStore> config) {
// now process each keystore in the provided config
for (Entry<String, WSKeyStore> current : config.entrySet()) {
try {
String name = current.getKey();
WSKeyStore keystore = current.getValue();
... | [
"public",
"void",
"loadKeyStores",
"(",
"Map",
"<",
"String",
",",
"WSKeyStore",
">",
"config",
")",
"{",
"// now process each keystore in the provided config",
"for",
"(",
"Entry",
"<",
"String",
",",
"WSKeyStore",
">",
"current",
":",
"config",
".",
"entrySet",
... | Load the provided list of keystores from the configuration.
@param config | [
"Load",
"the",
"provided",
"list",
"of",
"keystores",
"from",
"the",
"configuration",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/KeyStoreManager.java#L91-L105 |
68,913 | OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/KeyStoreManager.java | KeyStoreManager.getInputStream | public InputStream getInputStream(String fileName, boolean create) throws MalformedURLException, IOException {
try {
GetKeyStoreInputStreamAction action = new GetKeyStoreInputStreamAction(fileName, create);
return AccessController.doPrivileged(action);
} catch (PrivilegedActionEx... | java | public InputStream getInputStream(String fileName, boolean create) throws MalformedURLException, IOException {
try {
GetKeyStoreInputStreamAction action = new GetKeyStoreInputStreamAction(fileName, create);
return AccessController.doPrivileged(action);
} catch (PrivilegedActionEx... | [
"public",
"InputStream",
"getInputStream",
"(",
"String",
"fileName",
",",
"boolean",
"create",
")",
"throws",
"MalformedURLException",
",",
"IOException",
"{",
"try",
"{",
"GetKeyStoreInputStreamAction",
"action",
"=",
"new",
"GetKeyStoreInputStreamAction",
"(",
"fileN... | Open the provided filename as a keystore, creating if it doesn't exist and
the input create flag is true.
@param fileName
@param create
@return InputStream
@throws MalformedURLException
@throws IOException | [
"Open",
"the",
"provided",
"filename",
"as",
"a",
"keystore",
"creating",
"if",
"it",
"doesn",
"t",
"exist",
"and",
"the",
"input",
"create",
"flag",
"is",
"true",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/KeyStoreManager.java#L347-L364 |
68,914 | OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/KeyStoreManager.java | KeyStoreManager.getOutputStream | public OutputStream getOutputStream(String fileName) throws MalformedURLException, IOException {
try {
GetKeyStoreOutputStreamAction action = new GetKeyStoreOutputStreamAction(fileName);
return AccessController.doPrivileged(action);
} catch (PrivilegedActionException e) {
... | java | public OutputStream getOutputStream(String fileName) throws MalformedURLException, IOException {
try {
GetKeyStoreOutputStreamAction action = new GetKeyStoreOutputStreamAction(fileName);
return AccessController.doPrivileged(action);
} catch (PrivilegedActionException e) {
... | [
"public",
"OutputStream",
"getOutputStream",
"(",
"String",
"fileName",
")",
"throws",
"MalformedURLException",
",",
"IOException",
"{",
"try",
"{",
"GetKeyStoreOutputStreamAction",
"action",
"=",
"new",
"GetKeyStoreOutputStreamAction",
"(",
"fileName",
")",
";",
"retur... | Open the provided filename as an outputstream.
@param fileName
@return OutputStream
@throws MalformedURLException
@throws IOException | [
"Open",
"the",
"provided",
"filename",
"as",
"an",
"outputstream",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/KeyStoreManager.java#L428-L445 |
68,915 | OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/KeyStoreManager.java | KeyStoreManager.stripLastSlash | public static String stripLastSlash(String inputString) {
if (null == inputString) {
return null;
}
String rc = inputString.trim();
int len = rc.length();
if (0 < len) {
char lastChar = rc.charAt(len - 1);
if ('/' == lastChar || '\\' == lastCha... | java | public static String stripLastSlash(String inputString) {
if (null == inputString) {
return null;
}
String rc = inputString.trim();
int len = rc.length();
if (0 < len) {
char lastChar = rc.charAt(len - 1);
if ('/' == lastChar || '\\' == lastCha... | [
"public",
"static",
"String",
"stripLastSlash",
"(",
"String",
"inputString",
")",
"{",
"if",
"(",
"null",
"==",
"inputString",
")",
"{",
"return",
"null",
";",
"}",
"String",
"rc",
"=",
"inputString",
".",
"trim",
"(",
")",
";",
"int",
"len",
"=",
"rc... | Remove the last slash, if present, from the input string and return the
result.
@param inputString
@return String | [
"Remove",
"the",
"last",
"slash",
"if",
"present",
"from",
"the",
"input",
"string",
"and",
"return",
"the",
"result",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/KeyStoreManager.java#L700-L714 |
68,916 | OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/KeyStoreManager.java | KeyStoreManager.getJavaKeyStore | public KeyStore getJavaKeyStore(String keyStoreName) throws Exception {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "getJavaKeyStore: " + keyStoreName);
if (keyStoreName == null || keyStoreName.trim().isEmpty()) {
throw new SSLException("No keys... | java | public KeyStore getJavaKeyStore(String keyStoreName) throws Exception {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "getJavaKeyStore: " + keyStoreName);
if (keyStoreName == null || keyStoreName.trim().isEmpty()) {
throw new SSLException("No keys... | [
"public",
"KeyStore",
"getJavaKeyStore",
"(",
"String",
"keyStoreName",
")",
"throws",
"Exception",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
... | Returns the java keystore object based on the keystore name passed in.
@param keyStoreName
@return KeyStore
@throws Exception | [
"Returns",
"the",
"java",
"keystore",
"object",
"based",
"on",
"the",
"keystore",
"name",
"passed",
"in",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/KeyStoreManager.java#L723-L740 |
68,917 | OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/KeyStoreManager.java | KeyStoreManager.getWSKeyStore | public WSKeyStore getWSKeyStore(String keyStoreName) throws SSLException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "getWSKeyStore: " + keyStoreName);
if (keyStoreName == null) {
throw new SSLException("No keystore name provided.");
}... | java | public WSKeyStore getWSKeyStore(String keyStoreName) throws SSLException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "getWSKeyStore: " + keyStoreName);
if (keyStoreName == null) {
throw new SSLException("No keystore name provided.");
}... | [
"public",
"WSKeyStore",
"getWSKeyStore",
"(",
"String",
"keyStoreName",
")",
"throws",
"SSLException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",... | Returns the java keystore object based on the keystore name passed in. A
null value is returned if no existing store matchs the provided name.
@param keyStoreName
@return WSKeyStore
@throws SSLException
- if the input name is null | [
"Returns",
"the",
"java",
"keystore",
"object",
"based",
"on",
"the",
"keystore",
"name",
"passed",
"in",
".",
"A",
"null",
"value",
"is",
"returned",
"if",
"no",
"existing",
"store",
"matchs",
"the",
"provided",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/KeyStoreManager.java#L751-L764 |
68,918 | OpenLiberty/open-liberty | dev/com.ibm.ws.cloudant/src/com/ibm/ws/cloudant/internal/CloudantService.java | CloudantService.getDependentApplications | @Override
public Set<String> getDependentApplications() {
Set<String> appsToStop = new HashSet<String>(applications);
applications.clear();
return appsToStop;
} | java | @Override
public Set<String> getDependentApplications() {
Set<String> appsToStop = new HashSet<String>(applications);
applications.clear();
return appsToStop;
} | [
"@",
"Override",
"public",
"Set",
"<",
"String",
">",
"getDependentApplications",
"(",
")",
"{",
"Set",
"<",
"String",
">",
"appsToStop",
"=",
"new",
"HashSet",
"<",
"String",
">",
"(",
"applications",
")",
";",
"applications",
".",
"clear",
"(",
")",
";... | Returns the list of applications that have used this resource so that the applications can be
stopped by the application recycle code in response to a configuration change. | [
"Returns",
"the",
"list",
"of",
"applications",
"that",
"have",
"used",
"this",
"resource",
"so",
"that",
"the",
"applications",
"can",
"be",
"stopped",
"by",
"the",
"application",
"recycle",
"code",
"in",
"response",
"to",
"a",
"configuration",
"change",
"."
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cloudant/src/com/ibm/ws/cloudant/internal/CloudantService.java#L464-L469 |
68,919 | OpenLiberty/open-liberty | dev/com.ibm.ws.cloudant/src/com/ibm/ws/cloudant/internal/CloudantService.java | CloudantService.set | @Trivial // do our own trace in order to selectively include the value
private <T extends Object> void set(Class<?> clazz, Object clientBuilder, String name, Class<T> type, T value) throws Exception {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, name + '('... | java | @Trivial // do our own trace in order to selectively include the value
private <T extends Object> void set(Class<?> clazz, Object clientBuilder, String name, Class<T> type, T value) throws Exception {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, name + '('... | [
"@",
"Trivial",
"// do our own trace in order to selectively include the value",
"private",
"<",
"T",
"extends",
"Object",
">",
"void",
"set",
"(",
"Class",
"<",
"?",
">",
"clazz",
",",
"Object",
"clientBuilder",
",",
"String",
"name",
",",
"Class",
"<",
"T",
">... | Method to reflectively invoke setters on the cloudant client builder
@param clazz client builder class
@param clientBuilder builder instance
@param name method to invoke
@param type argument type with which to invoke method
@param value argument value with which to invoke method, sensitive as password will be passed
@t... | [
"Method",
"to",
"reflectively",
"invoke",
"setters",
"on",
"the",
"cloudant",
"client",
"builder"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cloudant/src/com/ibm/ws/cloudant/internal/CloudantService.java#L506-L519 |
68,920 | OpenLiberty/open-liberty | dev/com.ibm.ws.cloudant/src/com/ibm/ws/cloudant/internal/CloudantService.java | CloudantService.libraryNotification | @Override
public void libraryNotification() {
// Notify the application recycle coordinator of an incompatible change that requires restarting the application
if (!applications.isEmpty()) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc... | java | @Override
public void libraryNotification() {
// Notify the application recycle coordinator of an incompatible change that requires restarting the application
if (!applications.isEmpty()) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc... | [
"@",
"Override",
"public",
"void",
"libraryNotification",
"(",
")",
"{",
"// Notify the application recycle coordinator of an incompatible change that requires restarting the application",
"if",
"(",
"!",
"applications",
".",
"isEmpty",
"(",
")",
")",
"{",
"if",
"(",
"Trace... | Received when library is changed, for example by altering the files in the library. | [
"Received",
"when",
"library",
"is",
"changed",
"for",
"example",
"by",
"altering",
"the",
"files",
"in",
"the",
"library",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cloudant/src/com/ibm/ws/cloudant/internal/CloudantService.java#L524-L535 |
68,921 | OpenLiberty/open-liberty | dev/com.ibm.ws.cloudant/src/com/ibm/ws/cloudant/internal/CloudantService.java | CloudantService.getCloudantClient | public Object getCloudantClient(int resAuth, List<? extends ResourceInfo.Property> loginPropertyList) throws Exception {
AuthData containerAuthData = null;
if (resAuth == ResourceInfo.AUTH_CONTAINER) {
containerAuthData = getContainerAuthData(loginPropertyList);
}
String use... | java | public Object getCloudantClient(int resAuth, List<? extends ResourceInfo.Property> loginPropertyList) throws Exception {
AuthData containerAuthData = null;
if (resAuth == ResourceInfo.AUTH_CONTAINER) {
containerAuthData = getContainerAuthData(loginPropertyList);
}
String use... | [
"public",
"Object",
"getCloudantClient",
"(",
"int",
"resAuth",
",",
"List",
"<",
"?",
"extends",
"ResourceInfo",
".",
"Property",
">",
"loginPropertyList",
")",
"throws",
"Exception",
"{",
"AuthData",
"containerAuthData",
"=",
"null",
";",
"if",
"(",
"resAuth",... | Return the cloudant client object used for a particular username and password
@param resAuth
@param loginPropertyList
@return CloudantClient object
@throws Exception | [
"Return",
"the",
"cloudant",
"client",
"object",
"used",
"for",
"a",
"particular",
"username",
"and",
"password"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cloudant/src/com/ibm/ws/cloudant/internal/CloudantService.java#L618-L637 |
68,922 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/Semaphore.java | Semaphore.waitOn | public synchronized void waitOn() throws InterruptedException
{
if (tc.isEntryEnabled()) SibTr.entry(tc, "waitOn", ""+count);
++count;
if (count > 0)
{
try
{
wait();
}
catch(InterruptedException e)
{
// No FFDC code needed
... | java | public synchronized void waitOn() throws InterruptedException
{
if (tc.isEntryEnabled()) SibTr.entry(tc, "waitOn", ""+count);
++count;
if (count > 0)
{
try
{
wait();
}
catch(InterruptedException e)
{
// No FFDC code needed
... | [
"public",
"synchronized",
"void",
"waitOn",
"(",
")",
"throws",
"InterruptedException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"waitOn\"",
",",
"\"\"",
"+",
"count",
")",
";",
"++",
"count",
... | Wait for the semaphore to be posted
@see Semaphore#post()
@throws InterruptedException if the wait is interrupted rather than posted | [
"Wait",
"for",
"the",
"semaphore",
"to",
"be",
"posted"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/Semaphore.java#L54-L74 |
68,923 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/Semaphore.java | Semaphore.post | public synchronized void post()
{
if (tc.isEntryEnabled()) SibTr.entry(tc, "post", ""+count);
--count;
if (count >= 0)
notify();
if (tc.isEntryEnabled()) SibTr.exit(tc, "post");
} | java | public synchronized void post()
{
if (tc.isEntryEnabled()) SibTr.entry(tc, "post", ""+count);
--count;
if (count >= 0)
notify();
if (tc.isEntryEnabled()) SibTr.exit(tc, "post");
} | [
"public",
"synchronized",
"void",
"post",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"post\"",
",",
"\"\"",
"+",
"count",
")",
";",
"--",
"count",
";",
"if",
"(",
"count",
">=",
... | Post the semaphore waking up at most one waiter. If there are no
waiters, then the next thread issuing a waitOn call will not be
suspended. In fact, if post is invoked 'n' times then the next
'n' waitOn calls will not block.
@see Semaphore#waitOn() | [
"Post",
"the",
"semaphore",
"waking",
"up",
"at",
"most",
"one",
"waiter",
".",
"If",
"there",
"are",
"no",
"waiters",
"then",
"the",
"next",
"thread",
"issuing",
"a",
"waitOn",
"call",
"will",
"not",
"be",
"suspended",
".",
"In",
"fact",
"if",
"post",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/Semaphore.java#L83-L90 |
68,924 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/Semaphore.java | Semaphore.waitOnIgnoringInterruptions | public synchronized void waitOnIgnoringInterruptions()
{
if (tc.isEntryEnabled()) SibTr.entry(tc, "waitOnIgnoringInterruptions");
boolean interrupted;
do
{
interrupted = false;
try
{
waitOn();
}
catch (InterruptedException e)
... | java | public synchronized void waitOnIgnoringInterruptions()
{
if (tc.isEntryEnabled()) SibTr.entry(tc, "waitOnIgnoringInterruptions");
boolean interrupted;
do
{
interrupted = false;
try
{
waitOn();
}
catch (InterruptedException e)
... | [
"public",
"synchronized",
"void",
"waitOnIgnoringInterruptions",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"waitOnIgnoringInterruptions\"",
")",
";",
"boolean",
"interrupted",
";",
"do",
"{",... | Wait on the semaphore ignoring any attempt to interrupt the thread.
@see Semaphore#waitOn() | [
"Wait",
"on",
"the",
"semaphore",
"ignoring",
"any",
"attempt",
"to",
"interrupt",
"the",
"thread",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/Semaphore.java#L96-L117 |
68,925 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/AbstractFaceletCache.java | AbstractFaceletCache.setMemberFactories | protected void setMemberFactories(FaceletCache.MemberFactory<V> faceletFactory,
FaceletCache.MemberFactory<V> viewMetadataFaceletFactory,
FaceletCache.MemberFactory<V> compositeComponentMetadataFaceletFactory)
{
if (compositeCompon... | java | protected void setMemberFactories(FaceletCache.MemberFactory<V> faceletFactory,
FaceletCache.MemberFactory<V> viewMetadataFaceletFactory,
FaceletCache.MemberFactory<V> compositeComponentMetadataFaceletFactory)
{
if (compositeCompon... | [
"protected",
"void",
"setMemberFactories",
"(",
"FaceletCache",
".",
"MemberFactory",
"<",
"V",
">",
"faceletFactory",
",",
"FaceletCache",
".",
"MemberFactory",
"<",
"V",
">",
"viewMetadataFaceletFactory",
",",
"FaceletCache",
".",
"MemberFactory",
"<",
"V",
">",
... | Set the factories used for create Facelet instances.
@param faceletFactory
@param viewMetadataFaceletFactory
@param compositeComponentMetadataFaceletFactory | [
"Set",
"the",
"factories",
"used",
"for",
"create",
"Facelet",
"instances",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/AbstractFaceletCache.java#L78-L88 |
68,926 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/srt/SRTInputStream.java | SRTInputStream.close | @Override
public void close() throws IOException
{
if(this.in != null && this.inStream != null){
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {
logger.logp(Level.FINE, CLASS_NAME,"close", "close called->"+this);
}
this.in.close();
... | java | @Override
public void close() throws IOException
{
if(this.in != null && this.inStream != null){
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {
logger.logp(Level.FINE, CLASS_NAME,"close", "close called->"+this);
}
this.in.close();
... | [
"@",
"Override",
"public",
"void",
"close",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"this",
".",
"in",
"!=",
"null",
"&&",
"this",
".",
"inStream",
"!=",
"null",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&... | Following needed to support MultiRead | [
"Following",
"needed",
"to",
"support",
"MultiRead"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/srt/SRTInputStream.java#L84-L96 |
68,927 | OpenLiberty/open-liberty | dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerFactory.java | ZipFileContainerFactory.createContainer | @Override
public ArtifactContainer createContainer(File cacheDir, Object containerData) {
if ( !(containerData instanceof File) ) {
return null;
}
File fileContainerData = (File) containerData;
if ( !FileUtils.fileIsFile(fileContainerData) ) {
return null;
... | java | @Override
public ArtifactContainer createContainer(File cacheDir, Object containerData) {
if ( !(containerData instanceof File) ) {
return null;
}
File fileContainerData = (File) containerData;
if ( !FileUtils.fileIsFile(fileContainerData) ) {
return null;
... | [
"@",
"Override",
"public",
"ArtifactContainer",
"createContainer",
"(",
"File",
"cacheDir",
",",
"Object",
"containerData",
")",
"{",
"if",
"(",
"!",
"(",
"containerData",
"instanceof",
"File",
")",
")",
"{",
"return",
"null",
";",
"}",
"File",
"fileContainerD... | Attempt to create a root-of-roots zip file type container.
Anser null if the container data is not a file or is not a valid
zip file.
@return A new root-of-roots zip file type container. | [
"Attempt",
"to",
"create",
"a",
"root",
"-",
"of",
"-",
"roots",
"zip",
"file",
"type",
"container",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerFactory.java#L185-L201 |
68,928 | OpenLiberty/open-liberty | dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerFactory.java | ZipFileContainerFactory.createContainer | @Override
public ArtifactContainer createContainer(
File cacheDir,
ArtifactContainer enclosingContainer,
ArtifactEntry entryInEnclosingContainer,
Object containerData) {
if ( (containerData instanceof File) && FileUtils.fileIsFile((File) containerData) ) {
File f... | java | @Override
public ArtifactContainer createContainer(
File cacheDir,
ArtifactContainer enclosingContainer,
ArtifactEntry entryInEnclosingContainer,
Object containerData) {
if ( (containerData instanceof File) && FileUtils.fileIsFile((File) containerData) ) {
File f... | [
"@",
"Override",
"public",
"ArtifactContainer",
"createContainer",
"(",
"File",
"cacheDir",
",",
"ArtifactContainer",
"enclosingContainer",
",",
"ArtifactEntry",
"entryInEnclosingContainer",
",",
"Object",
"containerData",
")",
"{",
"if",
"(",
"(",
"containerData",
"ins... | Attempt to create an enclosed root zip file type container.
The entry from which the container is to be created must container
data for a zip file.
The container data, if supplied and a file, will be tested. Otherwise,
the supplied entry will be tested.
Answer null if the container data is a file but is not a zip f... | [
"Attempt",
"to",
"create",
"an",
"enclosed",
"root",
"zip",
"file",
"type",
"container",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerFactory.java#L218-L248 |
68,929 | OpenLiberty/open-liberty | dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerFactory.java | ZipFileContainerFactory.hasZipExtension | private static boolean hasZipExtension(String name) {
int nameLen = name.length();
// Need '.' plus at least three characters.
if ( nameLen < 4 ) {
return false;
}
// Need '.' plus at least six characters for ".spring".
if ( nameLen >= 7 ) {
if... | java | private static boolean hasZipExtension(String name) {
int nameLen = name.length();
// Need '.' plus at least three characters.
if ( nameLen < 4 ) {
return false;
}
// Need '.' plus at least six characters for ".spring".
if ( nameLen >= 7 ) {
if... | [
"private",
"static",
"boolean",
"hasZipExtension",
"(",
"String",
"name",
")",
"{",
"int",
"nameLen",
"=",
"name",
".",
"length",
"(",
")",
";",
"// Need '.' plus at least three characters.",
"if",
"(",
"nameLen",
"<",
"4",
")",
"{",
"return",
"false",
";",
... | Tell if a file name has a zip file type extension.
These are: "jar", "zip", "ear", "war", "rar", "eba", "esa",
"sar", and "spring".
See also the service property "handlesEntry".
@param name The file name to test.
@return True or false telling if the file has one of the
zip file type extensions. | [
"Tell",
"if",
"a",
"file",
"name",
"has",
"a",
"zip",
"file",
"type",
"extension",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerFactory.java#L282-L312 |
68,930 | OpenLiberty/open-liberty | dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerFactory.java | ZipFileContainerFactory.isZip | private static boolean isZip(ArtifactEntry artifactEntry) {
if ( !hasZipExtension( artifactEntry.getName() ) ) {
return false;
}
boolean validZip = false;
InputStream entryInputStream = null;
try {
entryInputStream = artifactEntry.getInputStream();
... | java | private static boolean isZip(ArtifactEntry artifactEntry) {
if ( !hasZipExtension( artifactEntry.getName() ) ) {
return false;
}
boolean validZip = false;
InputStream entryInputStream = null;
try {
entryInputStream = artifactEntry.getInputStream();
... | [
"private",
"static",
"boolean",
"isZip",
"(",
"ArtifactEntry",
"artifactEntry",
")",
"{",
"if",
"(",
"!",
"hasZipExtension",
"(",
"artifactEntry",
".",
"getName",
"(",
")",
")",
")",
"{",
"return",
"false",
";",
"}",
"boolean",
"validZip",
"=",
"false",
";... | Tell if an artifact entry is valid to be interpreted as a zip file
container.
The entry must have a valid zip file extension (see {@link #hasZipExtension}.
The entry must open as a {@link ZipInputStream}, and at least one entry
must be readable from that stream.
A zip stream is used instead of a zip file: Opening a ... | [
"Tell",
"if",
"an",
"artifact",
"entry",
"is",
"valid",
"to",
"be",
"interpreted",
"as",
"a",
"zip",
"file",
"container",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerFactory.java#L336-L375 |
68,931 | OpenLiberty/open-liberty | dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerFactory.java | ZipFileContainerFactory.getPhysicalPath | @SuppressWarnings("deprecation")
private static String getPhysicalPath(ArtifactEntry artifactEntry) {
String physicalPath = artifactEntry.getPhysicalPath();
if ( physicalPath != null ) {
return physicalPath;
}
String entryPath = artifactEntry.getPath();
String ro... | java | @SuppressWarnings("deprecation")
private static String getPhysicalPath(ArtifactEntry artifactEntry) {
String physicalPath = artifactEntry.getPhysicalPath();
if ( physicalPath != null ) {
return physicalPath;
}
String entryPath = artifactEntry.getPath();
String ro... | [
"@",
"SuppressWarnings",
"(",
"\"deprecation\"",
")",
"private",
"static",
"String",
"getPhysicalPath",
"(",
"ArtifactEntry",
"artifactEntry",
")",
"{",
"String",
"physicalPath",
"=",
"artifactEntry",
".",
"getPhysicalPath",
"(",
")",
";",
"if",
"(",
"physicalPath",... | Answer they physical path of an artifact entry.
If the entry has a physical path (for example, because it was
extracted), directly answer that path. In that case, the path
of the entry may be in a cache directory, and may not have a
relationship to enclosing containers physical path.
If the entry does not have a phy... | [
"Answer",
"they",
"physical",
"path",
"of",
"an",
"artifact",
"entry",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerFactory.java#L394-L416 |
68,932 | OpenLiberty/open-liberty | dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerFactory.java | ZipFileContainerFactory.isZip | @FFDCIgnore( { IOException.class, FileNotFoundException.class } )
private static boolean isZip(File file) {
if ( !hasZipExtension( file.getName() ) ) {
return false;
}
InputStream inputStream = null;
try {
inputStream = new FileInputStream(file); // throws F... | java | @FFDCIgnore( { IOException.class, FileNotFoundException.class } )
private static boolean isZip(File file) {
if ( !hasZipExtension( file.getName() ) ) {
return false;
}
InputStream inputStream = null;
try {
inputStream = new FileInputStream(file); // throws F... | [
"@",
"FFDCIgnore",
"(",
"{",
"IOException",
".",
"class",
",",
"FileNotFoundException",
".",
"class",
"}",
")",
"private",
"static",
"boolean",
"isZip",
"(",
"File",
"file",
")",
"{",
"if",
"(",
"!",
"hasZipExtension",
"(",
"file",
".",
"getName",
"(",
"... | Tell if a file is valid to used to create a zip file container.
The file must have a valid zip file extension (see {@link #hasZipExtension}.
The file must open as a {@link ZipInputStream}, and at least one entry
must be readable from that stream.
A zip stream is used instead of a zip file: Opening a zip file on the
... | [
"Tell",
"if",
"a",
"file",
"is",
"valid",
"to",
"used",
"to",
"create",
"a",
"zip",
"file",
"container",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerFactory.java#L434-L472 |
68,933 | OpenLiberty/open-liberty | dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/ifix/xml/UpdatedFile.java | UpdatedFile.fromNode | public static UpdatedFile fromNode(Node n) {
String id = n.getAttributes().getNamedItem("id") == null ? null : n.getAttributes().getNamedItem("id").getNodeValue();
long size = n.getAttributes().getNamedItem("size") == null ? null : Long.parseLong(n.getAttributes().getNamedItem("size").getNodeValue());
... | java | public static UpdatedFile fromNode(Node n) {
String id = n.getAttributes().getNamedItem("id") == null ? null : n.getAttributes().getNamedItem("id").getNodeValue();
long size = n.getAttributes().getNamedItem("size") == null ? null : Long.parseLong(n.getAttributes().getNamedItem("size").getNodeValue());
... | [
"public",
"static",
"UpdatedFile",
"fromNode",
"(",
"Node",
"n",
")",
"{",
"String",
"id",
"=",
"n",
".",
"getAttributes",
"(",
")",
".",
"getNamedItem",
"(",
"\"id\"",
")",
"==",
"null",
"?",
"null",
":",
"n",
".",
"getAttributes",
"(",
")",
".",
"g... | needs to support both hash and MD5hash as attributes | [
"needs",
"to",
"support",
"both",
"hash",
"and",
"MD5hash",
"as",
"attributes"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/ifix/xml/UpdatedFile.java#L17-L25 |
68,934 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca/src/com/ibm/ws/jca/service/JCAQuiesceListener.java | JCAQuiesceListener.serverStopping | @Override
public void serverStopping() {
BundleContext bundleContext = componentContext.getBundleContext();
Collection<ServiceReference<EndpointActivationService>> refs;
try {
refs = bundleContext.getServiceReferences(EndpointActivationService.class, null);
} catch (Inval... | java | @Override
public void serverStopping() {
BundleContext bundleContext = componentContext.getBundleContext();
Collection<ServiceReference<EndpointActivationService>> refs;
try {
refs = bundleContext.getServiceReferences(EndpointActivationService.class, null);
} catch (Inval... | [
"@",
"Override",
"public",
"void",
"serverStopping",
"(",
")",
"{",
"BundleContext",
"bundleContext",
"=",
"componentContext",
".",
"getBundleContext",
"(",
")",
";",
"Collection",
"<",
"ServiceReference",
"<",
"EndpointActivationService",
">",
">",
"refs",
";",
"... | Invoked when server is quiescing. Deactivate all endpoints. | [
"Invoked",
"when",
"server",
"is",
"quiescing",
".",
"Deactivate",
"all",
"endpoints",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/service/JCAQuiesceListener.java#L54-L77 |
68,935 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/filters/SubscriptionFilter.java | SubscriptionFilter.filterMatches | public boolean filterMatches(AbstractItem item)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "filterMatches", item);
/* Cast the incoming item to a PersistentStoreReferenceStream object. if it is not, an
* exception will be thrown and the match will fail */
... | java | public boolean filterMatches(AbstractItem item)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "filterMatches", item);
/* Cast the incoming item to a PersistentStoreReferenceStream object. if it is not, an
* exception will be thrown and the match will fail */
... | [
"public",
"boolean",
"filterMatches",
"(",
"AbstractItem",
"item",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"filterMatches\"",
",",... | Filter method. Checks whether the given item is a consumerDispatcher and matches the
one associated with this filter
@param item - The item on the itemstream
@return boolean - True if a match, false otherwise. | [
"Filter",
"method",
".",
"Checks",
"whether",
"the",
"given",
"item",
"is",
"a",
"consumerDispatcher",
"and",
"matches",
"the",
"one",
"associated",
"with",
"this",
"filter"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/filters/SubscriptionFilter.java#L68-L95 |
68,936 | OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.jsf.2.3/src/javax/faces/validator/BeanValidator.java | BeanValidator.createValidatorFactory | private ValidatorFactory createValidatorFactory(FacesContext context)
{
Map<String, Object> applicationMap = context.getExternalContext().getApplicationMap();
Object attr = applicationMap.get(VALIDATOR_FACTORY_KEY);
if (attr instanceof ValidatorFactory)
{
return (Validato... | java | private ValidatorFactory createValidatorFactory(FacesContext context)
{
Map<String, Object> applicationMap = context.getExternalContext().getApplicationMap();
Object attr = applicationMap.get(VALIDATOR_FACTORY_KEY);
if (attr instanceof ValidatorFactory)
{
return (Validato... | [
"private",
"ValidatorFactory",
"createValidatorFactory",
"(",
"FacesContext",
"context",
")",
"{",
"Map",
"<",
"String",
",",
"Object",
">",
"applicationMap",
"=",
"context",
".",
"getExternalContext",
"(",
")",
".",
"getApplicationMap",
"(",
")",
";",
"Object",
... | This method creates ValidatorFactory instances or retrieves them from the container.
Once created, ValidatorFactory instances are stored in the container under the key
VALIDATOR_FACTORY_KEY for performance.
@param context The FacesContext.
@return The ValidatorFactory instance.
@throws FacesException if no ValidatorF... | [
"This",
"method",
"creates",
"ValidatorFactory",
"instances",
"or",
"retrieves",
"them",
"from",
"the",
"container",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.3/src/javax/faces/validator/BeanValidator.java#L327-L351 |
68,937 | OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.jsf.2.3/src/javax/faces/validator/BeanValidator.java | BeanValidator.postSetValidationGroups | private void postSetValidationGroups()
{
if (this.validationGroups == null || this.validationGroups.matches(EMPTY_VALIDATION_GROUPS_PATTERN))
{
this.validationGroupsArray = DEFAULT_VALIDATION_GROUPS_ARRAY;
}
else
{
String[] classes = this.validationGro... | java | private void postSetValidationGroups()
{
if (this.validationGroups == null || this.validationGroups.matches(EMPTY_VALIDATION_GROUPS_PATTERN))
{
this.validationGroupsArray = DEFAULT_VALIDATION_GROUPS_ARRAY;
}
else
{
String[] classes = this.validationGro... | [
"private",
"void",
"postSetValidationGroups",
"(",
")",
"{",
"if",
"(",
"this",
".",
"validationGroups",
"==",
"null",
"||",
"this",
".",
"validationGroups",
".",
"matches",
"(",
"EMPTY_VALIDATION_GROUPS_PATTERN",
")",
")",
"{",
"this",
".",
"validationGroupsArray... | Fully initialize the validation groups if needed.
If no validation groups are specified, the Default validation group is used. | [
"Fully",
"initialize",
"the",
"validation",
"groups",
"if",
"needed",
".",
"If",
"no",
"validation",
"groups",
"are",
"specified",
"the",
"Default",
"validation",
"group",
"is",
"used",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.3/src/javax/faces/validator/BeanValidator.java#L357-L421 |
68,938 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSEnum.java | JSEnum.setEnumerators | public void setEnumerators(String[] val) {
enumerators = val;
enumeratorCount = (enumerators != null) ? enumerators.length : 0;
} | java | public void setEnumerators(String[] val) {
enumerators = val;
enumeratorCount = (enumerators != null) ? enumerators.length : 0;
} | [
"public",
"void",
"setEnumerators",
"(",
"String",
"[",
"]",
"val",
")",
"{",
"enumerators",
"=",
"val",
";",
"enumeratorCount",
"=",
"(",
"enumerators",
"!=",
"null",
")",
"?",
"enumerators",
".",
"length",
":",
"0",
";",
"}"
] | Set the enumerators in the order of their assigned codes | [
"Set",
"the",
"enumerators",
"in",
"the",
"order",
"of",
"their",
"assigned",
"codes"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSEnum.java#L61-L64 |
68,939 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSEnum.java | JSEnum.encodeType | public void encodeType(byte[] frame, int[] limits) {
setByte(frame, limits, (byte)ENUM);
setCount(frame, limits, enumeratorCount);
} | java | public void encodeType(byte[] frame, int[] limits) {
setByte(frame, limits, (byte)ENUM);
setCount(frame, limits, enumeratorCount);
} | [
"public",
"void",
"encodeType",
"(",
"byte",
"[",
"]",
"frame",
",",
"int",
"[",
"]",
"limits",
")",
"{",
"setByte",
"(",
"frame",
",",
"limits",
",",
"(",
"byte",
")",
"ENUM",
")",
";",
"setCount",
"(",
"frame",
",",
"limits",
",",
"enumeratorCount"... | propagate the enumeratorCount. | [
"propagate",
"the",
"enumeratorCount",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSEnum.java#L131-L134 |
68,940 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSEnum.java | JSEnum.format | public void format(StringBuffer fmt, Set done, Set todo, int indent) {
formatName(fmt, indent);
fmt.append("Enum");
if (enumerators != null) {
fmt.append("{{");
String delim = "";
for (int i = 0; i < enumerators.length; i++) {
fmt.append(delim).append(enumerators[i]);
delim... | java | public void format(StringBuffer fmt, Set done, Set todo, int indent) {
formatName(fmt, indent);
fmt.append("Enum");
if (enumerators != null) {
fmt.append("{{");
String delim = "";
for (int i = 0; i < enumerators.length; i++) {
fmt.append(delim).append(enumerators[i]);
delim... | [
"public",
"void",
"format",
"(",
"StringBuffer",
"fmt",
",",
"Set",
"done",
",",
"Set",
"todo",
",",
"int",
"indent",
")",
"{",
"formatName",
"(",
"fmt",
",",
"indent",
")",
";",
"fmt",
".",
"append",
"(",
"\"Enum\"",
")",
";",
"if",
"(",
"enumerator... | Format for printing. | [
"Format",
"for",
"printing",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSEnum.java#L137-L149 |
68,941 | OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/validator/BeanValidator.java | _ValueReferenceResolver.resolve | public static _ValueReferenceWrapper resolve(ValueExpression valueExpression, final ELContext elCtx)
{
_ValueReferenceResolver resolver = new _ValueReferenceResolver(elCtx.getELResolver());
ELContext elCtxDecorator = new _ELContextDecorator(elCtx, resolver);
valueExpression.getValue... | java | public static _ValueReferenceWrapper resolve(ValueExpression valueExpression, final ELContext elCtx)
{
_ValueReferenceResolver resolver = new _ValueReferenceResolver(elCtx.getELResolver());
ELContext elCtxDecorator = new _ELContextDecorator(elCtx, resolver);
valueExpression.getValue... | [
"public",
"static",
"_ValueReferenceWrapper",
"resolve",
"(",
"ValueExpression",
"valueExpression",
",",
"final",
"ELContext",
"elCtx",
")",
"{",
"_ValueReferenceResolver",
"resolver",
"=",
"new",
"_ValueReferenceResolver",
"(",
"elCtx",
".",
"getELResolver",
"(",
")",
... | This method can be used to extract the ValueReferenceWrapper from the given ValueExpression.
@param valueExpression The ValueExpression to resolve.
@param elCtx The ELContext, needed to parse and execute the expression.
@return The ValueReferenceWrapper. | [
"This",
"method",
"can",
"be",
"used",
"to",
"extract",
"the",
"ValueReferenceWrapper",
"from",
"the",
"given",
"ValueExpression",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/validator/BeanValidator.java#L592-L607 |
68,942 | OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/validator/BeanValidator.java | _ValueReferenceResolver.getValue | @Override
public Object getValue(final ELContext context, final Object base, final Object property)
{
lastObject = new _ValueReferenceWrapper(base, property);
return resolver.getValue(context, base, property);
} | java | @Override
public Object getValue(final ELContext context, final Object base, final Object property)
{
lastObject = new _ValueReferenceWrapper(base, property);
return resolver.getValue(context, base, property);
} | [
"@",
"Override",
"public",
"Object",
"getValue",
"(",
"final",
"ELContext",
"context",
",",
"final",
"Object",
"base",
",",
"final",
"Object",
"property",
")",
"{",
"lastObject",
"=",
"new",
"_ValueReferenceWrapper",
"(",
"base",
",",
"property",
")",
";",
"... | This method is the only one that matters. It keeps track of the objects in the EL expression.
It creates a new ValueReferenceWrapper and assigns it to lastObject.
@param context The ELContext.
@param base The base object, may be null.
@param property The property, may be null.
@return The resolved value | [
"This",
"method",
"is",
"the",
"only",
"one",
"that",
"matters",
".",
"It",
"keeps",
"track",
"of",
"the",
"objects",
"in",
"the",
"EL",
"expression",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/validator/BeanValidator.java#L619-L624 |
68,943 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/AsyncMethodWrapper.java | AsyncMethodWrapper.isApplicationException | private boolean isApplicationException(Throwable ex, EJBMethodInfoImpl methodInfo) {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "isApplicationException : " + ex.getClass().getName() + ", " + methodInfo);
// d660... | java | private boolean isApplicationException(Throwable ex, EJBMethodInfoImpl methodInfo) {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "isApplicationException : " + ex.getClass().getName() + ", " + methodInfo);
// d660... | [
"private",
"boolean",
"isApplicationException",
"(",
"Throwable",
"ex",
",",
"EJBMethodInfoImpl",
"methodInfo",
")",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"isTraceOn",
"&&",
"tc",
".",
... | F743-761 | [
"F743",
"-",
"761"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/AsyncMethodWrapper.java#L283-L332 |
68,944 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaDynamicDestinationEndpointActivation.java | SibRaDynamicDestinationEndpointActivation.addMessagingEngine | synchronized protected void addMessagingEngine(
final JsMessagingEngine messagingEngine) {
final String methodName = "addMessagingEngine";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName, messagingEngine);
}
... | java | synchronized protected void addMessagingEngine(
final JsMessagingEngine messagingEngine) {
final String methodName = "addMessagingEngine";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName, messagingEngine);
}
... | [
"synchronized",
"protected",
"void",
"addMessagingEngine",
"(",
"final",
"JsMessagingEngine",
"messagingEngine",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"addMessagingEngine\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TR... | Connects to the given messaging engine. Registers a destination listener
and creates listeners for each of the current destinations.
@param messagingEngine
the messaging engine to connect to | [
"Connects",
"to",
"the",
"given",
"messaging",
"engine",
".",
"Registers",
"a",
"destination",
"listener",
"and",
"creates",
"listeners",
"for",
"each",
"of",
"the",
"current",
"destinations",
"."
] | 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/SibRaDynamicDestinationEndpointActivation.java#L130-L224 |
68,945 | OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/notification/ClientNotificationArea.java | ClientNotificationArea.addNotfication | public void addNotfication(Notification notification) {
Object source = notification.getSource();
NotificationRecord nr;
if (source instanceof ObjectName) {
nr = new NotificationRecord(notification, (ObjectName) source);
} else {
nr = new NotificationRecord(notifi... | java | public void addNotfication(Notification notification) {
Object source = notification.getSource();
NotificationRecord nr;
if (source instanceof ObjectName) {
nr = new NotificationRecord(notification, (ObjectName) source);
} else {
nr = new NotificationRecord(notifi... | [
"public",
"void",
"addNotfication",
"(",
"Notification",
"notification",
")",
"{",
"Object",
"source",
"=",
"notification",
".",
"getSource",
"(",
")",
";",
"NotificationRecord",
"nr",
";",
"if",
"(",
"source",
"instanceof",
"ObjectName",
")",
"{",
"nr",
"=",
... | This method will be called by the NotificationListener once the MBeanServer pushes a notification. | [
"This",
"method",
"will",
"be",
"called",
"by",
"the",
"NotificationListener",
"once",
"the",
"MBeanServer",
"pushes",
"a",
"notification",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/notification/ClientNotificationArea.java#L146-L155 |
68,946 | OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/notification/ClientNotificationArea.java | ClientNotificationArea.addClientNotificationListener | public void addClientNotificationListener(RESTRequest request, NotificationRegistration notificationRegistration, JSONConverter converter) {
String objectNameStr = notificationRegistration.objectName.getCanonicalName();
NotificationTargetInformation nti = toNotificationTargetInformation(request, object... | java | public void addClientNotificationListener(RESTRequest request, NotificationRegistration notificationRegistration, JSONConverter converter) {
String objectNameStr = notificationRegistration.objectName.getCanonicalName();
NotificationTargetInformation nti = toNotificationTargetInformation(request, object... | [
"public",
"void",
"addClientNotificationListener",
"(",
"RESTRequest",
"request",
",",
"NotificationRegistration",
"notificationRegistration",
",",
"JSONConverter",
"converter",
")",
"{",
"String",
"objectNameStr",
"=",
"notificationRegistration",
".",
"objectName",
".",
"g... | Fetch or create a new listener for the given object name | [
"Fetch",
"or",
"create",
"a",
"new",
"listener",
"for",
"the",
"given",
"object",
"name"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/notification/ClientNotificationArea.java#L225-L260 |
68,947 | OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/notification/ClientNotificationArea.java | ClientNotificationArea.updateClientNotificationListener | public void updateClientNotificationListener(RESTRequest request, String objectNameStr, NotificationFilter[] filters, JSONConverter converter) {
NotificationTargetInformation nti = toNotificationTargetInformation(request, objectNameStr);
ClientNotificationListener listener = listeners.get(nti);
... | java | public void updateClientNotificationListener(RESTRequest request, String objectNameStr, NotificationFilter[] filters, JSONConverter converter) {
NotificationTargetInformation nti = toNotificationTargetInformation(request, objectNameStr);
ClientNotificationListener listener = listeners.get(nti);
... | [
"public",
"void",
"updateClientNotificationListener",
"(",
"RESTRequest",
"request",
",",
"String",
"objectNameStr",
",",
"NotificationFilter",
"[",
"]",
"filters",
",",
"JSONConverter",
"converter",
")",
"{",
"NotificationTargetInformation",
"nti",
"=",
"toNotificationTa... | Update the listener for the given object name with the provided filters | [
"Update",
"the",
"listener",
"for",
"the",
"given",
"object",
"name",
"with",
"the",
"provided",
"filters"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/notification/ClientNotificationArea.java#L265-L276 |
68,948 | OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/notification/ClientNotificationArea.java | ClientNotificationArea.removeObject | private Object removeObject(Integer key) {
if (key == null) {
return null;
}
return objectLibrary.remove(key);
} | java | private Object removeObject(Integer key) {
if (key == null) {
return null;
}
return objectLibrary.remove(key);
} | [
"private",
"Object",
"removeObject",
"(",
"Integer",
"key",
")",
"{",
"if",
"(",
"key",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"objectLibrary",
".",
"remove",
"(",
"key",
")",
";",
"}"
] | Only to be used by removal coming from direct-http calls, because calls from the jmx client
can still reference this key for other notifications. | [
"Only",
"to",
"be",
"used",
"by",
"removal",
"coming",
"from",
"direct",
"-",
"http",
"calls",
"because",
"calls",
"from",
"the",
"jmx",
"client",
"can",
"still",
"reference",
"this",
"key",
"for",
"other",
"notifications",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/notification/ClientNotificationArea.java#L309-L314 |
68,949 | OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/notification/ClientNotificationArea.java | ClientNotificationArea.removeClientNotificationListener | public void removeClientNotificationListener(RESTRequest request, ObjectName name) {
NotificationTargetInformation nti = toNotificationTargetInformation(request, name.getCanonicalName());
// Remove locally
ClientNotificationListener listener = listeners.remove(nti);
// Check whether th... | java | public void removeClientNotificationListener(RESTRequest request, ObjectName name) {
NotificationTargetInformation nti = toNotificationTargetInformation(request, name.getCanonicalName());
// Remove locally
ClientNotificationListener listener = listeners.remove(nti);
// Check whether th... | [
"public",
"void",
"removeClientNotificationListener",
"(",
"RESTRequest",
"request",
",",
"ObjectName",
"name",
")",
"{",
"NotificationTargetInformation",
"nti",
"=",
"toNotificationTargetInformation",
"(",
"request",
",",
"name",
".",
"getCanonicalName",
"(",
")",
")",... | Remove the given NotificationListener | [
"Remove",
"the",
"given",
"NotificationListener"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/notification/ClientNotificationArea.java#L354-L369 |
68,950 | OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/notification/ClientNotificationArea.java | ClientNotificationArea.addServerNotificationListener | public void addServerNotificationListener(RESTRequest request, ServerNotificationRegistration serverNotificationRegistration, JSONConverter converter) {
NotificationTargetInformation nti = toNotificationTargetInformation(request, serverNotificationRegistration.objectName.getCanonicalName());
//Fetch th... | java | public void addServerNotificationListener(RESTRequest request, ServerNotificationRegistration serverNotificationRegistration, JSONConverter converter) {
NotificationTargetInformation nti = toNotificationTargetInformation(request, serverNotificationRegistration.objectName.getCanonicalName());
//Fetch th... | [
"public",
"void",
"addServerNotificationListener",
"(",
"RESTRequest",
"request",
",",
"ServerNotificationRegistration",
"serverNotificationRegistration",
",",
"JSONConverter",
"converter",
")",
"{",
"NotificationTargetInformation",
"nti",
"=",
"toNotificationTargetInformation",
... | Add the server notification to our internal list so we can cleanup afterwards | [
"Add",
"the",
"server",
"notification",
"to",
"our",
"internal",
"list",
"so",
"we",
"can",
"cleanup",
"afterwards"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/notification/ClientNotificationArea.java#L497-L542 |
68,951 | OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/notification/ClientNotificationArea.java | ClientNotificationArea.remoteClientRegistrations | public synchronized void remoteClientRegistrations(RESTRequest request) {
Iterator<Entry<NotificationTargetInformation, ClientNotificationListener>> clientListeners = listeners.entrySet().iterator();
try {
while (clientListeners.hasNext()) {
Entry<NotificationTargetInformati... | java | public synchronized void remoteClientRegistrations(RESTRequest request) {
Iterator<Entry<NotificationTargetInformation, ClientNotificationListener>> clientListeners = listeners.entrySet().iterator();
try {
while (clientListeners.hasNext()) {
Entry<NotificationTargetInformati... | [
"public",
"synchronized",
"void",
"remoteClientRegistrations",
"(",
"RESTRequest",
"request",
")",
"{",
"Iterator",
"<",
"Entry",
"<",
"NotificationTargetInformation",
",",
"ClientNotificationListener",
">",
">",
"clientListeners",
"=",
"listeners",
".",
"entrySet",
"("... | Remove all the client notifications | [
"Remove",
"all",
"the",
"client",
"notifications"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/notification/ClientNotificationArea.java#L547-L585 |
68,952 | OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/notification/ClientNotificationArea.java | ClientNotificationArea.remoteServerRegistrations | public synchronized void remoteServerRegistrations(RESTRequest request) {
Iterator<Entry<NotificationTargetInformation, List<ServerNotification>>> serverNotificationsIter = serverNotifications.entrySet().iterator();
while (serverNotificationsIter.hasNext()) {
Entry<NotificationTargetInformat... | java | public synchronized void remoteServerRegistrations(RESTRequest request) {
Iterator<Entry<NotificationTargetInformation, List<ServerNotification>>> serverNotificationsIter = serverNotifications.entrySet().iterator();
while (serverNotificationsIter.hasNext()) {
Entry<NotificationTargetInformat... | [
"public",
"synchronized",
"void",
"remoteServerRegistrations",
"(",
"RESTRequest",
"request",
")",
"{",
"Iterator",
"<",
"Entry",
"<",
"NotificationTargetInformation",
",",
"List",
"<",
"ServerNotification",
">",
">",
">",
"serverNotificationsIter",
"=",
"serverNotifica... | Remove all the server notifications | [
"Remove",
"all",
"the",
"server",
"notifications"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/notification/ClientNotificationArea.java#L590-L632 |
68,953 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/handlers/LogRecordTextHandler.java | LogRecordTextHandler.copyHeader | public void copyHeader(LogRepositoryWriter writer) throws IllegalArgumentException {
if (writer == null) {
throw new IllegalArgumentException("Parameter writer can't be null");
}
writer.setHeader(headerBytes);
} | java | public void copyHeader(LogRepositoryWriter writer) throws IllegalArgumentException {
if (writer == null) {
throw new IllegalArgumentException("Parameter writer can't be null");
}
writer.setHeader(headerBytes);
} | [
"public",
"void",
"copyHeader",
"(",
"LogRepositoryWriter",
"writer",
")",
"throws",
"IllegalArgumentException",
"{",
"if",
"(",
"writer",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Parameter writer can't be null\"",
")",
";",
"}",
"... | Copy header into provided writer
@param writer repository writer to verify
@throws IllegalArgumentException if writer is 'null' | [
"Copy",
"header",
"into",
"provided",
"writer"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/handlers/LogRecordTextHandler.java#L110-L115 |
68,954 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsApiHdrsImpl.java | JsApiHdrsImpl.getCcsid | final Integer getCcsid() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getCcsid");
Integer value = (Integer) jmo.getPayloadPart().getField(JsPayloadAccess.CCSID_DATA);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | java | final Integer getCcsid() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getCcsid");
Integer value = (Integer) jmo.getPayloadPart().getField(JsPayloadAccess.CCSID_DATA);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | [
"final",
"Integer",
"getCcsid",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getCcsid\"",
")",
";",
"Integer",
... | Get the contents of the ccsid field from the payload part.
d395685
@return Integer The value of the CharacterSetID for the message payload. | [
"Get",
"the",
"contents",
"of",
"the",
"ccsid",
"field",
"from",
"the",
"payload",
"part",
".",
"d395685"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsApiHdrsImpl.java#L1441-L1450 |
68,955 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsApiHdrsImpl.java | JsApiHdrsImpl.getEncoding | final Integer getEncoding() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getEncoding");
Integer value = (Integer) jmo.getPayloadPart().getField(JsPayloadAccess.ENCODING_DATA);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled... | java | final Integer getEncoding() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getEncoding");
Integer value = (Integer) jmo.getPayloadPart().getField(JsPayloadAccess.ENCODING_DATA);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled... | [
"final",
"Integer",
"getEncoding",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getEncoding\"",
")",
";",
"Integ... | Get the contents of the encoding field from the payload part.
d395685
@return Integer The value of the Encoding (for MQ) for the message payload. | [
"Get",
"the",
"contents",
"of",
"the",
"encoding",
"field",
"from",
"the",
"payload",
"part",
".",
"d395685"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsApiHdrsImpl.java#L1458-L1467 |
68,956 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsApiHdrsImpl.java | JsApiHdrsImpl.setCcsid | final void setCcsid(Object value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setCcsid", value);
// If the value is null, then clear the field
if (value == null) {
jmo.getPayloadPart().setField(JsPayloadAccess.CCSID, JsPayloa... | java | final void setCcsid(Object value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setCcsid", value);
// If the value is null, then clear the field
if (value == null) {
jmo.getPayloadPart().setField(JsPayloadAccess.CCSID, JsPayloa... | [
"final",
"void",
"setCcsid",
"(",
"Object",
"value",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"setCcsid\"",
",",
... | Set the contents of the ccsid field in the message payload part.
d395685
@param value the Object value of the CharacterSetID to be set into the ccsid field | [
"Set",
"the",
"contents",
"of",
"the",
"ccsid",
"field",
"in",
"the",
"message",
"payload",
"part",
".",
"d395685"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsApiHdrsImpl.java#L1475-L1508 |
68,957 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsApiHdrsImpl.java | JsApiHdrsImpl.setEncoding | final void setEncoding(Object value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setEncoding", value);
// If the value is null or unsuitable, then clear the field
if ((value == null) || !(value instanceof Integer)) {
jmo.getP... | java | final void setEncoding(Object value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setEncoding", value);
// If the value is null or unsuitable, then clear the field
if ((value == null) || !(value instanceof Integer)) {
jmo.getP... | [
"final",
"void",
"setEncoding",
"(",
"Object",
"value",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"setEncoding\"",
... | Set the contents of the encoding field in the message payload part.
d395685
@param value the Object value of the Encoding (for MQ) be set into the encoding field | [
"Set",
"the",
"contents",
"of",
"the",
"encoding",
"field",
"in",
"the",
"message",
"payload",
"part",
".",
"d395685"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsApiHdrsImpl.java#L1516-L1531 |
68,958 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RecoveryManager.java | RecoveryManager.preShutdown | public void preShutdown(boolean transactionsLeft) throws Exception /* @PK31789C */
{
if (tc.isEntryEnabled())
Tr.entry(tc, "preShutdown", transactionsLeft);
try {
// Terminate partner log activity
getPartnerLogTable().terminate(); // 172471
// If the... | java | public void preShutdown(boolean transactionsLeft) throws Exception /* @PK31789C */
{
if (tc.isEntryEnabled())
Tr.entry(tc, "preShutdown", transactionsLeft);
try {
// Terminate partner log activity
getPartnerLogTable().terminate(); // 172471
// If the... | [
"public",
"void",
"preShutdown",
"(",
"boolean",
"transactionsLeft",
")",
"throws",
"Exception",
"/* @PK31789C */",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"preShutdown\"",
",",
"transactionsLeft",
")",... | Informs the RecoveryManager that the transaction service is being shut
down.
The shutdown method can be driven in one of two ways:-
1. Real server shutdown. The TxServiceImpl.destroy method runs through
all its FailureScopeControllers and calls shutdown on them. This in
turn directs the associated RecoveryManagers to... | [
"Informs",
"the",
"RecoveryManager",
"that",
"the",
"transaction",
"service",
"is",
"being",
"shut",
"down",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RecoveryManager.java#L481-L571 |
68,959 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RecoveryManager.java | RecoveryManager.updateTranLogServiceData | protected void updateTranLogServiceData() throws Exception {
if (tc.isEntryEnabled())
Tr.entry(tc, "updateTranLogServiceData");
try {
//
// Check we have a recoverableUnit and three sections to add the data.
// On recovery we check that all service data s... | java | protected void updateTranLogServiceData() throws Exception {
if (tc.isEntryEnabled())
Tr.entry(tc, "updateTranLogServiceData");
try {
//
// Check we have a recoverableUnit and three sections to add the data.
// On recovery we check that all service data s... | [
"protected",
"void",
"updateTranLogServiceData",
"(",
")",
"throws",
"Exception",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"updateTranLogServiceData\"",
")",
";",
"try",
"{",
"//",
"// Check we have a re... | Update service data in the tran log files | [
"Update",
"service",
"data",
"in",
"the",
"tran",
"log",
"files"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RecoveryManager.java#L1012-L1044 |
68,960 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RecoveryManager.java | RecoveryManager.updatePartnerServiceData | protected void updatePartnerServiceData() throws Exception {
if (tc.isEntryEnabled())
Tr.entry(tc, "updatePartnerServiceData");
try {
//
// Check we have a recoverableUnit and three sections to add the data.
// On recovery we check that all service data s... | java | protected void updatePartnerServiceData() throws Exception {
if (tc.isEntryEnabled())
Tr.entry(tc, "updatePartnerServiceData");
try {
//
// Check we have a recoverableUnit and three sections to add the data.
// On recovery we check that all service data s... | [
"protected",
"void",
"updatePartnerServiceData",
"(",
")",
"throws",
"Exception",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"updatePartnerServiceData\"",
")",
";",
"try",
"{",
"//",
"// Check we have a re... | Update service data in the partner log files | [
"Update",
"service",
"data",
"in",
"the",
"partner",
"log",
"files"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RecoveryManager.java#L1050-L1101 |
68,961 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RecoveryManager.java | RecoveryManager.waitForRecoveryCompletion | public void waitForRecoveryCompletion() {
if (tc.isEntryEnabled())
Tr.entry(tc, "waitForRecoveryCompletion");
if (!_recoveryCompleted) {
try {
if (tc.isEventEnabled())
Tr.event(tc, "starting to wait for recovery completion");
... | java | public void waitForRecoveryCompletion() {
if (tc.isEntryEnabled())
Tr.entry(tc, "waitForRecoveryCompletion");
if (!_recoveryCompleted) {
try {
if (tc.isEventEnabled())
Tr.event(tc, "starting to wait for recovery completion");
... | [
"public",
"void",
"waitForRecoveryCompletion",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"waitForRecoveryCompletion\"",
")",
";",
"if",
"(",
"!",
"_recoveryCompleted",
")",
"{",
"try",
"{",
... | Blocks the current thread until initial recovery has completed. | [
"Blocks",
"the",
"current",
"thread",
"until",
"initial",
"recovery",
"has",
"completed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RecoveryManager.java#L1175-L1197 |
68,962 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RecoveryManager.java | RecoveryManager.recoveryComplete | public void recoveryComplete() /* @LIDB3187C */
{
if (tc.isEntryEnabled())
Tr.entry(tc, "recoveryComplete");
if (!_recoveryCompleted) {
_recoveryCompleted = true;
_recoveryInProgress.post();
}
// Check for null currently required as z/OS creates ... | java | public void recoveryComplete() /* @LIDB3187C */
{
if (tc.isEntryEnabled())
Tr.entry(tc, "recoveryComplete");
if (!_recoveryCompleted) {
_recoveryCompleted = true;
_recoveryInProgress.post();
}
// Check for null currently required as z/OS creates ... | [
"public",
"void",
"recoveryComplete",
"(",
")",
"/* @LIDB3187C */",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"recoveryComplete\"",
")",
";",
"if",
"(",
"!",
"_recoveryCompleted",
")",
"{",
"_recovery... | Marks recovery as completed and signals the recovery director to this effect. | [
"Marks",
"recovery",
"as",
"completed",
"and",
"signals",
"the",
"recovery",
"director",
"to",
"this",
"effect",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RecoveryManager.java#L1202-L1223 |
68,963 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RecoveryManager.java | RecoveryManager.shutdownInProgress | public boolean shutdownInProgress() /* @LIDB3187C */
{
synchronized (_recoveryMonitor) {
if (_shutdownInProgress) {
// Put out a message stating the we are stopping recovery processing. Since this method can
// be called a number of times in succession (to allow n... | java | public boolean shutdownInProgress() /* @LIDB3187C */
{
synchronized (_recoveryMonitor) {
if (_shutdownInProgress) {
// Put out a message stating the we are stopping recovery processing. Since this method can
// be called a number of times in succession (to allow n... | [
"public",
"boolean",
"shutdownInProgress",
"(",
")",
"/* @LIDB3187C */",
"{",
"synchronized",
"(",
"_recoveryMonitor",
")",
"{",
"if",
"(",
"_shutdownInProgress",
")",
"{",
"// Put out a message stating the we are stopping recovery processing. Since this method can",
"// be calle... | examine the boolean return value and not proceed with recovery if its true. | [
"examine",
"the",
"boolean",
"return",
"value",
"and",
"not",
"proceed",
"with",
"recovery",
"if",
"its",
"true",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RecoveryManager.java#L1273-L1293 |
68,964 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RecoveryManager.java | RecoveryManager.getRecoveringTransactions | protected TransactionImpl[] getRecoveringTransactions() {
TransactionImpl[] recoveredTransactions = new TransactionImpl[_recoveringTransactions.size()];
_recoveringTransactions.toArray(recoveredTransactions);
return recoveredTransactions;
} | java | protected TransactionImpl[] getRecoveringTransactions() {
TransactionImpl[] recoveredTransactions = new TransactionImpl[_recoveringTransactions.size()];
_recoveringTransactions.toArray(recoveredTransactions);
return recoveredTransactions;
} | [
"protected",
"TransactionImpl",
"[",
"]",
"getRecoveringTransactions",
"(",
")",
"{",
"TransactionImpl",
"[",
"]",
"recoveredTransactions",
"=",
"new",
"TransactionImpl",
"[",
"_recoveringTransactions",
".",
"size",
"(",
")",
"]",
";",
"_recoveringTransactions",
".",
... | This method should only be called from the "recover" thread else ConcurretModificationException may arise | [
"This",
"method",
"should",
"only",
"be",
"called",
"from",
"the",
"recover",
"thread",
"else",
"ConcurretModificationException",
"may",
"arise"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RecoveryManager.java#L1559-L1563 |
68,965 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RecoveryManager.java | RecoveryManager.closeLogs | protected void closeLogs(boolean closeLeaseLog) {
if (tc.isEntryEnabled())
Tr.entry(tc, "closeLogs", new Object[] { this, closeLeaseLog });
if ((_tranLog != null) && (_tranLog instanceof DistributedRecoveryLog)) {
try {
((DistributedRecoveryLog) _tranLog).closeLo... | java | protected void closeLogs(boolean closeLeaseLog) {
if (tc.isEntryEnabled())
Tr.entry(tc, "closeLogs", new Object[] { this, closeLeaseLog });
if ((_tranLog != null) && (_tranLog instanceof DistributedRecoveryLog)) {
try {
((DistributedRecoveryLog) _tranLog).closeLo... | [
"protected",
"void",
"closeLogs",
"(",
"boolean",
"closeLeaseLog",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"closeLogs\"",
",",
"new",
"Object",
"[",
"]",
"{",
"this",
",",
"closeLeaseLog",
... | Close the loggs without any keypoint - to be called on a failure to leave
the logs alone and ensure distributed shutdown code does not update them.
The closeLeaseLog parameter will be false in the case that we have determined that a peer is
recovering the server's logs.
@param closeLeaseLog is true if we should proce... | [
"Close",
"the",
"loggs",
"without",
"any",
"keypoint",
"-",
"to",
"be",
"called",
"on",
"a",
"failure",
"to",
"leave",
"the",
"logs",
"alone",
"and",
"ensure",
"distributed",
"shutdown",
"code",
"does",
"not",
"update",
"them",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RecoveryManager.java#L1624-L1657 |
68,966 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RecoveryManager.java | RecoveryManager.registerTransaction | public void registerTransaction(TransactionImpl tran) {
if (tc.isEntryEnabled())
Tr.entry(tc, "registerTransaction", new Object[] { this, tran });
_recoveringTransactions.add(tran);
if (tc.isEntryEnabled())
Tr.exit(tc, "registerTransaction", _recoveringTransactions.size... | java | public void registerTransaction(TransactionImpl tran) {
if (tc.isEntryEnabled())
Tr.entry(tc, "registerTransaction", new Object[] { this, tran });
_recoveringTransactions.add(tran);
if (tc.isEntryEnabled())
Tr.exit(tc, "registerTransaction", _recoveringTransactions.size... | [
"public",
"void",
"registerTransaction",
"(",
"TransactionImpl",
"tran",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"registerTransaction\"",
",",
"new",
"Object",
"[",
"]",
"{",
"this",
",",
"tr... | Registers a recovered transactions existance. This method is triggered from
the FailureScopeController.registerTransaction for all transactions that
have been created during a recovery process.
@param tran The transaction reference object. | [
"Registers",
"a",
"recovered",
"transactions",
"existance",
".",
"This",
"method",
"is",
"triggered",
"from",
"the",
"FailureScopeController",
".",
"registerTransaction",
"for",
"all",
"transactions",
"that",
"have",
"been",
"created",
"during",
"a",
"recovery",
"pr... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RecoveryManager.java#L2093-L2101 |
68,967 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RecoveryManager.java | RecoveryManager.deregisterTransaction | public void deregisterTransaction(TransactionImpl tran) {
if (tc.isEntryEnabled())
Tr.entry(tc, "deregisterTransaction", new Object[] { this, tran });
_recoveringTransactions.remove(tran);
if (tc.isEntryEnabled())
Tr.exit(tc, "deregisterTransaction", _recoveringTransact... | java | public void deregisterTransaction(TransactionImpl tran) {
if (tc.isEntryEnabled())
Tr.entry(tc, "deregisterTransaction", new Object[] { this, tran });
_recoveringTransactions.remove(tran);
if (tc.isEntryEnabled())
Tr.exit(tc, "deregisterTransaction", _recoveringTransact... | [
"public",
"void",
"deregisterTransaction",
"(",
"TransactionImpl",
"tran",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"deregisterTransaction\"",
",",
"new",
"Object",
"[",
"]",
"{",
"this",
",",
... | Deregisters a recovered transactions existance. This method is triggered from
the FailureScopeController.deregisterTransaction for recovered transactions.
@param tran The transaction reference object. | [
"Deregisters",
"a",
"recovered",
"transactions",
"existance",
".",
"This",
"method",
"is",
"triggered",
"from",
"the",
"FailureScopeController",
".",
"deregisterTransaction",
"for",
"recovered",
"transactions",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RecoveryManager.java#L2109-L2117 |
68,968 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RecoveryManager.java | RecoveryManager.recoveryModeTxnsComplete | protected boolean recoveryModeTxnsComplete() {
if (tc.isEntryEnabled())
Tr.entry(tc, "recoveryModeTxnsComplete");
if (_recoveringTransactions != null) {
for (TransactionImpl tx : _recoveringTransactions) {
if (tx != null && !tx.isRAImport()) {
... | java | protected boolean recoveryModeTxnsComplete() {
if (tc.isEntryEnabled())
Tr.entry(tc, "recoveryModeTxnsComplete");
if (_recoveringTransactions != null) {
for (TransactionImpl tx : _recoveringTransactions) {
if (tx != null && !tx.isRAImport()) {
... | [
"protected",
"boolean",
"recoveryModeTxnsComplete",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"recoveryModeTxnsComplete\"",
")",
";",
"if",
"(",
"_recoveringTransactions",
"!=",
"null",
")",
"... | This does not include JCA inbound txns | [
"This",
"does",
"not",
"include",
"JCA",
"inbound",
"txns"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RecoveryManager.java#L2121-L2138 |
68,969 | OpenLiberty/open-liberty | dev/com.ibm.ws.beanvalidation.v11_fat/fat/src/com/ibm/ws/beanvalidation/fat/basic/BasicValidation_Common.java | BasicValidation_Common.run | protected void run(String war, String servlet, String testMethod) throws Exception {
FATServletClient.runTest(getServer(), war + "/" + servlet, testMethod);
} | java | protected void run(String war, String servlet, String testMethod) throws Exception {
FATServletClient.runTest(getServer(), war + "/" + servlet, testMethod);
} | [
"protected",
"void",
"run",
"(",
"String",
"war",
",",
"String",
"servlet",
",",
"String",
"testMethod",
")",
"throws",
"Exception",
"{",
"FATServletClient",
".",
"runTest",
"(",
"getServer",
"(",
")",
",",
"war",
"+",
"\"/\"",
"+",
"servlet",
",",
"testMe... | Run a test by connecting to a url that is put together with the context-root
being the war, the servlet and test method in the web application. | [
"Run",
"a",
"test",
"by",
"connecting",
"to",
"a",
"url",
"that",
"is",
"put",
"together",
"with",
"the",
"context",
"-",
"root",
"being",
"the",
"war",
"the",
"servlet",
"and",
"test",
"method",
"in",
"the",
"web",
"application",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.beanvalidation.v11_fat/fat/src/com/ibm/ws/beanvalidation/fat/basic/BasicValidation_Common.java#L62-L64 |
68,970 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.service.location/src/com/ibm/ws/kernel/pseudo/internal/PseudoContext.java | PseudoContext.getURLContext | private Context getURLContext(String name) throws NamingException {
int schemeIndex = name.indexOf(":");
if (schemeIndex != -1) {
String scheme = name.substring(0, schemeIndex);
return NamingManager.getURLContext(scheme, env);
}
return null;
} | java | private Context getURLContext(String name) throws NamingException {
int schemeIndex = name.indexOf(":");
if (schemeIndex != -1) {
String scheme = name.substring(0, schemeIndex);
return NamingManager.getURLContext(scheme, env);
}
return null;
} | [
"private",
"Context",
"getURLContext",
"(",
"String",
"name",
")",
"throws",
"NamingException",
"{",
"int",
"schemeIndex",
"=",
"name",
".",
"indexOf",
"(",
"\":\"",
")",
";",
"if",
"(",
"schemeIndex",
"!=",
"-",
"1",
")",
"{",
"String",
"scheme",
"=",
"... | Get the URL context given a name based on the scheme of the URL.
@param name The name to get the URL context for
@return The URL context for the name
@throws NamingException | [
"Get",
"the",
"URL",
"context",
"given",
"a",
"name",
"based",
"on",
"the",
"scheme",
"of",
"the",
"URL",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.service.location/src/com/ibm/ws/kernel/pseudo/internal/PseudoContext.java#L80-L88 |
68,971 | OpenLiberty/open-liberty | dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/jaxrs/utils/ThreadLocalProxyCopyOnWriteArrayList.java | ThreadLocalProxyCopyOnWriteArrayList.indexOf | private static int indexOf(Object o, Object[] elements,
int index, int fence) {
if (o == null) {
for (int i = index; i < fence; i++)
if (elements[i] == null)
return i;
} else {
for (int i = index; i < fence; i++)
... | java | private static int indexOf(Object o, Object[] elements,
int index, int fence) {
if (o == null) {
for (int i = index; i < fence; i++)
if (elements[i] == null)
return i;
} else {
for (int i = index; i < fence; i++)
... | [
"private",
"static",
"int",
"indexOf",
"(",
"Object",
"o",
",",
"Object",
"[",
"]",
"elements",
",",
"int",
"index",
",",
"int",
"fence",
")",
"{",
"if",
"(",
"o",
"==",
"null",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"index",
";",
"i",
"<",
"fe... | static version of indexOf, to allow repeated calls without
needing to re-acquire array each time.
@param o element to search for
@param elements the array
@param index first index to search
@param fence one past last index to search
@return index of element, or -1 if absent | [
"static",
"version",
"of",
"indexOf",
"to",
"allow",
"repeated",
"calls",
"without",
"needing",
"to",
"re",
"-",
"acquire",
"array",
"each",
"time",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/jaxrs/utils/ThreadLocalProxyCopyOnWriteArrayList.java#L120-L132 |
68,972 | OpenLiberty/open-liberty | dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/jaxrs/utils/ThreadLocalProxyCopyOnWriteArrayList.java | ThreadLocalProxyCopyOnWriteArrayList.lastIndexOf | private static int lastIndexOf(Object o, Object[] elements, int index) {
if (o == null) {
for (int i = index; i >= 0; i--)
if (elements[i] == null)
return i;
} else {
for (int i = index; i >= 0; i--)
if (o.equals(elements[i]))
... | java | private static int lastIndexOf(Object o, Object[] elements, int index) {
if (o == null) {
for (int i = index; i >= 0; i--)
if (elements[i] == null)
return i;
} else {
for (int i = index; i >= 0; i--)
if (o.equals(elements[i]))
... | [
"private",
"static",
"int",
"lastIndexOf",
"(",
"Object",
"o",
",",
"Object",
"[",
"]",
"elements",
",",
"int",
"index",
")",
"{",
"if",
"(",
"o",
"==",
"null",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"index",
";",
"i",
">=",
"0",
";",
"i",
"--"... | static version of lastIndexOf.
@param o element to search for
@param elements the array
@param index first index to search
@return index of element, or -1 if absent | [
"static",
"version",
"of",
"lastIndexOf",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/jaxrs/utils/ThreadLocalProxyCopyOnWriteArrayList.java#L142-L153 |
68,973 | OpenLiberty/open-liberty | dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/jaxrs/utils/ThreadLocalProxyCopyOnWriteArrayList.java | ThreadLocalProxyCopyOnWriteArrayList.addIfAbsent | public boolean addIfAbsent(E e) {
final ReentrantLock lock = this.lock;
lock.lock();
try {
// Copy while checking if already present.
// This wins in the most common case where it is not present
Object[] elements = getArray();
int len = elements.le... | java | public boolean addIfAbsent(E e) {
final ReentrantLock lock = this.lock;
lock.lock();
try {
// Copy while checking if already present.
// This wins in the most common case where it is not present
Object[] elements = getArray();
int len = elements.le... | [
"public",
"boolean",
"addIfAbsent",
"(",
"E",
"e",
")",
"{",
"final",
"ReentrantLock",
"lock",
"=",
"this",
".",
"lock",
";",
"lock",
".",
"lock",
"(",
")",
";",
"try",
"{",
"// Copy while checking if already present.",
"// This wins in the most common case where it... | Append the element if not present.
@param e element to be added to this list, if absent
@return <tt>true</tt> if the element was added | [
"Append",
"the",
"element",
"if",
"not",
"present",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/jaxrs/utils/ThreadLocalProxyCopyOnWriteArrayList.java#L527-L548 |
68,974 | OpenLiberty/open-liberty | dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/jaxrs/utils/ThreadLocalProxyCopyOnWriteArrayList.java | ThreadLocalProxyCopyOnWriteArrayList.removeAll | @Override
public boolean removeAll(Collection<?> c) {
final ReentrantLock lock = this.lock;
lock.lock();
try {
Object[] elements = getArray();
int len = elements.length;
if (len != 0) {
// temp array holds those elements we know we want to ... | java | @Override
public boolean removeAll(Collection<?> c) {
final ReentrantLock lock = this.lock;
lock.lock();
try {
Object[] elements = getArray();
int len = elements.length;
if (len != 0) {
// temp array holds those elements we know we want to ... | [
"@",
"Override",
"public",
"boolean",
"removeAll",
"(",
"Collection",
"<",
"?",
">",
"c",
")",
"{",
"final",
"ReentrantLock",
"lock",
"=",
"this",
".",
"lock",
";",
"lock",
".",
"lock",
"(",
")",
";",
"try",
"{",
"Object",
"[",
"]",
"elements",
"=",
... | Removes from this list all of its elements that are contained in
the specified collection. This is a particularly expensive operation
in this class because of the need for an internal temporary array.
@param c collection containing elements to be removed from this list
@return <tt>true</tt> if this list changed as a r... | [
"Removes",
"from",
"this",
"list",
"all",
"of",
"its",
"elements",
"that",
"are",
"contained",
"in",
"the",
"specified",
"collection",
".",
"This",
"is",
"a",
"particularly",
"expensive",
"operation",
"in",
"this",
"class",
"because",
"of",
"the",
"need",
"f... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/jaxrs/utils/ThreadLocalProxyCopyOnWriteArrayList.java#L587-L612 |
68,975 | OpenLiberty/open-liberty | dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/jaxrs/utils/ThreadLocalProxyCopyOnWriteArrayList.java | ThreadLocalProxyCopyOnWriteArrayList.addAllAbsent | public int addAllAbsent(Collection<? extends E> c) {
Object[] cs = c.toArray();
if (cs.length == 0)
return 0;
Object[] uniq = new Object[cs.length];
final ReentrantLock lock = this.lock;
lock.lock();
try {
Object[] elements = getArray();
... | java | public int addAllAbsent(Collection<? extends E> c) {
Object[] cs = c.toArray();
if (cs.length == 0)
return 0;
Object[] uniq = new Object[cs.length];
final ReentrantLock lock = this.lock;
lock.lock();
try {
Object[] elements = getArray();
... | [
"public",
"int",
"addAllAbsent",
"(",
"Collection",
"<",
"?",
"extends",
"E",
">",
"c",
")",
"{",
"Object",
"[",
"]",
"cs",
"=",
"c",
".",
"toArray",
"(",
")",
";",
"if",
"(",
"cs",
".",
"length",
"==",
"0",
")",
"return",
"0",
";",
"Object",
"... | Appends all of the elements in the specified collection that
are not already contained in this list, to the end of
this list, in the order that they are returned by the
specified collection's iterator.
@param c collection containing elements to be added to this list
@return the number of elements added
@throws NullPoi... | [
"Appends",
"all",
"of",
"the",
"elements",
"in",
"the",
"specified",
"collection",
"that",
"are",
"not",
"already",
"contained",
"in",
"this",
"list",
"to",
"the",
"end",
"of",
"this",
"list",
"in",
"the",
"order",
"that",
"they",
"are",
"returned",
"by",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/jaxrs/utils/ThreadLocalProxyCopyOnWriteArrayList.java#L668-L694 |
68,976 | OpenLiberty/open-liberty | dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/jaxrs/utils/ThreadLocalProxyCopyOnWriteArrayList.java | ThreadLocalProxyCopyOnWriteArrayList.addAll | @Override
public boolean addAll(Collection<? extends E> c) {
Object[] cs = c.toArray();
if (cs.length == 0)
return false;
final ReentrantLock lock = this.lock;
lock.lock();
try {
Object[] elements = getArray();
int len = elements.length;
... | java | @Override
public boolean addAll(Collection<? extends E> c) {
Object[] cs = c.toArray();
if (cs.length == 0)
return false;
final ReentrantLock lock = this.lock;
lock.lock();
try {
Object[] elements = getArray();
int len = elements.length;
... | [
"@",
"Override",
"public",
"boolean",
"addAll",
"(",
"Collection",
"<",
"?",
"extends",
"E",
">",
"c",
")",
"{",
"Object",
"[",
"]",
"cs",
"=",
"c",
".",
"toArray",
"(",
")",
";",
"if",
"(",
"cs",
".",
"length",
"==",
"0",
")",
"return",
"false",... | Appends all of the elements in the specified collection to the end
of this list, in the order that they are returned by the specified
collection's iterator.
@param c collection containing elements to be added to this list
@return <tt>true</tt> if this list changed as a result of the call
@throws NullPointerException i... | [
"Appends",
"all",
"of",
"the",
"elements",
"in",
"the",
"specified",
"collection",
"to",
"the",
"end",
"of",
"this",
"list",
"in",
"the",
"order",
"that",
"they",
"are",
"returned",
"by",
"the",
"specified",
"collection",
"s",
"iterator",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/jaxrs/utils/ThreadLocalProxyCopyOnWriteArrayList.java#L721-L738 |
68,977 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/VirtualHostImpl.java | VirtualHostImpl.discriminate | public Runnable discriminate(HttpInboundConnectionExtended inboundConnection) {
String requestUri = inboundConnection.getRequest().getURI();
Runnable requestHandler = null;
// Find the container that can handle this URI.
// The first to return a non-null wins
for (HttpContaine... | java | public Runnable discriminate(HttpInboundConnectionExtended inboundConnection) {
String requestUri = inboundConnection.getRequest().getURI();
Runnable requestHandler = null;
// Find the container that can handle this URI.
// The first to return a non-null wins
for (HttpContaine... | [
"public",
"Runnable",
"discriminate",
"(",
"HttpInboundConnectionExtended",
"inboundConnection",
")",
"{",
"String",
"requestUri",
"=",
"inboundConnection",
".",
"getRequest",
"(",
")",
".",
"getURI",
"(",
")",
";",
"Runnable",
"requestHandler",
"=",
"null",
";",
... | Given a new shiny inbound connection, figure out which HttpContainer
will handle the inbound request, and return a Runnable that should
be used to dispatch the work.
@param inboundConnection
@return the Runnable that should be queued for execution to handle the work,
or null if it is an unknown/unmatched context root | [
"Given",
"a",
"new",
"shiny",
"inbound",
"connection",
"figure",
"out",
"which",
"HttpContainer",
"will",
"handle",
"the",
"inbound",
"request",
"and",
"return",
"a",
"Runnable",
"that",
"should",
"be",
"used",
"to",
"dispatch",
"the",
"work",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/VirtualHostImpl.java#L242-L270 |
68,978 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/visitor/generator/GeneratorUtils.java | GeneratorUtils.generateLocalVariables | public static void generateLocalVariables(JavaCodeWriter out, Element jspElement, String pageContextVar) throws JspCoreException {
if (hasUseBean(jspElement)) {
out.println("HttpSession session = "+pageContextVar+".getSession();");
out.println("ServletContext application = "+pageContextV... | java | public static void generateLocalVariables(JavaCodeWriter out, Element jspElement, String pageContextVar) throws JspCoreException {
if (hasUseBean(jspElement)) {
out.println("HttpSession session = "+pageContextVar+".getSession();");
out.println("ServletContext application = "+pageContextV... | [
"public",
"static",
"void",
"generateLocalVariables",
"(",
"JavaCodeWriter",
"out",
",",
"Element",
"jspElement",
",",
"String",
"pageContextVar",
")",
"throws",
"JspCoreException",
"{",
"if",
"(",
"hasUseBean",
"(",
"jspElement",
")",
")",
"{",
"out",
".",
"pri... | PK65013 - already know if this isTagFile or not and pageContextVar is set accordingly | [
"PK65013",
"-",
"already",
"know",
"if",
"this",
"isTagFile",
"or",
"not",
"and",
"pageContextVar",
"is",
"set",
"accordingly"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/visitor/generator/GeneratorUtils.java#L161-L172 |
68,979 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/visitor/generator/GeneratorUtils.java | GeneratorUtils.interpreterCall | public static String interpreterCall(
boolean isTagFile,
String expression,
Class expectedType,
String fnmapvar,
boolean XmlEscape,
String pageContextVar) { //PK65013
return JSPExtensionFactory.getGeneratorUtilsExtFactory().getGeneratorUtilsExt().interpreterCall... | java | public static String interpreterCall(
boolean isTagFile,
String expression,
Class expectedType,
String fnmapvar,
boolean XmlEscape,
String pageContextVar) { //PK65013
return JSPExtensionFactory.getGeneratorUtilsExtFactory().getGeneratorUtilsExt().interpreterCall... | [
"public",
"static",
"String",
"interpreterCall",
"(",
"boolean",
"isTagFile",
",",
"String",
"expression",
",",
"Class",
"expectedType",
",",
"String",
"fnmapvar",
",",
"boolean",
"XmlEscape",
",",
"String",
"pageContextVar",
")",
"{",
"//PK65013",
"return",
"JSPE... | Produces a String representing a call to the EL interpreter.
@param expression a String containing zero or more "${}" expressions
@param expectedType the expected type of the interpreted result
@param defaultPrefix Default prefix, or literal "null"
@param fnmapvar Variable pointing to a function map.
@param XmlEscape T... | [
"Produces",
"a",
"String",
"representing",
"a",
"call",
"to",
"the",
"EL",
"interpreter",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/visitor/generator/GeneratorUtils.java#L284-L299 |
68,980 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/visitor/generator/GeneratorUtils.java | GeneratorUtils.attributeValue | public static String attributeValue(
String valueIn,
boolean encode,
Class expectedType,
JspConfiguration jspConfig,
boolean isTagFile,
String pageContextVar) {
String value = valueIn;
value = value.replaceAll(">", ">");
value = value.replaceAll... | java | public static String attributeValue(
String valueIn,
boolean encode,
Class expectedType,
JspConfiguration jspConfig,
boolean isTagFile,
String pageContextVar) {
String value = valueIn;
value = value.replaceAll(">", ">");
value = value.replaceAll... | [
"public",
"static",
"String",
"attributeValue",
"(",
"String",
"valueIn",
",",
"boolean",
"encode",
",",
"Class",
"expectedType",
",",
"JspConfiguration",
"jspConfig",
",",
"boolean",
"isTagFile",
",",
"String",
"pageContextVar",
")",
"{",
"String",
"value",
"=",
... | PK65013 add method parameter pageContextVar | [
"PK65013",
"add",
"method",
"parameter",
"pageContextVar"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/visitor/generator/GeneratorUtils.java#L430-L490 |
68,981 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/TrOSGiLogForwarder.java | TrOSGiLogForwarder.getObjects | Object[] getObjects(ExtendedLogEntry logEntry, boolean translatedMsg) {
ArrayList<Object> list = new ArrayList<Object>(5);
if (translatedMsg && logEntry.getMessage() != null) {
list.add(logEntry.getMessage());
}
if (!translatedMsg) {
String loggerName = logEntry... | java | Object[] getObjects(ExtendedLogEntry logEntry, boolean translatedMsg) {
ArrayList<Object> list = new ArrayList<Object>(5);
if (translatedMsg && logEntry.getMessage() != null) {
list.add(logEntry.getMessage());
}
if (!translatedMsg) {
String loggerName = logEntry... | [
"Object",
"[",
"]",
"getObjects",
"(",
"ExtendedLogEntry",
"logEntry",
",",
"boolean",
"translatedMsg",
")",
"{",
"ArrayList",
"<",
"Object",
">",
"list",
"=",
"new",
"ArrayList",
"<",
"Object",
">",
"(",
"5",
")",
";",
"if",
"(",
"translatedMsg",
"&&",
... | Analyze available fields from the LogEntry, and make a suitable object array
for passing to trace.
@param logEntry the log entry
@param translatedMsg Include the entry's log message in the list of objects
for inclusion in translated/formatted messages
@return Object array for trace | [
"Analyze",
"available",
"fields",
"from",
"the",
"LogEntry",
"and",
"make",
"a",
"suitable",
"object",
"array",
"for",
"passing",
"to",
"trace",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/TrOSGiLogForwarder.java#L181-L221 |
68,982 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/AuthenticateApi.java | AuthenticateApi.addToLoggedOutTokenCache | private void addToLoggedOutTokenCache(String tokenString) {
String tokenValue = "userName";
LoggedOutTokenCacheImpl.getInstance().addTokenToDistributedMap(tokenString, tokenValue);
} | java | private void addToLoggedOutTokenCache(String tokenString) {
String tokenValue = "userName";
LoggedOutTokenCacheImpl.getInstance().addTokenToDistributedMap(tokenString, tokenValue);
} | [
"private",
"void",
"addToLoggedOutTokenCache",
"(",
"String",
"tokenString",
")",
"{",
"String",
"tokenValue",
"=",
"\"userName\"",
";",
"LoggedOutTokenCacheImpl",
".",
"getInstance",
"(",
")",
".",
"addTokenToDistributedMap",
"(",
"tokenString",
",",
"tokenValue",
")... | Add the ltpa token string to the logged out token distributed map.
@param tokenString | [
"Add",
"the",
"ltpa",
"token",
"string",
"to",
"the",
"logged",
"out",
"token",
"distributed",
"map",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/AuthenticateApi.java#L310-L313 |
68,983 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/AuthenticateApi.java | AuthenticateApi.removeEntryFromAuthCache | private void removeEntryFromAuthCache(HttpServletRequest req, HttpServletResponse res, WebAppSecurityConfig config) {
/*
* TODO: we need to optimize this method... if the authCacheService.remove() method
* return true for successfully removed the entry in the authentication cache, then we
... | java | private void removeEntryFromAuthCache(HttpServletRequest req, HttpServletResponse res, WebAppSecurityConfig config) {
/*
* TODO: we need to optimize this method... if the authCacheService.remove() method
* return true for successfully removed the entry in the authentication cache, then we
... | [
"private",
"void",
"removeEntryFromAuthCache",
"(",
"HttpServletRequest",
"req",
",",
"HttpServletResponse",
"res",
",",
"WebAppSecurityConfig",
"config",
")",
"{",
"/*\n * TODO: we need to optimize this method... if the authCacheService.remove() method\n * return true fo... | Remove entries in the authentication cache
@param req
@param res
@param config | [
"Remove",
"entries",
"in",
"the",
"authentication",
"cache"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/AuthenticateApi.java#L322-L330 |
68,984 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/AuthenticateApi.java | AuthenticateApi.removeEntryFromAuthCacheForToken | private void removeEntryFromAuthCacheForToken(HttpServletRequest req, HttpServletResponse res, WebAppSecurityConfig config) {
getAuthCacheService();
if (authCacheService == null) {
return;
}
Cookie[] cookies = req.getCookies();
if (cookies != null) {
Stri... | java | private void removeEntryFromAuthCacheForToken(HttpServletRequest req, HttpServletResponse res, WebAppSecurityConfig config) {
getAuthCacheService();
if (authCacheService == null) {
return;
}
Cookie[] cookies = req.getCookies();
if (cookies != null) {
Stri... | [
"private",
"void",
"removeEntryFromAuthCacheForToken",
"(",
"HttpServletRequest",
"req",
",",
"HttpServletResponse",
"res",
",",
"WebAppSecurityConfig",
"config",
")",
"{",
"getAuthCacheService",
"(",
")",
";",
"if",
"(",
"authCacheService",
"==",
"null",
")",
"{",
... | Remove entries in the authentication cache using the ltpaToken as a key
@param req
@param res
@param config | [
"Remove",
"entries",
"in",
"the",
"authentication",
"cache",
"using",
"the",
"ltpaToken",
"as",
"a",
"key"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/AuthenticateApi.java#L339-L377 |
68,985 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/AuthenticateApi.java | AuthenticateApi.removeEntryFromAuthCacheForUser | private void removeEntryFromAuthCacheForUser(HttpServletRequest req, HttpServletResponse res) {
getAuthCacheService();
if (authCacheService == null) {
return;
}
String user = req.getRemoteUser();
if (user == null) {
Principal p = req.getUserPrincipal();
... | java | private void removeEntryFromAuthCacheForUser(HttpServletRequest req, HttpServletResponse res) {
getAuthCacheService();
if (authCacheService == null) {
return;
}
String user = req.getRemoteUser();
if (user == null) {
Principal p = req.getUserPrincipal();
... | [
"private",
"void",
"removeEntryFromAuthCacheForUser",
"(",
"HttpServletRequest",
"req",
",",
"HttpServletResponse",
"res",
")",
"{",
"getAuthCacheService",
"(",
")",
";",
"if",
"(",
"authCacheService",
"==",
"null",
")",
"{",
"return",
";",
"}",
"String",
"user",
... | Remove entries in the authentication cache using the user as a key
@param req
@param res | [
"Remove",
"entries",
"in",
"the",
"authentication",
"cache",
"using",
"the",
"user",
"as",
"a",
"key"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/AuthenticateApi.java#L394-L414 |
68,986 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/AuthenticateApi.java | AuthenticateApi.throwExceptionIfAlreadyAuthenticate | public void throwExceptionIfAlreadyAuthenticate(HttpServletRequest req, HttpServletResponse resp, WebAppSecurityConfig config, String username) throws ServletException {
Subject callerSubject = subjectManager.getCallerSubject();
if (subjectHelper.isUnauthenticated(callerSubject))
return;
... | java | public void throwExceptionIfAlreadyAuthenticate(HttpServletRequest req, HttpServletResponse resp, WebAppSecurityConfig config, String username) throws ServletException {
Subject callerSubject = subjectManager.getCallerSubject();
if (subjectHelper.isUnauthenticated(callerSubject))
return;
... | [
"public",
"void",
"throwExceptionIfAlreadyAuthenticate",
"(",
"HttpServletRequest",
"req",
",",
"HttpServletResponse",
"resp",
",",
"WebAppSecurityConfig",
"config",
",",
"String",
"username",
")",
"throws",
"ServletException",
"{",
"Subject",
"callerSubject",
"=",
"subje... | This method throws an exception if the caller subject is already authenticated and
WebAlwaysLogin is false. If the caller subject is already authenticated and
WebAlwaysLogin is true, then it will logout the user.
@throws IOException
@throws ServletException | [
"This",
"method",
"throws",
"an",
"exception",
"if",
"the",
"caller",
"subject",
"is",
"already",
"authenticated",
"and",
"WebAlwaysLogin",
"is",
"false",
".",
"If",
"the",
"caller",
"subject",
"is",
"already",
"authenticated",
"and",
"WebAlwaysLogin",
"is",
"tr... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/AuthenticateApi.java#L425-L438 |
68,987 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/AuthenticateApi.java | AuthenticateApi.invalidateSession | private void invalidateSession(HttpServletRequest req) {
HttpSession session = req.getSession(false);
if (session != null) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "invalidating existing HTTP Session");
session.invalidate();
... | java | private void invalidateSession(HttpServletRequest req) {
HttpSession session = req.getSession(false);
if (session != null) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "invalidating existing HTTP Session");
session.invalidate();
... | [
"private",
"void",
"invalidateSession",
"(",
"HttpServletRequest",
"req",
")",
"{",
"HttpSession",
"session",
"=",
"req",
".",
"getSession",
"(",
"false",
")",
";",
"if",
"(",
"session",
"!=",
"null",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracing... | Invalidates the session associated with the request.
@param req | [
"Invalidates",
"the",
"session",
"associated",
"with",
"the",
"request",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/AuthenticateApi.java#L445-L455 |
68,988 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/AuthenticateApi.java | AuthenticateApi.createSubjectAndPushItOnThreadAsNeeded | private void createSubjectAndPushItOnThreadAsNeeded(HttpServletRequest req, HttpServletResponse res) {
// We got a new instance of FormLogoutExtensionProcess every request.
logoutSubject = null;
Subject subject = subjectManager.getCallerSubject();
if (subject == null || subjectHelper.isU... | java | private void createSubjectAndPushItOnThreadAsNeeded(HttpServletRequest req, HttpServletResponse res) {
// We got a new instance of FormLogoutExtensionProcess every request.
logoutSubject = null;
Subject subject = subjectManager.getCallerSubject();
if (subject == null || subjectHelper.isU... | [
"private",
"void",
"createSubjectAndPushItOnThreadAsNeeded",
"(",
"HttpServletRequest",
"req",
",",
"HttpServletResponse",
"res",
")",
"{",
"// We got a new instance of FormLogoutExtensionProcess every request.",
"logoutSubject",
"=",
"null",
";",
"Subject",
"subject",
"=",
"su... | For formLogout, this is a new request and there is no subject on the thread. A previous
request handled on this thread may not be from this same client. We have to authenticate using
the token and push the subject on thread so webcontainer can use the subject credential to invalidate
the session.
@param req
@param res | [
"For",
"formLogout",
"this",
"is",
"a",
"new",
"request",
"and",
"there",
"is",
"no",
"subject",
"on",
"the",
"thread",
".",
"A",
"previous",
"request",
"handled",
"on",
"this",
"thread",
"may",
"not",
"be",
"from",
"this",
"same",
"client",
".",
"We",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/AuthenticateApi.java#L534-L551 |
68,989 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/AuthenticateApi.java | AuthenticateApi.debugGetAllHttpHdrs | String debugGetAllHttpHdrs(HttpServletRequest req) {
if (req == null)
return null;
StringBuffer sb = new StringBuffer(512);
Enumeration<String> headerNames = req.getHeaderNames();
while (headerNames != null && headerNames.hasMoreElements()) {
String headerName = h... | java | String debugGetAllHttpHdrs(HttpServletRequest req) {
if (req == null)
return null;
StringBuffer sb = new StringBuffer(512);
Enumeration<String> headerNames = req.getHeaderNames();
while (headerNames != null && headerNames.hasMoreElements()) {
String headerName = h... | [
"String",
"debugGetAllHttpHdrs",
"(",
"HttpServletRequest",
"req",
")",
"{",
"if",
"(",
"req",
"==",
"null",
")",
"return",
"null",
";",
"StringBuffer",
"sb",
"=",
"new",
"StringBuffer",
"(",
"512",
")",
";",
"Enumeration",
"<",
"String",
">",
"headerNames",... | Debug method used to collect all the Http header names and values.
@param webAppSecurityCollaboratorImpl TODO
@param req HttpServletRequest
@return Returns a string that contains each parameter and it value(s)
in the HttpServletRequest object. | [
"Debug",
"method",
"used",
"to",
"collect",
"all",
"the",
"Http",
"header",
"names",
"and",
"values",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/AuthenticateApi.java#L561-L572 |
68,990 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/FFDC.java | FFDC.processException | public void processException(Class sourceClass,
String methodName,
Throwable throwable,
String probe) {
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(cclass,
... | java | public void processException(Class sourceClass,
String methodName,
Throwable throwable,
String probe) {
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(cclass,
... | [
"public",
"void",
"processException",
"(",
"Class",
"sourceClass",
",",
"String",
"methodName",
",",
"Throwable",
"throwable",
",",
"String",
"probe",
")",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"... | Process an exception for a static class.
@param sourceClass of the source object.
@param methodName where the FFDC is being requested from.
@param throwable the cause of the exception.
@param probe identifying the source of the exception. | [
"Process",
"an",
"exception",
"for",
"a",
"static",
"class",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/FFDC.java#L50-L73 |
68,991 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/RepositoryConfigUtils.java | RepositoryConfigUtils.loadRepoProperties | public static Properties loadRepoProperties() throws InstallException {
Properties repoProperties = null;
// Retrieves the Repository Properties file
File repoPropertiesFile = new File(getRepoPropertiesFileLocation());
//Check if default repository properties file location is overridde... | java | public static Properties loadRepoProperties() throws InstallException {
Properties repoProperties = null;
// Retrieves the Repository Properties file
File repoPropertiesFile = new File(getRepoPropertiesFileLocation());
//Check if default repository properties file location is overridde... | [
"public",
"static",
"Properties",
"loadRepoProperties",
"(",
")",
"throws",
"InstallException",
"{",
"Properties",
"repoProperties",
"=",
"null",
";",
"// Retrieves the Repository Properties file",
"File",
"repoPropertiesFile",
"=",
"new",
"File",
"(",
"getRepoPropertiesFil... | Loads the repository properties into a Properties object
@return A properties object with the repo properties
@throws InstallException | [
"Loads",
"the",
"repository",
"properties",
"into",
"a",
"Properties",
"object"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/RepositoryConfigUtils.java#L76-L104 |
68,992 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/RepositoryConfigUtils.java | RepositoryConfigUtils.getRepoPropertiesFileLocation | public static String getRepoPropertiesFileLocation() {
String installDirPath = Utils.getInstallDir().getAbsolutePath();
String overrideLocation = System.getProperty(InstallConstants.OVERRIDE_PROPS_LOCATION_ENV_VAR);
//Gets the repository properties file path from the default location
if ... | java | public static String getRepoPropertiesFileLocation() {
String installDirPath = Utils.getInstallDir().getAbsolutePath();
String overrideLocation = System.getProperty(InstallConstants.OVERRIDE_PROPS_LOCATION_ENV_VAR);
//Gets the repository properties file path from the default location
if ... | [
"public",
"static",
"String",
"getRepoPropertiesFileLocation",
"(",
")",
"{",
"String",
"installDirPath",
"=",
"Utils",
".",
"getInstallDir",
"(",
")",
".",
"getAbsolutePath",
"(",
")",
";",
"String",
"overrideLocation",
"=",
"System",
".",
"getProperty",
"(",
"... | Finds the repository properties file location
@return the location of the repo properties | [
"Finds",
"the",
"repository",
"properties",
"file",
"location"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/RepositoryConfigUtils.java#L111-L121 |
68,993 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/RepositoryConfigUtils.java | RepositoryConfigUtils.setProxyAuthenticator | public static void setProxyAuthenticator(final String proxyHost, final String proxyPort, final String proxyUser, final String decodedPwd) {
if (proxyUser == null || proxyUser.isEmpty() || decodedPwd == null || decodedPwd.isEmpty()) {
return;
}
//Authenticate proxy credentials
... | java | public static void setProxyAuthenticator(final String proxyHost, final String proxyPort, final String proxyUser, final String decodedPwd) {
if (proxyUser == null || proxyUser.isEmpty() || decodedPwd == null || decodedPwd.isEmpty()) {
return;
}
//Authenticate proxy credentials
... | [
"public",
"static",
"void",
"setProxyAuthenticator",
"(",
"final",
"String",
"proxyHost",
",",
"final",
"String",
"proxyPort",
",",
"final",
"String",
"proxyUser",
",",
"final",
"String",
"decodedPwd",
")",
"{",
"if",
"(",
"proxyUser",
"==",
"null",
"||",
"pro... | Set Proxy Authenticator Default
@param proxyHost The proxy host
@param proxyPort The proxy port
@param proxyUser the proxy username
@param decodedPwd the proxy password decoded | [
"Set",
"Proxy",
"Authenticator",
"Default"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/RepositoryConfigUtils.java#L131-L147 |
68,994 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/RepositoryConfigUtils.java | RepositoryConfigUtils.getProxyPwd | public static String getProxyPwd(Properties repoProperties) {
if (repoProperties.getProperty(InstallConstants.REPO_PROPERTIES_PROXY_USERPWD) != null)
return repoProperties.getProperty(InstallConstants.REPO_PROPERTIES_PROXY_USERPWD);
else if (repoProperties.getProperty(InstallConstants.REPO_P... | java | public static String getProxyPwd(Properties repoProperties) {
if (repoProperties.getProperty(InstallConstants.REPO_PROPERTIES_PROXY_USERPWD) != null)
return repoProperties.getProperty(InstallConstants.REPO_PROPERTIES_PROXY_USERPWD);
else if (repoProperties.getProperty(InstallConstants.REPO_P... | [
"public",
"static",
"String",
"getProxyPwd",
"(",
"Properties",
"repoProperties",
")",
"{",
"if",
"(",
"repoProperties",
".",
"getProperty",
"(",
"InstallConstants",
".",
"REPO_PROPERTIES_PROXY_USERPWD",
")",
"!=",
"null",
")",
"return",
"repoProperties",
".",
"getP... | Gets the Proxy user password.
@param repoProperties the Repository Properties
@return the user password | [
"Gets",
"the",
"Proxy",
"user",
"password",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/RepositoryConfigUtils.java#L245-L252 |
68,995 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/RepositoryConfigUtils.java | RepositoryConfigUtils.getOrderList | public static List<String> getOrderList(Properties repoProperties) throws InstallException {
List<String> orderList = new ArrayList<String>();
List<String> repoList = new ArrayList<String>();
// Retrieves the Repository Properties file
File repoPropertiesFile = new File(getRepoProperties... | java | public static List<String> getOrderList(Properties repoProperties) throws InstallException {
List<String> orderList = new ArrayList<String>();
List<String> repoList = new ArrayList<String>();
// Retrieves the Repository Properties file
File repoPropertiesFile = new File(getRepoProperties... | [
"public",
"static",
"List",
"<",
"String",
">",
"getOrderList",
"(",
"Properties",
"repoProperties",
")",
"throws",
"InstallException",
"{",
"List",
"<",
"String",
">",
"orderList",
"=",
"new",
"ArrayList",
"<",
"String",
">",
"(",
")",
";",
"List",
"<",
"... | Compiles a list of repository names from a repository properties file, removing duplicates and .url suffixes
@param repoProperties the Repository Properties
@return A list of Strings of repository names
@throws InstallException | [
"Compiles",
"a",
"list",
"of",
"repository",
"names",
"from",
"a",
"repository",
"properties",
"file",
"removing",
"duplicates",
"and",
".",
"url",
"suffixes"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/RepositoryConfigUtils.java#L261-L317 |
68,996 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/RepositoryConfigUtils.java | RepositoryConfigUtils.isWlpRepoEnabled | public static boolean isWlpRepoEnabled(Properties repoProperties) {
if (!repoPropertiesFileExists() || repoProperties == null)
return true;
String wlpEnabled = repoProperties.getProperty(USE_WLP_REPO);
if (wlpEnabled == null)
return true;
return !wlpEnabled.trim()... | java | public static boolean isWlpRepoEnabled(Properties repoProperties) {
if (!repoPropertiesFileExists() || repoProperties == null)
return true;
String wlpEnabled = repoProperties.getProperty(USE_WLP_REPO);
if (wlpEnabled == null)
return true;
return !wlpEnabled.trim()... | [
"public",
"static",
"boolean",
"isWlpRepoEnabled",
"(",
"Properties",
"repoProperties",
")",
"{",
"if",
"(",
"!",
"repoPropertiesFileExists",
"(",
")",
"||",
"repoProperties",
"==",
"null",
")",
"return",
"true",
";",
"String",
"wlpEnabled",
"=",
"repoProperties",... | Checks if the repository uses the WLP repository
@param repoProperties The repository's properties
@return True if the repository is using WLP | [
"Checks",
"if",
"the",
"repository",
"uses",
"the",
"WLP",
"repository"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/RepositoryConfigUtils.java#L334-L341 |
68,997 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/RepositoryConfigUtils.java | RepositoryConfigUtils.getRepositoryConfigs | public static List<RepositoryConfig> getRepositoryConfigs(Properties repoProperties) throws InstallException {
List<String> orderList = getOrderList(repoProperties);
List<RepositoryConfig> connections = new ArrayList<RepositoryConfig>(orderList.size());
if (repoProperties == null || repoProperti... | java | public static List<RepositoryConfig> getRepositoryConfigs(Properties repoProperties) throws InstallException {
List<String> orderList = getOrderList(repoProperties);
List<RepositoryConfig> connections = new ArrayList<RepositoryConfig>(orderList.size());
if (repoProperties == null || repoProperti... | [
"public",
"static",
"List",
"<",
"RepositoryConfig",
">",
"getRepositoryConfigs",
"(",
"Properties",
"repoProperties",
")",
"throws",
"InstallException",
"{",
"List",
"<",
"String",
">",
"orderList",
"=",
"getOrderList",
"(",
"repoProperties",
")",
";",
"List",
"<... | Compiles a list of repository names from a repository properties file.
@param repoProperties the Repository Properties
@return A list of Strings of repository names
@throws InstallException | [
"Compiles",
"a",
"list",
"of",
"repository",
"names",
"from",
"a",
"repository",
"properties",
"file",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/RepositoryConfigUtils.java#L350-L397 |
68,998 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/RepositoryConfigUtils.java | RepositoryConfigUtils.getRepoName | public static String getRepoName(Properties repoProperties, RepositoryConnection repoConn) throws InstallException {
String repoName = null;
List<RepositoryConfig> configRepos = RepositoryConfigUtils.getRepositoryConfigs(repoProperties);
if (!(repoConn instanceof DirectoryRepositoryConnection |... | java | public static String getRepoName(Properties repoProperties, RepositoryConnection repoConn) throws InstallException {
String repoName = null;
List<RepositoryConfig> configRepos = RepositoryConfigUtils.getRepositoryConfigs(repoProperties);
if (!(repoConn instanceof DirectoryRepositoryConnection |... | [
"public",
"static",
"String",
"getRepoName",
"(",
"Properties",
"repoProperties",
",",
"RepositoryConnection",
"repoConn",
")",
"throws",
"InstallException",
"{",
"String",
"repoName",
"=",
"null",
";",
"List",
"<",
"RepositoryConfig",
">",
"configRepos",
"=",
"Repo... | Gets the name of the repository by connection and properties
@param repoProperties The repository properties
@param repoConn The repository connection
@return The name of the Repository
@throws InstallException | [
"Gets",
"the",
"name",
"of",
"the",
"repository",
"by",
"connection",
"and",
"properties"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/RepositoryConfigUtils.java#L407-L438 |
68,999 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/RepositoryConfigUtils.java | RepositoryConfigUtils.isLibertyRepository | public static boolean isLibertyRepository(RestRepositoryConnection lie, Properties repoProperties) throws InstallException {
if (isWlpRepoEnabled(repoProperties)) {
return lie.getRepositoryLocation().startsWith(InstallConstants.REPOSITORY_LIBERTY_URL);
}
return false;
} | java | public static boolean isLibertyRepository(RestRepositoryConnection lie, Properties repoProperties) throws InstallException {
if (isWlpRepoEnabled(repoProperties)) {
return lie.getRepositoryLocation().startsWith(InstallConstants.REPOSITORY_LIBERTY_URL);
}
return false;
} | [
"public",
"static",
"boolean",
"isLibertyRepository",
"(",
"RestRepositoryConnection",
"lie",
",",
"Properties",
"repoProperties",
")",
"throws",
"InstallException",
"{",
"if",
"(",
"isWlpRepoEnabled",
"(",
"repoProperties",
")",
")",
"{",
"return",
"lie",
".",
"get... | Checks if the inputed Repository Connection is a liberty repository
@param lie The RestRepositoryConnection connection
@param repoProperties The repository properties
@return True of the repository location is a liberty location
@throws InstallException | [
"Checks",
"if",
"the",
"inputed",
"Repository",
"Connection",
"is",
"a",
"liberty",
"repository"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/RepositoryConfigUtils.java#L448-L453 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.