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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
65,600 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/webapp/webxml/WebXml.java | WebXml.init | public static void init(ExternalContext context)
{
WebXmlParser parser = new WebXmlParser(context);
WebXml webXml = parser.parse();
context.getApplicationMap().put(WEB_XML_ATTR, webXml);
MyfacesConfig mfconfig = MyfacesConfig.getCurrentInstance(context);
long configRefreshPer... | java | public static void init(ExternalContext context)
{
WebXmlParser parser = new WebXmlParser(context);
WebXml webXml = parser.parse();
context.getApplicationMap().put(WEB_XML_ATTR, webXml);
MyfacesConfig mfconfig = MyfacesConfig.getCurrentInstance(context);
long configRefreshPer... | [
"public",
"static",
"void",
"init",
"(",
"ExternalContext",
"context",
")",
"{",
"WebXmlParser",
"parser",
"=",
"new",
"WebXmlParser",
"(",
"context",
")",
";",
"WebXml",
"webXml",
"=",
"parser",
".",
"parse",
"(",
")",
";",
"context",
".",
"getApplicationMa... | should be called when initialising Servlet
@param context | [
"should",
"be",
"called",
"when",
"initialising",
"Servlet"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/webapp/webxml/WebXml.java#L275-L285 |
65,601 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsErrorUtils.java | JmsErrorUtils.filterThrowable | private static void filterThrowable(Throwable t) {
// Now we want to remove the superfluous lines of stack trace from the
// exception (those that have been inserted as a result of the way we
// created the exception.
StackTraceElement[] stackLines = t.getStackTrace();
// If th... | java | private static void filterThrowable(Throwable t) {
// Now we want to remove the superfluous lines of stack trace from the
// exception (those that have been inserted as a result of the way we
// created the exception.
StackTraceElement[] stackLines = t.getStackTrace();
// If th... | [
"private",
"static",
"void",
"filterThrowable",
"(",
"Throwable",
"t",
")",
"{",
"// Now we want to remove the superfluous lines of stack trace from the",
"// exception (those that have been inserted as a result of the way we",
"// created the exception.",
"StackTraceElement",
"[",
"]",
... | This method filters the stack trace of the parameter object to remove all
trace of the newThrowable and reflection calls that have been made.
@param t | [
"This",
"method",
"filters",
"the",
"stack",
"trace",
"of",
"the",
"parameter",
"object",
"to",
"remove",
"all",
"trace",
"of",
"the",
"newThrowable",
"and",
"reflection",
"calls",
"that",
"have",
"been",
"made",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsErrorUtils.java#L425-L470 |
65,602 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsErrorUtils.java | JmsErrorUtils.getJMS2Exception | public static Throwable getJMS2Exception(JMSException jmse, Class exceptionToBeThrown) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getJMS2Exceptions",
new Object[] { jmse, exceptionToBeThrown });
JMSRuntimeException jmsre = nu... | java | public static Throwable getJMS2Exception(JMSException jmse, Class exceptionToBeThrown) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getJMS2Exceptions",
new Object[] { jmse, exceptionToBeThrown });
JMSRuntimeException jmsre = nu... | [
"public",
"static",
"Throwable",
"getJMS2Exception",
"(",
"JMSException",
"jmse",
",",
"Class",
"exceptionToBeThrown",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
... | This is a generic function to convert all the JMS 1.1 exceptions to JMS 2.0 exception.
It uses reflection to create the desired JMS2.0 exception
@param jmse The JMSException
@param exceptionToBeThrown The exception which has to be returned
@return Throwable It can be of type IllegalStateRuntimeException, InvalidClient... | [
"This",
"is",
"a",
"generic",
"function",
"to",
"convert",
"all",
"the",
"JMS",
"1",
".",
"1",
"exceptions",
"to",
"JMS",
"2",
".",
"0",
"exception",
".",
"It",
"uses",
"reflection",
"to",
"create",
"the",
"desired",
"JMS2",
".",
"0",
"exception"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsErrorUtils.java#L482-L507 |
65,603 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot_fat/fat/src/com/ibm/wsspi/kernel/embeddable/EmbeddedServerDriver.java | EmbeddedServerDriver.isProductExtensionInstalled | private boolean isProductExtensionInstalled(String inputString, String productExtension) {
if ((productExtension == null) || (inputString == null)) {
return false;
}
int msgIndex = inputString.indexOf("CWWKF0012I: The server installed the following features:");
if (msgIndex =... | java | private boolean isProductExtensionInstalled(String inputString, String productExtension) {
if ((productExtension == null) || (inputString == null)) {
return false;
}
int msgIndex = inputString.indexOf("CWWKF0012I: The server installed the following features:");
if (msgIndex =... | [
"private",
"boolean",
"isProductExtensionInstalled",
"(",
"String",
"inputString",
",",
"String",
"productExtension",
")",
"{",
"if",
"(",
"(",
"productExtension",
"==",
"null",
")",
"||",
"(",
"inputString",
"==",
"null",
")",
")",
"{",
"return",
"false",
";"... | Determine if the input product extension exists in the input string.
@param inputString string to search.
@param productExtension product extension to search for.
@return true if input product extension is found in the input string. | [
"Determine",
"if",
"the",
"input",
"product",
"extension",
"exists",
"in",
"the",
"input",
"string",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot_fat/fat/src/com/ibm/wsspi/kernel/embeddable/EmbeddedServerDriver.java#L239-L263 |
65,604 | OpenLiberty/open-liberty | dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/utils/HttpUtils.java | HttpUtils.encodePartiallyEncoded | public static String encodePartiallyEncoded(String encoded, boolean query) {
if (encoded.length() == 0) {
return encoded;
}
Matcher m = ENCODE_PATTERN.matcher(encoded);
if (!m.find()) {
return query ? HttpUtils.queryEncode(encoded) : HttpUtils.pathEncode(encoded)... | java | public static String encodePartiallyEncoded(String encoded, boolean query) {
if (encoded.length() == 0) {
return encoded;
}
Matcher m = ENCODE_PATTERN.matcher(encoded);
if (!m.find()) {
return query ? HttpUtils.queryEncode(encoded) : HttpUtils.pathEncode(encoded)... | [
"public",
"static",
"String",
"encodePartiallyEncoded",
"(",
"String",
"encoded",
",",
"boolean",
"query",
")",
"{",
"if",
"(",
"encoded",
".",
"length",
"(",
")",
"==",
"0",
")",
"{",
"return",
"encoded",
";",
"}",
"Matcher",
"m",
"=",
"ENCODE_PATTERN",
... | Encodes partially encoded string. Encode all values but those matching pattern
"percent char followed by two hexadecimal digits".
@param encoded fully or partially encoded string.
@return fully encoded string | [
"Encodes",
"partially",
"encoded",
"string",
".",
"Encode",
"all",
"values",
"but",
"those",
"matching",
"pattern",
"percent",
"char",
"followed",
"by",
"two",
"hexadecimal",
"digits",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/utils/HttpUtils.java#L191-L213 |
65,605 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java | HpelCBEFormatter.formatRecord | @Override
public String formatRecord(RepositoryLogRecord record, Locale locale) {
if (null == record) {
throw new IllegalArgumentException("Record cannot be null");
}
return getFormattedRecord(record, locale);
} | java | @Override
public String formatRecord(RepositoryLogRecord record, Locale locale) {
if (null == record) {
throw new IllegalArgumentException("Record cannot be null");
}
return getFormattedRecord(record, locale);
} | [
"@",
"Override",
"public",
"String",
"formatRecord",
"(",
"RepositoryLogRecord",
"record",
",",
"Locale",
"locale",
")",
"{",
"if",
"(",
"null",
"==",
"record",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Record cannot be null\"",
")",
";",
"}"... | Formats a RepositoryLogRecord into a localized CBE format output String.
@param record the RepositoryLogRecord to be formatted
@param locale the Locale to use for localization when formatting this record.
@return the formated string output. | [
"Formats",
"a",
"RepositoryLogRecord",
"into",
"a",
"localized",
"CBE",
"format",
"output",
"String",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java#L51-L58 |
65,606 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java | HpelCBEFormatter.getFormattedRecord | public String getFormattedRecord(RepositoryLogRecord record, Locale locale) {
StringBuilder sb = new StringBuilder(300);
//create opening tag for the CBE Event
createEventOTag(sb, record, locale);
//add the CBE elements
createExtendedElement(sb, record);
createExtendedElement(sb, "CommonBaseEventLogReco... | java | public String getFormattedRecord(RepositoryLogRecord record, Locale locale) {
StringBuilder sb = new StringBuilder(300);
//create opening tag for the CBE Event
createEventOTag(sb, record, locale);
//add the CBE elements
createExtendedElement(sb, record);
createExtendedElement(sb, "CommonBaseEventLogReco... | [
"public",
"String",
"getFormattedRecord",
"(",
"RepositoryLogRecord",
"record",
",",
"Locale",
"locale",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
"300",
")",
";",
"//create opening tag for the CBE Event",
"createEventOTag",
"(",
"sb",
",",
... | Gets a String representation of a log record as a CBEEvent XML element
@param record of the event.
@param locale the locale to use when printing the output.
@return String representation of the record in CBE format. | [
"Gets",
"a",
"String",
"representation",
"of",
"a",
"log",
"record",
"as",
"a",
"CBEEvent",
"XML",
"element"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java#L78-L127 |
65,607 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java | HpelCBEFormatter.createEventOTag | private void createEventOTag(StringBuilder sb, RepositoryLogRecord record, Locale locale){
sb.append("<CommonBaseEvent creationTime=\"");
// create the XML dateTime format
// TimeZone is UTC, but since we are dealing with Millis we are already in UTC.
sb.append(CBE_DATE_FORMAT.format(record.getMillis()));
sb.... | java | private void createEventOTag(StringBuilder sb, RepositoryLogRecord record, Locale locale){
sb.append("<CommonBaseEvent creationTime=\"");
// create the XML dateTime format
// TimeZone is UTC, but since we are dealing with Millis we are already in UTC.
sb.append(CBE_DATE_FORMAT.format(record.getMillis()));
sb.... | [
"private",
"void",
"createEventOTag",
"(",
"StringBuilder",
"sb",
",",
"RepositoryLogRecord",
"record",
",",
"Locale",
"locale",
")",
"{",
"sb",
".",
"append",
"(",
"\"<CommonBaseEvent creationTime=\\\"\"",
")",
";",
"// create the XML dateTime format",
"// TimeZone is UT... | Appends the opening tag of a CommonBaseEvent XML element to a string buffer
@param sb the string buffer the tag will be added to
@param record the record that represents the common base event
@param locale locale to be used for formatting the log record into CBE | [
"Appends",
"the",
"opening",
"tag",
"of",
"a",
"CommonBaseEvent",
"XML",
"element",
"to",
"a",
"string",
"buffer"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java#L146-L170 |
65,608 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java | HpelCBEFormatter.createSituationElement | private void createSituationElement(StringBuilder sb){
sb.append(lineSeparator).append(INDENT[0]).append("<situation categoryName=\"ReportSituation\">");
sb.append(lineSeparator).append(INDENT[1]).append(
"<situationType xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"ReportSituation\" reasonin... | java | private void createSituationElement(StringBuilder sb){
sb.append(lineSeparator).append(INDENT[0]).append("<situation categoryName=\"ReportSituation\">");
sb.append(lineSeparator).append(INDENT[1]).append(
"<situationType xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"ReportSituation\" reasonin... | [
"private",
"void",
"createSituationElement",
"(",
"StringBuilder",
"sb",
")",
"{",
"sb",
".",
"append",
"(",
"lineSeparator",
")",
".",
"append",
"(",
"INDENT",
"[",
"0",
"]",
")",
".",
"append",
"(",
"\"<situation categoryName=\\\"ReportSituation\\\">\"",
")",
... | Appends the CBE Situation XML element of a record to a String buffer
@param sb the string buffer the element will be added to | [
"Appends",
"the",
"CBE",
"Situation",
"XML",
"element",
"of",
"a",
"record",
"to",
"a",
"String",
"buffer"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java#L177-L182 |
65,609 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java | HpelCBEFormatter.createSourceElement | private void createSourceElement(StringBuilder sb, RepositoryLogRecord record){
String hostAddr = headerProps.getProperty(ServerInstanceLogRecordList.HEADER_HOSTADDRESS) == null? "": headerProps.getProperty(ServerInstanceLogRecordList.HEADER_HOSTADDRESS);
String hostType = headerProps.getProperty(ServerInstanceLogR... | java | private void createSourceElement(StringBuilder sb, RepositoryLogRecord record){
String hostAddr = headerProps.getProperty(ServerInstanceLogRecordList.HEADER_HOSTADDRESS) == null? "": headerProps.getProperty(ServerInstanceLogRecordList.HEADER_HOSTADDRESS);
String hostType = headerProps.getProperty(ServerInstanceLogR... | [
"private",
"void",
"createSourceElement",
"(",
"StringBuilder",
"sb",
",",
"RepositoryLogRecord",
"record",
")",
"{",
"String",
"hostAddr",
"=",
"headerProps",
".",
"getProperty",
"(",
"ServerInstanceLogRecordList",
".",
"HEADER_HOSTADDRESS",
")",
"==",
"null",
"?",
... | Appends the CBE Source XML element of a record to a String buffer
@param sb the string buffer the element will be added to
@param record the record that represents the common base event | [
"Appends",
"the",
"CBE",
"Source",
"XML",
"element",
"of",
"a",
"record",
"to",
"a",
"String",
"buffer"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java#L190-L201 |
65,610 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java | HpelCBEFormatter.createMessageElement | private void createMessageElement(StringBuilder sb, RepositoryLogRecord record){ // 660484 elim string concat
sb.append(lineSeparator).append(INDENT[0]).append("<msgDataElement msgLocale=\"").append(record.getMessageLocale()).append("\">");
if (record.getParameters() != null) {
// how many params do we have?
... | java | private void createMessageElement(StringBuilder sb, RepositoryLogRecord record){ // 660484 elim string concat
sb.append(lineSeparator).append(INDENT[0]).append("<msgDataElement msgLocale=\"").append(record.getMessageLocale()).append("\">");
if (record.getParameters() != null) {
// how many params do we have?
... | [
"private",
"void",
"createMessageElement",
"(",
"StringBuilder",
"sb",
",",
"RepositoryLogRecord",
"record",
")",
"{",
"// 660484 elim string concat",
"sb",
".",
"append",
"(",
"lineSeparator",
")",
".",
"append",
"(",
"INDENT",
"[",
"0",
"]",
")",
".",
"append"... | Appends the CBE Message Element XML element of a record to a String buffer
@param sb the string buffer the element will be added to
@param record the record that represents the common base event | [
"Appends",
"the",
"CBE",
"Message",
"Element",
"XML",
"element",
"of",
"a",
"record",
"to",
"a",
"String",
"buffer"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java#L209-L238 |
65,611 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java | HpelCBEFormatter.createExtendedElement | private void createExtendedElement(StringBuilder sb, RepositoryLogRecord record){
sb.append(lineSeparator).append(INDENT[0]).append("<extendedDataElements name=\"CommonBaseEventLogRecord:level\" type=\"noValue\">");
sb.append(lineSeparator).append(INDENT[1]).append("<children name=\"CommonBaseEventLogRecord:name\" ... | java | private void createExtendedElement(StringBuilder sb, RepositoryLogRecord record){
sb.append(lineSeparator).append(INDENT[0]).append("<extendedDataElements name=\"CommonBaseEventLogRecord:level\" type=\"noValue\">");
sb.append(lineSeparator).append(INDENT[1]).append("<children name=\"CommonBaseEventLogRecord:name\" ... | [
"private",
"void",
"createExtendedElement",
"(",
"StringBuilder",
"sb",
",",
"RepositoryLogRecord",
"record",
")",
"{",
"sb",
".",
"append",
"(",
"lineSeparator",
")",
".",
"append",
"(",
"INDENT",
"[",
"0",
"]",
")",
".",
"append",
"(",
"\"<extendedDataElemen... | Appends the CBE Extended Data Element of a record to a String buffer
@param sb the string buffer the element will be added to
@param record the record that represents the common base event | [
"Appends",
"the",
"CBE",
"Extended",
"Data",
"Element",
"of",
"a",
"record",
"to",
"a",
"String",
"buffer"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java#L246-L255 |
65,612 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java | HpelCBEFormatter.createExtendedElement | private void createExtendedElement(StringBuilder sb, RepositoryLogRecord record, String extensionID){
String edeValue = record.getExtension(extensionID);
if (edeValue != null && !edeValue.isEmpty()){
createExtendedElement(sb, extensionID, "string", edeValue);
}
} | java | private void createExtendedElement(StringBuilder sb, RepositoryLogRecord record, String extensionID){
String edeValue = record.getExtension(extensionID);
if (edeValue != null && !edeValue.isEmpty()){
createExtendedElement(sb, extensionID, "string", edeValue);
}
} | [
"private",
"void",
"createExtendedElement",
"(",
"StringBuilder",
"sb",
",",
"RepositoryLogRecord",
"record",
",",
"String",
"extensionID",
")",
"{",
"String",
"edeValue",
"=",
"record",
".",
"getExtension",
"(",
"extensionID",
")",
";",
"if",
"(",
"edeValue",
"... | Appends the CBE Extended Data Element of a record's extension to a String buffer
@param sb the string buffer the element will be added to
@param record the record that represents the common base event
@param extensionId the extension ID field from the record to use | [
"Appends",
"the",
"CBE",
"Extended",
"Data",
"Element",
"of",
"a",
"record",
"s",
"extension",
"to",
"a",
"String",
"buffer"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java#L264-L269 |
65,613 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java | HpelCBEFormatter.createExtendedElement | private void createExtendedElement(StringBuilder sb, String edeName, String edeType, String edeValues) {
sb.append(lineSeparator).append(INDENT[0]).append("<extendedDataElements name=\"").append(edeName).append("\" type=\"").append(edeType).append("\">");
sb.append(lineSeparator).append(INDENT[1]).append("<values>"... | java | private void createExtendedElement(StringBuilder sb, String edeName, String edeType, String edeValues) {
sb.append(lineSeparator).append(INDENT[0]).append("<extendedDataElements name=\"").append(edeName).append("\" type=\"").append(edeType).append("\">");
sb.append(lineSeparator).append(INDENT[1]).append("<values>"... | [
"private",
"void",
"createExtendedElement",
"(",
"StringBuilder",
"sb",
",",
"String",
"edeName",
",",
"String",
"edeType",
",",
"String",
"edeValues",
")",
"{",
"sb",
".",
"append",
"(",
"lineSeparator",
")",
".",
"append",
"(",
"INDENT",
"[",
"0",
"]",
"... | Prints and extendedDataElement for CBE output
Formatter's time zone.
@param sb the string buffer the element will be added to
@param edeName the name of the extendedDataElement.
@param edeType the data type for the extendedDataElement value(s).
@param edeValues the values for this extendedDataElement. | [
"Prints",
"and",
"extendedDataElement",
"for",
"CBE",
"output",
"Formatter",
"s",
"time",
"zone",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java#L280-L284 |
65,614 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/WebSecurityHelperImpl.java | WebSecurityHelperImpl.constructLTPACookieObj | private static Cookie constructLTPACookieObj(SingleSignonToken ssoToken) {
byte[] ssoTokenBytes = ssoToken.getBytes();
String ssoCookieString = Base64Coder.base64EncodeToString(ssoTokenBytes);
Cookie cookie = new Cookie(webAppSecConfig.getSSOCookieName(), ssoCookieString);
return cookie;... | java | private static Cookie constructLTPACookieObj(SingleSignonToken ssoToken) {
byte[] ssoTokenBytes = ssoToken.getBytes();
String ssoCookieString = Base64Coder.base64EncodeToString(ssoTokenBytes);
Cookie cookie = new Cookie(webAppSecConfig.getSSOCookieName(), ssoCookieString);
return cookie;... | [
"private",
"static",
"Cookie",
"constructLTPACookieObj",
"(",
"SingleSignonToken",
"ssoToken",
")",
"{",
"byte",
"[",
"]",
"ssoTokenBytes",
"=",
"ssoToken",
".",
"getBytes",
"(",
")",
";",
"String",
"ssoCookieString",
"=",
"Base64Coder",
".",
"base64EncodeToString",... | builds an LTPACookie object | [
"builds",
"an",
"LTPACookie",
"object"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/WebSecurityHelperImpl.java#L42-L47 |
65,615 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/WebSecurityHelperImpl.java | WebSecurityHelperImpl.getLTPACookie | static Cookie getLTPACookie(final Subject subject) throws Exception {
Cookie ltpaCookie = null;
SingleSignonToken ssoToken = null;
Set<SingleSignonToken> ssoTokens = subject.getPrivateCredentials(SingleSignonToken.class);
Iterator<SingleSignonToken> ssoTokensIterator = ssoTokens.iterator... | java | static Cookie getLTPACookie(final Subject subject) throws Exception {
Cookie ltpaCookie = null;
SingleSignonToken ssoToken = null;
Set<SingleSignonToken> ssoTokens = subject.getPrivateCredentials(SingleSignonToken.class);
Iterator<SingleSignonToken> ssoTokensIterator = ssoTokens.iterator... | [
"static",
"Cookie",
"getLTPACookie",
"(",
"final",
"Subject",
"subject",
")",
"throws",
"Exception",
"{",
"Cookie",
"ltpaCookie",
"=",
"null",
";",
"SingleSignonToken",
"ssoToken",
"=",
"null",
";",
"Set",
"<",
"SingleSignonToken",
">",
"ssoTokens",
"=",
"subjec... | Gets the LTPA cookie from the given subject
@param subject
@return
@throws Exception | [
"Gets",
"the",
"LTPA",
"cookie",
"from",
"the",
"given",
"subject"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/WebSecurityHelperImpl.java#L56-L75 |
65,616 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/WebSecurityHelperImpl.java | WebSecurityHelperImpl.getSSOCookieFromSSOToken | public static Cookie getSSOCookieFromSSOToken() throws Exception {
Subject subject = null;
Cookie ltpaCookie = null;
if (webAppSecConfig == null) {
// if we don't have the config, we can't construct the cookie
return null;
}
try {
subject = WSS... | java | public static Cookie getSSOCookieFromSSOToken() throws Exception {
Subject subject = null;
Cookie ltpaCookie = null;
if (webAppSecConfig == null) {
// if we don't have the config, we can't construct the cookie
return null;
}
try {
subject = WSS... | [
"public",
"static",
"Cookie",
"getSSOCookieFromSSOToken",
"(",
")",
"throws",
"Exception",
"{",
"Subject",
"subject",
"=",
"null",
";",
"Cookie",
"ltpaCookie",
"=",
"null",
";",
"if",
"(",
"webAppSecConfig",
"==",
"null",
")",
"{",
"// if we don't have the config,... | Extracts an LTPA sso cookie from the subject of current thread
and builds a ltpa cookie out of it for use on downstream web invocations.
The caller must check for null return value only when not null
that getName and getValue can be invoked on the returned Cookie object
@return an object of type javax.servlet.http.Coo... | [
"Extracts",
"an",
"LTPA",
"sso",
"cookie",
"from",
"the",
"subject",
"of",
"current",
"thread",
"and",
"builds",
"a",
"ltpa",
"cookie",
"out",
"of",
"it",
"for",
"use",
"on",
"downstream",
"web",
"invocations",
".",
"The",
"caller",
"must",
"check",
"for",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/WebSecurityHelperImpl.java#L87-L113 |
65,617 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ServerDumpPackager.java | ServerDumpPackager.packageServerDumps | private ReturnCode packageServerDumps(File packageFile, List<String> javaDumps) {
DumpProcessor processor = new DumpProcessor(serverName, packageFile, bootProps, javaDumps);
return processor.execute();
} | java | private ReturnCode packageServerDumps(File packageFile, List<String> javaDumps) {
DumpProcessor processor = new DumpProcessor(serverName, packageFile, bootProps, javaDumps);
return processor.execute();
} | [
"private",
"ReturnCode",
"packageServerDumps",
"(",
"File",
"packageFile",
",",
"List",
"<",
"String",
">",
"javaDumps",
")",
"{",
"DumpProcessor",
"processor",
"=",
"new",
"DumpProcessor",
"(",
"serverName",
",",
"packageFile",
",",
"bootProps",
",",
"javaDumps",... | Creates an archive containing the server dumps, server configurations.
@param packageFile
@return | [
"Creates",
"an",
"archive",
"containing",
"the",
"server",
"dumps",
"server",
"configurations",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ServerDumpPackager.java#L354-L357 |
65,618 | OpenLiberty/open-liberty | dev/com.ibm.ws.persistence/src/com/ibm/wsspi/persistence/internal/InMemoryUrlStreamHandler.java | InMemoryUrlStreamHandler.deregister | void deregister(List<URL> urls) {
for (URL url : urls) {
_data.remove(url.getFile());
}
} | java | void deregister(List<URL> urls) {
for (URL url : urls) {
_data.remove(url.getFile());
}
} | [
"void",
"deregister",
"(",
"List",
"<",
"URL",
">",
"urls",
")",
"{",
"for",
"(",
"URL",
"url",
":",
"urls",
")",
"{",
"_data",
".",
"remove",
"(",
"url",
".",
"getFile",
"(",
")",
")",
";",
"}",
"}"
] | Remove mappings for the provided urls. | [
"Remove",
"mappings",
"for",
"the",
"provided",
"urls",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.persistence/src/com/ibm/wsspi/persistence/internal/InMemoryUrlStreamHandler.java#L54-L58 |
65,619 | OpenLiberty/open-liberty | dev/com.ibm.ws.persistence/src/com/ibm/wsspi/persistence/internal/InMemoryUrlStreamHandler.java | InMemoryUrlStreamHandler.register | void register(URL url, InMemoryMappingFile immf) {
_data.put(url.getFile(), immf);
} | java | void register(URL url, InMemoryMappingFile immf) {
_data.put(url.getFile(), immf);
} | [
"void",
"register",
"(",
"URL",
"url",
",",
"InMemoryMappingFile",
"immf",
")",
"{",
"_data",
".",
"put",
"(",
"url",
".",
"getFile",
"(",
")",
",",
"immf",
")",
";",
"}"
] | Register the URL mapping to the provided InMemoryMappingFile. | [
"Register",
"the",
"URL",
"mapping",
"to",
"the",
"provided",
"InMemoryMappingFile",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.persistence/src/com/ibm/wsspi/persistence/internal/InMemoryUrlStreamHandler.java#L63-L65 |
65,620 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/merge/MailSessionComparator.java | MailSessionComparator.isMatchingString | private boolean isMatchingString(String value1, String value2) {
boolean valuesMatch = true;
if (value1 == null) {
if (value2 != null) {
valuesMatch = false;
}
} else {
valuesMatch = value1.equals(value2);
}
... | java | private boolean isMatchingString(String value1, String value2) {
boolean valuesMatch = true;
if (value1 == null) {
if (value2 != null) {
valuesMatch = false;
}
} else {
valuesMatch = value1.equals(value2);
}
... | [
"private",
"boolean",
"isMatchingString",
"(",
"String",
"value1",
",",
"String",
"value2",
")",
"{",
"boolean",
"valuesMatch",
"=",
"true",
";",
"if",
"(",
"value1",
"==",
"null",
")",
"{",
"if",
"(",
"value2",
"!=",
"null",
")",
"{",
"valuesMatch",
"="... | Compare two string values.
@param value1
@param value2
@return true if matching | [
"Compare",
"two",
"string",
"values",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/merge/MailSessionComparator.java#L59-L72 |
65,621 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java | WebAppConfigurator.getListenerInterfaces | private List<Class<?>> getListenerInterfaces() {
List<Class<?>> listenerInterfaces =
new ArrayList<Class<?>>(Arrays.asList(SERVLET30_LISTENER_INTERFACES));
// Condition the HTTP ID Listener on Servlet 3.1 enablement.
if (com.ibm.ws.webcontainer.osgi.WebContainer.ge... | java | private List<Class<?>> getListenerInterfaces() {
List<Class<?>> listenerInterfaces =
new ArrayList<Class<?>>(Arrays.asList(SERVLET30_LISTENER_INTERFACES));
// Condition the HTTP ID Listener on Servlet 3.1 enablement.
if (com.ibm.ws.webcontainer.osgi.WebContainer.ge... | [
"private",
"List",
"<",
"Class",
"<",
"?",
">",
">",
"getListenerInterfaces",
"(",
")",
"{",
"List",
"<",
"Class",
"<",
"?",
">",
">",
"listenerInterfaces",
"=",
"new",
"ArrayList",
"<",
"Class",
"<",
"?",
">",
">",
"(",
"Arrays",
".",
"asList",
"(",... | Obtain the list of enabled listener interfaces. The list contents depends on servlet 3.1 enablement.
@return The list of enabled listener interfaces. | [
"Obtain",
"the",
"list",
"of",
"enabled",
"listener",
"interfaces",
".",
"The",
"list",
"contents",
"depends",
"on",
"servlet",
"3",
".",
"1",
"enablement",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java#L134-L169 |
65,622 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java | WebAppConfigurator.configureWebAppHelperFactory | public void configureWebAppHelperFactory(WebAppConfiguratorHelperFactory webAppConfiguratorHelperFactory, ResourceRefConfigFactory resourceRefConfigFactory) {
webAppHelper = webAppConfiguratorHelperFactory.createWebAppConfiguratorHelper(this, resourceRefConfigFactory, getListenerInterfaces());
t... | java | public void configureWebAppHelperFactory(WebAppConfiguratorHelperFactory webAppConfiguratorHelperFactory, ResourceRefConfigFactory resourceRefConfigFactory) {
webAppHelper = webAppConfiguratorHelperFactory.createWebAppConfiguratorHelper(this, resourceRefConfigFactory, getListenerInterfaces());
t... | [
"public",
"void",
"configureWebAppHelperFactory",
"(",
"WebAppConfiguratorHelperFactory",
"webAppConfiguratorHelperFactory",
",",
"ResourceRefConfigFactory",
"resourceRefConfigFactory",
")",
"{",
"webAppHelper",
"=",
"webAppConfiguratorHelperFactory",
".",
"createWebAppConfiguratorHelp... | Configure the WebApp helper factory
@param webAppConfiguratorHelperFactory The factory to be used
@param resourceRefConfigFactory | [
"Configure",
"the",
"WebApp",
"helper",
"factory"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java#L217-L220 |
65,623 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java | WebAppConfigurator.validateDuplicateKeyValueConfiguration | public <T> void validateDuplicateKeyValueConfiguration(String parentElementName,
String keyElementName,
String keyElementValue,
String valueEle... | java | public <T> void validateDuplicateKeyValueConfiguration(String parentElementName,
String keyElementName,
String keyElementValue,
String valueEle... | [
"public",
"<",
"T",
">",
"void",
"validateDuplicateKeyValueConfiguration",
"(",
"String",
"parentElementName",
",",
"String",
"keyElementName",
",",
"String",
"keyElementValue",
",",
"String",
"valueElementName",
",",
"T",
"newValue",
",",
"ConfigItem",
"<",
"T",
">... | Validate configuration items which are elements of keyed collections in two configurations.
Nearly the same as {@link #validateDuplicateConfiguration(String, String, Object, ConfigItem)},
but with a different parameterization of the element location.
@param parentElementName The name of the element which contains the... | [
"Validate",
"configuration",
"items",
"which",
"are",
"elements",
"of",
"keyed",
"collections",
"in",
"two",
"configurations",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java#L570-L626 |
65,624 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java | WebAppConfigurator.validateDuplicateDefaultErrorPageConfiguration | public void validateDuplicateDefaultErrorPageConfiguration(String newLocation, ConfigItem<String> priorLocationItem) {
String priorLocation = priorLocationItem.getValue();
if (priorLocation == null) {
if (newLocation == null) {
return; // Same null Location; ignore
... | java | public void validateDuplicateDefaultErrorPageConfiguration(String newLocation, ConfigItem<String> priorLocationItem) {
String priorLocation = priorLocationItem.getValue();
if (priorLocation == null) {
if (newLocation == null) {
return; // Same null Location; ignore
... | [
"public",
"void",
"validateDuplicateDefaultErrorPageConfiguration",
"(",
"String",
"newLocation",
",",
"ConfigItem",
"<",
"String",
">",
"priorLocationItem",
")",
"{",
"String",
"priorLocation",
"=",
"priorLocationItem",
".",
"getValue",
"(",
")",
";",
"if",
"(",
"p... | Validate default error page configuration items.
Nearly the same as {@link #validateDuplicateConfiguration(String, String, Object, ConfigItem)},
but with no location parameters: Default error page configuration items are in a fixed
location.
@param newLocation The default error page location. May be null.
@param pri... | [
"Validate",
"default",
"error",
"page",
"configuration",
"items",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java#L646-L691 |
65,625 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java | WebAppConfigurator.getConfigItemMap | @SuppressWarnings("unchecked")
public <T> Map<String, ConfigItem<T>> getConfigItemMap(String key) {
Map<String, ConfigItem<T>> configItemMap = (Map<String, ConfigItem<T>>) attributes.get(key);
if (configItemMap == null) {
configItemMap = new HashMap<String, ConfigItem<T>>();
... | java | @SuppressWarnings("unchecked")
public <T> Map<String, ConfigItem<T>> getConfigItemMap(String key) {
Map<String, ConfigItem<T>> configItemMap = (Map<String, ConfigItem<T>>) attributes.get(key);
if (configItemMap == null) {
configItemMap = new HashMap<String, ConfigItem<T>>();
... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"<",
"T",
">",
"Map",
"<",
"String",
",",
"ConfigItem",
"<",
"T",
">",
">",
"getConfigItemMap",
"(",
"String",
"key",
")",
"{",
"Map",
"<",
"String",
",",
"ConfigItem",
"<",
"T",
">",
">",
... | Obtain an attribute value as a mapping. Create and return a new empty mapping
if one is not yet present.
Once obtained as a mapping, the attribute value must always be obtained
as a mapping. A subsequent attempt to obtain the value as a set will fail
with a class cast exception.
@param key The key of the attribute ... | [
"Obtain",
"an",
"attribute",
"value",
"as",
"a",
"mapping",
".",
"Create",
"and",
"return",
"a",
"new",
"empty",
"mapping",
"if",
"one",
"is",
"not",
"yet",
"present",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java#L705-L717 |
65,626 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java | WebAppConfigurator.getContextSet | @SuppressWarnings("unchecked")
public <T> Set<T> getContextSet(String key) {
Set<T> set = (Set<T>) attributes.get(key);
if (set == null) {
set = new HashSet<T>();
attributes.put(key, set);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
... | java | @SuppressWarnings("unchecked")
public <T> Set<T> getContextSet(String key) {
Set<T> set = (Set<T>) attributes.get(key);
if (set == null) {
set = new HashSet<T>();
attributes.put(key, set);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"<",
"T",
">",
"Set",
"<",
"T",
">",
"getContextSet",
"(",
"String",
"key",
")",
"{",
"Set",
"<",
"T",
">",
"set",
"=",
"(",
"Set",
"<",
"T",
">",
")",
"attributes",
".",
"get",
"(",
"... | Obtain an attribute value as a sset. Create and return a new empty set
if one is not yet present.
Once obtained as a set, the attribute value must always be obtained
as a set. A subsequent attempt to obtain the value as a mapping
will fail with a class cast exception.
@param key The key of the attribute value.
@re... | [
"Obtain",
"an",
"attribute",
"value",
"as",
"a",
"sset",
".",
"Create",
"and",
"return",
"a",
"new",
"empty",
"set",
"if",
"one",
"is",
"not",
"yet",
"present",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java#L731-L743 |
65,627 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java | WebAppConfigurator.createConfigItem | public <T> ConfigItem<T> createConfigItem(T value, MergeComparator<T> comparator) {
return new ConfigItemImpl<T>(value, getConfigSource(), getLibraryURI(), comparator);
} | java | public <T> ConfigItem<T> createConfigItem(T value, MergeComparator<T> comparator) {
return new ConfigItemImpl<T>(value, getConfigSource(), getLibraryURI(), comparator);
} | [
"public",
"<",
"T",
">",
"ConfigItem",
"<",
"T",
">",
"createConfigItem",
"(",
"T",
"value",
",",
"MergeComparator",
"<",
"T",
">",
"comparator",
")",
"{",
"return",
"new",
"ConfigItemImpl",
"<",
"T",
">",
"(",
"value",
",",
"getConfigSource",
"(",
")",
... | Create a configuration item using the current source.
See {@link #getConfigSource()} and {@link #getLibraryURI()}.
@param value The value to place in the configuration item. A null value
may be provided.
@param comparator The comparator to be used for the configuration item.
Null to select the default comparator.
@... | [
"Create",
"a",
"configuration",
"item",
"using",
"the",
"current",
"source",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java#L779-L781 |
65,628 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/PeerLeaseData.java | PeerLeaseData.isExpired | public boolean isExpired()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "isExpired");
boolean expired = false;
long curTime = System.currentTimeMillis();
//TODO:
if (curTime - _leaseTime > _leaseTimeout * 1000) // 30 seconds default for timeout
{
i... | java | public boolean isExpired()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "isExpired");
boolean expired = false;
long curTime = System.currentTimeMillis();
//TODO:
if (curTime - _leaseTime > _leaseTimeout * 1000) // 30 seconds default for timeout
{
i... | [
"public",
"boolean",
"isExpired",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"isExpired\"",
")",
";",
"boolean",
"expired",
"=",
"false",
";",
"long",
"curTime",
"=",
"System",
".",
"cu... | Has the peer expired? | [
"Has",
"the",
"peer",
"expired?"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/PeerLeaseData.java#L63-L85 |
65,629 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java | FreePool.returnToFreePool | protected void returnToFreePool(MCWrapper mcWrapper) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(this, tc, "returnToFreePool", gConfigProps.cfName);
}
if (mcWrapper.shouldBeDestroyed() || mcWrapper.hasFatalErrorNotificationOccurred(fatalErrorNotifica... | java | protected void returnToFreePool(MCWrapper mcWrapper) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(this, tc, "returnToFreePool", gConfigProps.cfName);
}
if (mcWrapper.shouldBeDestroyed() || mcWrapper.hasFatalErrorNotificationOccurred(fatalErrorNotifica... | [
"protected",
"void",
"returnToFreePool",
"(",
"MCWrapper",
"mcWrapper",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"... | Return the mcWrapper to the free pool.
@pre mcWrapper != null | [
"Return",
"the",
"mcWrapper",
"to",
"the",
"free",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java#L244-L284 |
65,630 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java | FreePool.removeMCWrapperFromList | protected void removeMCWrapperFromList(
MCWrapper mcWrapper,
boolean removeFromFreePool,
boolean synchronizationNeeded,
boolean skipWaiterNotify,
... | java | protected void removeMCWrapperFromList(
MCWrapper mcWrapper,
boolean removeFromFreePool,
boolean synchronizationNeeded,
boolean skipWaiterNotify,
... | [
"protected",
"void",
"removeMCWrapperFromList",
"(",
"MCWrapper",
"mcWrapper",
",",
"boolean",
"removeFromFreePool",
",",
"boolean",
"synchronizationNeeded",
",",
"boolean",
"skipWaiterNotify",
",",
"boolean",
"decrementTotalCounter",
")",
"{",
"if",
"(",
"TraceComponent"... | This method will try to cleanup and destroy the connection and remove the
mcWrapper from the free pool.
- If removeFromFreePool is true, the mcWrapper exists in the free pool
- If removeFromFreePool is false, the mcWrapper do not exist in the free pool
@param Managed connection wrapper
@param Remove from free pool
@... | [
"This",
"method",
"will",
"try",
"to",
"cleanup",
"and",
"destroy",
"the",
"connection",
"and",
"remove",
"the",
"mcWrapper",
"from",
"the",
"free",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java#L390-L446 |
65,631 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java | FreePool.removeParkedConnection | protected void removeParkedConnection() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(this, tc, "removeParkedConnection");
}
// boolean errorOccured = false;
if (pm.parkedMCWrapper != null) { // Only attempt to cleanup and destroy the parked ... | java | protected void removeParkedConnection() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(this, tc, "removeParkedConnection");
}
// boolean errorOccured = false;
if (pm.parkedMCWrapper != null) { // Only attempt to cleanup and destroy the parked ... | [
"protected",
"void",
"removeParkedConnection",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"removeParkedConnection... | Remove the parked managed connection. This method should only be called if do not have
SmartHandleSupport in effect. The PoolManager controls the SmartHandleSupported flag, so
we have to trust the PM not to call this method when smart handles is in effect. | [
"Remove",
"the",
"parked",
"managed",
"connection",
".",
"This",
"method",
"should",
"only",
"be",
"called",
"if",
"do",
"not",
"have",
"SmartHandleSupport",
"in",
"effect",
".",
"The",
"PoolManager",
"controls",
"the",
"SmartHandleSupported",
"flag",
"so",
"we"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java#L496-L553 |
65,632 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java | FreePool.removeCleanupAndDestroyAllFreeConnections | protected void removeCleanupAndDestroyAllFreeConnections() { // removed iterator code
// This method is called within a synchronize block
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(this, tc, "removeCleanupAndDestroyAllFreeConnections");
}
int ... | java | protected void removeCleanupAndDestroyAllFreeConnections() { // removed iterator code
// This method is called within a synchronize block
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(this, tc, "removeCleanupAndDestroyAllFreeConnections");
}
int ... | [
"protected",
"void",
"removeCleanupAndDestroyAllFreeConnections",
"(",
")",
"{",
"// removed iterator code",
"// This method is called within a synchronize block",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
... | Remove the mcWrappers from the arraylist. Cleanup and destroy the
managed connections. | [
"Remove",
"the",
"mcWrappers",
"from",
"the",
"arraylist",
".",
"Cleanup",
"and",
"destroy",
"the",
"managed",
"connections",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java#L1621-L1637 |
65,633 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java | FreePool.cleanupAndDestroyAllFreeConnections | protected void cleanupAndDestroyAllFreeConnections() {
// This method is called within a synchronize block
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(this, tc, "cleanupAndDestroyAllFreeConnections");
}
int mcWrapperListIndex = mcWrapperList.si... | java | protected void cleanupAndDestroyAllFreeConnections() {
// This method is called within a synchronize block
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(this, tc, "cleanupAndDestroyAllFreeConnections");
}
int mcWrapperListIndex = mcWrapperList.si... | [
"protected",
"void",
"cleanupAndDestroyAllFreeConnections",
"(",
")",
"{",
"// This method is called within a synchronize block",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entr... | During server shutdown, try to cleanup and destroy the managed connections
nicely. This method should only be called during server server shutdown. | [
"During",
"server",
"shutdown",
"try",
"to",
"cleanup",
"and",
"destroy",
"the",
"managed",
"connections",
"nicely",
".",
"This",
"method",
"should",
"only",
"be",
"called",
"during",
"server",
"server",
"shutdown",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java#L1653-L1671 |
65,634 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java | FreePool.incrementFatalErrorValue | protected void incrementFatalErrorValue(int value1) {
/*
* value1 and value2 are index values for the free pools.
* When value1 and value2 are 0, we are in free pool .
*/
if (fatalErrorNotificationTime == Integer.MAX_VALUE - 1) {
/*
* We need to start ... | java | protected void incrementFatalErrorValue(int value1) {
/*
* value1 and value2 are index values for the free pools.
* When value1 and value2 are 0, we are in free pool .
*/
if (fatalErrorNotificationTime == Integer.MAX_VALUE - 1) {
/*
* We need to start ... | [
"protected",
"void",
"incrementFatalErrorValue",
"(",
"int",
"value1",
")",
"{",
"/*\n * value1 and value2 are index values for the free pools.\n * When value1 and value2 are 0, we are in free pool .\n */",
"if",
"(",
"fatalErrorNotificationTime",
"==",
"Integer",
... | This method should only be called when a fatal error occurs or
when an attempt is made to remove all of the connections from
the pool. | [
"This",
"method",
"should",
"only",
"be",
"called",
"when",
"a",
"fatal",
"error",
"occurs",
"or",
"when",
"an",
"attempt",
"is",
"made",
"to",
"remove",
"all",
"of",
"the",
"connections",
"from",
"the",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java#L1732-L1771 |
65,635 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/converters/UserConverter.java | UserConverter.newInstance | @Trivial
public static <K> UserConverter<K> newInstance(Converter<K> converter) {
return newInstance(getType(converter), converter);
} | java | @Trivial
public static <K> UserConverter<K> newInstance(Converter<K> converter) {
return newInstance(getType(converter), converter);
} | [
"@",
"Trivial",
"public",
"static",
"<",
"K",
">",
"UserConverter",
"<",
"K",
">",
"newInstance",
"(",
"Converter",
"<",
"K",
">",
"converter",
")",
"{",
"return",
"newInstance",
"(",
"getType",
"(",
"converter",
")",
",",
"converter",
")",
";",
"}"
] | Construct a new PriorityConverter using discovered or default type and priority
@param converter | [
"Construct",
"a",
"new",
"PriorityConverter",
"using",
"discovered",
"or",
"default",
"type",
"and",
"priority"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/converters/UserConverter.java#L40-L43 |
65,636 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/converters/UserConverter.java | UserConverter.newInstance | @Trivial
public static <K> UserConverter<K> newInstance(Type type, Converter<K> converter) {
return newInstance(type, getPriority(converter), converter);
} | java | @Trivial
public static <K> UserConverter<K> newInstance(Type type, Converter<K> converter) {
return newInstance(type, getPriority(converter), converter);
} | [
"@",
"Trivial",
"public",
"static",
"<",
"K",
">",
"UserConverter",
"<",
"K",
">",
"newInstance",
"(",
"Type",
"type",
",",
"Converter",
"<",
"K",
">",
"converter",
")",
"{",
"return",
"newInstance",
"(",
"type",
",",
"getPriority",
"(",
"converter",
")"... | Construct a new PriorityConverter using discovered or default priority
@param converter | [
"Construct",
"a",
"new",
"PriorityConverter",
"using",
"discovered",
"or",
"default",
"priority"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/converters/UserConverter.java#L50-L53 |
65,637 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/converters/UserConverter.java | UserConverter.getType | @Trivial
private static Type getType(Converter<?> converter) {
Type type = null;
Type[] itypes = converter.getClass().getGenericInterfaces();
for (Type itype : itypes) {
ParameterizedType ptype = (ParameterizedType) itype;
if (ptype.getRawType() == Converter.class) {... | java | @Trivial
private static Type getType(Converter<?> converter) {
Type type = null;
Type[] itypes = converter.getClass().getGenericInterfaces();
for (Type itype : itypes) {
ParameterizedType ptype = (ParameterizedType) itype;
if (ptype.getRawType() == Converter.class) {... | [
"@",
"Trivial",
"private",
"static",
"Type",
"getType",
"(",
"Converter",
"<",
"?",
">",
"converter",
")",
"{",
"Type",
"type",
"=",
"null",
";",
"Type",
"[",
"]",
"itypes",
"=",
"converter",
".",
"getClass",
"(",
")",
".",
"getGenericInterfaces",
"(",
... | Reflectively work out the Type of a Converter
@param converter
@return | [
"Reflectively",
"work",
"out",
"the",
"Type",
"of",
"a",
"Converter"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/converters/UserConverter.java#L103-L125 |
65,638 | OpenLiberty/open-liberty | dev/com.ibm.ws.app.manager.war/src/com/ibm/ws/app/manager/war/internal/ZipUtils.java | ZipUtils.deleteWithRetry | @Trivial
public static File deleteWithRetry(File file) {
String methodName = "deleteWithRetry";
String filePath;
if ( tc.isDebugEnabled() ) {
filePath = file.getAbsolutePath();
Tr.debug(tc, methodName + ": Recursively delete [ " + filePath + " ]");
} else {
... | java | @Trivial
public static File deleteWithRetry(File file) {
String methodName = "deleteWithRetry";
String filePath;
if ( tc.isDebugEnabled() ) {
filePath = file.getAbsolutePath();
Tr.debug(tc, methodName + ": Recursively delete [ " + filePath + " ]");
} else {
... | [
"@",
"Trivial",
"public",
"static",
"File",
"deleteWithRetry",
"(",
"File",
"file",
")",
"{",
"String",
"methodName",
"=",
"\"deleteWithRetry\"",
";",
"String",
"filePath",
";",
"if",
"(",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"filePath",
"=",
"... | Attempt to recursively delete a target file.
Answer null if the delete was successful. Answer the first
file which could not be deleted if the delete failed.
If the delete fails, wait 400 MS then try again. Do this
for the entire delete operation, not for each file deletion.
A test must be done to verify that the ... | [
"Attempt",
"to",
"recursively",
"delete",
"a",
"target",
"file",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.war/src/com/ibm/ws/app/manager/war/internal/ZipUtils.java#L104-L155 |
65,639 | OpenLiberty/open-liberty | dev/com.ibm.ws.app.manager.war/src/com/ibm/ws/app/manager/war/internal/ZipUtils.java | ZipUtils.delete | @Trivial
public static File delete(File file) {
String methodName = "delete";
String filePath;
if ( tc.isDebugEnabled() ) {
filePath = file.getAbsolutePath();
} else {
filePath = null;
}
if ( file.isDirectory() ) {
if ( filePath !... | java | @Trivial
public static File delete(File file) {
String methodName = "delete";
String filePath;
if ( tc.isDebugEnabled() ) {
filePath = file.getAbsolutePath();
} else {
filePath = null;
}
if ( file.isDirectory() ) {
if ( filePath !... | [
"@",
"Trivial",
"public",
"static",
"File",
"delete",
"(",
"File",
"file",
")",
"{",
"String",
"methodName",
"=",
"\"delete\"",
";",
"String",
"filePath",
";",
"if",
"(",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"filePath",
"=",
"file",
".",
"g... | Attempt to recursively delete a file.
Do not retry in case of a failure.
A test must be done to verify that the file exists before
invoking this method: If the file does not exist, the
delete operation will fail.
@param file The file to recursively delete.
@return Null if the file was deleted. The first file which... | [
"Attempt",
"to",
"recursively",
"delete",
"a",
"file",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.war/src/com/ibm/ws/app/manager/war/internal/ZipUtils.java#L171-L224 |
65,640 | OpenLiberty/open-liberty | dev/com.ibm.ws.app.manager.war/src/com/ibm/ws/app/manager/war/internal/ZipUtils.java | ZipUtils.unzip | public static void unzip(
File source, File target,
boolean isEar, long lastModified) throws IOException {
byte[] transferBuffer = new byte[16 * 1024];
unzip(source, target, isEar, lastModified, transferBuffer);
} | java | public static void unzip(
File source, File target,
boolean isEar, long lastModified) throws IOException {
byte[] transferBuffer = new byte[16 * 1024];
unzip(source, target, isEar, lastModified, transferBuffer);
} | [
"public",
"static",
"void",
"unzip",
"(",
"File",
"source",
",",
"File",
"target",
",",
"boolean",
"isEar",
",",
"long",
"lastModified",
")",
"throws",
"IOException",
"{",
"byte",
"[",
"]",
"transferBuffer",
"=",
"new",
"byte",
"[",
"16",
"*",
"1024",
"]... | Unpack a source archive into a target directory.
If the source archive is a WAR, package web module archives as well.
This operation is not smart enough to avoid unpacking WAR files
in an application library folder. However, that is very unlikely to
happen.
@param source The source archive which is to be unpacked.
... | [
"Unpack",
"a",
"source",
"archive",
"into",
"a",
"target",
"directory",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.war/src/com/ibm/ws/app/manager/war/internal/ZipUtils.java#L251-L257 |
65,641 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/el/unified/resolver/implicitobject/ImplicitObjectResolver.java | ImplicitObjectResolver.makeResolverForJSP | public static ELResolver makeResolverForJSP()
{
Map<String, ImplicitObject> forJSPList = new HashMap<String, ImplicitObject>(8);//4
ImplicitObject io1 = new FacesContextImplicitObject();
forJSPList.put(io1.getName(), io1);
ImplicitObject io2 = new ViewImplicitObject();
forJSP... | java | public static ELResolver makeResolverForJSP()
{
Map<String, ImplicitObject> forJSPList = new HashMap<String, ImplicitObject>(8);//4
ImplicitObject io1 = new FacesContextImplicitObject();
forJSPList.put(io1.getName(), io1);
ImplicitObject io2 = new ViewImplicitObject();
forJSP... | [
"public",
"static",
"ELResolver",
"makeResolverForJSP",
"(",
")",
"{",
"Map",
"<",
"String",
",",
"ImplicitObject",
">",
"forJSPList",
"=",
"new",
"HashMap",
"<",
"String",
",",
"ImplicitObject",
">",
"(",
"8",
")",
";",
"//4",
"ImplicitObject",
"io1",
"=",
... | Static factory for an ELResolver for resolving implicit objects in JSPs. See JSF 1.2 spec section 5.6.1.1 | [
"Static",
"factory",
"for",
"an",
"ELResolver",
"for",
"resolving",
"implicit",
"objects",
"in",
"JSPs",
".",
"See",
"JSF",
"1",
".",
"2",
"spec",
"section",
"5",
".",
"6",
".",
"1",
".",
"1"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/el/unified/resolver/implicitobject/ImplicitObjectResolver.java#L45-L57 |
65,642 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/el/unified/resolver/implicitobject/ImplicitObjectResolver.java | ImplicitObjectResolver.makeResolverForFaces | public static ELResolver makeResolverForFaces()
{
Map<String, ImplicitObject> forFacesList = new HashMap<String, ImplicitObject>(30);//14
ImplicitObject io1 = new ApplicationImplicitObject();
forFacesList.put(io1.getName(), io1);
ImplicitObject io2 = new ApplicationScopeImplicitObjec... | java | public static ELResolver makeResolverForFaces()
{
Map<String, ImplicitObject> forFacesList = new HashMap<String, ImplicitObject>(30);//14
ImplicitObject io1 = new ApplicationImplicitObject();
forFacesList.put(io1.getName(), io1);
ImplicitObject io2 = new ApplicationScopeImplicitObjec... | [
"public",
"static",
"ELResolver",
"makeResolverForFaces",
"(",
")",
"{",
"Map",
"<",
"String",
",",
"ImplicitObject",
">",
"forFacesList",
"=",
"new",
"HashMap",
"<",
"String",
",",
"ImplicitObject",
">",
"(",
"30",
")",
";",
"//14",
"ImplicitObject",
"io1",
... | Static factory for an ELResolver for resolving implicit objects in all of Faces. See JSF 1.2 spec section 5.6.1.2 | [
"Static",
"factory",
"for",
"an",
"ELResolver",
"for",
"resolving",
"implicit",
"objects",
"in",
"all",
"of",
"Faces",
".",
"See",
"JSF",
"1",
".",
"2",
"spec",
"section",
"5",
".",
"6",
".",
"1",
".",
"2"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/el/unified/resolver/implicitobject/ImplicitObjectResolver.java#L62-L104 |
65,643 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java | InboundTransmissionParser.parse | public void parse(WsByteBuffer transmissionData)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parse", transmissionData);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this, tc, transmissionData, "transmis... | java | public void parse(WsByteBuffer transmissionData)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parse", transmissionData);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this, tc, transmissionData, "transmis... | [
"public",
"void",
"parse",
"(",
"WsByteBuffer",
"transmissionData",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"parse\... | Parses a chunk of inbound data into discrete transmissions. The
headers for these transmissions are decoded and the payload data
is dispatched to the appropriate method for processing.
@param transmissionData A chunk of transmission data to be parsed. | [
"Parses",
"a",
"chunk",
"of",
"inbound",
"data",
"into",
"discrete",
"transmissions",
".",
"The",
"headers",
"for",
"these",
"transmissions",
"are",
"decoded",
"and",
"the",
"payload",
"data",
"is",
"dispatched",
"to",
"the",
"appropriate",
"method",
"for",
"p... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java#L200-L255 |
65,644 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java | InboundTransmissionParser.parseSegmentStartHeader | private void parseSegmentStartHeader(WsByteBuffer contextBuffer)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parseSegmentStartHeader", contextBuffer);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this, ... | java | private void parseSegmentStartHeader(WsByteBuffer contextBuffer)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parseSegmentStartHeader", contextBuffer);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this, ... | [
"private",
"void",
"parseSegmentStartHeader",
"(",
"WsByteBuffer",
"contextBuffer",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
... | Invoked to parse a start segment header structure from the supplied buffer.
May be invoked multiple times to incrementally parse the structure.
Once the structure has been fully parsed, transitions the state machine
into the appropriate next state based on the layout of the transmission.
@param contextBuffer | [
"Invoked",
"to",
"parse",
"a",
"start",
"segment",
"header",
"structure",
"from",
"the",
"supplied",
"buffer",
".",
"May",
"be",
"invoked",
"multiple",
"times",
"to",
"incrementally",
"parse",
"the",
"structure",
".",
"Once",
"the",
"structure",
"has",
"been",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java#L508-L552 |
65,645 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java | InboundTransmissionParser.parsePrimaryOnlyPayload | private void parsePrimaryOnlyPayload(WsByteBuffer contextBuffer)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parsePrimaryOnlyPayload", contextBuffer);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this, ... | java | private void parsePrimaryOnlyPayload(WsByteBuffer contextBuffer)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parsePrimaryOnlyPayload", contextBuffer);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this, ... | [
"private",
"void",
"parsePrimaryOnlyPayload",
"(",
"WsByteBuffer",
"contextBuffer",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
... | Invoked to parse a primary header payload structure from the supplied buffer.
May be invoked multiple times to incrementally parse the structure.
Once the structure has been fully parsed, transitions the state machine
into the appropriate next state based on the layout of the transmission.
@param contextBuffer | [
"Invoked",
"to",
"parse",
"a",
"primary",
"header",
"payload",
"structure",
"from",
"the",
"supplied",
"buffer",
".",
"May",
"be",
"invoked",
"multiple",
"times",
"to",
"incrementally",
"parse",
"the",
"structure",
".",
"Once",
"the",
"structure",
"has",
"been... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java#L561-L626 |
65,646 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java | InboundTransmissionParser.parseConversationPayload | private void parseConversationPayload(WsByteBuffer contextBuffer)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parseConversationPayload", contextBuffer);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this... | java | private void parseConversationPayload(WsByteBuffer contextBuffer)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parseConversationPayload", contextBuffer);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this... | [
"private",
"void",
"parseConversationPayload",
"(",
"WsByteBuffer",
"contextBuffer",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
... | Invoked to parse a conversation payload structure from the supplied buffer.
May be invoked multiple times to incrementally parse the structure.
Once the structure has been fully parsed, transitions the state machine
into the appropriate next state based on the layout of the transmission.
@param contextBuffer | [
"Invoked",
"to",
"parse",
"a",
"conversation",
"payload",
"structure",
"from",
"the",
"supplied",
"buffer",
".",
"May",
"be",
"invoked",
"multiple",
"times",
"to",
"incrementally",
"parse",
"the",
"structure",
".",
"Once",
"the",
"structure",
"has",
"been",
"f... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java#L635-L670 |
65,647 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java | InboundTransmissionParser.parseSegmentStartPayload | private void parseSegmentStartPayload(WsByteBuffer contextBuffer)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parseSegmentStartPayload", contextBuffer);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this... | java | private void parseSegmentStartPayload(WsByteBuffer contextBuffer)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parseSegmentStartPayload", contextBuffer);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this... | [
"private",
"void",
"parseSegmentStartPayload",
"(",
"WsByteBuffer",
"contextBuffer",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
... | Invoked to parse a segmented transmission start payload from the supplied buffer.
May be invoked multiple times to incrementally parse the structure.
Once the structure has been fully parsed, transitions the state machine
into the appropriate next state based on the layout of the transmission.
@param contextBuffer | [
"Invoked",
"to",
"parse",
"a",
"segmented",
"transmission",
"start",
"payload",
"from",
"the",
"supplied",
"buffer",
".",
"May",
"be",
"invoked",
"multiple",
"times",
"to",
"incrementally",
"parse",
"the",
"structure",
".",
"Once",
"the",
"structure",
"has",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java#L679-L727 |
65,648 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java | InboundTransmissionParser.parseSegmentMiddlePayload | private void parseSegmentMiddlePayload(WsByteBuffer contextBuffer)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parseSegmentMiddlePayload", contextBuffer);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(th... | java | private void parseSegmentMiddlePayload(WsByteBuffer contextBuffer)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parseSegmentMiddlePayload", contextBuffer);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(th... | [
"private",
"void",
"parseSegmentMiddlePayload",
"(",
"WsByteBuffer",
"contextBuffer",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
... | Invoked to parse a segmented transmission middle payload from the supplied buffer.
May be invoked multiple times to incrementally parse the structure.
Once the structure has been fully parsed, transitions the state machine
into the appropriate next state based on the layout of the transmission.
@param contextBuffer | [
"Invoked",
"to",
"parse",
"a",
"segmented",
"transmission",
"middle",
"payload",
"from",
"the",
"supplied",
"buffer",
".",
"May",
"be",
"invoked",
"multiple",
"times",
"to",
"incrementally",
"parse",
"the",
"structure",
".",
"Once",
"the",
"structure",
"has",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java#L736-L777 |
65,649 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java | InboundTransmissionParser.dispatchToConnection | private boolean dispatchToConnection(WsByteBuffer data)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "dispatchToConnection", data);
//@stoptracescan@
if (TraceComponent.isAnyTracingEnabled()) JFapUtils.debugSummaryMessage(tc, connection, null, "received c... | java | private boolean dispatchToConnection(WsByteBuffer data)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "dispatchToConnection", data);
//@stoptracescan@
if (TraceComponent.isAnyTracingEnabled()) JFapUtils.debugSummaryMessage(tc, connection, null, "received c... | [
"private",
"boolean",
"dispatchToConnection",
"(",
"WsByteBuffer",
"data",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\... | Dispatches a payload to the appropriate connection for processing. The
implication of dispatching to a connection is that the payload did not
have a conversation header on its transmission.
@param data
@returns true if this data resulted in the connection being closed and hence releasing its buffers | [
"Dispatches",
"a",
"payload",
"to",
"the",
"appropriate",
"connection",
"for",
"processing",
".",
"The",
"implication",
"of",
"dispatching",
"to",
"a",
"connection",
"is",
"that",
"the",
"payload",
"did",
"not",
"have",
"a",
"conversation",
"header",
"on",
"it... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java#L851-L860 |
65,650 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java | InboundTransmissionParser.reset | private void reset()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "reset");
throwable = null;
state = STATE_PARSING_PRIMARY_HEADER;
unparsedPrimaryHeader.position(0);
unparsedPrimaryHeader.limit(JFapChannelConstants.SIZEOF_PRIMARY_HEADER);
... | java | private void reset()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "reset");
throwable = null;
state = STATE_PARSING_PRIMARY_HEADER;
unparsedPrimaryHeader.position(0);
unparsedPrimaryHeader.limit(JFapChannelConstants.SIZEOF_PRIMARY_HEADER);
... | [
"private",
"void",
"reset",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"reset\"",
")",
";",
"throwable",
"=",... | Resets the state of the parsing state machine so that it is read to
parse another transmission. | [
"Resets",
"the",
"state",
"of",
"the",
"parsing",
"state",
"machine",
"so",
"that",
"it",
"is",
"read",
"to",
"parse",
"another",
"transmission",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java#L1100-L1118 |
65,651 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java | InboundTransmissionParser.readData | private WsByteBuffer readData(WsByteBuffer unparsedData,
WsByteBuffer scratchArea)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "readData", new Object[] {unparsedData, scratchArea});
int scratchAreaRemaining = scratchArea.remai... | java | private WsByteBuffer readData(WsByteBuffer unparsedData,
WsByteBuffer scratchArea)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "readData", new Object[] {unparsedData, scratchArea});
int scratchAreaRemaining = scratchArea.remai... | [
"private",
"WsByteBuffer",
"readData",
"(",
"WsByteBuffer",
"unparsedData",
",",
"WsByteBuffer",
"scratchArea",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
... | Reads data from a buffer into a scratch area.
@param unparsedData
@param scratchArea
@return | [
"Reads",
"data",
"from",
"a",
"buffer",
"into",
"a",
"scratch",
"area",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java#L1126-L1153 |
65,652 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/el/unified/resolver/ManagedBeanResolver.java | ManagedBeanResolver.createManagedBean | @SuppressWarnings("unchecked")
private Object createManagedBean(final ManagedBean managedBean, final FacesContext facesContext) throws ELException
{
final ExternalContext extContext = facesContext.getExternalContext();
final Map<Object, Object> facesContextMap = facesContext.getAttributes();
... | java | @SuppressWarnings("unchecked")
private Object createManagedBean(final ManagedBean managedBean, final FacesContext facesContext) throws ELException
{
final ExternalContext extContext = facesContext.getExternalContext();
final Map<Object, Object> facesContextMap = facesContext.getAttributes();
... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"private",
"Object",
"createManagedBean",
"(",
"final",
"ManagedBean",
"managedBean",
",",
"final",
"FacesContext",
"facesContext",
")",
"throws",
"ELException",
"{",
"final",
"ExternalContext",
"extContext",
"=",
"f... | adapted from Manfred's JSF 1.1 VariableResolverImpl | [
"adapted",
"from",
"Manfred",
"s",
"JSF",
"1",
".",
"1",
"VariableResolverImpl"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/el/unified/resolver/ManagedBeanResolver.java#L308-L343 |
65,653 | OpenLiberty/open-liberty | dev/com.ibm.ws.container.service.compat/src/com/ibm/ejs/util/dopriv/SetContextClassLoaderPrivileged.java | SetContextClassLoaderPrivileged.run | public Object run() {
Thread currentThread = Thread.currentThread();
oldClassLoader = threadContextAccessor.getContextClassLoader(currentThread); // 369927
// The following tests are done in a certain order to maximize performance
if (newClassLoader == oldClassLoader) {
wasC... | java | public Object run() {
Thread currentThread = Thread.currentThread();
oldClassLoader = threadContextAccessor.getContextClassLoader(currentThread); // 369927
// The following tests are done in a certain order to maximize performance
if (newClassLoader == oldClassLoader) {
wasC... | [
"public",
"Object",
"run",
"(",
")",
"{",
"Thread",
"currentThread",
"=",
"Thread",
".",
"currentThread",
"(",
")",
";",
"oldClassLoader",
"=",
"threadContextAccessor",
".",
"getContextClassLoader",
"(",
"currentThread",
")",
";",
"// 369927",
"// The following test... | 146064.3 | [
"146064",
".",
"3"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ejs/util/dopriv/SetContextClassLoaderPrivileged.java#L85-L102 |
65,654 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/PropertyService.java | PropertyService.isPassword | public static final boolean isPassword(String name) {
return PASSWORD_PROPS.contains(name) || name.toLowerCase().contains(DataSourceDef.password.name());
} | java | public static final boolean isPassword(String name) {
return PASSWORD_PROPS.contains(name) || name.toLowerCase().contains(DataSourceDef.password.name());
} | [
"public",
"static",
"final",
"boolean",
"isPassword",
"(",
"String",
"name",
")",
"{",
"return",
"PASSWORD_PROPS",
".",
"contains",
"(",
"name",
")",
"||",
"name",
".",
"toLowerCase",
"(",
")",
".",
"contains",
"(",
"DataSourceDef",
".",
"password",
".",
"... | Determines, based on the name of a property, if we expect the value might contain a password.
@param name property name.
@return true if the property value might be expected to contain a password, otherwise false. | [
"Determines",
"based",
"on",
"the",
"name",
"of",
"a",
"property",
"if",
"we",
"expect",
"the",
"value",
"might",
"contain",
"a",
"password",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/PropertyService.java#L204-L206 |
65,655 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/PropertyService.java | PropertyService.parseDurationProperties | public static void parseDurationProperties(Map<String, Object> vendorProps, String className, ConnectorService connectorSvc) throws Exception {
// type=long, unit=milliseconds
for (String propName : PropertyService.DURATION_MS_LONG_PROPS) {
Object propValue = vendorProps.remove(propName);
... | java | public static void parseDurationProperties(Map<String, Object> vendorProps, String className, ConnectorService connectorSvc) throws Exception {
// type=long, unit=milliseconds
for (String propName : PropertyService.DURATION_MS_LONG_PROPS) {
Object propValue = vendorProps.remove(propName);
... | [
"public",
"static",
"void",
"parseDurationProperties",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"vendorProps",
",",
"String",
"className",
",",
"ConnectorService",
"connectorSvc",
")",
"throws",
"Exception",
"{",
"// type=long, unit=milliseconds",
"for",
"(",
... | Parse and convert duration type properties.
@param vendorProps the vendor properties.
@param className data source implementation class name.
@param connectorSvc connector service.
@throws Exception if an error occurs. | [
"Parse",
"and",
"convert",
"duration",
"type",
"properties",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/PropertyService.java#L216-L274 |
65,656 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/PropertyService.java | PropertyService.parsePasswordProperties | public static final void parsePasswordProperties(Map<String, Object> vendorProps) {
for (String propName : PASSWORD_PROPS) {
String propValue = (String) vendorProps.remove(propName);
if (propValue != null)
vendorProps.put(propName, new SerializableProtectedString(propVal... | java | public static final void parsePasswordProperties(Map<String, Object> vendorProps) {
for (String propName : PASSWORD_PROPS) {
String propValue = (String) vendorProps.remove(propName);
if (propValue != null)
vendorProps.put(propName, new SerializableProtectedString(propVal... | [
"public",
"static",
"final",
"void",
"parsePasswordProperties",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"vendorProps",
")",
"{",
"for",
"(",
"String",
"propName",
":",
"PASSWORD_PROPS",
")",
"{",
"String",
"propValue",
"=",
"(",
"String",
")",
"vendor... | Parse and convert password properties to SerializableProtectedString.
@param vendorProps | [
"Parse",
"and",
"convert",
"password",
"properties",
"to",
"SerializableProtectedString",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/PropertyService.java#L281-L288 |
65,657 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/Queue.java | Queue.removeTail | public QueueElement removeTail() {
if (head == null) {
return null;
}
QueueElement result = tail;
if (result.previous == null) {
head = null;
tail = null;
} else {
tail = result.previous;
tail.next = null;
}
result.previous = null;
result.next = null;
result.queue = null;
numElemen... | java | public QueueElement removeTail() {
if (head == null) {
return null;
}
QueueElement result = tail;
if (result.previous == null) {
head = null;
tail = null;
} else {
tail = result.previous;
tail.next = null;
}
result.previous = null;
result.next = null;
result.queue = null;
numElemen... | [
"public",
"QueueElement",
"removeTail",
"(",
")",
"{",
"if",
"(",
"head",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"QueueElement",
"result",
"=",
"tail",
";",
"if",
"(",
"result",
".",
"previous",
"==",
"null",
")",
"{",
"head",
"=",
"null... | Remove the element at the tail of this queue and return it.
If the queue is empty return null. | [
"Remove",
"the",
"element",
"at",
"the",
"tail",
"of",
"this",
"queue",
"and",
"return",
"it",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/Queue.java#L150-L171 |
65,658 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/RemoteResultCollector.java | RemoteResultCollector.getLogLists | public RemoteAllResults getLogLists(LogQueryBean logQueryBean, RepositoryPointer after) throws LogRepositoryException {
RemoteAllResults result = new RemoteAllResults(logQueryBean);
Iterable<ServerInstanceLogRecordList> lists;
if (after == null) {
lists = logReader.getLogLists(logQueryBean);
} else {
list... | java | public RemoteAllResults getLogLists(LogQueryBean logQueryBean, RepositoryPointer after) throws LogRepositoryException {
RemoteAllResults result = new RemoteAllResults(logQueryBean);
Iterable<ServerInstanceLogRecordList> lists;
if (after == null) {
lists = logReader.getLogLists(logQueryBean);
} else {
list... | [
"public",
"RemoteAllResults",
"getLogLists",
"(",
"LogQueryBean",
"logQueryBean",
",",
"RepositoryPointer",
"after",
")",
"throws",
"LogRepositoryException",
"{",
"RemoteAllResults",
"result",
"=",
"new",
"RemoteAllResults",
"(",
"logQueryBean",
")",
";",
"Iterable",
"<... | retrieves results for all server instances in the repository.
@param logQueryBean query indicator
@param after starting location of instances to be return.
@return Set of all server instances satisfying the query request.
@throws LogRepositoryException indicating that an error occurred while reading list of instances ... | [
"retrieves",
"results",
"for",
"all",
"server",
"instances",
"in",
"the",
"repository",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/RemoteResultCollector.java#L45-L57 |
65,659 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/RemoteResultCollector.java | RemoteResultCollector.getLogListForServerInstance | public RemoteInstanceResult getLogListForServerInstance(RemoteInstanceDetails indicator, RepositoryPointer after, int offset, int maxRecords, Locale locale) throws LogRepositoryException {
ServerInstanceLogRecordList instance;
// Pointer should be used only if start time is null. This way the same query object can ... | java | public RemoteInstanceResult getLogListForServerInstance(RemoteInstanceDetails indicator, RepositoryPointer after, int offset, int maxRecords, Locale locale) throws LogRepositoryException {
ServerInstanceLogRecordList instance;
// Pointer should be used only if start time is null. This way the same query object can ... | [
"public",
"RemoteInstanceResult",
"getLogListForServerInstance",
"(",
"RemoteInstanceDetails",
"indicator",
",",
"RepositoryPointer",
"after",
",",
"int",
"offset",
",",
"int",
"maxRecords",
",",
"Locale",
"locale",
")",
"throws",
"LogRepositoryException",
"{",
"ServerIns... | retrieves records and header for one server instance.
@param indicator server instance identifier.
@param after starting location after which records are return.
@param offset number of records to skip.
@param maxRecords maximum number of records to return.
@param locale language into which record messages are transla... | [
"retrieves",
"records",
"and",
"header",
"for",
"one",
"server",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/RemoteResultCollector.java#L70-L113 |
65,660 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ws/jca/cm/ConnectionManagerService.java | ConnectionManagerService.setValidating | public void setValidating(boolean isValidating) {
if (isValidating)
MCWrapper.isValidating.set(true);
else
MCWrapper.isValidating.remove();
} | java | public void setValidating(boolean isValidating) {
if (isValidating)
MCWrapper.isValidating.set(true);
else
MCWrapper.isValidating.remove();
} | [
"public",
"void",
"setValidating",
"(",
"boolean",
"isValidating",
")",
"{",
"if",
"(",
"isValidating",
")",
"MCWrapper",
".",
"isValidating",
".",
"set",
"(",
"true",
")",
";",
"else",
"MCWrapper",
".",
"isValidating",
".",
"remove",
"(",
")",
";",
"}"
] | Indicates to the connection manager whether validation is occurring on the current thread.
@param isValidating true if validation is occurring on the current thread. Otherwise false. | [
"Indicates",
"to",
"the",
"connection",
"manager",
"whether",
"validation",
"is",
"occurring",
"on",
"the",
"current",
"thread",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ws/jca/cm/ConnectionManagerService.java#L131-L136 |
65,661 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java | ProxyQueueConversationGroupImpl.createBrowserProxyQueue | public synchronized BrowserProxyQueue createBrowserProxyQueue() // F171893
throws SIResourceException, SIIncorrectCallException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createBrowserProxyQueue"); // F171893
checkClosed();
... | java | public synchronized BrowserProxyQueue createBrowserProxyQueue() // F171893
throws SIResourceException, SIIncorrectCallException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createBrowserProxyQueue"); // F171893
checkClosed();
... | [
"public",
"synchronized",
"BrowserProxyQueue",
"createBrowserProxyQueue",
"(",
")",
"// F171893",
"throws",
"SIResourceException",
",",
"SIIncorrectCallException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
... | Creates a new browser proxy queue for this group.
@see com.ibm.ws.sib.comms.client.proxyqueue.ProxyQueueConversationGroup#createBrowserProxyQueue() | [
"Creates",
"a",
"new",
"browser",
"proxy",
"queue",
"for",
"this",
"group",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java#L120-L131 |
65,662 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java | ProxyQueueConversationGroupImpl.createAsynchConsumerProxyQueue | public synchronized AsynchConsumerProxyQueue
createAsynchConsumerProxyQueue(OrderingContext oc)
throws SIResourceException, SIIncorrectCallException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createAsynchConsumerProxyQueue");
short id = nex... | java | public synchronized AsynchConsumerProxyQueue
createAsynchConsumerProxyQueue(OrderingContext oc)
throws SIResourceException, SIIncorrectCallException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createAsynchConsumerProxyQueue");
short id = nex... | [
"public",
"synchronized",
"AsynchConsumerProxyQueue",
"createAsynchConsumerProxyQueue",
"(",
"OrderingContext",
"oc",
")",
"throws",
"SIResourceException",
",",
"SIIncorrectCallException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
... | Creates a new asynchronous consumer proxy queue for this group.
@throws SIResourceException
@throws SIResourceException
@throws SIIncorrectCallException
@throws SIIncorrectCallException
@throws SIErrorException
@throws SIConnectionUnavailableException
@throws SISessionUnavailableException
@throws SIConnectionDroppedExc... | [
"Creates",
"a",
"new",
"asynchronous",
"consumer",
"proxy",
"queue",
"for",
"this",
"group",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java#L147-L173 |
65,663 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java | ProxyQueueConversationGroupImpl.createReadAheadProxyQueue | public synchronized AsynchConsumerProxyQueue createReadAheadProxyQueue(Reliability unrecoverableReliability) // f187521.2.1
throws SIResourceException, SIIncorrectCallException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createReadAheadProxyQueue");
checkClosed... | java | public synchronized AsynchConsumerProxyQueue createReadAheadProxyQueue(Reliability unrecoverableReliability) // f187521.2.1
throws SIResourceException, SIIncorrectCallException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createReadAheadProxyQueue");
checkClosed... | [
"public",
"synchronized",
"AsynchConsumerProxyQueue",
"createReadAheadProxyQueue",
"(",
"Reliability",
"unrecoverableReliability",
")",
"// f187521.2.1",
"throws",
"SIResourceException",
",",
"SIIncorrectCallException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled"... | Creates a new read ahead proxy queue for this group.
@see com.ibm.ws.sib.comms.client.proxyqueue.ProxyQueueConversationGroup#createReadAheadProxyQueue(Reliability) | [
"Creates",
"a",
"new",
"read",
"ahead",
"proxy",
"queue",
"for",
"this",
"group",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java#L220-L236 |
65,664 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java | ProxyQueueConversationGroupImpl.bury | public synchronized void bury(ProxyQueue queue)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "bury");
// Get the proxy queue id
short id = queue.getId();
// Remove it from the table
mutableId.setValue(id);
idToProxyQueueMap.remov... | java | public synchronized void bury(ProxyQueue queue)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "bury");
// Get the proxy queue id
short id = queue.getId();
// Remove it from the table
mutableId.setValue(id);
idToProxyQueueMap.remov... | [
"public",
"synchronized",
"void",
"bury",
"(",
"ProxyQueue",
"queue",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"bury\"",
")",
"... | If a session is failed to be created then we need to bury it so
that it never bothers us again. The queue is simply removed from
the conversation group - no attempt is made to remove messages.
It is assumed that if something went wrong in the creation then no
messages would ever get to the queue.
@param queue | [
"If",
"a",
"session",
"is",
"failed",
"to",
"be",
"created",
"then",
"we",
"need",
"to",
"bury",
"it",
"so",
"that",
"it",
"never",
"bothers",
"us",
"again",
".",
"The",
"queue",
"is",
"simply",
"removed",
"from",
"the",
"conversation",
"group",
"-",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java#L304-L316 |
65,665 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java | ProxyQueueConversationGroupImpl.find | public synchronized ProxyQueue find(short proxyQueueId)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "find", ""+proxyQueueId);
mutableId.setValue(proxyQueueId);
ProxyQueue retQueue = idToProxyQueueMap.get(mutableId);
if (TraceComponent.isAny... | java | public synchronized ProxyQueue find(short proxyQueueId)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "find", ""+proxyQueueId);
mutableId.setValue(proxyQueueId);
ProxyQueue retQueue = idToProxyQueueMap.get(mutableId);
if (TraceComponent.isAny... | [
"public",
"synchronized",
"ProxyQueue",
"find",
"(",
"short",
"proxyQueueId",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"find\"",
... | Locates a proxy queue, from this group, via its queue ID.
@see com.ibm.ws.sib.comms.client.proxyqueue.ProxyQueueConversationGroup#find(short) | [
"Locates",
"a",
"proxy",
"queue",
"from",
"this",
"group",
"via",
"its",
"queue",
"ID",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java#L411-L420 |
65,666 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java | ProxyQueueConversationGroupImpl.notifyClose | protected void notifyClose(ProxyQueue queue)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "notifyClose", queue);
try
{
final short id = queue.getId();
idAllocator.releaseId(id);
//Remove the id from the map
synchronized... | java | protected void notifyClose(ProxyQueue queue)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "notifyClose", queue);
try
{
final short id = queue.getId();
idAllocator.releaseId(id);
//Remove the id from the map
synchronized... | [
"protected",
"void",
"notifyClose",
"(",
"ProxyQueue",
"queue",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"notifyClose\"",
",",
"q... | Notified when a proxy queue in this group is closed. Allows
us to free up the ID assigned to it.
@param queue | [
"Notified",
"when",
"a",
"proxy",
"queue",
"in",
"this",
"group",
"is",
"closed",
".",
"Allows",
"us",
"to",
"free",
"up",
"the",
"ID",
"assigned",
"to",
"it",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java#L451-L473 |
65,667 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java | ProxyQueueConversationGroupImpl.nextId | private short nextId() throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "nextId");
short id;
try
{
id = idAllocator.allocateId();
}
catch (IdAllocatorException e)
{
// No FFDC code needed
... | java | private short nextId() throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "nextId");
short id;
try
{
id = idAllocator.allocateId();
}
catch (IdAllocatorException e)
{
// No FFDC code needed
... | [
"private",
"short",
"nextId",
"(",
")",
"throws",
"SIResourceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"nextId\"",
")",
";"... | Helper method. Returns the next id to be used for a proxy
queue.
@return short The next ID to use.
@throws SIResourceException Thrown if there are no more free Ids. | [
"Helper",
"method",
".",
"Returns",
"the",
"next",
"id",
"to",
"be",
"used",
"for",
"a",
"proxy",
"queue",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java#L481-L500 |
65,668 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java | ProxyQueueConversationGroupImpl.checkClosed | private void checkClosed() throws SIIncorrectCallException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkClosed", ""+closed);
if (closed)
throw new SIIncorrectCallException(
TraceNLS.getFormattedMessage(CommsConstants.MSG_BUNDLE, "PROXY_QUE... | java | private void checkClosed() throws SIIncorrectCallException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkClosed", ""+closed);
if (closed)
throw new SIIncorrectCallException(
TraceNLS.getFormattedMessage(CommsConstants.MSG_BUNDLE, "PROXY_QUE... | [
"private",
"void",
"checkClosed",
"(",
")",
"throws",
"SIIncorrectCallException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"checkClosed\""... | Helper method. Checks if this group has been closed and throws
an exception if it has.
@throws SIIncorrectCallException | [
"Helper",
"method",
".",
"Checks",
"if",
"this",
"group",
"has",
"been",
"closed",
"and",
"throws",
"an",
"exception",
"if",
"it",
"has",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java#L507-L515 |
65,669 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java | ProxyQueueConversationGroupImpl.close | public void close()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close");
synchronized(this)
{
if (closed)
{
idToProxyQueueMap.clear();
factory.groupCloseNotification(conversation, this);
}
} ... | java | public void close()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close");
synchronized(this)
{
if (closed)
{
idToProxyQueueMap.clear();
factory.groupCloseNotification(conversation, this);
}
} ... | [
"public",
"void",
"close",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"close\"",
")",
";",
"synchronized",
"(... | Closes this proxy queue conversation group. | [
"Closes",
"this",
"proxy",
"queue",
"conversation",
"group",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java#L520-L532 |
65,670 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java | ProxyQueueConversationGroupImpl.conversationDroppedNotification | public void conversationDroppedNotification()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "conversationDroppedNotification");
LinkedList<ProxyQueue> notifyList = null;
synchronized(this)
{
// Make a copy of the map's values to avoid a conc... | java | public void conversationDroppedNotification()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "conversationDroppedNotification");
LinkedList<ProxyQueue> notifyList = null;
synchronized(this)
{
// Make a copy of the map's values to avoid a conc... | [
"public",
"void",
"conversationDroppedNotification",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"conversationDroppedN... | Invoked to notify the group that the conversation that backs it has gone away.
Iterate over the queues and notify them. | [
"Invoked",
"to",
"notify",
"the",
"group",
"that",
"the",
"conversation",
"that",
"backs",
"it",
"has",
"gone",
"away",
".",
"Iterate",
"over",
"the",
"queues",
"and",
"notify",
"them",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java#L538-L557 |
65,671 | OpenLiberty/open-liberty | dev/com.ibm.ws.app.manager.springboot/src/com/ibm/ws/app/manager/springboot/container/config/ConfigElement.java | ConfigElement.setExtraAttribute | public void setExtraAttribute(String name, String value) {
if (extraAttributes == null) {
extraAttributes = new HashMap<QName, Object>();
}
if (value == null) {
extraAttributes.remove(new QName(null, name));
} else {
extraAttributes.put(new QName(null,... | java | public void setExtraAttribute(String name, String value) {
if (extraAttributes == null) {
extraAttributes = new HashMap<QName, Object>();
}
if (value == null) {
extraAttributes.remove(new QName(null, name));
} else {
extraAttributes.put(new QName(null,... | [
"public",
"void",
"setExtraAttribute",
"(",
"String",
"name",
",",
"String",
"value",
")",
"{",
"if",
"(",
"extraAttributes",
"==",
"null",
")",
"{",
"extraAttributes",
"=",
"new",
"HashMap",
"<",
"QName",
",",
"Object",
">",
"(",
")",
";",
"}",
"if",
... | Sets an attribute on this element that does not have an explicit setter.
@param name the name
@param value the value | [
"Sets",
"an",
"attribute",
"on",
"this",
"element",
"that",
"does",
"not",
"have",
"an",
"explicit",
"setter",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.springboot/src/com/ibm/ws/app/manager/springboot/container/config/ConfigElement.java#L55-L64 |
65,672 | OpenLiberty/open-liberty | dev/com.ibm.ws.app.manager.springboot/src/com/ibm/ws/app/manager/springboot/container/config/ConfigElement.java | ConfigElement.getValue | public static String getValue(String value) {
if (value == null) {
return null;
}
String v = removeQuotes(value.trim()).trim();
if (v.isEmpty()) {
return null;
}
return v;
} | java | public static String getValue(String value) {
if (value == null) {
return null;
}
String v = removeQuotes(value.trim()).trim();
if (v.isEmpty()) {
return null;
}
return v;
} | [
"public",
"static",
"String",
"getValue",
"(",
"String",
"value",
")",
"{",
"if",
"(",
"value",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"String",
"v",
"=",
"removeQuotes",
"(",
"value",
".",
"trim",
"(",
")",
")",
".",
"trim",
"(",
")",... | Sometimes, the JACL representation of a null or empty value includes
quotation marks. Calling this method will parse away the extra JACL
syntax and return a real or null value
@param value
an unchecked input value
@return the real value described by the input value | [
"Sometimes",
"the",
"JACL",
"representation",
"of",
"a",
"null",
"or",
"empty",
"value",
"includes",
"quotation",
"marks",
".",
"Calling",
"this",
"method",
"will",
"parse",
"away",
"the",
"extra",
"JACL",
"syntax",
"and",
"return",
"a",
"real",
"or",
"null"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.springboot/src/com/ibm/ws/app/manager/springboot/container/config/ConfigElement.java#L75-L84 |
65,673 | OpenLiberty/open-liberty | dev/com.ibm.ws.app.manager.springboot/src/com/ibm/ws/app/manager/springboot/container/config/ConfigElement.java | ConfigElement.removeQuotes | public static String removeQuotes(String arg) {
if (arg == null) {
return null;
}
int length = arg.length();
if (length > 1 && arg.startsWith("\"") && arg.endsWith("\"")) {
return arg.substring(1, length - 1);
}
return arg;
} | java | public static String removeQuotes(String arg) {
if (arg == null) {
return null;
}
int length = arg.length();
if (length > 1 && arg.startsWith("\"") && arg.endsWith("\"")) {
return arg.substring(1, length - 1);
}
return arg;
} | [
"public",
"static",
"String",
"removeQuotes",
"(",
"String",
"arg",
")",
"{",
"if",
"(",
"arg",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"int",
"length",
"=",
"arg",
".",
"length",
"(",
")",
";",
"if",
"(",
"length",
">",
"1",
"&&",
"a... | Removes leading and trailing quotes from the input argument, if they
exist.
@param arg
The argument you want to parse
@return The argument, without leading and trailing quotes | [
"Removes",
"leading",
"and",
"trailing",
"quotes",
"from",
"the",
"input",
"argument",
"if",
"they",
"exist",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.springboot/src/com/ibm/ws/app/manager/springboot/container/config/ConfigElement.java#L94-L103 |
65,674 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java | WorkQueueManager.processWork | protected VirtualConnection processWork(TCPBaseRequestContext req, int options) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "processWork");
}
TCPConnLink conn = req.getTCPConnLink();
VirtualConnection vc = null;
if (options != 1... | java | protected VirtualConnection processWork(TCPBaseRequestContext req, int options) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "processWork");
}
TCPConnLink conn = req.getTCPConnLink();
VirtualConnection vc = null;
if (options != 1... | [
"protected",
"VirtualConnection",
"processWork",
"(",
"TCPBaseRequestContext",
"req",
",",
"int",
"options",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",... | Processes the request. If the request is already associated with
a work queue - send it there. Otherwise round robin requests
amongst our set of queues.
@param req
@param options
@return VirtualConnections | [
"Processes",
"the",
"request",
".",
"If",
"the",
"request",
"is",
"already",
"associated",
"with",
"a",
"work",
"queue",
"-",
"send",
"it",
"there",
".",
"Otherwise",
"round",
"robin",
"requests",
"amongst",
"our",
"set",
"of",
"queues",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java#L288-L311 |
65,675 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java | WorkQueueManager.dispatch | protected boolean dispatch(TCPBaseRequestContext req, IOException ioe) {
if (req.blockedThread) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "dispatcher notifying waiting synch request ");
}
if (ioe != null) {
... | java | protected boolean dispatch(TCPBaseRequestContext req, IOException ioe) {
if (req.blockedThread) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "dispatcher notifying waiting synch request ");
}
if (ioe != null) {
... | [
"protected",
"boolean",
"dispatch",
"(",
"TCPBaseRequestContext",
"req",
",",
"IOException",
"ioe",
")",
"{",
"if",
"(",
"req",
".",
"blockedThread",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled"... | Dispatches requests to workrer threds, or notifies waiting thread.
@param req
@param ioe
@return boolean, true if request was dispatched | [
"Dispatches",
"requests",
"to",
"workrer",
"threds",
"or",
"notifies",
"waiting",
"thread",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java#L733-L747 |
65,676 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java | WorkQueueManager.dispatchWorker | private boolean dispatchWorker(Worker worker) {
ExecutorService executorService = CHFWBundle.getExecutorService();
if (null == executorService) {
if (FrameworkState.isValid()) {
Tr.error(tc, "EXECUTOR_SVC_MISSING");
throw new RuntimeException("Missing executor... | java | private boolean dispatchWorker(Worker worker) {
ExecutorService executorService = CHFWBundle.getExecutorService();
if (null == executorService) {
if (FrameworkState.isValid()) {
Tr.error(tc, "EXECUTOR_SVC_MISSING");
throw new RuntimeException("Missing executor... | [
"private",
"boolean",
"dispatchWorker",
"(",
"Worker",
"worker",
")",
"{",
"ExecutorService",
"executorService",
"=",
"CHFWBundle",
".",
"getExecutorService",
"(",
")",
";",
"if",
"(",
"null",
"==",
"executorService",
")",
"{",
"if",
"(",
"FrameworkState",
".",
... | Dispatch a work item.
@param worker
@return boolean, true if dispatched | [
"Dispatch",
"a",
"work",
"item",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java#L755-L771 |
65,677 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java | WorkQueueManager.queueConnectForSelector | protected void queueConnectForSelector(ConnectInfo connectInfo) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "queueConnectForSelector");
}
try {
moveIntoPosition(connectCount, connect, connectInfo, CS_CONNECTOR);
} catch (IOEx... | java | protected void queueConnectForSelector(ConnectInfo connectInfo) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "queueConnectForSelector");
}
try {
moveIntoPosition(connectCount, connect, connectInfo, CS_CONNECTOR);
} catch (IOEx... | [
"protected",
"void",
"queueConnectForSelector",
"(",
"ConnectInfo",
"connectInfo",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"queu... | This method is called when work must be added to the connect selector.
@param connectInfo | [
"This",
"method",
"is",
"called",
"when",
"work",
"must",
"be",
"added",
"to",
"the",
"connect",
"selector",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java#L778-L796 |
65,678 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java | WorkQueueManager.createNewThread | protected void createNewThread(ChannelSelector sr, int threadType, int number) {
StartPrivilegedThread privThread = new StartPrivilegedThread(sr, threadType, number, this.tGroup);
AccessController.doPrivileged(privThread);
} | java | protected void createNewThread(ChannelSelector sr, int threadType, int number) {
StartPrivilegedThread privThread = new StartPrivilegedThread(sr, threadType, number, this.tGroup);
AccessController.doPrivileged(privThread);
} | [
"protected",
"void",
"createNewThread",
"(",
"ChannelSelector",
"sr",
",",
"int",
"threadType",
",",
"int",
"number",
")",
"{",
"StartPrivilegedThread",
"privThread",
"=",
"new",
"StartPrivilegedThread",
"(",
"sr",
",",
"threadType",
",",
"number",
",",
"this",
... | Create a new reader thread. Provided so we can support pulling these from a
thread pool
in the SyncWorkQueueManager. This will allow these threads to have
WSTHreadLocal.
@param sr
@param threadType
@param number | [
"Create",
"a",
"new",
"reader",
"thread",
".",
"Provided",
"so",
"we",
"can",
"support",
"pulling",
"these",
"from",
"a",
"thread",
"pool",
"in",
"the",
"SyncWorkQueueManager",
".",
"This",
"will",
"allow",
"these",
"threads",
"to",
"have",
"WSTHreadLocal",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java#L808-L811 |
65,679 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java | WorkQueueManager.workerRun | void workerRun(TCPBaseRequestContext req, IOException ioe) {
if (null == req || req.getTCPConnLink().isClosed()) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Ignoring IO on closed socket: " + req);
}
return;
}
... | java | void workerRun(TCPBaseRequestContext req, IOException ioe) {
if (null == req || req.getTCPConnLink().isClosed()) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Ignoring IO on closed socket: " + req);
}
return;
}
... | [
"void",
"workerRun",
"(",
"TCPBaseRequestContext",
"req",
",",
"IOException",
"ioe",
")",
"{",
"if",
"(",
"null",
"==",
"req",
"||",
"req",
".",
"getTCPConnLink",
"(",
")",
".",
"isClosed",
"(",
")",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTrac... | Main worker thread routine.
@param req
@param ioe | [
"Main",
"worker",
"thread",
"routine",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java#L942-L983 |
65,680 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java | WorkQueueManager.dispatchConnect | protected boolean dispatchConnect(ConnectInfo work) {
if (work.getSyncObject() != null) {
// user thread waiting for work
work.getSyncObject().simpleNotify();
return true;
}
// dispatch async work
return dispatchWorker(new Worker(work));
} | java | protected boolean dispatchConnect(ConnectInfo work) {
if (work.getSyncObject() != null) {
// user thread waiting for work
work.getSyncObject().simpleNotify();
return true;
}
// dispatch async work
return dispatchWorker(new Worker(work));
} | [
"protected",
"boolean",
"dispatchConnect",
"(",
"ConnectInfo",
"work",
")",
"{",
"if",
"(",
"work",
".",
"getSyncObject",
"(",
")",
"!=",
"null",
")",
"{",
"// user thread waiting for work",
"work",
".",
"getSyncObject",
"(",
")",
".",
"simpleNotify",
"(",
")"... | This is the entry point where work is added to the connect work list.
As a result, a separate thread from the caller will do the work.
@param work
information about the connect
@return true if request was dispatched, false if not | [
"This",
"is",
"the",
"entry",
"point",
"where",
"work",
"is",
"added",
"to",
"the",
"connect",
"work",
"list",
".",
"As",
"a",
"result",
"a",
"separate",
"thread",
"from",
"the",
"caller",
"will",
"do",
"the",
"work",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java#L1012-L1020 |
65,681 | OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/application/_NavigationUtils.java | _NavigationUtils.getEvaluatedNavigationParameters | public static Map<String, List<String> > getEvaluatedNavigationParameters(
FacesContext facesContext,
Map<String, List<String> > parameters)
{
Map<String,List<String>> evaluatedParameters = null;
if (parameters != null && parameters.size() > 0)
{
evaluate... | java | public static Map<String, List<String> > getEvaluatedNavigationParameters(
FacesContext facesContext,
Map<String, List<String> > parameters)
{
Map<String,List<String>> evaluatedParameters = null;
if (parameters != null && parameters.size() > 0)
{
evaluate... | [
"public",
"static",
"Map",
"<",
"String",
",",
"List",
"<",
"String",
">",
">",
"getEvaluatedNavigationParameters",
"(",
"FacesContext",
"facesContext",
",",
"Map",
"<",
"String",
",",
"List",
"<",
"String",
">",
">",
"parameters",
")",
"{",
"Map",
"<",
"S... | Evaluate all EL expressions found as parameters and return a map that can be used for
redirect or render bookmark links
@param parameters parameter map retrieved from NavigationCase.getParameters()
@return | [
"Evaluate",
"all",
"EL",
"expressions",
"found",
"as",
"parameters",
"and",
"return",
"a",
"map",
"that",
"can",
"be",
"used",
"for",
"redirect",
"or",
"render",
"bookmark",
"links"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/application/_NavigationUtils.java#L37-L72 |
65,682 | OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/application/_NavigationUtils.java | _NavigationUtils._evaluateValueExpressions | private static List<String> _evaluateValueExpressions(FacesContext context, List<String> values)
{
// note that we have to create a new List here, because if we
// change any value on the given List, it will be changed in the
// NavigationCase too and the EL expression won't be evaluated aga... | java | private static List<String> _evaluateValueExpressions(FacesContext context, List<String> values)
{
// note that we have to create a new List here, because if we
// change any value on the given List, it will be changed in the
// NavigationCase too and the EL expression won't be evaluated aga... | [
"private",
"static",
"List",
"<",
"String",
">",
"_evaluateValueExpressions",
"(",
"FacesContext",
"context",
",",
"List",
"<",
"String",
">",
"values",
")",
"{",
"// note that we have to create a new List here, because if we",
"// change any value on the given List, it will be... | Checks the Strings in the List for EL expressions and evaluates them.
Note that the returned List will be a copy of the given List, because
otherwise it will have unwanted side-effects.
@param values
@return | [
"Checks",
"the",
"Strings",
"in",
"the",
"List",
"for",
"EL",
"expressions",
"and",
"evaluates",
"them",
".",
"Note",
"that",
"the",
"returned",
"List",
"will",
"be",
"a",
"copy",
"of",
"the",
"given",
"List",
"because",
"otherwise",
"it",
"will",
"have",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/application/_NavigationUtils.java#L81-L97 |
65,683 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSRegistry.java | JSRegistry.register | public void register(JMFEncapsulationManager mgr, int id) {
if (id > JMFPart.MODEL_ID_JMF)
mmmgrTable.put(Integer.valueOf(id - 1), mgr);
else
throw new IllegalArgumentException("model ID cannot be negative");
} | java | public void register(JMFEncapsulationManager mgr, int id) {
if (id > JMFPart.MODEL_ID_JMF)
mmmgrTable.put(Integer.valueOf(id - 1), mgr);
else
throw new IllegalArgumentException("model ID cannot be negative");
} | [
"public",
"void",
"register",
"(",
"JMFEncapsulationManager",
"mgr",
",",
"int",
"id",
")",
"{",
"if",
"(",
"id",
">",
"JMFPart",
".",
"MODEL_ID_JMF",
")",
"mmmgrTable",
".",
"put",
"(",
"Integer",
".",
"valueOf",
"(",
"id",
"-",
"1",
")",
",",
"mgr",
... | Register the JMFEncapsulationManager for a particular Model ID.
@param mgr the JMFEncapsulationManager being registered
@param id the model ID for which registration is occuring | [
"Register",
"the",
"JMFEncapsulationManager",
"for",
"a",
"particular",
"Model",
"ID",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSRegistry.java#L82-L87 |
65,684 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSRegistry.java | JSRegistry.registerInternal | private void registerInternal(JMFSchema schema) {
schemaTable.set((HashedArray.Element)schema);
Object assoc = schema.getJMFType().getAssociation();
if (assoc != null)
associations.put(assoc, schema);
} | java | private void registerInternal(JMFSchema schema) {
schemaTable.set((HashedArray.Element)schema);
Object assoc = schema.getJMFType().getAssociation();
if (assoc != null)
associations.put(assoc, schema);
} | [
"private",
"void",
"registerInternal",
"(",
"JMFSchema",
"schema",
")",
"{",
"schemaTable",
".",
"set",
"(",
"(",
"HashedArray",
".",
"Element",
")",
"schema",
")",
";",
"Object",
"assoc",
"=",
"schema",
".",
"getJMFType",
"(",
")",
".",
"getAssociation",
... | Subroutine used by register and registerAll | [
"Subroutine",
"used",
"by",
"register",
"and",
"registerAll"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSRegistry.java#L117-L122 |
65,685 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSRegistry.java | JSRegistry.isPresent | private boolean isPresent(JMFSchema schema) throws JMFSchemaIdException {
long id = schema.getID();
JMFSchema reg = (JMFSchema)schemaTable.get(id);
if (reg != null) {
// We are assuming that collisions on key don't happen
if (!schema.equals(reg)) {
// The schema id is a 64bit SHA-1 deriv... | java | private boolean isPresent(JMFSchema schema) throws JMFSchemaIdException {
long id = schema.getID();
JMFSchema reg = (JMFSchema)schemaTable.get(id);
if (reg != null) {
// We are assuming that collisions on key don't happen
if (!schema.equals(reg)) {
// The schema id is a 64bit SHA-1 deriv... | [
"private",
"boolean",
"isPresent",
"(",
"JMFSchema",
"schema",
")",
"throws",
"JMFSchemaIdException",
"{",
"long",
"id",
"=",
"schema",
".",
"getID",
"(",
")",
";",
"JMFSchema",
"reg",
"=",
"(",
"JMFSchema",
")",
"schemaTable",
".",
"get",
"(",
"id",
")",
... | to the same schema. | [
"to",
"the",
"same",
"schema",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSRegistry.java#L128-L150 |
65,686 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java | EncodingUtils.getLocales | public static Vector getLocales(HttpServletRequest req) {
init();
String acceptLanguage = req.getHeader("Accept-Language");
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {
logger.logp(Level.FINE, CLASS_NAME,"getLocales", "Accept-Language --> "... | java | public static Vector getLocales(HttpServletRequest req) {
init();
String acceptLanguage = req.getHeader("Accept-Language");
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {
logger.logp(Level.FINE, CLASS_NAME,"getLocales", "Accept-Language --> "... | [
"public",
"static",
"Vector",
"getLocales",
"(",
"HttpServletRequest",
"req",
")",
"{",
"init",
"(",
")",
";",
"String",
"acceptLanguage",
"=",
"req",
".",
"getHeader",
"(",
"\"Accept-Language\"",
")",
";",
"if",
"(",
"com",
".",
"ibm",
".",
"ejs",
".",
... | Returns a Vector of locales from the passed in request object.
@param req The request object to extract the locales from.
@return The extracted locales. | [
"Returns",
"a",
"Vector",
"of",
"locales",
"from",
"the",
"passed",
"in",
"request",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java#L218-L257 |
65,687 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java | EncodingUtils.processAcceptLanguage | public static Vector processAcceptLanguage(String acceptLanguage) {
init();
StringTokenizer languageTokenizer = new StringTokenizer(acceptLanguage, ",");
TreeMap map = new TreeMap(Collections.reverseOrder());
while (languageTokenizer.hasMoreTokens()) {
String language = languag... | java | public static Vector processAcceptLanguage(String acceptLanguage) {
init();
StringTokenizer languageTokenizer = new StringTokenizer(acceptLanguage, ",");
TreeMap map = new TreeMap(Collections.reverseOrder());
while (languageTokenizer.hasMoreTokens()) {
String language = languag... | [
"public",
"static",
"Vector",
"processAcceptLanguage",
"(",
"String",
"acceptLanguage",
")",
"{",
"init",
"(",
")",
";",
"StringTokenizer",
"languageTokenizer",
"=",
"new",
"StringTokenizer",
"(",
"acceptLanguage",
",",
"\",\"",
")",
";",
"TreeMap",
"map",
"=",
... | Processes the accept languages in a passed in String into a Vector object.
@param acceptLanguage The accept language String to process.
@return The processed accept languages. | [
"Processes",
"the",
"accept",
"languages",
"in",
"a",
"passed",
"in",
"String",
"into",
"a",
"Vector",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java#L266-L324 |
65,688 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java | EncodingUtils.extractLocales | public static Vector extractLocales(Vector languages, boolean secure) {
init();
Enumeration e = languages.elements();
Vector l = new Vector();
while (e.hasMoreElements()) {
Vector langVector = (Vector) e.nextElement();
Enumeration enumeration = langVector.elements()... | java | public static Vector extractLocales(Vector languages, boolean secure) {
init();
Enumeration e = languages.elements();
Vector l = new Vector();
while (e.hasMoreElements()) {
Vector langVector = (Vector) e.nextElement();
Enumeration enumeration = langVector.elements()... | [
"public",
"static",
"Vector",
"extractLocales",
"(",
"Vector",
"languages",
",",
"boolean",
"secure",
")",
"{",
"init",
"(",
")",
";",
"Enumeration",
"e",
"=",
"languages",
".",
"elements",
"(",
")",
";",
"Vector",
"l",
"=",
"new",
"Vector",
"(",
")",
... | This method will validate the values.
Validate language and country values as alphanumeric.
Validate variant value as alphanumeric , '_' ,and '-'
Add appropriate values in Locale upon validation.
Extract the locales from a passed in language Vector.
@param languages The language Vector to extract the locales from.
... | [
"This",
"method",
"will",
"validate",
"the",
"values",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java#L350-L392 |
65,689 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java | EncodingUtils.getEncodingFromLocale | public static String getEncodingFromLocale(Locale locale) {
init();
if (locale == cachedLocale) {
return cachedEncoding;
}
String encoding = null;
/*(String) _localeMap.get(locale.toString());
if (encoding == null) {
encoding = (String) _localeMap.g... | java | public static String getEncodingFromLocale(Locale locale) {
init();
if (locale == cachedLocale) {
return cachedEncoding;
}
String encoding = null;
/*(String) _localeMap.get(locale.toString());
if (encoding == null) {
encoding = (String) _localeMap.g... | [
"public",
"static",
"String",
"getEncodingFromLocale",
"(",
"Locale",
"locale",
")",
"{",
"init",
"(",
")",
";",
"if",
"(",
"locale",
"==",
"cachedLocale",
")",
"{",
"return",
"cachedEncoding",
";",
"}",
"String",
"encoding",
"=",
"null",
";",
"/*(String) _l... | Get the encoding for a passed in locale.
@param locale The locale.
@return The encoding. | [
"Get",
"the",
"encoding",
"for",
"a",
"passed",
"in",
"locale",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java#L425-L453 |
65,690 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java | EncodingUtils.getJvmConverter | public static String getJvmConverter(String encoding) {
init();
//String converter = (String) _converterMap.get(encoding.toLowerCase());
String converter = null;
com.ibm.wsspi.http.EncodingUtils encodingUtils = com.ibm.ws.webcontainer.osgi.WebContainer.getEncodingUtils();
if (encodingUtil... | java | public static String getJvmConverter(String encoding) {
init();
//String converter = (String) _converterMap.get(encoding.toLowerCase());
String converter = null;
com.ibm.wsspi.http.EncodingUtils encodingUtils = com.ibm.ws.webcontainer.osgi.WebContainer.getEncodingUtils();
if (encodingUtil... | [
"public",
"static",
"String",
"getJvmConverter",
"(",
"String",
"encoding",
")",
"{",
"init",
"(",
")",
";",
"//String converter = (String) _converterMap.get(encoding.toLowerCase());",
"String",
"converter",
"=",
"null",
";",
"com",
".",
"ibm",
".",
"wsspi",
".",
"h... | Get the JVM Converter for the specified encoding.
@param encoding The encoding.
@return The converter if it exists, otherwise return the encoding. | [
"Get",
"the",
"JVM",
"Converter",
"for",
"the",
"specified",
"encoding",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java#L462-L477 |
65,691 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java | EncodingUtils.isCharsetSupported | public static boolean isCharsetSupported (String charset){
Boolean supported = (Boolean) supportedEncodingsCache.get(charset);
if(supported != null){
return supported.booleanValue();
}
try{
new String (TEST_CHAR, charset);
supportedEncodingsCache.put(c... | java | public static boolean isCharsetSupported (String charset){
Boolean supported = (Boolean) supportedEncodingsCache.get(charset);
if(supported != null){
return supported.booleanValue();
}
try{
new String (TEST_CHAR, charset);
supportedEncodingsCache.put(c... | [
"public",
"static",
"boolean",
"isCharsetSupported",
"(",
"String",
"charset",
")",
"{",
"Boolean",
"supported",
"=",
"(",
"Boolean",
")",
"supportedEncodingsCache",
".",
"get",
"(",
"charset",
")",
";",
"if",
"(",
"supported",
"!=",
"null",
")",
"{",
"retur... | rewritten as part of PK13492 | [
"rewritten",
"as",
"part",
"of",
"PK13492"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java#L487-L503 |
65,692 | OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java | Utils.compareInstance | public static <T> boolean compareInstance(T t1, T t2) {
if (t1 == t2) {
return true;
}
if (t1 != null && t2 != null && t1.equals(t2)) {
return true;
}
return false;
} | java | public static <T> boolean compareInstance(T t1, T t2) {
if (t1 == t2) {
return true;
}
if (t1 != null && t2 != null && t1.equals(t2)) {
return true;
}
return false;
} | [
"public",
"static",
"<",
"T",
">",
"boolean",
"compareInstance",
"(",
"T",
"t1",
",",
"T",
"t2",
")",
"{",
"if",
"(",
"t1",
"==",
"t2",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"t1",
"!=",
"null",
"&&",
"t2",
"!=",
"null",
"&&",
"t1",
... | Compare tow instance. If both are null, still equal
@param t1
@param t2
@return | [
"Compare",
"tow",
"instance",
".",
"If",
"both",
"are",
"null",
"still",
"equal"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java#L28-L37 |
65,693 | OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java | Utils.compareStrings | public static boolean compareStrings(String s1, String s2) {
if (s1 == s2)
return true;
if (s1 != null && s2 != null && s1.equals(s2))
return true;
return false;
} | java | public static boolean compareStrings(String s1, String s2) {
if (s1 == s2)
return true;
if (s1 != null && s2 != null && s1.equals(s2))
return true;
return false;
} | [
"public",
"static",
"boolean",
"compareStrings",
"(",
"String",
"s1",
",",
"String",
"s2",
")",
"{",
"if",
"(",
"s1",
"==",
"s2",
")",
"return",
"true",
";",
"if",
"(",
"s1",
"!=",
"null",
"&&",
"s2",
"!=",
"null",
"&&",
"s1",
".",
"equals",
"(",
... | Compares two strings for equality. Either or both of the values may be null.
@param s1
@param s2
@return true iff the two strings are equal | [
"Compares",
"two",
"strings",
"for",
"equality",
".",
"Either",
"or",
"both",
"of",
"the",
"values",
"may",
"be",
"null",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java#L46-L52 |
65,694 | OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java | Utils.compareQNames | public static boolean compareQNames(QName qn1, QName qn2) {
if (qn1 == qn2)
return true;
if (qn1 == null || qn2 == null)
return false;
return qn1.equals(qn2);
} | java | public static boolean compareQNames(QName qn1, QName qn2) {
if (qn1 == qn2)
return true;
if (qn1 == null || qn2 == null)
return false;
return qn1.equals(qn2);
} | [
"public",
"static",
"boolean",
"compareQNames",
"(",
"QName",
"qn1",
",",
"QName",
"qn2",
")",
"{",
"if",
"(",
"qn1",
"==",
"qn2",
")",
"return",
"true",
";",
"if",
"(",
"qn1",
"==",
"null",
"||",
"qn2",
"==",
"null",
")",
"return",
"false",
";",
"... | Compares two QNames for equality. Either or both of the values may be null.
@param qn1
@param qn2
@return | [
"Compares",
"two",
"QNames",
"for",
"equality",
".",
"Either",
"or",
"both",
"of",
"the",
"values",
"may",
"be",
"null",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java#L61-L67 |
65,695 | OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java | Utils.compareStringLists | public static boolean compareStringLists(List<String> list1, List<String> list2) {
if (list1 == null && list2 == null)
return true;
if (list1 == null || list2 == null)
return false;
if (list1.size() != list2.size())
return false;
for (int i = 0; i < li... | java | public static boolean compareStringLists(List<String> list1, List<String> list2) {
if (list1 == null && list2 == null)
return true;
if (list1 == null || list2 == null)
return false;
if (list1.size() != list2.size())
return false;
for (int i = 0; i < li... | [
"public",
"static",
"boolean",
"compareStringLists",
"(",
"List",
"<",
"String",
">",
"list1",
",",
"List",
"<",
"String",
">",
"list2",
")",
"{",
"if",
"(",
"list1",
"==",
"null",
"&&",
"list2",
"==",
"null",
")",
"return",
"true",
";",
"if",
"(",
"... | Compares two lists of strings for equality.
@param list1
@param list2
@return true iff each list contains the same strings in the same order | [
"Compares",
"two",
"lists",
"of",
"strings",
"for",
"equality",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java#L76-L90 |
65,696 | OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java | Utils.compareQNameLists | public static boolean compareQNameLists(List<QName> list1, List<QName> list2) {
if (list1 == list2)
return true;
if (list1 == null || list2 == null)
return false;
if (list1.size() != list2.size())
return false;
for (int i = 0; i < list1.size(); i++) {... | java | public static boolean compareQNameLists(List<QName> list1, List<QName> list2) {
if (list1 == list2)
return true;
if (list1 == null || list2 == null)
return false;
if (list1.size() != list2.size())
return false;
for (int i = 0; i < list1.size(); i++) {... | [
"public",
"static",
"boolean",
"compareQNameLists",
"(",
"List",
"<",
"QName",
">",
"list1",
",",
"List",
"<",
"QName",
">",
"list2",
")",
"{",
"if",
"(",
"list1",
"==",
"list2",
")",
"return",
"true",
";",
"if",
"(",
"list1",
"==",
"null",
"||",
"li... | Compares two lists of QNames for equality.
@param list1
@param list2
@return true iff each list contains the same QName values in the same order | [
"Compares",
"two",
"lists",
"of",
"QNames",
"for",
"equality",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java#L99-L113 |
65,697 | OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java | Utils.compareLists | public static <T> boolean compareLists(List<T> list1, List<T> list2) {
if (list1 == list2)
return true;
if (list1 == null || list2 == null)
return false;
if (list1.size() != list2.size())
return false;
for (int i = 0; i < list1.size(); i++) {
... | java | public static <T> boolean compareLists(List<T> list1, List<T> list2) {
if (list1 == list2)
return true;
if (list1 == null || list2 == null)
return false;
if (list1.size() != list2.size())
return false;
for (int i = 0; i < list1.size(); i++) {
... | [
"public",
"static",
"<",
"T",
">",
"boolean",
"compareLists",
"(",
"List",
"<",
"T",
">",
"list1",
",",
"List",
"<",
"T",
">",
"list2",
")",
"{",
"if",
"(",
"list1",
"==",
"list2",
")",
"return",
"true",
";",
"if",
"(",
"list1",
"==",
"null",
"||... | Compare two lists
@param list1
@param list2
@return | [
"Compare",
"two",
"lists"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java#L122-L136 |
65,698 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/config/CacheProcessor.java | CacheProcessor.preProcess | public boolean preProcess(ConfigEntry configEntry) {
boolean valid = true;
// there is no override, use the default processorData
if (configEntry.processorData == null)
configEntry.processorData = new Object[BASE_SLOTS];
//persistToDisk ... | java | public boolean preProcess(ConfigEntry configEntry) {
boolean valid = true;
// there is no override, use the default processorData
if (configEntry.processorData == null)
configEntry.processorData = new Object[BASE_SLOTS];
//persistToDisk ... | [
"public",
"boolean",
"preProcess",
"(",
"ConfigEntry",
"configEntry",
")",
"{",
"boolean",
"valid",
"=",
"true",
";",
"// there is no override, use the default processorData",
"if",
"(",
"configEntry",
".",
"processorData",
"==",
"null",
")",
"configEntry",
".",
"proc... | preprocess any data | [
"preprocess",
"any",
"data"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/config/CacheProcessor.java#L107-L130 |
65,699 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractConsumerKey.java | AbstractConsumerKey.getConsumerSet | public JSConsumerSet getConsumerSet()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getConsumerSet");
SibTr.exit(tc, "getConsumerSet", consumerSet);
}
return consumerSet;
} | java | public JSConsumerSet getConsumerSet()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getConsumerSet");
SibTr.exit(tc, "getConsumerSet", consumerSet);
}
return consumerSet;
} | [
"public",
"JSConsumerSet",
"getConsumerSet",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getConsumerSet\"",
")",
";",
"Si... | Returns the consumerSet.
@return consumerSet | [
"Returns",
"the",
"consumerSet",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractConsumerKey.java#L119-L127 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.