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
69,300
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.getSQLJConnectionContext
public final Object getSQLJConnectionContext(Class<?> DefaultContext, WSConnectionManager cm) throws SQLException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "getSQLJConnectionContext"); if (sqljContext ...
java
public final Object getSQLJConnectionContext(Class<?> DefaultContext, WSConnectionManager cm) throws SQLException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "getSQLJConnectionContext"); if (sqljContext ...
[ "public", "final", "Object", "getSQLJConnectionContext", "(", "Class", "<", "?", ">", "DefaultContext", ",", "WSConnectionManager", "cm", ")", "throws", "SQLException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")"...
This method returns the SQLJ ConnectionContext. This method is only called by the WSJccConnection class. The ConnectionContext caches all the RTStatements @param DefaultContext the sqlj.runtime.ref.DefaultContext class @return sqlj.runtime.ref.DefaultContext @exception SQLException - failed to create SQLJ Connection C...
[ "This", "method", "returns", "the", "SQLJ", "ConnectionContext", ".", "This", "method", "is", "only", "called", "by", "the", "WSJccConnection", "class", ".", "The", "ConnectionContext", "caches", "all", "the", "RTStatements" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L4202-L4222
69,301
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.setClaimedVictim
public void setClaimedVictim() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "marking this mc as _claimedVictim"); _claimedVictim = true; }
java
public void setClaimedVictim() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "marking this mc as _claimedVictim"); _claimedVictim = true; }
[ "public", "void", "setClaimedVictim", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "this", ",", "tc", ",", "\"marking this mc as _claimedVictim\"", ...
Claim the unused managed connection as a victim connection, which can then be reauthenticated and reused.
[ "Claim", "the", "unused", "managed", "connection", "as", "a", "victim", "connection", "which", "can", "then", "be", "reauthenticated", "and", "reused", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L4349-L4354
69,302
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.setSchema
public void setSchema(String schema) throws SQLException { Transaction suspendTx = null; if (mcf.beforeJDBCVersion(JDBCRuntimeVersion.VERSION_4_1)) throw new SQLFeatureNotSupportedException(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(thi...
java
public void setSchema(String schema) throws SQLException { Transaction suspendTx = null; if (mcf.beforeJDBCVersion(JDBCRuntimeVersion.VERSION_4_1)) throw new SQLFeatureNotSupportedException(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(thi...
[ "public", "void", "setSchema", "(", "String", "schema", ")", "throws", "SQLException", "{", "Transaction", "suspendTx", "=", "null", ";", "if", "(", "mcf", ".", "beforeJDBCVersion", "(", "JDBCRuntimeVersion", ".", "VERSION_4_1", ")", ")", "throw", "new", "SQLF...
Set a schema for this managed connection. @param schema The schema to set on the connection.
[ "Set", "a", "schema", "for", "this", "managed", "connection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L4375-L4397
69,303
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.getSchema
public String getSchema() throws SQLException { Transaction suspendTx = null; if (mcf.beforeJDBCVersion(JDBCRuntimeVersion.VERSION_4_1)) return null; // Global trans must be suspended for jdbc-4.1 getters and setters on zOS if (AdapterUtil.isZOS() && isGlobalTransactionActiv...
java
public String getSchema() throws SQLException { Transaction suspendTx = null; if (mcf.beforeJDBCVersion(JDBCRuntimeVersion.VERSION_4_1)) return null; // Global trans must be suspended for jdbc-4.1 getters and setters on zOS if (AdapterUtil.isZOS() && isGlobalTransactionActiv...
[ "public", "String", "getSchema", "(", ")", "throws", "SQLException", "{", "Transaction", "suspendTx", "=", "null", ";", "if", "(", "mcf", ".", "beforeJDBCVersion", "(", "JDBCRuntimeVersion", ".", "VERSION_4_1", ")", ")", "return", "null", ";", "// Global trans m...
Retrieve the schema being used by this managed connection. @return The schema used by this managed connection. <BR> NOTE: If this method is called below JDBC version 4.1, null will be returned.
[ "Retrieve", "the", "schema", "being", "used", "by", "this", "managed", "connection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L4404-L4422
69,304
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/logging/TaggedFileOutputStream.java
TaggedFileOutputStream.setFileTag
void setFileTag(File file) throws IOException { if (initialized && fileEncodingCcsid != 0) { int returnCode = setFileTag(file.getAbsolutePath(), fileEncodingCcsid); if (returnCode != 0) { issueTaggingFailedMessage(returnCode); } } }
java
void setFileTag(File file) throws IOException { if (initialized && fileEncodingCcsid != 0) { int returnCode = setFileTag(file.getAbsolutePath(), fileEncodingCcsid); if (returnCode != 0) { issueTaggingFailedMessage(returnCode); } } }
[ "void", "setFileTag", "(", "File", "file", ")", "throws", "IOException", "{", "if", "(", "initialized", "&&", "fileEncodingCcsid", "!=", "0", ")", "{", "int", "returnCode", "=", "setFileTag", "(", "file", ".", "getAbsolutePath", "(", ")", ",", "fileEncodingC...
Tag the specified file as ISO8859-1 text. @param file the file to tag as ISO8859-1 text
[ "Tag", "the", "specified", "file", "as", "ISO8859", "-", "1", "text", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/logging/TaggedFileOutputStream.java#L63-L70
69,305
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/logging/TaggedFileOutputStream.java
TaggedFileOutputStream.issueTaggingFailedMessage
private synchronized void issueTaggingFailedMessage(int returnCode) { if (taggingFailedIssued) { return; } System.err.println(MessageFormat.format(BootstrapConstants.messages.getString("warn.unableTagFile"), returnCode)); taggingFailedIssued = true; }
java
private synchronized void issueTaggingFailedMessage(int returnCode) { if (taggingFailedIssued) { return; } System.err.println(MessageFormat.format(BootstrapConstants.messages.getString("warn.unableTagFile"), returnCode)); taggingFailedIssued = true; }
[ "private", "synchronized", "void", "issueTaggingFailedMessage", "(", "int", "returnCode", ")", "{", "if", "(", "taggingFailedIssued", ")", "{", "return", ";", "}", "System", ".", "err", ".", "println", "(", "MessageFormat", ".", "format", "(", "BootstrapConstant...
Issue the tagging failed message.
[ "Issue", "the", "tagging", "failed", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/logging/TaggedFileOutputStream.java#L87-L94
69,306
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/logging/TaggedFileOutputStream.java
TaggedFileOutputStream.registerNatives
private static boolean registerNatives() { try { final String methodDescriptor = "zJNIBOOT_" + TaggedFileOutputStream.class.getCanonicalName().replaceAll("\\.", "_"); long dllHandle = NativeMethodHelper.registerNatives(TaggedFileOutputStream.class, methodDescriptor, null); if...
java
private static boolean registerNatives() { try { final String methodDescriptor = "zJNIBOOT_" + TaggedFileOutputStream.class.getCanonicalName().replaceAll("\\.", "_"); long dllHandle = NativeMethodHelper.registerNatives(TaggedFileOutputStream.class, methodDescriptor, null); if...
[ "private", "static", "boolean", "registerNatives", "(", ")", "{", "try", "{", "final", "String", "methodDescriptor", "=", "\"zJNIBOOT_\"", "+", "TaggedFileOutputStream", ".", "class", ".", "getCanonicalName", "(", ")", ".", "replaceAll", "(", "\"\\\\.\"", ",", "...
Register the native method needed for file tagging. @return true if the methods were successfully registered
[ "Register", "the", "native", "method", "needed", "for", "file", "tagging", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/logging/TaggedFileOutputStream.java#L101-L119
69,307
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/logging/TaggedFileOutputStream.java
TaggedFileOutputStream.acquireFileEncodingCcsid
private static int acquireFileEncodingCcsid() { // Get the charset represented by file.encoding Charset charset = null; String fileEncoding = System.getProperty("file.encoding"); try { charset = Charset.forName(fileEncoding); } catch (Throwable t) { // Pro...
java
private static int acquireFileEncodingCcsid() { // Get the charset represented by file.encoding Charset charset = null; String fileEncoding = System.getProperty("file.encoding"); try { charset = Charset.forName(fileEncoding); } catch (Throwable t) { // Pro...
[ "private", "static", "int", "acquireFileEncodingCcsid", "(", ")", "{", "// Get the charset represented by file.encoding", "Charset", "charset", "=", "null", ";", "String", "fileEncoding", "=", "System", ".", "getProperty", "(", "\"file.encoding\"", ")", ";", "try", "{...
Get the character code set identifier that represents the JVM's file encoding. This should only be called by the class static initializer. @return the character code set id or 0 if the code set ID could not be determined
[ "Get", "the", "character", "code", "set", "identifier", "that", "represents", "the", "JVM", "s", "file", "encoding", ".", "This", "should", "only", "be", "called", "by", "the", "class", "static", "initializer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/logging/TaggedFileOutputStream.java#L128-L143
69,308
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java
ScheduleExpressionParser.parse
public static ParsedScheduleExpression parse(ScheduleExpression expr) { ParsedScheduleExpression parsedExpr = new ParsedScheduleExpression(expr); parse(parsedExpr); return parsedExpr; }
java
public static ParsedScheduleExpression parse(ScheduleExpression expr) { ParsedScheduleExpression parsedExpr = new ParsedScheduleExpression(expr); parse(parsedExpr); return parsedExpr; }
[ "public", "static", "ParsedScheduleExpression", "parse", "(", "ScheduleExpression", "expr", ")", "{", "ParsedScheduleExpression", "parsedExpr", "=", "new", "ParsedScheduleExpression", "(", "expr", ")", ";", "parse", "(", "parsedExpr", ")", ";", "return", "parsedExpr",...
Parses the specified schedule expression and returns the result. @param expr the expression to parse @return the parsed schedule expression @throws ScheduleExpressionParserException if the expression contains an invalid attribute value
[ "Parses", "the", "specified", "schedule", "expression", "and", "returns", "the", "result", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java#L242-L247
69,309
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java
ScheduleExpressionParser.parse
static void parse(ParsedScheduleExpression parsedExpr) // d639610 { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "parse: " + toString(parsedExpr.getSchedule())); ScheduleExpression expr = parsedExpr.getSchedul...
java
static void parse(ParsedScheduleExpression parsedExpr) // d639610 { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "parse: " + toString(parsedExpr.getSchedule())); ScheduleExpression expr = parsedExpr.getSchedul...
[ "static", "void", "parse", "(", "ParsedScheduleExpression", "parsedExpr", ")", "// d639610", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "(", "...
Parses the schedule expression contained within the ParsedScheduleExpression object and store the results in that object. @param parsedExpr the parsed schedule expression to populate @throws ScheduleExpressionParserException if the expression contains an invalid attribute value
[ "Parses", "the", "schedule", "expression", "contained", "within", "the", "ParsedScheduleExpression", "object", "and", "store", "the", "results", "in", "that", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java#L257-L289
69,310
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java
ScheduleExpressionParser.parseTimeZone
private void parseTimeZone(ParsedScheduleExpression parsedExpr, String string) { if (parsedExpr.timeZone == null) // d639610 { if (string == null) { parsedExpr.timeZone = TimeZone.getDefault(); // d639610 } else { ...
java
private void parseTimeZone(ParsedScheduleExpression parsedExpr, String string) { if (parsedExpr.timeZone == null) // d639610 { if (string == null) { parsedExpr.timeZone = TimeZone.getDefault(); // d639610 } else { ...
[ "private", "void", "parseTimeZone", "(", "ParsedScheduleExpression", "parsedExpr", ",", "String", "string", ")", "{", "if", "(", "parsedExpr", ".", "timeZone", "==", "null", ")", "// d639610", "{", "if", "(", "string", "==", "null", ")", "{", "parsedExpr", "...
Parses the time zone ID and stores the result in parsedExpr. If the parsed schedule already has a time zone, then it is kept. If the time zone ID is null, then the default time zone is used. @param parsedExpr the object in which to store the result @param string the time zone ID @throws ScheduleExpressionParserExcepti...
[ "Parses", "the", "time", "zone", "ID", "and", "stores", "the", "result", "in", "parsedExpr", ".", "If", "the", "parsed", "schedule", "already", "has", "a", "time", "zone", "then", "it", "is", "kept", ".", "If", "the", "time", "zone", "ID", "is", "null"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java#L301-L322
69,311
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java
ScheduleExpressionParser.parseDate
private long parseDate(Date date, long defaultValue) // d666295 { if (date == null) { return defaultValue; } long value = date.getTime(); if (value > 0) { // Round up to the nearest second. long remainder = value % 1000; ...
java
private long parseDate(Date date, long defaultValue) // d666295 { if (date == null) { return defaultValue; } long value = date.getTime(); if (value > 0) { // Round up to the nearest second. long remainder = value % 1000; ...
[ "private", "long", "parseDate", "(", "Date", "date", ",", "long", "defaultValue", ")", "// d666295", "{", "if", "(", "date", "==", "null", ")", "{", "return", "defaultValue", ";", "}", "long", "value", "=", "date", ".", "getTime", "(", ")", ";", "if", ...
Parses the date to milliseconds and rounds up to the nearest second. @param date the date to parse @param defaultValue the default value if the date is null @return the rounded milliseconds
[ "Parses", "the", "date", "to", "milliseconds", "and", "rounds", "up", "to", "the", "nearest", "second", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java#L331-L353
69,312
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java
ScheduleExpressionParser.error
private void error(ScheduleExpressionParserException.Error error) // F743-506 { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "parse error in " + ivAttr + " at " + ivPos); throw new ScheduleExpressionParserException(error, ivAttr.getDisplayName(), ivStrin...
java
private void error(ScheduleExpressionParserException.Error error) // F743-506 { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "parse error in " + ivAttr + " at " + ivPos); throw new ScheduleExpressionParserException(error, ivAttr.getDisplayName(), ivStrin...
[ "private", "void", "error", "(", "ScheduleExpressionParserException", ".", "Error", "error", ")", "// F743-506", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", ...
Issues a lexical analysis or parsing error. @param message the error message @throws ScheduleExpressionParserException
[ "Issues", "a", "lexical", "analysis", "or", "parsing", "error", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java#L361-L367
69,313
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java
ScheduleExpressionParser.parseAttribute
private void parseAttribute(ParsedScheduleExpression parsedExpr, Attribute attr, String string) { // Reset state. ivAttr = attr; ivString = string; ivPos = 0; if (string == null) { // d660135...
java
private void parseAttribute(ParsedScheduleExpression parsedExpr, Attribute attr, String string) { // Reset state. ivAttr = attr; ivString = string; ivPos = 0; if (string == null) { // d660135...
[ "private", "void", "parseAttribute", "(", "ParsedScheduleExpression", "parsedExpr", ",", "Attribute", "attr", ",", "String", "string", ")", "{", "// Reset state.", "ivAttr", "=", "attr", ";", "ivString", "=", "string", ";", "ivPos", "=", "0", ";", "if", "(", ...
Parses the specified attribute of this parsers schedule expression and stores the result in parsedExpr. This method sets the ivAttr, ivString, and ivPos member variables that are accessed by other parsing methods. Only ivPos should be modified by those other methods. @param parsedExpr the object in which to store the ...
[ "Parses", "the", "specified", "attribute", "of", "this", "parsers", "schedule", "expression", "and", "stores", "the", "result", "in", "parsedExpr", ".", "This", "method", "sets", "the", "ivAttr", "ivString", "and", "ivPos", "member", "variables", "that", "are", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java#L381-L494
69,314
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java
ScheduleExpressionParser.skipWhitespace
private void skipWhitespace() { while (ivPos < ivString.length() && Character.isWhitespace(ivString.charAt(ivPos))) { ivPos++; } }
java
private void skipWhitespace() { while (ivPos < ivString.length() && Character.isWhitespace(ivString.charAt(ivPos))) { ivPos++; } }
[ "private", "void", "skipWhitespace", "(", ")", "{", "while", "(", "ivPos", "<", "ivString", ".", "length", "(", ")", "&&", "Character", ".", "isWhitespace", "(", "ivString", ".", "charAt", "(", "ivPos", ")", ")", ")", "{", "ivPos", "++", ";", "}", "}...
Skip any whitespace at the current position in the parse string.
[ "Skip", "any", "whitespace", "at", "the", "current", "position", "in", "the", "parse", "string", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java#L499-L505
69,315
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java
ScheduleExpressionParser.scanToken
private int scanToken() { int begin = ivPos; if (ivPos < ivString.length()) { if (ivString.charAt(ivPos) == '-') { // dayOfWeek allows tokens to begin with "-" (e.g., "-7"). We // cannot add "-" to isTokenChar or else "1-2" would be p...
java
private int scanToken() { int begin = ivPos; if (ivPos < ivString.length()) { if (ivString.charAt(ivPos) == '-') { // dayOfWeek allows tokens to begin with "-" (e.g., "-7"). We // cannot add "-" to isTokenChar or else "1-2" would be p...
[ "private", "int", "scanToken", "(", ")", "{", "int", "begin", "=", "ivPos", ";", "if", "(", "ivPos", "<", "ivString", ".", "length", "(", ")", ")", "{", "if", "(", "ivString", ".", "charAt", "(", "ivPos", ")", "==", "'", "'", ")", "{", "// dayOfW...
Skip the minimum number of characters necessary to form a single unit of information within a value. Whitespace before the value is not skipped. @return the position in the parse string before skipping; if no atom was found, this value will be the same as <tt>ivPos</tt>
[ "Skip", "the", "minimum", "number", "of", "characters", "necessary", "to", "form", "a", "single", "unit", "of", "information", "within", "a", "value", ".", "Whitespace", "before", "the", "value", "is", "not", "skipped", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java#L607-L628
69,316
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java
ScheduleExpressionParser.findNamedValue
private int findNamedValue(int begin, String[] namedValues, int min) { int length = ivPos - begin; for (int i = 0; i < namedValues.length; i++) { String namedValue = namedValues[i]; if (length == namedValue.length() && ivString.regionMatches(true, begin, namedValue,...
java
private int findNamedValue(int begin, String[] namedValues, int min) { int length = ivPos - begin; for (int i = 0; i < namedValues.length; i++) { String namedValue = namedValues[i]; if (length == namedValue.length() && ivString.regionMatches(true, begin, namedValue,...
[ "private", "int", "findNamedValue", "(", "int", "begin", ",", "String", "[", "]", "namedValues", ",", "int", "min", ")", "{", "int", "length", "=", "ivPos", "-", "begin", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "namedValues", ".", "le...
Case-insensitively search the specified list of named values for a substring of the parse string. The substring of the parse string is the range [begin, ivPos). @param begin the beginning index of the substring, inclusive @param namedValues the values to search @param min the non-negative adjustment for the return val...
[ "Case", "-", "insensitively", "search", "the", "specified", "list", "of", "named", "values", "for", "a", "substring", "of", "the", "parse", "string", ".", "The", "substring", "of", "the", "parse", "string", "is", "the", "range", "[", "begin", "ivPos", ")",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java#L655-L670
69,317
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/PasswordHashGenerator.java
PasswordHashGenerator.generateSalt
public static byte[] generateSalt(String saltString) { byte[] output = null; if (saltString == null || saltString.length() < 1) { // use randomly generated value output = new byte[SEED_LENGTH]; SecureRandom rand = new SecureRandom(); rand.setSeed(rand.gene...
java
public static byte[] generateSalt(String saltString) { byte[] output = null; if (saltString == null || saltString.length() < 1) { // use randomly generated value output = new byte[SEED_LENGTH]; SecureRandom rand = new SecureRandom(); rand.setSeed(rand.gene...
[ "public", "static", "byte", "[", "]", "generateSalt", "(", "String", "saltString", ")", "{", "byte", "[", "]", "output", "=", "null", ";", "if", "(", "saltString", "==", "null", "||", "saltString", ".", "length", "(", ")", "<", "1", ")", "{", "// use...
generate salt value by using given string. salt was generated as following format String format of current time + given string + hostname
[ "generate", "salt", "value", "by", "using", "given", "string", ".", "salt", "was", "generated", "as", "following", "format", "String", "format", "of", "current", "time", "+", "given", "string", "+", "hostname" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/PasswordHashGenerator.java#L36-L53
69,318
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/PasswordHashGenerator.java
PasswordHashGenerator.digest
public static byte[] digest(char[] plainBytes, byte[] salt, String algorithm, int iteration, int length) throws InvalidPasswordCipherException { if (logger.isLoggable(Level.FINE)) { logger.fine("algorithm : " + algorithm + " iteration : " + iteration); logger.fine("input length: " + plai...
java
public static byte[] digest(char[] plainBytes, byte[] salt, String algorithm, int iteration, int length) throws InvalidPasswordCipherException { if (logger.isLoggable(Level.FINE)) { logger.fine("algorithm : " + algorithm + " iteration : " + iteration); logger.fine("input length: " + plai...
[ "public", "static", "byte", "[", "]", "digest", "(", "char", "[", "]", "plainBytes", ",", "byte", "[", "]", "salt", ",", "String", "algorithm", ",", "int", "iteration", ",", "int", "length", ")", "throws", "InvalidPasswordCipherException", "{", "if", "(", ...
perform message digest and then append a salt at the end.
[ "perform", "message", "digest", "and", "then", "append", "a", "salt", "at", "the", "end", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/PasswordHashGenerator.java#L82-L115
69,319
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/ObjectDigestInfo.java
ObjectDigestInfo.toASN1Object
public DERObject toASN1Object() { ASN1EncodableVector v = new ASN1EncodableVector(); v.add(digestedObjectType); if (otherObjectTypeID != null) { v.add(otherObjectTypeID); } v.add(digestAlgorithm); v.add(objectDigest); return new DERSequ...
java
public DERObject toASN1Object() { ASN1EncodableVector v = new ASN1EncodableVector(); v.add(digestedObjectType); if (otherObjectTypeID != null) { v.add(otherObjectTypeID); } v.add(digestAlgorithm); v.add(objectDigest); return new DERSequ...
[ "public", "DERObject", "toASN1Object", "(", ")", "{", "ASN1EncodableVector", "v", "=", "new", "ASN1EncodableVector", "(", ")", ";", "v", ".", "add", "(", "digestedObjectType", ")", ";", "if", "(", "otherObjectTypeID", "!=", "null", ")", "{", "v", ".", "add...
Produce an object suitable for an ASN1OutputStream. <pre> ObjectDigestInfo ::= SEQUENCE { digestedObjectType ENUMERATED { publicKey (0), publicKeyCert (1), otherObjectTypes (2) }, -- otherObjectTypes MUST NOT -- be used in this profile otherObjectTypeID OBJECT IDENTIFIER OPTIONAL, digestAlgor...
[ "Produce", "an", "object", "suitable", "for", "an", "ASN1OutputStream", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/ObjectDigestInfo.java#L119-L134
69,320
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterListFastStr.java
FilterListFastStr.findInList
private boolean findInList(Entry oEntry) { return findInList(oEntry.getHashcodes(), oEntry.getLengths(), firstCell, oEntry.getCurrentSize() - 1); }
java
private boolean findInList(Entry oEntry) { return findInList(oEntry.getHashcodes(), oEntry.getLengths(), firstCell, oEntry.getCurrentSize() - 1); }
[ "private", "boolean", "findInList", "(", "Entry", "oEntry", ")", "{", "return", "findInList", "(", "oEntry", ".", "getHashcodes", "(", ")", ",", "oEntry", ".", "getLengths", "(", ")", ",", "firstCell", ",", "oEntry", ".", "getCurrentSize", "(", ")", "-", ...
Determine if an address represented by an Entry object is in the address tree @param oEntry Entry object for the address to look for @return true if this address is found in the address tree, false if it is not.
[ "Determine", "if", "an", "address", "represented", "by", "an", "Entry", "object", "is", "in", "the", "address", "tree" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterListFastStr.java#L102-L104
69,321
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterListFastStr.java
FilterListFastStr.putInList
private boolean putInList(Entry entry) { FilterCellFastStr currentCell = firstCell; FilterCellFastStr nextCell = null; int[] hashcodes = entry.getHashcodes(); int[] lengths = entry.getLengths(); // work from back to front int lastIndex = entry.getCurrentSize() - 1; ...
java
private boolean putInList(Entry entry) { FilterCellFastStr currentCell = firstCell; FilterCellFastStr nextCell = null; int[] hashcodes = entry.getHashcodes(); int[] lengths = entry.getLengths(); // work from back to front int lastIndex = entry.getCurrentSize() - 1; ...
[ "private", "boolean", "putInList", "(", "Entry", "entry", ")", "{", "FilterCellFastStr", "currentCell", "=", "firstCell", ";", "FilterCellFastStr", "nextCell", "=", "null", ";", "int", "[", "]", "hashcodes", "=", "entry", ".", "getHashcodes", "(", ")", ";", ...
Add and new address to the address tree, where the new address is represented by an Entry object. @param entry @return boolean
[ "Add", "and", "new", "address", "to", "the", "address", "tree", "where", "the", "new", "address", "is", "represented", "by", "an", "Entry", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterListFastStr.java#L157-L195
69,322
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterListFastStr.java
FilterListFastStr.convertToEntries
private Entry convertToEntries(String newAddress) { byte[] ba = null; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "convertToEntries"); } try { ba = newAddress.getBytes("ISO-8859-1"); } catch (UnsupportedEncodingExcepti...
java
private Entry convertToEntries(String newAddress) { byte[] ba = null; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "convertToEntries"); } try { ba = newAddress.getBytes("ISO-8859-1"); } catch (UnsupportedEncodingExcepti...
[ "private", "Entry", "convertToEntries", "(", "String", "newAddress", ")", "{", "byte", "[", "]", "ba", "=", "null", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "Tr", ".", ...
Convert a single URL address to an Entry object. The entry object will contain the hashcode array and length array of the substrings of this address @param newAddress address to convert @return the Entry object created from this address.
[ "Convert", "a", "single", "URL", "address", "to", "an", "Entry", "object", ".", "The", "entry", "object", "will", "contain", "the", "hashcode", "array", "and", "length", "array", "of", "the", "substrings", "of", "this", "address" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterListFastStr.java#L206-L277
69,323
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/CryptoHash.java
CryptoHash.hash
public static void hash(byte[] data, byte[] output) { int len = output.length; if (len == 0) return; int[] code = calculate(data); for (int outIndex = 0, codeIndex = 0, shift = 24; outIndex < len && codeIndex < 5; ++outIndex, shift -= 8) { output[outIndex] = (byte...
java
public static void hash(byte[] data, byte[] output) { int len = output.length; if (len == 0) return; int[] code = calculate(data); for (int outIndex = 0, codeIndex = 0, shift = 24; outIndex < len && codeIndex < 5; ++outIndex, shift -= 8) { output[outIndex] = (byte...
[ "public", "static", "void", "hash", "(", "byte", "[", "]", "data", ",", "byte", "[", "]", "output", ")", "{", "int", "len", "=", "output", ".", "length", ";", "if", "(", "len", "==", "0", ")", "return", ";", "int", "[", "]", "code", "=", "calcu...
Calculates the SHA-1 hash code of the input data and writes up to 20 bytes of it in the output byte array parameter. @param data the byte array to be hashed @param output output parameter for the calculated hash code
[ "Calculates", "the", "SHA", "-", "1", "hash", "code", "of", "the", "input", "data", "and", "writes", "up", "to", "20", "bytes", "of", "it", "in", "the", "output", "byte", "array", "parameter", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/CryptoHash.java#L43-L57
69,324
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/view/ViewDeclarationLanguageBase.java
ViewDeclarationLanguageBase.createView
public UIViewRoot createView(FacesContext context, String viewId) { checkNull(context, "context"); //checkNull(viewId, "viewId"); try { viewId = calculateViewId(context, viewId); Application application = context.getApplication(); //...
java
public UIViewRoot createView(FacesContext context, String viewId) { checkNull(context, "context"); //checkNull(viewId, "viewId"); try { viewId = calculateViewId(context, viewId); Application application = context.getApplication(); //...
[ "public", "UIViewRoot", "createView", "(", "FacesContext", "context", ",", "String", "viewId", ")", "{", "checkNull", "(", "context", ",", "\"context\"", ")", ";", "//checkNull(viewId, \"viewId\");", "try", "{", "viewId", "=", "calculateViewId", "(", "context", ",...
Process the specification required algorithm that is generic to all PDL. @param context @param viewId
[ "Process", "the", "specification", "required", "algorithm", "that", "is", "generic", "to", "all", "PDL", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/view/ViewDeclarationLanguageBase.java#L41-L87
69,325
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java
BootstrapContextImpl.getDestinationName
private Object getDestinationName(String destinationType, Object destination) throws Exception { String methodName; if ("javax.jms.Queue".equals(destinationType)) methodName = "getQueueName"; else if ("javax.jms.Topic".equals(destinationType)) methodName = "getTopicName";...
java
private Object getDestinationName(String destinationType, Object destination) throws Exception { String methodName; if ("javax.jms.Queue".equals(destinationType)) methodName = "getQueueName"; else if ("javax.jms.Topic".equals(destinationType)) methodName = "getTopicName";...
[ "private", "Object", "getDestinationName", "(", "String", "destinationType", ",", "Object", "destination", ")", "throws", "Exception", "{", "String", "methodName", ";", "if", "(", "\"javax.jms.Queue\"", ".", "equals", "(", "destinationType", ")", ")", "methodName", ...
Returns the name of the queue or topic. @param destinationType type of destination (javax.jms.Queue or javax.jms.Topic). @param value instance of the above type. @return name of the queue or topic. @throws Exception if unable to obtain the destination name.
[ "Returns", "the", "name", "of", "the", "queue", "or", "topic", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java#L801-L815
69,326
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java
BootstrapContextImpl.getJCAContextProvider
JCAContextProvider getJCAContextProvider(Class<?> workContextClass) { JCAContextProvider provider = null; for (Class<?> cl = workContextClass; provider == null && cl != null; cl = cl.getSuperclass()) provider = contextProviders.getService(cl.getName()); return provider; }
java
JCAContextProvider getJCAContextProvider(Class<?> workContextClass) { JCAContextProvider provider = null; for (Class<?> cl = workContextClass; provider == null && cl != null; cl = cl.getSuperclass()) provider = contextProviders.getService(cl.getName()); return provider; }
[ "JCAContextProvider", "getJCAContextProvider", "(", "Class", "<", "?", ">", "workContextClass", ")", "{", "JCAContextProvider", "provider", "=", "null", ";", "for", "(", "Class", "<", "?", ">", "cl", "=", "workContextClass", ";", "provider", "==", "null", "&&"...
Returns the JCAContextProvider for the specified work context class. @param workContextClass a WorkContext implementation class or ExecutionContext. @return the JCAContextProvider for the specified work context class.
[ "Returns", "the", "JCAContextProvider", "for", "the", "specified", "work", "context", "class", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java#L823-L829
69,327
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java
BootstrapContextImpl.getJCAContextProviderName
String getJCAContextProviderName(Class<?> workContextClass) { ServiceReference<JCAContextProvider> ref = null; for (Class<?> cl = workContextClass; ref == null && cl != null; cl = cl.getSuperclass()) ref = contextProviders.getReference(cl.getName()); String name = ref == null ? null...
java
String getJCAContextProviderName(Class<?> workContextClass) { ServiceReference<JCAContextProvider> ref = null; for (Class<?> cl = workContextClass; ref == null && cl != null; cl = cl.getSuperclass()) ref = contextProviders.getReference(cl.getName()); String name = ref == null ? null...
[ "String", "getJCAContextProviderName", "(", "Class", "<", "?", ">", "workContextClass", ")", "{", "ServiceReference", "<", "JCAContextProvider", ">", "ref", "=", "null", ";", "for", "(", "Class", "<", "?", ">", "cl", "=", "workContextClass", ";", "ref", "=="...
Returns the component name of the JCAContextProvider for the specified work context class. @param workContextClass a WorkContext implementation class or ExecutionContext. @return the component name of the JCAContextProvider.
[ "Returns", "the", "component", "name", "of", "the", "JCAContextProvider", "for", "the", "specified", "work", "context", "class", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java#L837-L846
69,328
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java
BootstrapContextImpl.loadClass
public Class<?> loadClass(final String className) throws ClassNotFoundException, UnableToAdaptException, MalformedURLException { ClassLoader raClassLoader = resourceAdapterSvc.getClassLoader(); if (raClassLoader != null) { return Utils.priv.loadClass(raClassLoader, className); } else...
java
public Class<?> loadClass(final String className) throws ClassNotFoundException, UnableToAdaptException, MalformedURLException { ClassLoader raClassLoader = resourceAdapterSvc.getClassLoader(); if (raClassLoader != null) { return Utils.priv.loadClass(raClassLoader, className); } else...
[ "public", "Class", "<", "?", ">", "loadClass", "(", "final", "String", "className", ")", "throws", "ClassNotFoundException", ",", "UnableToAdaptException", ",", "MalformedURLException", "{", "ClassLoader", "raClassLoader", "=", "resourceAdapterSvc", ".", "getClassLoader...
Load a resource adapter class. If the resource adapter file that is specified in <resourceAdapter> exists, then classes will be loaded from the file. If the file does not exist, then classes will be loaded from the bundle of the component context. @param className name of the class. @return the class. @throws ClassN...
[ "Load", "a", "resource", "adapter", "class", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java#L914-L959
69,329
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java
BootstrapContextImpl.setContextProvider
protected void setContextProvider(ServiceReference<JCAContextProvider> ref) { contextProviders.putReference((String) ref.getProperty(JCAContextProvider.TYPE), ref); }
java
protected void setContextProvider(ServiceReference<JCAContextProvider> ref) { contextProviders.putReference((String) ref.getProperty(JCAContextProvider.TYPE), ref); }
[ "protected", "void", "setContextProvider", "(", "ServiceReference", "<", "JCAContextProvider", ">", "ref", ")", "{", "contextProviders", ".", "putReference", "(", "(", "String", ")", "ref", ".", "getProperty", "(", "JCAContextProvider", ".", "TYPE", ")", ",", "r...
Declarative Services method for setting a JCAContextProvider service reference @param ref reference to the service
[ "Declarative", "Services", "method", "for", "setting", "a", "JCAContextProvider", "service", "reference" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java#L987-L989
69,330
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java
BootstrapContextImpl.stopResourceAdapter
private void stopResourceAdapter() { if (resourceAdapter != null) try { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "stop", resourceAdapter); ArrayList<ThreadContext> threadContext = startTask(raThreadContext...
java
private void stopResourceAdapter() { if (resourceAdapter != null) try { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "stop", resourceAdapter); ArrayList<ThreadContext> threadContext = startTask(raThreadContext...
[ "private", "void", "stopResourceAdapter", "(", ")", "{", "if", "(", "resourceAdapter", "!=", "null", ")", "try", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", ...
Stop the resource adapter if it has started.
[ "Stop", "the", "resource", "adapter", "if", "it", "has", "started", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java#L1067-L1109
69,331
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java
BootstrapContextImpl.captureRaThreadContext
@SuppressWarnings("unchecked") private ThreadContextDescriptor captureRaThreadContext(WSContextService contextSvc) { Map<String, String> execProps = new HashMap<String, String>(); execProps.put(WSContextService.DEFAULT_CONTEXT, WSContextService.ALL_CONTEXT_TYPES); execProps.put(WSContextServ...
java
@SuppressWarnings("unchecked") private ThreadContextDescriptor captureRaThreadContext(WSContextService contextSvc) { Map<String, String> execProps = new HashMap<String, String>(); execProps.put(WSContextService.DEFAULT_CONTEXT, WSContextService.ALL_CONTEXT_TYPES); execProps.put(WSContextServ...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "private", "ThreadContextDescriptor", "captureRaThreadContext", "(", "WSContextService", "contextSvc", ")", "{", "Map", "<", "String", ",", "String", ">", "execProps", "=", "new", "HashMap", "<", "String", ",", "...
Capture current thread context of the context service. @param contextSvc @return ThreadContextDescriptor
[ "Capture", "current", "thread", "context", "of", "the", "context", "service", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java#L1117-L1124
69,332
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java
BootstrapContextImpl.startTask
private ArrayList<ThreadContext> startTask(ThreadContextDescriptor raThreadContextDescriptor) { return raThreadContextDescriptor == null ? null : raThreadContextDescriptor.taskStarting(); }
java
private ArrayList<ThreadContext> startTask(ThreadContextDescriptor raThreadContextDescriptor) { return raThreadContextDescriptor == null ? null : raThreadContextDescriptor.taskStarting(); }
[ "private", "ArrayList", "<", "ThreadContext", ">", "startTask", "(", "ThreadContextDescriptor", "raThreadContextDescriptor", ")", "{", "return", "raThreadContextDescriptor", "==", "null", "?", "null", ":", "raThreadContextDescriptor", ".", "taskStarting", "(", ")", ";",...
Start task if there is a resource adapter context descriptor. @param raThreadContextDescriptor @return array of thread context, if any
[ "Start", "task", "if", "there", "is", "a", "resource", "adapter", "context", "descriptor", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java#L1132-L1134
69,333
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java
BootstrapContextImpl.stopTask
private void stopTask(ThreadContextDescriptor raThreadContextDescriptor, ArrayList<ThreadContext> threadContext) { if (raThreadContextDescriptor != null) raThreadContextDescriptor.taskStopping(threadContext); }
java
private void stopTask(ThreadContextDescriptor raThreadContextDescriptor, ArrayList<ThreadContext> threadContext) { if (raThreadContextDescriptor != null) raThreadContextDescriptor.taskStopping(threadContext); }
[ "private", "void", "stopTask", "(", "ThreadContextDescriptor", "raThreadContextDescriptor", ",", "ArrayList", "<", "ThreadContext", ">", "threadContext", ")", "{", "if", "(", "raThreadContextDescriptor", "!=", "null", ")", "raThreadContextDescriptor", ".", "taskStopping",...
Stop the resource adapter context descriptor task if one was started. @param raThreadContextDescriptor @param threadContext
[ "Stop", "the", "resource", "adapter", "context", "descriptor", "task", "if", "one", "was", "started", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java#L1142-L1145
69,334
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java
BootstrapContextImpl.unsetContextProvider
protected void unsetContextProvider(ServiceReference<JCAContextProvider> ref) { contextProviders.removeReference((String) ref.getProperty(JCAContextProvider.TYPE), ref); }
java
protected void unsetContextProvider(ServiceReference<JCAContextProvider> ref) { contextProviders.removeReference((String) ref.getProperty(JCAContextProvider.TYPE), ref); }
[ "protected", "void", "unsetContextProvider", "(", "ServiceReference", "<", "JCAContextProvider", ">", "ref", ")", "{", "contextProviders", ".", "removeReference", "(", "(", "String", ")", "ref", ".", "getProperty", "(", "JCAContextProvider", ".", "TYPE", ")", ",",...
Declarative Services method for unsetting a JCAContextProvider service reference @param ref reference to the service
[ "Declarative", "Services", "method", "for", "unsetting", "a", "JCAContextProvider", "service", "reference" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java#L1213-L1215
69,335
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAuthenticatorProxy.java
WebAuthenticatorProxy.getAuthenticatorForFailOver
private WebAuthenticator getAuthenticatorForFailOver(String authType, WebRequest webRequest) { WebAuthenticator authenticator = null; if (LoginConfiguration.FORM.equals(authType)) { authenticator = createFormLoginAuthenticator(webRequest); } else if (LoginConfiguration.BASIC.equals(a...
java
private WebAuthenticator getAuthenticatorForFailOver(String authType, WebRequest webRequest) { WebAuthenticator authenticator = null; if (LoginConfiguration.FORM.equals(authType)) { authenticator = createFormLoginAuthenticator(webRequest); } else if (LoginConfiguration.BASIC.equals(a...
[ "private", "WebAuthenticator", "getAuthenticatorForFailOver", "(", "String", "authType", ",", "WebRequest", "webRequest", ")", "{", "WebAuthenticator", "authenticator", "=", "null", ";", "if", "(", "LoginConfiguration", ".", "FORM", ".", "equals", "(", "authType", "...
Get the appropriate Authenticator based on the authType @param authType the auth type, either FORM or BASIC @param the WebRequest @return The WebAuthenticator or {@code null} if the authType is unknown
[ "Get", "the", "appropriate", "Authenticator", "based", "on", "the", "authType" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAuthenticatorProxy.java#L115-L123
69,336
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAuthenticatorProxy.java
WebAuthenticatorProxy.appHasWebXMLFormLogin
private boolean appHasWebXMLFormLogin(WebRequest webRequest) { return webRequest.getFormLoginConfiguration() != null && webRequest.getFormLoginConfiguration().getLoginPage() != null && webRequest.getFormLoginConfiguration().getErrorPage() != null; }
java
private boolean appHasWebXMLFormLogin(WebRequest webRequest) { return webRequest.getFormLoginConfiguration() != null && webRequest.getFormLoginConfiguration().getLoginPage() != null && webRequest.getFormLoginConfiguration().getErrorPage() != null; }
[ "private", "boolean", "appHasWebXMLFormLogin", "(", "WebRequest", "webRequest", ")", "{", "return", "webRequest", ".", "getFormLoginConfiguration", "(", ")", "!=", "null", "&&", "webRequest", ".", "getFormLoginConfiguration", "(", ")", ".", "getLoginPage", "(", ")",...
Determines if the application has a FORM login configuration in its web.xml @param webRequest @return {@code true} if the application's web.xml has a valid form login configuration.
[ "Determines", "if", "the", "application", "has", "a", "FORM", "login", "configuration", "in", "its", "web", ".", "xml" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAuthenticatorProxy.java#L132-L136
69,337
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAuthenticatorProxy.java
WebAuthenticatorProxy.globalWebAppSecurityConfigHasFormLogin
private boolean globalWebAppSecurityConfigHasFormLogin() { WebAppSecurityConfig globalConfig = WebAppSecurityCollaboratorImpl.getGlobalWebAppSecurityConfig(); return globalConfig != null && globalConfig.getLoginFormURL() != null; }
java
private boolean globalWebAppSecurityConfigHasFormLogin() { WebAppSecurityConfig globalConfig = WebAppSecurityCollaboratorImpl.getGlobalWebAppSecurityConfig(); return globalConfig != null && globalConfig.getLoginFormURL() != null; }
[ "private", "boolean", "globalWebAppSecurityConfigHasFormLogin", "(", ")", "{", "WebAppSecurityConfig", "globalConfig", "=", "WebAppSecurityCollaboratorImpl", ".", "getGlobalWebAppSecurityConfig", "(", ")", ";", "return", "globalConfig", "!=", "null", "&&", "globalConfig", "...
Determine if the global WebAppSecurityConfig has a form login page. @return {@code true} if the global FORM login page is set
[ "Determine", "if", "the", "global", "WebAppSecurityConfig", "has", "a", "form", "login", "page", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAuthenticatorProxy.java#L143-L147
69,338
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAuthenticatorProxy.java
WebAuthenticatorProxy.getWebAuthenticator
public WebAuthenticator getWebAuthenticator(WebRequest webRequest) { String authMech = webAppSecurityConfig.getOverrideHttpAuthMethod(); if (authMech != null && authMech.equals("CLIENT_CERT")) { return createCertificateLoginAuthenticator(); } SecurityMetadata securityMetadata...
java
public WebAuthenticator getWebAuthenticator(WebRequest webRequest) { String authMech = webAppSecurityConfig.getOverrideHttpAuthMethod(); if (authMech != null && authMech.equals("CLIENT_CERT")) { return createCertificateLoginAuthenticator(); } SecurityMetadata securityMetadata...
[ "public", "WebAuthenticator", "getWebAuthenticator", "(", "WebRequest", "webRequest", ")", "{", "String", "authMech", "=", "webAppSecurityConfig", ".", "getOverrideHttpAuthMethod", "(", ")", ";", "if", "(", "authMech", "!=", "null", "&&", "authMech", ".", "equals", ...
Determine the correct WebAuthenticator to use based on the authentication method. If there authentication method is not specified in the web.xml file, then we will use BasicAuth as default. @param webRequest @return The correct WebAuthenticator to handle the webRequest, or {@code null} if it could not be created.
[ "Determine", "the", "correct", "WebAuthenticator", "to", "use", "based", "on", "the", "authentication", "method", ".", "If", "there", "authentication", "method", "is", "not", "specified", "in", "the", "web", ".", "xml", "file", "then", "we", "will", "use", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAuthenticatorProxy.java#L192-L209
69,339
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAuthenticatorProxy.java
WebAuthenticatorProxy.getBasicAuthAuthenticator
public BasicAuthAuthenticator getBasicAuthAuthenticator() { try { return createBasicAuthenticator(); } catch (RegistryException e) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "RegistryException while trying to create BasicAuth...
java
public BasicAuthAuthenticator getBasicAuthAuthenticator() { try { return createBasicAuthenticator(); } catch (RegistryException e) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "RegistryException while trying to create BasicAuth...
[ "public", "BasicAuthAuthenticator", "getBasicAuthAuthenticator", "(", ")", "{", "try", "{", "return", "createBasicAuthenticator", "(", ")", ";", "}", "catch", "(", "RegistryException", "e", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")...
Create an instance of BasicAuthAuthenticator. @return A BasicAuthAuthenticator or {@code null} if the it could not be created.
[ "Create", "an", "instance", "of", "BasicAuthAuthenticator", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAuthenticatorProxy.java#L216-L225
69,340
OpenLiberty/open-liberty
dev/com.ibm.ws.javaee.ddmodel.wsbnd/src/com/ibm/ws/javaee/ddmodel/wsbnd/impl/HttpPublishingType.java
HttpPublishingType.handleAttribute
@Override public boolean handleAttribute(DDParser parser, String nsURI, String localName, int index) throws ParseException { boolean result = false; if (nsURI != null) { return result; } if (CONTEXT_ROOT_ATTRIBUTE_NAME.equals(localName)) { this.contextRoot =...
java
@Override public boolean handleAttribute(DDParser parser, String nsURI, String localName, int index) throws ParseException { boolean result = false; if (nsURI != null) { return result; } if (CONTEXT_ROOT_ATTRIBUTE_NAME.equals(localName)) { this.contextRoot =...
[ "@", "Override", "public", "boolean", "handleAttribute", "(", "DDParser", "parser", ",", "String", "nsURI", ",", "String", "localName", ",", "int", "index", ")", "throws", "ParseException", "{", "boolean", "result", "=", "false", ";", "if", "(", "nsURI", "!=...
parse the context-root attribute defined in the element.
[ "parse", "the", "context", "-", "root", "attribute", "defined", "in", "the", "element", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javaee.ddmodel.wsbnd/src/com/ibm/ws/javaee/ddmodel/wsbnd/impl/HttpPublishingType.java#L47-L62
69,341
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/PersistentTimer.java
PersistentTimer.isPersistent
@Override public boolean isPersistent() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "isPersistent: " + this); // Determine if the calling bean is in a state that allows timer service // method acce...
java
@Override public boolean isPersistent() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "isPersistent: " + this); // Determine if the calling bean is in a state that allows timer service // method acce...
[ "@", "Override", "public", "boolean", "isPersistent", "(", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "en...
Query whether this timer has persistent semantics. @return true if this timer has persistent guarantees. @throws IllegalStateException If this method is invoked while the instance is in a state that does not allow access to this method. @throws NoSuchObjectLocalException If invoked on a timer that has expired or has b...
[ "Query", "whether", "this", "timer", "has", "persistent", "semantics", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/PersistentTimer.java#L275-L292
69,342
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist2/Entry.java
Entry.getNext
public Entry getNext() { checkEntryParent(); Entry entry = null; if(!isLast()) { entry = next; } return entry; }
java
public Entry getNext() { checkEntryParent(); Entry entry = null; if(!isLast()) { entry = next; } return entry; }
[ "public", "Entry", "getNext", "(", ")", "{", "checkEntryParent", "(", ")", ";", "Entry", "entry", "=", "null", ";", "if", "(", "!", "isLast", "(", ")", ")", "{", "entry", "=", "next", ";", "}", "return", "entry", ";", "}" ]
Unsynchronized. Get the next entry in the list. @return the next entry in the list
[ "Unsynchronized", ".", "Get", "the", "next", "entry", "in", "the", "list", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist2/Entry.java#L70-L82
69,343
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist2/Entry.java
Entry.insertAfter
Entry insertAfter(Entry newEntry) { if (tc.isEntryEnabled()) SibTr.entry( tc, "insertAfter", new Object[] { newEntry }); checkEntryParent(); //make sure that the new entry is not already in a list if(newEntry.parentList == null) { //get the next entry ...
java
Entry insertAfter(Entry newEntry) { if (tc.isEntryEnabled()) SibTr.entry( tc, "insertAfter", new Object[] { newEntry }); checkEntryParent(); //make sure that the new entry is not already in a list if(newEntry.parentList == null) { //get the next entry ...
[ "Entry", "insertAfter", "(", "Entry", "newEntry", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"insertAfter\"", ",", "new", "Object", "[", "]", "{", "newEntry", "}", ")", ";", "checkEntryPare...
Unsynchronized. Insert a new entry in after this one. @param newEntry The entry to be inserted after this one
[ "Unsynchronized", ".", "Insert", "a", "new", "entry", "in", "after", "this", "one", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist2/Entry.java#L89-L155
69,344
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist2/Entry.java
Entry.remove
Entry remove() { if (tc.isEntryEnabled()) SibTr.entry(tc, "remove"); checkEntryParent(); Entry removedEntry = null; Entry prevEntry = getPrevious(); if(prevEntry != null) { //link the previous entry to the next one prevEntry.next = next; } Entry nextEntry =...
java
Entry remove() { if (tc.isEntryEnabled()) SibTr.entry(tc, "remove"); checkEntryParent(); Entry removedEntry = null; Entry prevEntry = getPrevious(); if(prevEntry != null) { //link the previous entry to the next one prevEntry.next = next; } Entry nextEntry =...
[ "Entry", "remove", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"remove\"", ")", ";", "checkEntryParent", "(", ")", ";", "Entry", "removedEntry", "=", "null", ";", "Entry", "prevEntry", ...
Unsynchronized. Removes this entry from the list.
[ "Unsynchronized", ".", "Removes", "this", "entry", "from", "the", "list", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist2/Entry.java#L160-L206
69,345
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist2/Entry.java
Entry.checkEntryParent
void checkEntryParent() { if(parentList == null) { SIErrorException e = new SIErrorException( nls.getFormattedMessage( "INTERNAL_MESSAGING_ERROR_CWSIP0001", new Object[] { "com.ibm.ws.sib.processor.utils.linkedlist.Entry", "1:239:1.3" }, null...
java
void checkEntryParent() { if(parentList == null) { SIErrorException e = new SIErrorException( nls.getFormattedMessage( "INTERNAL_MESSAGING_ERROR_CWSIP0001", new Object[] { "com.ibm.ws.sib.processor.utils.linkedlist.Entry", "1:239:1.3" }, null...
[ "void", "checkEntryParent", "(", ")", "{", "if", "(", "parentList", "==", "null", ")", "{", "SIErrorException", "e", "=", "new", "SIErrorException", "(", "nls", ".", "getFormattedMessage", "(", "\"INTERNAL_MESSAGING_ERROR_CWSIP0001\"", ",", "new", "Object", "[", ...
Unsynchronized. Check that the parent list is not null and therefore the entry is still valid. Otherwise, throw a runtime exception
[ "Unsynchronized", ".", "Check", "that", "the", "parent", "list", "is", "not", "null", "and", "therefore", "the", "entry", "is", "still", "valid", ".", "Otherwise", "throw", "a", "runtime", "exception" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist2/Entry.java#L212-L242
69,346
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2Map.java
H2Map.put
@Override public Object put(Object key, Object value) { return localMap.put(key, value); }
java
@Override public Object put(Object key, Object value) { return localMap.put(key, value); }
[ "@", "Override", "public", "Object", "put", "(", "Object", "key", ",", "Object", "value", ")", "{", "return", "localMap", ".", "put", "(", "key", ",", "value", ")", ";", "}" ]
2. As with the "put", may need methods that use the common map for any of these other methods below, but assume not for now
[ "2", ".", "As", "with", "the", "put", "may", "need", "methods", "that", "use", "the", "common", "map", "for", "any", "of", "these", "other", "methods", "below", "but", "assume", "not", "for", "now" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2Map.java#L54-L57
69,347
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_SharedRendererUtils.java
_SharedRendererUtils.getValueTypeConverter
static Converter getValueTypeConverter(FacesContext facesContext, UISelectMany component) { Converter converter = null; Object valueTypeAttr = component.getAttributes().get(VALUE_TYPE_KEY); if (valueTypeAttr != null) { // treat the valueType attribute exactly lik...
java
static Converter getValueTypeConverter(FacesContext facesContext, UISelectMany component) { Converter converter = null; Object valueTypeAttr = component.getAttributes().get(VALUE_TYPE_KEY); if (valueTypeAttr != null) { // treat the valueType attribute exactly lik...
[ "static", "Converter", "getValueTypeConverter", "(", "FacesContext", "facesContext", ",", "UISelectMany", "component", ")", "{", "Converter", "converter", "=", "null", ";", "Object", "valueTypeAttr", "=", "component", ".", "getAttributes", "(", ")", ".", "get", "(...
Uses the valueType attribute of the given UISelectMany component to get a by-type converter. @param facesContext @param component @return
[ "Uses", "the", "valueType", "attribute", "of", "the", "given", "UISelectMany", "component", "to", "get", "a", "by", "-", "type", "converter", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_SharedRendererUtils.java#L404-L438
69,348
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/MQSITopicSyntaxChecker.java
MQSITopicSyntaxChecker.checkTopicNotNull
private final void checkTopicNotNull(String topic) throws InvalidTopicSyntaxException { if (topic == null) throw new InvalidTopicSyntaxException( NLS.format( "INVALID_TOPIC_ERROR_CWSIH0005", new Object[] { topic })); }
java
private final void checkTopicNotNull(String topic) throws InvalidTopicSyntaxException { if (topic == null) throw new InvalidTopicSyntaxException( NLS.format( "INVALID_TOPIC_ERROR_CWSIH0005", new Object[] { topic })); }
[ "private", "final", "void", "checkTopicNotNull", "(", "String", "topic", ")", "throws", "InvalidTopicSyntaxException", "{", "if", "(", "topic", "==", "null", ")", "throw", "new", "InvalidTopicSyntaxException", "(", "NLS", ".", "format", "(", "\"INVALID_TOPIC_ERROR_C...
null topic check @param topic The topic to be checked. @throws InvalidTopicSyntaxException if the topic is null
[ "null", "topic", "check" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/MQSITopicSyntaxChecker.java#L100-L108
69,349
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieHeaderByteParser.java
CookieHeaderByteParser.matchAndParse
private CookieData matchAndParse(byte[] data, HeaderKeys hdr) { int pos = this.bytePosition; int start = -1; int stop = -1; for (; pos < data.length; pos++) { byte b = data[pos]; // found the delimiter for the name */ if ('=' == b) { ...
java
private CookieData matchAndParse(byte[] data, HeaderKeys hdr) { int pos = this.bytePosition; int start = -1; int stop = -1; for (; pos < data.length; pos++) { byte b = data[pos]; // found the delimiter for the name */ if ('=' == b) { ...
[ "private", "CookieData", "matchAndParse", "(", "byte", "[", "]", "data", ",", "HeaderKeys", "hdr", ")", "{", "int", "pos", "=", "this", ".", "bytePosition", ";", "int", "start", "=", "-", "1", ";", "int", "stop", "=", "-", "1", ";", "for", "(", ";"...
This method matches the cookie attribute header with the pre-established Cookie header types. If a match is established the appropriate Cookie header data type is returned. @param data The header-value byte array passed down by parse @param hdr @return The appropriate CookieData type if a match is found for the header...
[ "This", "method", "matches", "the", "cookie", "attribute", "header", "with", "the", "pre", "-", "established", "Cookie", "header", "types", ".", "If", "a", "match", "is", "established", "the", "appropriate", "Cookie", "header", "data", "type", "is", "returned"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieHeaderByteParser.java#L151-L237
69,350
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieHeaderByteParser.java
CookieHeaderByteParser.parseValue
private void parseValue(byte[] data, CookieData token) { int start = -1; int stop = -1; int pos = this.bytePosition; int num_quotes = 0; // cycle through each byte until we hit a delimiter or end of data for (; pos < data.length; pos++) { byte b = data[pos];...
java
private void parseValue(byte[] data, CookieData token) { int start = -1; int stop = -1; int pos = this.bytePosition; int num_quotes = 0; // cycle through each byte until we hit a delimiter or end of data for (; pos < data.length; pos++) { byte b = data[pos];...
[ "private", "void", "parseValue", "(", "byte", "[", "]", "data", ",", "CookieData", "token", ")", "{", "int", "start", "=", "-", "1", ";", "int", "stop", "=", "-", "1", ";", "int", "pos", "=", "this", ".", "bytePosition", ";", "int", "num_quotes", "...
This method parses the cookie attribute value. @param data The value byte array passed down by parse method @param token The type of the CookieData attribute
[ "This", "method", "parses", "the", "cookie", "attribute", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieHeaderByteParser.java#L247-L321
69,351
OpenLiberty/open-liberty
dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/client/jose4j/util/Jose4jUtil.java
Jose4jUtil.parseJwtWithoutValidation
protected static JwtContext parseJwtWithoutValidation(String jwtString) throws Exception { JwtConsumer firstPassJwtConsumer = new JwtConsumerBuilder() .setSkipAllValidators() .setDisableRequireSignature() .setSkipSignatureVerification() .build(); ...
java
protected static JwtContext parseJwtWithoutValidation(String jwtString) throws Exception { JwtConsumer firstPassJwtConsumer = new JwtConsumerBuilder() .setSkipAllValidators() .setDisableRequireSignature() .setSkipSignatureVerification() .build(); ...
[ "protected", "static", "JwtContext", "parseJwtWithoutValidation", "(", "String", "jwtString", ")", "throws", "Exception", "{", "JwtConsumer", "firstPassJwtConsumer", "=", "new", "JwtConsumerBuilder", "(", ")", ".", "setSkipAllValidators", "(", ")", ".", "setDisableRequi...
Just parse without validation for now
[ "Just", "parse", "without", "validation", "for", "now" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/client/jose4j/util/Jose4jUtil.java#L283-L294
69,352
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/admin/JsAdminService.java
JsAdminService.isValidJmxPropertyValue
public static boolean isValidJmxPropertyValue(String s) { if ((s.indexOf(":") >= 0) || (s.indexOf("*") >= 0) || (s.indexOf('"') >= 0) || (s.indexOf("?") >= 0) || (s.indexOf(",") >= 0) || (s.indexOf("=") >= 0)) { return false; } else...
java
public static boolean isValidJmxPropertyValue(String s) { if ((s.indexOf(":") >= 0) || (s.indexOf("*") >= 0) || (s.indexOf('"') >= 0) || (s.indexOf("?") >= 0) || (s.indexOf(",") >= 0) || (s.indexOf("=") >= 0)) { return false; } else...
[ "public", "static", "boolean", "isValidJmxPropertyValue", "(", "String", "s", ")", "{", "if", "(", "(", "s", ".", "indexOf", "(", "\":\"", ")", ">=", "0", ")", "||", "(", "s", ".", "indexOf", "(", "\"*\"", ")", ">=", "0", ")", "||", "(", "s", "."...
Does the specified string contain characters valid in a JMX key property? @param s the string to be checked @return boolean if true, indicates the string is valid, otherwise false
[ "Does", "the", "specified", "string", "contain", "characters", "valid", "in", "a", "JMX", "key", "property?" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/admin/JsAdminService.java#L38-L48
69,353
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/impl/MethodResult.java
MethodResult.success
public static <R> MethodResult<R> success(R result) { return new MethodResult<>(result, null, false); }
java
public static <R> MethodResult<R> success(R result) { return new MethodResult<>(result, null, false); }
[ "public", "static", "<", "R", ">", "MethodResult", "<", "R", ">", "success", "(", "R", "result", ")", "{", "return", "new", "MethodResult", "<>", "(", "result", ",", "null", ",", "false", ")", ";", "}" ]
Create a MethodResult for a method which returned a value @param result the value returned by the method @return the new MethodResult
[ "Create", "a", "MethodResult", "for", "a", "method", "which", "returned", "a", "value" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/impl/MethodResult.java#L34-L36
69,354
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/impl/MethodResult.java
MethodResult.failure
public static <R> MethodResult<R> failure(Throwable failure) { return new MethodResult<>(null, failure, false); }
java
public static <R> MethodResult<R> failure(Throwable failure) { return new MethodResult<>(null, failure, false); }
[ "public", "static", "<", "R", ">", "MethodResult", "<", "R", ">", "failure", "(", "Throwable", "failure", ")", "{", "return", "new", "MethodResult", "<>", "(", "null", ",", "failure", ",", "false", ")", ";", "}" ]
Create a MethodResult for a method which threw an exception @param failure the exception thrown by the method @return the new MethodResult
[ "Create", "a", "MethodResult", "for", "a", "method", "which", "threw", "an", "exception" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/impl/MethodResult.java#L44-L46
69,355
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/impl/MethodResult.java
MethodResult.internalFailure
public static <R> MethodResult<R> internalFailure(Throwable failure) { return new MethodResult<R>(null, failure, true); }
java
public static <R> MethodResult<R> internalFailure(Throwable failure) { return new MethodResult<R>(null, failure, true); }
[ "public", "static", "<", "R", ">", "MethodResult", "<", "R", ">", "internalFailure", "(", "Throwable", "failure", ")", "{", "return", "new", "MethodResult", "<", "R", ">", "(", "null", ",", "failure", ",", "true", ")", ";", "}" ]
Create a MethodResult for an internal exception which occurred while trying to run a method @param failure the internal exception @return the new MethodResult
[ "Create", "a", "MethodResult", "for", "an", "internal", "exception", "which", "occurred", "while", "trying", "to", "run", "a", "method" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/impl/MethodResult.java#L54-L56
69,356
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/WeakValueHashMap.java
WeakValueHashMap.clearUnreferencedEntries
private final void clearUnreferencedEntries() { for (WeakEntry entry = (WeakEntry) queue.poll(); entry != null; entry = (WeakEntry) queue.poll()) { WeakEntry removedEntry = (WeakEntry) super.remove(entry.key); // The entry for this key may have been replaced with another one after it...
java
private final void clearUnreferencedEntries() { for (WeakEntry entry = (WeakEntry) queue.poll(); entry != null; entry = (WeakEntry) queue.poll()) { WeakEntry removedEntry = (WeakEntry) super.remove(entry.key); // The entry for this key may have been replaced with another one after it...
[ "private", "final", "void", "clearUnreferencedEntries", "(", ")", "{", "for", "(", "WeakEntry", "entry", "=", "(", "WeakEntry", ")", "queue", ".", "poll", "(", ")", ";", "entry", "!=", "null", ";", "entry", "=", "(", "WeakEntry", ")", "queue", ".", "po...
Remove the unreferenced Entries from the map.
[ "Remove", "the", "unreferenced", "Entries", "from", "the", "map", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/WeakValueHashMap.java#L34-L44
69,357
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java
ConsumerSessionImpl.attachBifurcatedConsumer
protected void attachBifurcatedConsumer(BifurcatedConsumerSessionImpl consumer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "attachBifurcatedConsumer", consumer); // Create a bifurcated list if required if (_bifurcatedConsumers == null) ...
java
protected void attachBifurcatedConsumer(BifurcatedConsumerSessionImpl consumer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "attachBifurcatedConsumer", consumer); // Create a bifurcated list if required if (_bifurcatedConsumers == null) ...
[ "protected", "void", "attachBifurcatedConsumer", "(", "BifurcatedConsumerSessionImpl", "consumer", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",...
Adds the bifurcated consumer to the list of associated consumers. @param consumer
[ "Adds", "the", "bifurcated", "consumer", "to", "the", "list", "of", "associated", "consumers", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java#L349-L371
69,358
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java
ConsumerSessionImpl.removeBifurcatedConsumer
protected void removeBifurcatedConsumer(BifurcatedConsumerSessionImpl consumer) throws SIResourceException, SISessionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeBifurcatedConsumer", consumer); synchronized (_bifurcatedConsum...
java
protected void removeBifurcatedConsumer(BifurcatedConsumerSessionImpl consumer) throws SIResourceException, SISessionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeBifurcatedConsumer", consumer); synchronized (_bifurcatedConsum...
[ "protected", "void", "removeBifurcatedConsumer", "(", "BifurcatedConsumerSessionImpl", "consumer", ")", "throws", "SIResourceException", ",", "SISessionDroppedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnab...
Removes the bifurcated consumer to the list of associated consumers. @param consumer @throws SISessionDroppedException
[ "Removes", "the", "bifurcated", "consumer", "to", "the", "list", "of", "associated", "consumers", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java#L379-L394
69,359
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java
ConsumerSessionImpl._close
void _close() throws SIResourceException, SIConnectionLostException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "_close"); try { //close the LCP _localConsume...
java
void _close() throws SIResourceException, SIConnectionLostException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "_close"); try { //close the LCP _localConsume...
[ "void", "_close", "(", ")", "throws", "SIResourceException", ",", "SIConnectionLostException", ",", "SIErrorException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry...
Performs any operations required to close this consumer session, but it does not modify any references which the connection might have.
[ "Performs", "any", "operations", "required", "to", "close", "this", "consumer", "session", "but", "it", "does", "not", "modify", "any", "references", "which", "the", "connection", "might", "have", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java#L444-L467
69,360
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java
ConsumerSessionImpl.checkNotClosed
void checkNotClosed() throws SISessionUnavailableException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkNotClosed"); try { synchronized (_localConsumerPoint) { _localConsumerPoint.checkNotClosed(...
java
void checkNotClosed() throws SISessionUnavailableException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkNotClosed"); try { synchronized (_localConsumerPoint) { _localConsumerPoint.checkNotClosed(...
[ "void", "checkNotClosed", "(", ")", "throws", "SISessionUnavailableException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"checkNotClosed\"", ...
Check that this consumer session is not closed. @throws SIObjectClosedException
[ "Check", "that", "this", "consumer", "session", "is", "not", "closed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java#L474-L498
69,361
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java
ConsumerSessionImpl.getConnectionInternal
protected SICoreConnection getConnectionInternal() { if (TraceComponent.isAnyTracingEnabled() && CoreSPIConsumerSession.tc.isEntryEnabled()) { SibTr.entry(CoreSPIConsumerSession.tc, "getConnectionInternal", this); SibTr.exit(CoreSPIConsumerSession.tc, "getConnectionInternal",...
java
protected SICoreConnection getConnectionInternal() { if (TraceComponent.isAnyTracingEnabled() && CoreSPIConsumerSession.tc.isEntryEnabled()) { SibTr.entry(CoreSPIConsumerSession.tc, "getConnectionInternal", this); SibTr.exit(CoreSPIConsumerSession.tc, "getConnectionInternal",...
[ "protected", "SICoreConnection", "getConnectionInternal", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "CoreSPIConsumerSession", ".", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "CoreSPI...
Internal getter method which bypasses the not closed check. @return
[ "Internal", "getter", "method", "which", "bypasses", "the", "not", "closed", "check", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java#L664-L673
69,362
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java
ConsumerSessionImpl.getIdInternal
public long getIdInternal() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getIdInternal"); SibTr.exit(tc, "getIdInternal", new Long(_consumerId)); } return _consumerId; }
java
public long getIdInternal() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getIdInternal"); SibTr.exit(tc, "getIdInternal", new Long(_consumerId)); } return _consumerId; }
[ "public", "long", "getIdInternal", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getIdInternal\"", ")", ";", "SibTr", "."...
Gets the id for the consumer without any checking. @return the id for this consumer session
[ "Gets", "the", "id", "for", "the", "consumer", "without", "any", "checking", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java#L895-L903
69,363
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java
ConsumerSessionImpl.setId
void setId(long id) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setId", new Long(id)); _consumerId = id; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "setId"); }
java
void setId(long id) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setId", new Long(id)); _consumerId = id; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "setId"); }
[ "void", "setId", "(", "long", "id", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setId\"", ",", "new", "Long", "(", "id", ")",...
Sets the id for this consumer. @param id
[ "Sets", "the", "id", "for", "this", "consumer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java#L945-L954
69,364
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/Matching.java
Matching.createFactoryInstance
private static void createFactoryInstance() { if (tc.isEntryEnabled()) tc.entry(cclass, "createFactoryInstance"); try { Class cls = Class.forName(MATCHING_CLASS_NAME); instance = (Matching) cls.newInstance(); } catch (Exception e) { // No FFDC Code Needed. // FFD...
java
private static void createFactoryInstance() { if (tc.isEntryEnabled()) tc.entry(cclass, "createFactoryInstance"); try { Class cls = Class.forName(MATCHING_CLASS_NAME); instance = (Matching) cls.newInstance(); } catch (Exception e) { // No FFDC Code Needed. // FFD...
[ "private", "static", "void", "createFactoryInstance", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "tc", ".", "entry", "(", "cclass", ",", "\"createFactoryInstance\"", ")", ";", "try", "{", "Class", "cls", "=", "Class", ".", "for...
Create the Matching instance.
[ "Create", "the", "Matching", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/Matching.java#L62-L88
69,365
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/Matching.java
Matching.getInstance
public static Matching getInstance() throws Exception { if (tc.isEntryEnabled()) tc.entry(cclass, "getInstance"); if (instance == null) throw createException; if (tc.isEntryEnabled()) tc.exit(cclass, "getInstance", "instance=" + instance); return instance; }
java
public static Matching getInstance() throws Exception { if (tc.isEntryEnabled()) tc.entry(cclass, "getInstance"); if (instance == null) throw createException; if (tc.isEntryEnabled()) tc.exit(cclass, "getInstance", "instance=" + instance); return instance; }
[ "public", "static", "Matching", "getInstance", "(", ")", "throws", "Exception", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "tc", ".", "entry", "(", "cclass", ",", "\"getInstance\"", ")", ";", "if", "(", "instance", "==", "null", ")", "...
Obtain a reference to the singleton Matching instance @return The singleton instance of the factory class
[ "Obtain", "a", "reference", "to", "the", "singleton", "Matching", "instance" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/Matching.java#L96-L108
69,366
OpenLiberty/open-liberty
dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/PolicyTaskFutureImpl.java
PolicyTaskFutureImpl.abort
final boolean abort(boolean removeFromQueue, Throwable cause) { if (removeFromQueue && executor.queue.remove(this)) executor.maxQueueSizeConstraint.release(); if (nsAcceptEnd == nsAcceptBegin - 1) // currently unset nsRunEnd = nsQueueEnd = nsAcceptEnd = System.nanoTime(); ...
java
final boolean abort(boolean removeFromQueue, Throwable cause) { if (removeFromQueue && executor.queue.remove(this)) executor.maxQueueSizeConstraint.release(); if (nsAcceptEnd == nsAcceptBegin - 1) // currently unset nsRunEnd = nsQueueEnd = nsAcceptEnd = System.nanoTime(); ...
[ "final", "boolean", "abort", "(", "boolean", "removeFromQueue", ",", "Throwable", "cause", ")", "{", "if", "(", "removeFromQueue", "&&", "executor", ".", "queue", ".", "remove", "(", "this", ")", ")", "executor", ".", "maxQueueSizeConstraint", ".", "release", ...
Invoked to abort a task. @param removeFromQueue indicates whether we should first remove the task from the executor's queue. @param cause the cause of the abort. @return true if the future transitioned to ABORTED state.
[ "Invoked", "to", "abort", "a", "task", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/PolicyTaskFutureImpl.java#L394-L423
69,367
OpenLiberty/open-liberty
dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/PolicyTaskFutureImpl.java
PolicyTaskFutureImpl.accept
@Trivial final void accept(boolean runOnSubmitter) { long time; nsAcceptEnd = time = System.nanoTime(); if (runOnSubmitter) nsQueueEnd = time; state.setSubmitted(); }
java
@Trivial final void accept(boolean runOnSubmitter) { long time; nsAcceptEnd = time = System.nanoTime(); if (runOnSubmitter) nsQueueEnd = time; state.setSubmitted(); }
[ "@", "Trivial", "final", "void", "accept", "(", "boolean", "runOnSubmitter", ")", "{", "long", "time", ";", "nsAcceptEnd", "=", "time", "=", "System", ".", "nanoTime", "(", ")", ";", "if", "(", "runOnSubmitter", ")", "nsQueueEnd", "=", "time", ";", "stat...
Invoked to indicate the task was successfully submitted. @param runOnSubmitter true if accepted to run immediately on the submitter's thread. False if accepted to the queue.
[ "Invoked", "to", "indicate", "the", "task", "was", "successfully", "submitted", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/PolicyTaskFutureImpl.java#L430-L437
69,368
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.config.1.4/src/com/ibm/ws/microprofile/config14/impl/PropertyResolverUtil.java
PropertyResolverUtil.resolve
public static String resolve(WebSphereConfig14 config, String raw) { String resolved = raw; StringCharacterIterator itr = new StringCharacterIterator(resolved); int startCount = 0; //how many times have we encountered the start token (EVAL_START_TOKEN) without it being matched by the end token (...
java
public static String resolve(WebSphereConfig14 config, String raw) { String resolved = raw; StringCharacterIterator itr = new StringCharacterIterator(resolved); int startCount = 0; //how many times have we encountered the start token (EVAL_START_TOKEN) without it being matched by the end token (...
[ "public", "static", "String", "resolve", "(", "WebSphereConfig14", "config", ",", "String", "raw", ")", "{", "String", "resolved", "=", "raw", ";", "StringCharacterIterator", "itr", "=", "new", "StringCharacterIterator", "(", "resolved", ")", ";", "int", "startC...
This method takes a raw value which may contain nested properties and resolves those properties into their actual values. e.g. given the following properties in the config greeting = hello text = my name is ${name} name = bob if the raw string was "${greeting}, ${text}" then the resulting string would be "hello, my ...
[ "This", "method", "takes", "a", "raw", "value", "which", "may", "contain", "nested", "properties", "and", "resolves", "those", "properties", "into", "their", "actual", "values", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.4/src/com/ibm/ws/microprofile/config14/impl/PropertyResolverUtil.java#L36-L112
69,369
OpenLiberty/open-liberty
dev/com.ibm.rls.jdbc/src/com/ibm/ws/recoverylog/custom/jdbc/impl/SQLNonTransactionalDataSource.java
SQLNonTransactionalDataSource.getDataSource
@FFDCIgnore(Exception.class) public DataSource getDataSource() throws Exception { if (tc.isEntryEnabled()) Tr.entry(tc, "getDataSource"); // Retrieve the data source factory from the CustomLogProperties. This Factory should be set in the JTMConfigurationProvider // by the jdbc c...
java
@FFDCIgnore(Exception.class) public DataSource getDataSource() throws Exception { if (tc.isEntryEnabled()) Tr.entry(tc, "getDataSource"); // Retrieve the data source factory from the CustomLogProperties. This Factory should be set in the JTMConfigurationProvider // by the jdbc c...
[ "@", "FFDCIgnore", "(", "Exception", ".", "class", ")", "public", "DataSource", "getDataSource", "(", ")", "throws", "Exception", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"getDataSource\"", ")", ";...
Locates a DataSource in config @return The DataSource. @exception
[ "Locates", "a", "DataSource", "in", "config" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.rls.jdbc/src/com/ibm/ws/recoverylog/custom/jdbc/impl/SQLNonTransactionalDataSource.java#L78-L148
69,370
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsTemporaryTopicImpl.java
JmsTemporaryTopicImpl.writeObject
private void writeObject(ObjectOutputStream out) throws IOException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "writeObject", out); throw new NotSerializableException("TemporaryTopic"); }
java
private void writeObject(ObjectOutputStream out) throws IOException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "writeObject", out); throw new NotSerializableException("TemporaryTopic"); }
[ "private", "void", "writeObject", "(", "ObjectOutputStream", "out", ")", "throws", "IOException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",...
The writeObject method for serialization. JmsDestination is declared as Serializable, which makes this class Serializable. However, a TemporaryQueue/Topic should never be copied and can't be used outside the scope of its session. Hence it makes no sense to even attempt to serialize so we just throw java.io.Serial @pa...
[ "The", "writeObject", "method", "for", "serialization", "." ]
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/JmsTemporaryTopicImpl.java#L91-L94
69,371
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service/src/com/ibm/ws/container/service/app/deploy/ManifestClassPathUtils.java
ManifestClassPathUtils.addCompleteJarEntryUrls
public static void addCompleteJarEntryUrls(List<ContainerInfo> containers, Entry jarEntry, Collection<String> resolved) throws UnableToAdaptException { String entryIdentity = createEntryIdentity(jarEntry); if (!entryIdentity.isEmpty() && !resolved.contains(entryIdentity)) { resolved.add(entr...
java
public static void addCompleteJarEntryUrls(List<ContainerInfo> containers, Entry jarEntry, Collection<String> resolved) throws UnableToAdaptException { String entryIdentity = createEntryIdentity(jarEntry); if (!entryIdentity.isEmpty() && !resolved.contains(entryIdentity)) { resolved.add(entr...
[ "public", "static", "void", "addCompleteJarEntryUrls", "(", "List", "<", "ContainerInfo", ">", "containers", ",", "Entry", "jarEntry", ",", "Collection", "<", "String", ">", "resolved", ")", "throws", "UnableToAdaptException", "{", "String", "entryIdentity", "=", ...
Add the jar entry URLs and its class path URLs. We need deal with all the thrown exceptions so that it won't interrupt the caller's processing. @param urls @param jarEntry
[ "Add", "the", "jar", "entry", "URLs", "and", "its", "class", "path", "URLs", ".", "We", "need", "deal", "with", "all", "the", "thrown", "exceptions", "so", "that", "it", "won", "t", "interrupt", "the", "caller", "s", "processing", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service/src/com/ibm/ws/container/service/app/deploy/ManifestClassPathUtils.java#L177-L183
69,372
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service/src/com/ibm/ws/container/service/app/deploy/ManifestClassPathUtils.java
ManifestClassPathUtils.findClassPathEntry
private static Entry findClassPathEntry(Entry jarEntry, URI pathUri) throws URISyntaxException, UnableToAdaptException { URI relativeJarUri = new URI("/").relativize(new URI(jarEntry.getPath())); URI targetUri = null; targetUri = relativeJarUri.resolve(pathUri); if (targetUri.toString()...
java
private static Entry findClassPathEntry(Entry jarEntry, URI pathUri) throws URISyntaxException, UnableToAdaptException { URI relativeJarUri = new URI("/").relativize(new URI(jarEntry.getPath())); URI targetUri = null; targetUri = relativeJarUri.resolve(pathUri); if (targetUri.toString()...
[ "private", "static", "Entry", "findClassPathEntry", "(", "Entry", "jarEntry", ",", "URI", "pathUri", ")", "throws", "URISyntaxException", ",", "UnableToAdaptException", "{", "URI", "relativeJarUri", "=", "new", "URI", "(", "\"/\"", ")", ".", "relativize", "(", "...
calculate the class path entry based on the jar entry @param jarEntry @param pathUri @return @throws URISyntaxException @throws UnableToAdaptException
[ "calculate", "the", "class", "path", "entry", "based", "on", "the", "jar", "entry" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service/src/com/ibm/ws/container/service/app/deploy/ManifestClassPathUtils.java#L194-L208
69,373
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/channelfw/objectpool/LocalThreadObjectPool.java
LocalThreadObjectPool.purge
protected Object[] purge() { Object[] data = new Object[getCurrentNumElements()]; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "LocalPool is purging " + data.length + " items. firstEntry: " + firstEntry + " lastEntry: " + lastEntry + " poolSize: " + poolSi...
java
protected Object[] purge() { Object[] data = new Object[getCurrentNumElements()]; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "LocalPool is purging " + data.length + " items. firstEntry: " + firstEntry + " lastEntry: " + lastEntry + " poolSize: " + poolSi...
[ "protected", "Object", "[", "]", "purge", "(", ")", "{", "Object", "[", "]", "data", "=", "new", "Object", "[", "getCurrentNumElements", "(", ")", "]", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabl...
Purge the contents and hand them to the calling pool that owns this threadlocal version. @return Object[]
[ "Purge", "the", "contents", "and", "hand", "them", "to", "the", "calling", "pool", "that", "owns", "this", "threadlocal", "version", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/channelfw/objectpool/LocalThreadObjectPool.java#L287-L319
69,374
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/AbstractCDIRuntime.java
AbstractCDIRuntime.skipCreatingBda
@Override public final boolean skipCreatingBda(CDIArchive archive) { //only skip this if it is a leaf archive boolean skip = isImplicitBeanArchivesScanningDisabled(archive); skip = skip && (archive.getBeansXml() == null); skip = skip && (!(archive.getType() == ArchiveType.WEB_MODULE)...
java
@Override public final boolean skipCreatingBda(CDIArchive archive) { //only skip this if it is a leaf archive boolean skip = isImplicitBeanArchivesScanningDisabled(archive); skip = skip && (archive.getBeansXml() == null); skip = skip && (!(archive.getType() == ArchiveType.WEB_MODULE)...
[ "@", "Override", "public", "final", "boolean", "skipCreatingBda", "(", "CDIArchive", "archive", ")", "{", "//only skip this if it is a leaf archive", "boolean", "skip", "=", "isImplicitBeanArchivesScanningDisabled", "(", "archive", ")", ";", "skip", "=", "skip", "&&", ...
Determine whether this jar is completely ignored by CDI, so no need to create bda for it. The jar will be ignored if it does not contain beans.xml and in the server.xml, implicit bean archive scanning is disabled. @param moduleContainer the module container @param type the module type @return whether the jar will be i...
[ "Determine", "whether", "this", "jar", "is", "completely", "ignored", "by", "CDI", "so", "no", "need", "to", "create", "bda", "for", "it", ".", "The", "jar", "will", "be", "ignored", "if", "it", "does", "not", "contain", "beans", ".", "xml", "and", "in...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/AbstractCDIRuntime.java#L101-L108
69,375
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.async/src/com/ibm/ws/ejbcontainer/async/osgi/internal/RemoteAsyncResultReaper.java
RemoteAsyncResultReaper.finalReap
public synchronized void finalReap() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "finalReap : Remote Async Results = " + ivAllRemoteAsyncResults.size()); // Re-write the finalReap to use the LinkedHashSet, ite...
java
public synchronized void finalReap() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "finalReap : Remote Async Results = " + ivAllRemoteAsyncResults.size()); // Re-write the finalReap to use the LinkedHashSet, ite...
[ "public", "synchronized", "void", "finalReap", "(", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "...
This method is invoked just before container termination to clean up server-side Future objects.
[ "This", "method", "is", "invoked", "just", "before", "container", "termination", "to", "clean", "up", "server", "-", "side", "Future", "objects", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.async/src/com/ibm/ws/ejbcontainer/async/osgi/internal/RemoteAsyncResultReaper.java#L219-L241
69,376
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.async/src/com/ibm/ws/ejbcontainer/async/osgi/internal/RemoteAsyncResultReaper.java
RemoteAsyncResultReaper.add
public synchronized void add(RemoteAsyncResultImpl asyncResult) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); ivAllRemoteAsyncResults.add(asyncResult); if (asyncResult.ivPmiBean != null) { // d690014.3 asyncResult.ivPmiBean.asyncFutureObjectIncrement(); }...
java
public synchronized void add(RemoteAsyncResultImpl asyncResult) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); ivAllRemoteAsyncResults.add(asyncResult); if (asyncResult.ivPmiBean != null) { // d690014.3 asyncResult.ivPmiBean.asyncFutureObjectIncrement(); }...
[ "public", "synchronized", "void", "add", "(", "RemoteAsyncResultImpl", "asyncResult", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "ivAllRemoteAsyncResults", ".", "add", "(", "asyncResult", ")", ";", ...
Add a new server-side Future object to the list to be checked for timeouts
[ "Add", "a", "new", "server", "-", "side", "Future", "object", "to", "the", "list", "to", "be", "checked", "for", "timeouts" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.async/src/com/ibm/ws/ejbcontainer/async/osgi/internal/RemoteAsyncResultReaper.java#L246-L287
69,377
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.async/src/com/ibm/ws/ejbcontainer/async/osgi/internal/RemoteAsyncResultReaper.java
RemoteAsyncResultReaper.remove
public synchronized void remove(RemoteAsyncResultImpl asyncResult) { ivAllRemoteAsyncResults.remove(asyncResult); releaseResources(asyncResult); // d690014.3 // If no server-side Future objects and an alarm is set then cancel the alarm. d623593 if (ivAllRemoteAsyncResults.isEmpty() && ...
java
public synchronized void remove(RemoteAsyncResultImpl asyncResult) { ivAllRemoteAsyncResults.remove(asyncResult); releaseResources(asyncResult); // d690014.3 // If no server-side Future objects and an alarm is set then cancel the alarm. d623593 if (ivAllRemoteAsyncResults.isEmpty() && ...
[ "public", "synchronized", "void", "remove", "(", "RemoteAsyncResultImpl", "asyncResult", ")", "{", "ivAllRemoteAsyncResults", ".", "remove", "(", "asyncResult", ")", ";", "releaseResources", "(", "asyncResult", ")", ";", "// d690014.3", "// If no server-side Future object...
Remove a server-side Future object from the reaper and release its resources.
[ "Remove", "a", "server", "-", "side", "Future", "object", "from", "the", "reaper", "and", "release", "its", "resources", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.async/src/com/ibm/ws/ejbcontainer/async/osgi/internal/RemoteAsyncResultReaper.java#L293-L305
69,378
OpenLiberty/open-liberty
dev/com.ibm.ws.logging/src/com/ibm/ws/logging/collector/BurstDateFormat.java
BurstDateFormat.format
public String format(long timestamp) { // If the format is unknown, use the default formatter. if (invalidFormat) { return formatter.format(timestamp); } try { long delta = timestamp - refTimestamp; // If we need to reformat if (delta >=...
java
public String format(long timestamp) { // If the format is unknown, use the default formatter. if (invalidFormat) { return formatter.format(timestamp); } try { long delta = timestamp - refTimestamp; // If we need to reformat if (delta >=...
[ "public", "String", "format", "(", "long", "timestamp", ")", "{", "// If the format is unknown, use the default formatter.", "if", "(", "invalidFormat", ")", "{", "return", "formatter", ".", "format", "(", "timestamp", ")", ";", "}", "try", "{", "long", "delta", ...
Formats a timestamp @param timestamp @return
[ "Formats", "a", "timestamp" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/collector/BurstDateFormat.java#L116-L158
69,379
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/PtoPLocalMsgsItemStream.java
PtoPLocalMsgsItemStream.setName
private void setName(String newName) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setName", newName); this._name = newName; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "setName"); }
java
private void setName(String newName) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setName", newName); this._name = newName; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "setName"); }
[ "private", "void", "setName", "(", "String", "newName", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setName\"", ",", "newName", "...
Sets the name currently in use by this localization. @param newIdentifier
[ "Sets", "the", "name", "currently", "in", "use", "by", "this", "localization", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/PtoPLocalMsgsItemStream.java#L786-L795
69,380
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/PtoPLocalMsgsItemStream.java
PtoPLocalMsgsItemStream.isSendAllowed
@Override public boolean isSendAllowed() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "isSendAllowed"); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "isSendAllowed", new Boolean(_isSendAllowed)); ...
java
@Override public boolean isSendAllowed() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "isSendAllowed"); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "isSendAllowed", new Boolean(_isSendAllowed)); ...
[ "@", "Override", "public", "boolean", "isSendAllowed", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"isSendAllowed\"", ")", ";",...
Gets the current value of SendAllowed used by this localization. @return
[ "Gets", "the", "current", "value", "of", "SendAllowed", "used", "by", "this", "localization", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/PtoPLocalMsgsItemStream.java#L853-L863
69,381
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/PtoPLocalMsgsItemStream.java
PtoPLocalMsgsItemStream.setSendAllowed
public void setSendAllowed(boolean newIsSendAllowedValue) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setSendAllowed", new Boolean(newIsSendAllowedValue)); this._isSendAllowed = newIsSendAllowedValue; updatePutRegistration(_isSendAllowed);...
java
public void setSendAllowed(boolean newIsSendAllowedValue) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setSendAllowed", new Boolean(newIsSendAllowedValue)); this._isSendAllowed = newIsSendAllowedValue; updatePutRegistration(_isSendAllowed);...
[ "public", "void", "setSendAllowed", "(", "boolean", "newIsSendAllowedValue", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setSendAllowed...
Sets the current value of SendAllowed used by this localization. @param newIsSendAllowedValue
[ "Sets", "the", "current", "value", "of", "SendAllowed", "used", "by", "this", "localization", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/PtoPLocalMsgsItemStream.java#L870-L880
69,382
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/PtoPLocalMsgsItemStream.java
PtoPLocalMsgsItemStream.setAlterationTime
public void setAlterationTime(long newAlterationTime) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setAlterationTime", new Long(newAlterationTime)); this._alterationTime = newAlterationTime; if (TraceComponent.isAnyTracingEnabled() && tc.i...
java
public void setAlterationTime(long newAlterationTime) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setAlterationTime", new Long(newAlterationTime)); this._alterationTime = newAlterationTime; if (TraceComponent.isAnyTracingEnabled() && tc.i...
[ "public", "void", "setAlterationTime", "(", "long", "newAlterationTime", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setAlterationTime\...
Sets the current alteration time fro this localization. @param newAlterationTime
[ "Sets", "the", "current", "alteration", "time", "fro", "this", "localization", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/PtoPLocalMsgsItemStream.java#L904-L913
69,383
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/StaticCATSubscription.java
StaticCATSubscription.rcvDeleteDurableSub
public static void rcvDeleteDurableSub(CommsByteBuffer request, Conversation conversation, int requestNumber, boolean allocatedFromBufferPool, boolean partOfExchange) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnab...
java
public static void rcvDeleteDurableSub(CommsByteBuffer request, Conversation conversation, int requestNumber, boolean allocatedFromBufferPool, boolean partOfExchange) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnab...
[ "public", "static", "void", "rcvDeleteDurableSub", "(", "CommsByteBuffer", "request", ",", "Conversation", "conversation", ",", "int", "requestNumber", ",", "boolean", "allocatedFromBufferPool", ",", "boolean", "partOfExchange", ")", "{", "if", "(", "TraceComponent", ...
Deletes a durable subscription BIT16 ConnectionObjectID BIT16 SubscriptionNameLength BYTE[] SubscriptionName BIT16 SubscriptionHomeLength BYTE[] SubscriptionHome @param request @param conversation @param requestNumber @param allocatedFromBufferPool @param partOfExchange
[ "Deletes", "a", "durable", "subscription" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/StaticCATSubscription.java#L517-L608
69,384
OpenLiberty/open-liberty
dev/com.ibm.ws.config.schemagen/src/com/ibm/ws/config/schemagen/internal/Generator.java
Generator.main
public static void main(String[] args) { Generator schemaGen = new Generator(); System.exit(schemaGen.createSchema(args)); }
java
public static void main(String[] args) { Generator schemaGen = new Generator(); System.exit(schemaGen.createSchema(args)); }
[ "public", "static", "void", "main", "(", "String", "[", "]", "args", ")", "{", "Generator", "schemaGen", "=", "new", "Generator", "(", ")", ";", "System", ".", "exit", "(", "schemaGen", ".", "createSchema", "(", "args", ")", ")", ";", "}" ]
The runtime main. String arguments are treated and parsed as command line parameters. @param args Command line arguments.
[ "The", "runtime", "main", ".", "String", "arguments", "are", "treated", "and", "parsed", "as", "command", "line", "parameters", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config.schemagen/src/com/ibm/ws/config/schemagen/internal/Generator.java#L82-L85
69,385
OpenLiberty/open-liberty
dev/com.ibm.ws.config.schemagen/src/com/ibm/ws/config/schemagen/internal/Generator.java
Generator.generate
private void generate(List<MetaTypeInformationSpecification> metatype) { XMLOutputFactory factory = XMLOutputFactory.newInstance(); try { PrintWriter writer = new PrintWriter(generatorOptions.getOutputFile(), generatorOptions.getEncoding()); XMLStreamWriter xmlWriter = null; ...
java
private void generate(List<MetaTypeInformationSpecification> metatype) { XMLOutputFactory factory = XMLOutputFactory.newInstance(); try { PrintWriter writer = new PrintWriter(generatorOptions.getOutputFile(), generatorOptions.getEncoding()); XMLStreamWriter xmlWriter = null; ...
[ "private", "void", "generate", "(", "List", "<", "MetaTypeInformationSpecification", ">", "metatype", ")", "{", "XMLOutputFactory", "factory", "=", "XMLOutputFactory", ".", "newInstance", "(", ")", ";", "try", "{", "PrintWriter", "writer", "=", "new", "PrintWriter...
Pass the constructed metatypinformation to SchemaWriter for the actual generation @param metatype @param outputFile
[ "Pass", "the", "constructed", "metatypinformation", "to", "SchemaWriter", "for", "the", "actual", "generation" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config.schemagen/src/com/ibm/ws/config/schemagen/internal/Generator.java#L175-L202
69,386
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgPart.java
JsMsgPart.setField
void setField(int accessor, Object value) { try { jmfPart.setValue(accessor, value); } catch (JMFException e) { FFDCFilter.processException(e, "setField", "87", this); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "setField failed: " + e); } }
java
void setField(int accessor, Object value) { try { jmfPart.setValue(accessor, value); } catch (JMFException e) { FFDCFilter.processException(e, "setField", "87", this); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "setField failed: " + e); } }
[ "void", "setField", "(", "int", "accessor", ",", "Object", "value", ")", "{", "try", "{", "jmfPart", ".", "setValue", "(", "accessor", ",", "value", ")", ";", "}", "catch", "(", "JMFException", "e", ")", "{", "FFDCFilter", ".", "processException", "(", ...
General field access
[ "General", "field", "access" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgPart.java#L64-L71
69,387
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgPart.java
JsMsgPart.setIntField
void setIntField(int accessor, int value) { try { jmfPart.setInt(accessor, value); } catch (JMFException e) { FFDCFilter.processException(e, "setIntField", "109", this); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "setIntField failed: " + e); } ...
java
void setIntField(int accessor, int value) { try { jmfPart.setInt(accessor, value); } catch (JMFException e) { FFDCFilter.processException(e, "setIntField", "109", this); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "setIntField failed: " + e); } ...
[ "void", "setIntField", "(", "int", "accessor", ",", "int", "value", ")", "{", "try", "{", "jmfPart", ".", "setInt", "(", "accessor", ",", "value", ")", ";", "}", "catch", "(", "JMFException", "e", ")", "{", "FFDCFilter", ".", "processException", "(", "...
Convenience access to primitive type fields
[ "Convenience", "access", "to", "primitive", "type", "fields" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgPart.java#L86-L93
69,388
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgPart.java
JsMsgPart.setChoiceField
void setChoiceField(int accessor, int variant) { try { jmfPart.setInt(accessor, variant); } catch (JMFException e) { FFDCFilter.processException(e, "setChoiceField", "173", this); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "setChoiceField failed: " +...
java
void setChoiceField(int accessor, int variant) { try { jmfPart.setInt(accessor, variant); } catch (JMFException e) { FFDCFilter.processException(e, "setChoiceField", "173", this); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "setChoiceField failed: " +...
[ "void", "setChoiceField", "(", "int", "accessor", ",", "int", "variant", ")", "{", "try", "{", "jmfPart", ".", "setInt", "(", "accessor", ",", "variant", ")", ";", "}", "catch", "(", "JMFException", "e", ")", "{", "FFDCFilter", ".", "processException", "...
Set a choice field to a specific variant
[ "Set", "a", "choice", "field", "to", "a", "specific", "variant" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgPart.java#L150-L157
69,389
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgPart.java
JsMsgPart.getChoiceField
int getChoiceField(int accessor) { int result = 0; try { if (jmfPart.isPresent(accessor)) result = jmfPart.getInt(accessor); } catch (JMFException e) { FFDCFilter.processException(e, "getChoiceField", "185", this); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Si...
java
int getChoiceField(int accessor) { int result = 0; try { if (jmfPart.isPresent(accessor)) result = jmfPart.getInt(accessor); } catch (JMFException e) { FFDCFilter.processException(e, "getChoiceField", "185", this); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Si...
[ "int", "getChoiceField", "(", "int", "accessor", ")", "{", "int", "result", "=", "0", ";", "try", "{", "if", "(", "jmfPart", ".", "isPresent", "(", "accessor", ")", ")", "result", "=", "jmfPart", ".", "getInt", "(", "accessor", ")", ";", "}", "catch"...
Get a choice field which determines which variant is set
[ "Get", "a", "choice", "field", "which", "determines", "which", "variant", "is", "set" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgPart.java#L160-L170
69,390
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgPart.java
JsMsgPart.setPart
void setPart(int accessor, JMFSchema schema) { try { jmfPart.setValue(accessor, jmfPart.newNativePart(schema)); } catch (JMFException e) { FFDCFilter.processException(e, "setDynamicField", "196", this); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "set...
java
void setPart(int accessor, JMFSchema schema) { try { jmfPart.setValue(accessor, jmfPart.newNativePart(schema)); } catch (JMFException e) { FFDCFilter.processException(e, "setDynamicField", "196", this); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "set...
[ "void", "setPart", "(", "int", "accessor", ",", "JMFSchema", "schema", ")", "{", "try", "{", "jmfPart", ".", "setValue", "(", "accessor", ",", "jmfPart", ".", "newNativePart", "(", "schema", ")", ")", ";", "}", "catch", "(", "JMFException", "e", ")", "...
Set a dynamic field to an empty message of appropriate type
[ "Set", "a", "dynamic", "field", "to", "an", "empty", "message", "of", "appropriate", "type" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgPart.java#L173-L180
69,391
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgPart.java
JsMsgPart.getPart
JsMsgPart getPart(int accessor, JMFSchema schema) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getPart", new Object[]{accessor, schema}); JsMsgPart result = null; try { if (jmfPart.isPresent(accessor)) result = new JsMsgPart(jmfPart.getNativePart(ac...
java
JsMsgPart getPart(int accessor, JMFSchema schema) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getPart", new Object[]{accessor, schema}); JsMsgPart result = null; try { if (jmfPart.isPresent(accessor)) result = new JsMsgPart(jmfPart.getNativePart(ac...
[ "JsMsgPart", "getPart", "(", "int", "accessor", ",", "JMFSchema", "schema", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",",...
Obtain a nested message part
[ "Obtain", "a", "nested", "message", "part" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgPart.java#L183-L195
69,392
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgPart.java
JsMsgPart.estimateFieldValueSize
int estimateFieldValueSize(int accessor) { int size = 0; try { if (jmfPart.isPresent(accessor)) { size = jmfPart.estimateUnassembledValueSize(accessor); } } catch (JMFException e) { FFDCFilter.processException(e, "estimateFieldValueSize", "221", this); if (TraceComponent....
java
int estimateFieldValueSize(int accessor) { int size = 0; try { if (jmfPart.isPresent(accessor)) { size = jmfPart.estimateUnassembledValueSize(accessor); } } catch (JMFException e) { FFDCFilter.processException(e, "estimateFieldValueSize", "221", this); if (TraceComponent....
[ "int", "estimateFieldValueSize", "(", "int", "accessor", ")", "{", "int", "size", "=", "0", ";", "try", "{", "if", "(", "jmfPart", ".", "isPresent", "(", "accessor", ")", ")", "{", "size", "=", "jmfPart", ".", "estimateUnassembledValueSize", "(", "accessor...
Get the estimated size of the fluffed=up value of the field
[ "Get", "the", "estimated", "size", "of", "the", "fluffed", "=", "up", "value", "of", "the", "field" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgPart.java#L198-L210
69,393
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgPart.java
JsMsgPart.isNotEMPTYlist
public boolean isNotEMPTYlist(int accessor) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isNotEMPTYlist", accessor); // The answer is true, unless an EMPTY is found. boolean isNotAnEMPTY = true; // The field can't be an EMPTY singleton unless the part is a J...
java
public boolean isNotEMPTYlist(int accessor) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isNotEMPTYlist", accessor); // The answer is true, unless an EMPTY is found. boolean isNotAnEMPTY = true; // The field can't be an EMPTY singleton unless the part is a J...
[ "public", "boolean", "isNotEMPTYlist", "(", "int", "accessor", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"isNotEMPTYl...
isNotEMPTYlist Return false if the value of the given field is one of the singleton EMPTY lists, otherwise true. @param accessor The aceesor value of the field of interest. @return boolean True if the field is NOT a singleton JMF empty list
[ "isNotEMPTYlist", "Return", "false", "if", "the", "value", "of", "the", "given", "field", "is", "one", "of", "the", "singleton", "EMPTY", "lists", "otherwise", "true", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgPart.java#L243-L257
69,394
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/StateUtils.java
StateUtils.construct
public static final String construct(Object object, ExternalContext ctx) { byte[] bytes = getAsByteArray(object, ctx); if( enableCompression(ctx) ) { bytes = compress(bytes); } if(isSecure(ctx)) { bytes = encrypt(bytes, ctx); } ...
java
public static final String construct(Object object, ExternalContext ctx) { byte[] bytes = getAsByteArray(object, ctx); if( enableCompression(ctx) ) { bytes = compress(bytes); } if(isSecure(ctx)) { bytes = encrypt(bytes, ctx); } ...
[ "public", "static", "final", "String", "construct", "(", "Object", "object", ",", "ExternalContext", "ctx", ")", "{", "byte", "[", "]", "bytes", "=", "getAsByteArray", "(", "object", ",", "ctx", ")", ";", "if", "(", "enableCompression", "(", "ctx", ")", ...
This fires during the Render Response phase, saving state.
[ "This", "fires", "during", "the", "Render", "Response", "phase", "saving", "state", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/StateUtils.java#L245-L265
69,395
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/StateUtils.java
StateUtils.getAsByteArray
public static final byte[] getAsByteArray(Object object, ExternalContext ctx) { ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); // get the Factory that was instantiated @ startup SerialFactory serialFactory = (SerialFactory) ctx.getApplicationMap().get(SERIAL_FACTO...
java
public static final byte[] getAsByteArray(Object object, ExternalContext ctx) { ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); // get the Factory that was instantiated @ startup SerialFactory serialFactory = (SerialFactory) ctx.getApplicationMap().get(SERIAL_FACTO...
[ "public", "static", "final", "byte", "[", "]", "getAsByteArray", "(", "Object", "object", ",", "ExternalContext", "ctx", ")", "{", "ByteArrayOutputStream", "outputStream", "=", "new", "ByteArrayOutputStream", "(", ")", ";", "// get the Factory that was instantiated @ st...
Performs serialization with the serialization provider created by the SerialFactory. @param object @param ctx @return
[ "Performs", "serialization", "with", "the", "serialization", "provider", "created", "by", "the", "SerialFactory", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/StateUtils.java#L276-L303
69,396
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/StateUtils.java
StateUtils.reconstruct
public static final Object reconstruct(String string, ExternalContext ctx) { byte[] bytes; try { if(log.isLoggable(Level.FINE)) { log.fine("Processing state : " + string); } bytes = string.getBytes(ZIP_CHARSET); byt...
java
public static final Object reconstruct(String string, ExternalContext ctx) { byte[] bytes; try { if(log.isLoggable(Level.FINE)) { log.fine("Processing state : " + string); } bytes = string.getBytes(ZIP_CHARSET); byt...
[ "public", "static", "final", "Object", "reconstruct", "(", "String", "string", ",", "ExternalContext", "ctx", ")", "{", "byte", "[", "]", "bytes", ";", "try", "{", "if", "(", "log", ".", "isLoggable", "(", "Level", ".", "FINE", ")", ")", "{", "log", ...
This fires during the Restore View phase, restoring state.
[ "This", "fires", "during", "the", "Restore", "View", "phase", "restoring", "state", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/StateUtils.java#L387-L417
69,397
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/StateUtils.java
StateUtils.getAsObject
public static final Object getAsObject(byte[] bytes, ExternalContext ctx) { ByteArrayInputStream input = null; try { input = new ByteArrayInputStream(bytes); // get the Factory that was instantiated @ startup SerialFactory serialFactory = (SerialFactory)...
java
public static final Object getAsObject(byte[] bytes, ExternalContext ctx) { ByteArrayInputStream input = null; try { input = new ByteArrayInputStream(bytes); // get the Factory that was instantiated @ startup SerialFactory serialFactory = (SerialFactory)...
[ "public", "static", "final", "Object", "getAsObject", "(", "byte", "[", "]", "bytes", ",", "ExternalContext", "ctx", ")", "{", "ByteArrayInputStream", "input", "=", "null", ";", "try", "{", "input", "=", "new", "ByteArrayInputStream", "(", "bytes", ")", ";",...
Performs deserialization with the serialization provider created from the SerialFactory. @param bytes @param ctx @return
[ "Performs", "deserialization", "with", "the", "serialization", "provider", "created", "from", "the", "SerialFactory", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/StateUtils.java#L539-L646
69,398
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/StateUtils.java
StateUtils.main
public static void main (String[] args) throws UnsupportedEncodingException { byte[] bytes = encode(args[0].getBytes(ZIP_CHARSET)); System.out.println(new String(bytes, ZIP_CHARSET)); }
java
public static void main (String[] args) throws UnsupportedEncodingException { byte[] bytes = encode(args[0].getBytes(ZIP_CHARSET)); System.out.println(new String(bytes, ZIP_CHARSET)); }
[ "public", "static", "void", "main", "(", "String", "[", "]", "args", ")", "throws", "UnsupportedEncodingException", "{", "byte", "[", "]", "bytes", "=", "encode", "(", "args", "[", "0", "]", ".", "getBytes", "(", "ZIP_CHARSET", ")", ")", ";", "System", ...
Utility method for generating base 64 encoded strings. @param args @throws UnsupportedEncodingException
[ "Utility", "method", "for", "generating", "base", "64", "encoded", "strings", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/StateUtils.java#L654-L658
69,399
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/StateUtils.java
StateUtils.initSecret
public static void initSecret(ServletContext ctx) { if(ctx == null) { throw new NullPointerException("ServletContext ctx"); } if (log.isLoggable(Level.FINE)) { log.fine("Storing SecretKey @ " + INIT_SECRET_KEY_CACHE); } ...
java
public static void initSecret(ServletContext ctx) { if(ctx == null) { throw new NullPointerException("ServletContext ctx"); } if (log.isLoggable(Level.FINE)) { log.fine("Storing SecretKey @ " + INIT_SECRET_KEY_CACHE); } ...
[ "public", "static", "void", "initSecret", "(", "ServletContext", "ctx", ")", "{", "if", "(", "ctx", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", "\"ServletContext ctx\"", ")", ";", "}", "if", "(", "log", ".", "isLoggable", "(", "Lev...
Does nothing if the user has disabled the SecretKey cache. This is useful when dealing with a JCA provider whose SecretKey implementation is not thread safe. Instantiates a SecretKey instance based upon what the user has specified in the deployment descriptor. The SecretKey is then stored in application scope where i...
[ "Does", "nothing", "if", "the", "user", "has", "disabled", "the", "SecretKey", "cache", ".", "This", "is", "useful", "when", "dealing", "with", "a", "JCA", "provider", "whose", "SecretKey", "implementation", "is", "not", "thread", "safe", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/StateUtils.java#L755-L803