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,800 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/registry/RegistryClaims.java | RegistryClaims.getUserinfoFromRegistryMap | private Map<String, Object> getUserinfoFromRegistryMap(Set<String> claims,
Map<String, Object> inputMap,
boolean isJson) throws Exception {
Map<String, Object> result = inputMap;
VMMService vmmService = JwtUtils.getVMMService();
if (vmmService != null) {
Prop... | java | private Map<String, Object> getUserinfoFromRegistryMap(Set<String> claims,
Map<String, Object> inputMap,
boolean isJson) throws Exception {
Map<String, Object> result = inputMap;
VMMService vmmService = JwtUtils.getVMMService();
if (vmmService != null) {
Prop... | [
"private",
"Map",
"<",
"String",
",",
"Object",
">",
"getUserinfoFromRegistryMap",
"(",
"Set",
"<",
"String",
">",
"claims",
",",
"Map",
"<",
"String",
",",
"Object",
">",
"inputMap",
",",
"boolean",
"isJson",
")",
"throws",
"Exception",
"{",
"Map",
"<",
... | Get the JSONObject that will be returned for userinfo endpoint from the user registry
@param jwtConfig
The JwtConfig
@param claims
The claims for this granted access
@param inputMap
@throws Exception
@throws IOException | [
"Get",
"the",
"JSONObject",
"that",
"will",
"be",
"returned",
"for",
"userinfo",
"endpoint",
"from",
"the",
"user",
"registry"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/registry/RegistryClaims.java#L133-L206 |
69,801 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/registry/RegistryClaims.java | RegistryClaims.vmmPropertyToString | @SuppressWarnings("rawtypes")
public String vmmPropertyToString(Object value) {
String result = null;
if (value == null || value instanceof String) {
result = (String) value;
}
else if (value instanceof List) {
StringBuffer strBuff = null;
for (Obj... | java | @SuppressWarnings("rawtypes")
public String vmmPropertyToString(Object value) {
String result = null;
if (value == null || value instanceof String) {
result = (String) value;
}
else if (value instanceof List) {
StringBuffer strBuff = null;
for (Obj... | [
"@",
"SuppressWarnings",
"(",
"\"rawtypes\"",
")",
"public",
"String",
"vmmPropertyToString",
"(",
"Object",
"value",
")",
"{",
"String",
"result",
"=",
"null",
";",
"if",
"(",
"value",
"==",
"null",
"||",
"value",
"instanceof",
"String",
")",
"{",
"result",... | Convert the object to a String. If it's a list create a String of the
elements as Strings delimited by blanks.
@param value
@return | [
"Convert",
"the",
"object",
"to",
"a",
"String",
".",
"If",
"it",
"s",
"a",
"list",
"create",
"a",
"String",
"of",
"the",
"elements",
"as",
"Strings",
"delimited",
"by",
"blanks",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/registry/RegistryClaims.java#L215-L243 |
69,802 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/org/apache/jasper/runtime/JspRuntimeLibrary.java | JspRuntimeLibrary.decode | public static String decode(String encoded) {
// speedily leave if we're not needed
if (encoded == null)
return null;
if (encoded.indexOf('%') == -1 && encoded.indexOf('+') == -1)
return encoded;
//allocate the buffer - use byte[] to avoid calls to new.
b... | java | public static String decode(String encoded) {
// speedily leave if we're not needed
if (encoded == null)
return null;
if (encoded.indexOf('%') == -1 && encoded.indexOf('+') == -1)
return encoded;
//allocate the buffer - use byte[] to avoid calls to new.
b... | [
"public",
"static",
"String",
"decode",
"(",
"String",
"encoded",
")",
"{",
"// speedily leave if we're not needed",
"if",
"(",
"encoded",
"==",
"null",
")",
"return",
"null",
";",
"if",
"(",
"encoded",
".",
"indexOf",
"(",
"'",
"'",
")",
"==",
"-",
"1",
... | Decode an URL formatted string.
@param s The string to decode.
@return The decoded string. | [
"Decode",
"an",
"URL",
"formatted",
"string",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/org/apache/jasper/runtime/JspRuntimeLibrary.java#L642-L674 |
69,803 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/org/apache/jasper/runtime/JspRuntimeLibrary.java | JspRuntimeLibrary.URLEncode | public static String URLEncode(String s, String enc) {
if (s == null) {
return "null";
}
if (enc == null) {
enc = "ISO-8859-1"; // Is this right?
}
StringBuffer out = new StringBuffer(s.length());
ByteArrayOutputStream buf = new ByteArrayOutputStream();
OutputStreamWriter... | java | public static String URLEncode(String s, String enc) {
if (s == null) {
return "null";
}
if (enc == null) {
enc = "ISO-8859-1"; // Is this right?
}
StringBuffer out = new StringBuffer(s.length());
ByteArrayOutputStream buf = new ByteArrayOutputStream();
OutputStreamWriter... | [
"public",
"static",
"String",
"URLEncode",
"(",
"String",
"s",
",",
"String",
"enc",
")",
"{",
"if",
"(",
"s",
"==",
"null",
")",
"{",
"return",
"\"null\"",
";",
"}",
"if",
"(",
"enc",
"==",
"null",
")",
"{",
"enc",
"=",
"\"ISO-8859-1\"",
";",
"// ... | URL encodes a string, based on the supplied character encoding.
This performs the same function as java.next.URLEncode.encode
in J2SDK1.4, and should be removed if the only platform supported
is 1.4 or higher.
@param s The String to be URL encoded.
@param enc The character encoding
@return The URL encoded String | [
"URL",
"encodes",
"a",
"string",
"based",
"on",
"the",
"supplied",
"character",
"encoding",
".",
"This",
"performs",
"the",
"same",
"function",
"as",
"java",
".",
"next",
".",
"URLEncode",
".",
"encode",
"in",
"J2SDK1",
".",
"4",
"and",
"should",
"be",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/org/apache/jasper/runtime/JspRuntimeLibrary.java#L1063-L1109 |
69,804 | OpenLiberty/open-liberty | dev/com.ibm.ws.transaction/src/com/ibm/ws/transaction/services/TransactionManagerService.java | TransactionManagerService.doStartup | public void doStartup(ConfigurationProvider cp, boolean isSQLRecoveryLog) {
if (tc.isDebugEnabled())
Tr.debug(tc, "doStartup with cp: " + cp + " and flag: " + isSQLRecoveryLog);
// Create an AppId that will be unique for this server to be used in the generation of Xids.
// Locate t... | java | public void doStartup(ConfigurationProvider cp, boolean isSQLRecoveryLog) {
if (tc.isDebugEnabled())
Tr.debug(tc, "doStartup with cp: " + cp + " and flag: " + isSQLRecoveryLog);
// Create an AppId that will be unique for this server to be used in the generation of Xids.
// Locate t... | [
"public",
"void",
"doStartup",
"(",
"ConfigurationProvider",
"cp",
",",
"boolean",
"isSQLRecoveryLog",
")",
"{",
"if",
"(",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"doStartup with cp: \"",
"+",
"cp",
"+",
"\" and fla... | This method will start log recovery processing.
@param cp | [
"This",
"method",
"will",
"start",
"log",
"recovery",
"processing",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transaction/src/com/ibm/ws/transaction/services/TransactionManagerService.java#L109-L164 |
69,805 | OpenLiberty/open-liberty | dev/com.ibm.ws.transaction/src/com/ibm/ws/transaction/services/TransactionManagerService.java | TransactionManagerService.doShutdown | public void doShutdown(boolean isSQLRecoveryLog) {
if (tc.isEntryEnabled())
Tr.entry(tc, "doShutdown with flag: " + isSQLRecoveryLog);
if (isSQLRecoveryLog) {
try {
TMHelper.shutdown();
} catch (Exception e) {
FFDCFilter.processExcepti... | java | public void doShutdown(boolean isSQLRecoveryLog) {
if (tc.isEntryEnabled())
Tr.entry(tc, "doShutdown with flag: " + isSQLRecoveryLog);
if (isSQLRecoveryLog) {
try {
TMHelper.shutdown();
} catch (Exception e) {
FFDCFilter.processExcepti... | [
"public",
"void",
"doShutdown",
"(",
"boolean",
"isSQLRecoveryLog",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"doShutdown with flag: \"",
"+",
"isSQLRecoveryLog",
")",
";",
"if",
"(",
"isSQLRecover... | This method will shutdown log recovery processing if we are working with transaction logs stored in
an RDBMS.
@param cp | [
"This",
"method",
"will",
"shutdown",
"log",
"recovery",
"processing",
"if",
"we",
"are",
"working",
"with",
"transaction",
"logs",
"stored",
"in",
"an",
"RDBMS",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transaction/src/com/ibm/ws/transaction/services/TransactionManagerService.java#L172-L185 |
69,806 | OpenLiberty/open-liberty | dev/com.ibm.ws.transaction/src/com/ibm/ws/transaction/services/TransactionManagerService.java | TransactionManagerService.createApplicationId | private byte[] createApplicationId(String userDir, String serverName, String hostName) {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (tc.isEntryEnabled())
Tr.entry(tc, "createApplicationId", new Object[] { userDir, serverName, hostName });
byte[] result;
... | java | private byte[] createApplicationId(String userDir, String serverName, String hostName) {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (tc.isEntryEnabled())
Tr.entry(tc, "createApplicationId", new Object[] { userDir, serverName, hostName });
byte[] result;
... | [
"private",
"byte",
"[",
"]",
"createApplicationId",
"(",
"String",
"userDir",
",",
"String",
"serverName",
",",
"String",
"hostName",
")",
"{",
"final",
"boolean",
"traceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"tc",
... | Returns an application identifier key which can be used as a unique component
within the global identifier and branch qualifier of an XID.
This method is derived from tWAS
@param name The server name.
@return The application identifier key. | [
"Returns",
"an",
"application",
"identifier",
"key",
"which",
"can",
"be",
"used",
"as",
"a",
"unique",
"component",
"within",
"the",
"global",
"identifier",
"and",
"branch",
"qualifier",
"of",
"an",
"XID",
".",
"This",
"method",
"is",
"derived",
"from",
"tW... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transaction/src/com/ibm/ws/transaction/services/TransactionManagerService.java#L484-L507 |
69,807 | OpenLiberty/open-liberty | dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAEMPool.java | JPAEMPool.createEntityManager | @Override
public EntityManager createEntityManager()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "createEntityManager : " + this);
EntityManager em = getEntityManager(false, false);
JPAPooledEntityManager pem = new JPAPooledEntityManager(t... | java | @Override
public EntityManager createEntityManager()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "createEntityManager : " + this);
EntityManager em = getEntityManager(false, false);
JPAPooledEntityManager pem = new JPAPooledEntityManager(t... | [
"@",
"Override",
"public",
"EntityManager",
"createEntityManager",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"createEntityManager : ... | Gets entity manager from pool and wraps it in an invocation type aware,
enlistment capable em. | [
"Gets",
"entity",
"manager",
"from",
"pool",
"and",
"wraps",
"it",
"in",
"an",
"invocation",
"type",
"aware",
"enlistment",
"capable",
"em",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAEMPool.java#L262-L271 |
69,808 | OpenLiberty/open-liberty | dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAEMPool.java | JPAEMPool.createEntityManager | @Override
public EntityManager createEntityManager(Map arg0)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "createEntityManager : " + this);
throw new UnsupportedOperationException("This operation is not supported on a pooling EntityManagerFactory.")... | java | @Override
public EntityManager createEntityManager(Map arg0)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "createEntityManager : " + this);
throw new UnsupportedOperationException("This operation is not supported on a pooling EntityManagerFactory.")... | [
"@",
"Override",
"public",
"EntityManager",
"createEntityManager",
"(",
"Map",
"arg0",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"cre... | Pooled entity managers have their properties already defined. A
provider exploiting the pool cannot use this method.
@throws UnsupportedOperationException | [
"Pooled",
"entity",
"managers",
"have",
"their",
"properties",
"already",
"defined",
".",
"A",
"provider",
"exploiting",
"the",
"pool",
"cannot",
"use",
"this",
"method",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAEMPool.java#L279-L285 |
69,809 | OpenLiberty/open-liberty | dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAEMPool.java | JPAEMPool.getCache | @Override
public Cache getCache()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getCache : " + this);
throw new UnsupportedOperationException("This operation is not supported on a pooling EntityManagerFactory.");
} | java | @Override
public Cache getCache()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getCache : " + this);
throw new UnsupportedOperationException("This operation is not supported on a pooling EntityManagerFactory.");
} | [
"@",
"Override",
"public",
"Cache",
"getCache",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"getCache : \"",
"+",
"this",
")",
... | Prohibit access to the cache via the pool.
@throws UnsupportedOperationException | [
"Prohibit",
"access",
"to",
"the",
"cache",
"via",
"the",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAEMPool.java#L292-L298 |
69,810 | OpenLiberty/open-liberty | dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAEMPool.java | JPAEMPool.getCriteriaBuilder | @Override
public CriteriaBuilder getCriteriaBuilder()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getCriteriaBuilder : " + this);
throw new UnsupportedOperationException("This operation is not supported on a pooling EntityManagerFactory.");
} | java | @Override
public CriteriaBuilder getCriteriaBuilder()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getCriteriaBuilder : " + this);
throw new UnsupportedOperationException("This operation is not supported on a pooling EntityManagerFactory.");
} | [
"@",
"Override",
"public",
"CriteriaBuilder",
"getCriteriaBuilder",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"getCriteriaBuilder : ... | Prohibit access to the criteria builder via the pool.
@throws UnsupportedOperationException | [
"Prohibit",
"access",
"to",
"the",
"criteria",
"builder",
"via",
"the",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAEMPool.java#L305-L311 |
69,811 | OpenLiberty/open-liberty | dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAEMPool.java | JPAEMPool.getMetamodel | @Override
public Metamodel getMetamodel()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getMetamodel : " + this);
throw new UnsupportedOperationException("This operation is not supported on a pooling EntityManagerFactory.");
} | java | @Override
public Metamodel getMetamodel()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getMetamodel : " + this);
throw new UnsupportedOperationException("This operation is not supported on a pooling EntityManagerFactory.");
} | [
"@",
"Override",
"public",
"Metamodel",
"getMetamodel",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"getMetamodel : \"",
"+",
"thi... | Prohibit access to the metamodel via the pool.
@throws UnsupportedOperationException | [
"Prohibit",
"access",
"to",
"the",
"metamodel",
"via",
"the",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAEMPool.java#L318-L324 |
69,812 | OpenLiberty/open-liberty | dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAEMPool.java | JPAEMPool.getPersistenceUnitUtil | @Override
public PersistenceUnitUtil getPersistenceUnitUtil()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getPersistenceUnitUtil : " + this);
throw new UnsupportedOperationException("This operation is not supported on a pooling EntityManagerFactor... | java | @Override
public PersistenceUnitUtil getPersistenceUnitUtil()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getPersistenceUnitUtil : " + this);
throw new UnsupportedOperationException("This operation is not supported on a pooling EntityManagerFactor... | [
"@",
"Override",
"public",
"PersistenceUnitUtil",
"getPersistenceUnitUtil",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"getPersistenc... | Prohibit access to the persistence unit util via the pool.
@throws UnsupportedOperationException | [
"Prohibit",
"access",
"to",
"the",
"persistence",
"unit",
"util",
"via",
"the",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAEMPool.java#L331-L337 |
69,813 | OpenLiberty/open-liberty | dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAEMPool.java | JPAEMPool.getProperties | @Override
public Map<String, Object> getProperties()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getProperties : " + this);
throw new UnsupportedOperationException("This operation is not supported on a pooling EntityManagerFactory.");
} | java | @Override
public Map<String, Object> getProperties()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getProperties : " + this);
throw new UnsupportedOperationException("This operation is not supported on a pooling EntityManagerFactory.");
} | [
"@",
"Override",
"public",
"Map",
"<",
"String",
",",
"Object",
">",
"getProperties",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
","... | Prohibit access to factory properties via the pool.
@throws UnsupportedOperationException | [
"Prohibit",
"access",
"to",
"factory",
"properties",
"via",
"the",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAEMPool.java#L344-L350 |
69,814 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/outbound/HttpOSC100ReadCallback.java | HttpOSC100ReadCallback.complete | public void complete(VirtualConnection vc, TCPReadRequestContext rsc) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "complete() called: vc=" + vc);
}
HttpOutboundServiceContextImpl mySC = (HttpOutboundServiceContextImpl) vc.getStateMap().get(Callb... | java | public void complete(VirtualConnection vc, TCPReadRequestContext rsc) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "complete() called: vc=" + vc);
}
HttpOutboundServiceContextImpl mySC = (HttpOutboundServiceContextImpl) vc.getStateMap().get(Callb... | [
"public",
"void",
"complete",
"(",
"VirtualConnection",
"vc",
",",
"TCPReadRequestContext",
"rsc",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
... | When the response has been received, we need to parse the status line
and verify that it was the "100 Continue". If it was, then pass along
the notification to the application channel. If it was anything else,
then pass an error up to the application channel using the specific
Expectation-Failed exception.
@param vc
@... | [
"When",
"the",
"response",
"has",
"been",
"received",
"we",
"need",
"to",
"parse",
"the",
"status",
"line",
"and",
"verify",
"that",
"it",
"was",
"the",
"100",
"Continue",
".",
"If",
"it",
"was",
"then",
"pass",
"along",
"the",
"notification",
"to",
"the... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/outbound/HttpOSC100ReadCallback.java#L89-L126 |
69,815 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/outbound/HttpOSC100ReadCallback.java | HttpOSC100ReadCallback.error | public void error(VirtualConnection vc, TCPReadRequestContext rsc, IOException ioe) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "error() called: vc=" + vc + " ioe=" + ioe);
}
HttpOutboundServiceContextImpl mySC = (HttpOutboundServiceContextImpl)... | java | public void error(VirtualConnection vc, TCPReadRequestContext rsc, IOException ioe) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "error() called: vc=" + vc + " ioe=" + ioe);
}
HttpOutboundServiceContextImpl mySC = (HttpOutboundServiceContextImpl)... | [
"public",
"void",
"error",
"(",
"VirtualConnection",
"vc",
",",
"TCPReadRequestContext",
"rsc",
",",
"IOException",
"ioe",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr... | Triggered when an error occurs during the read.
@param vc
@param rsc
@param ioe | [
"Triggered",
"when",
"an",
"error",
"occurs",
"during",
"the",
"read",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/outbound/HttpOSC100ReadCallback.java#L135-L143 |
69,816 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/filter/WebAppFilterChain.java | WebAppFilterChain.doFilter | public void doFilter(ServletRequest request, ServletResponse response) throws ServletException, IOException {
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE))
logger.logp(Level.FINE, CLASS_NAME,"doFilter", "entry");
try {
// if there are ... | java | public void doFilter(ServletRequest request, ServletResponse response) throws ServletException, IOException {
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE))
logger.logp(Level.FINE, CLASS_NAME,"doFilter", "entry");
try {
// if there are ... | [
"public",
"void",
"doFilter",
"(",
"ServletRequest",
"request",
",",
"ServletResponse",
"response",
")",
"throws",
"ServletException",
",",
"IOException",
"{",
"if",
"(",
"com",
".",
"ibm",
".",
"ejs",
".",
"ras",
".",
"TraceComponent",
".",
"isAnyTracingEnabled... | Causes the next filter in the chain to be invoked, or, if at the end
of the chain, causes the requested resource to be invoked
@return a String containing the filter name | [
"Causes",
"the",
"next",
"filter",
"in",
"the",
"chain",
"to",
"be",
"invoked",
"or",
"if",
"at",
"the",
"end",
"of",
"the",
"chain",
"causes",
"the",
"requested",
"resource",
"to",
"be",
"invoked"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/filter/WebAppFilterChain.java#L71-L134 |
69,817 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ws/jca/cm/JcaServiceUtilities.java | JcaServiceUtilities.beginContextClassLoader | public ClassLoader beginContextClassLoader(ClassLoader raClassLoader) {
return raClassLoader == null ? null
: AccessController.doPrivileged(new GetAndSetContextClassLoader(raClassLoader));
} | java | public ClassLoader beginContextClassLoader(ClassLoader raClassLoader) {
return raClassLoader == null ? null
: AccessController.doPrivileged(new GetAndSetContextClassLoader(raClassLoader));
} | [
"public",
"ClassLoader",
"beginContextClassLoader",
"(",
"ClassLoader",
"raClassLoader",
")",
"{",
"return",
"raClassLoader",
"==",
"null",
"?",
"null",
":",
"AccessController",
".",
"doPrivileged",
"(",
"new",
"GetAndSetContextClassLoader",
"(",
"raClassLoader",
")",
... | Set context classloader to the one for the resource adapter
@param raClassLoader
@return the current classloader | [
"Set",
"context",
"classloader",
"to",
"the",
"one",
"for",
"the",
"resource",
"adapter"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ws/jca/cm/JcaServiceUtilities.java#L25-L28 |
69,818 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ws/jca/cm/JcaServiceUtilities.java | JcaServiceUtilities.endContextClassLoader | public void endContextClassLoader(ClassLoader raClassLoader, ClassLoader previousClassLoader) {
if (raClassLoader != null) {
AccessController.doPrivileged(new GetAndSetContextClassLoader(previousClassLoader));
}
} | java | public void endContextClassLoader(ClassLoader raClassLoader, ClassLoader previousClassLoader) {
if (raClassLoader != null) {
AccessController.doPrivileged(new GetAndSetContextClassLoader(previousClassLoader));
}
} | [
"public",
"void",
"endContextClassLoader",
"(",
"ClassLoader",
"raClassLoader",
",",
"ClassLoader",
"previousClassLoader",
")",
"{",
"if",
"(",
"raClassLoader",
"!=",
"null",
")",
"{",
"AccessController",
".",
"doPrivileged",
"(",
"new",
"GetAndSetContextClassLoader",
... | Restore current context class loader saved when the context class loader was set to the one
for the resource adapter.
@param raClassLoader
@param previousClassLoader | [
"Restore",
"current",
"context",
"class",
"loader",
"saved",
"when",
"the",
"context",
"class",
"loader",
"was",
"set",
"to",
"the",
"one",
"for",
"the",
"resource",
"adapter",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ws/jca/cm/JcaServiceUtilities.java#L37-L41 |
69,819 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/connmgmt/ConnectionType.java | ConnectionType.getVCConnectionType | public static ConnectionType getVCConnectionType(VirtualConnection vc) {
if (vc == null) {
return null;
}
return (ConnectionType) vc.getStateMap().get(CONNECTION_TYPE_VC_KEY);
} | java | public static ConnectionType getVCConnectionType(VirtualConnection vc) {
if (vc == null) {
return null;
}
return (ConnectionType) vc.getStateMap().get(CONNECTION_TYPE_VC_KEY);
} | [
"public",
"static",
"ConnectionType",
"getVCConnectionType",
"(",
"VirtualConnection",
"vc",
")",
"{",
"if",
"(",
"vc",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"(",
"ConnectionType",
")",
"vc",
".",
"getStateMap",
"(",
")",
".",
"get"... | Get the connection type from the virtual connection.
@param vc
@return ConnectionType | [
"Get",
"the",
"connection",
"type",
"from",
"the",
"virtual",
"connection",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/connmgmt/ConnectionType.java#L34-L39 |
69,820 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/connmgmt/ConnectionType.java | ConnectionType.setVCConnectionType | public static void setVCConnectionType(VirtualConnection vc, ConnectionType connType) {
if (vc == null || connType == null) {
return;
}
Map<Object, Object> map = vc.getStateMap();
// Internal connections are both inbound and outbound (they're connections
// to ourse... | java | public static void setVCConnectionType(VirtualConnection vc, ConnectionType connType) {
if (vc == null || connType == null) {
return;
}
Map<Object, Object> map = vc.getStateMap();
// Internal connections are both inbound and outbound (they're connections
// to ourse... | [
"public",
"static",
"void",
"setVCConnectionType",
"(",
"VirtualConnection",
"vc",
",",
"ConnectionType",
"connType",
")",
"{",
"if",
"(",
"vc",
"==",
"null",
"||",
"connType",
"==",
"null",
")",
"{",
"return",
";",
"}",
"Map",
"<",
"Object",
",",
"Object"... | Set the connection type on the virtual connection. This will overlay
any preset value.
@param vc
VirtualConnection containing simple state for this connection
@param connType
ConnectionType for the VirtualConnection | [
"Set",
"the",
"connection",
"type",
"on",
"the",
"virtual",
"connection",
".",
"This",
"will",
"overlay",
"any",
"preset",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/connmgmt/ConnectionType.java#L50-L69 |
69,821 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/connmgmt/ConnectionType.java | ConnectionType.getConnectionType | public static ConnectionType getConnectionType(byte type) {
switch (type) {
case TYPE_OUTBOUND:
return OUTBOUND;
case TYPE_OUTBOUND_CR_TO_REMOTE:
return OUTBOUND_CR_TO_REMOTE;
case TYPE_OUTBOUND_SR_TO_CR_REMOTE:
return OUTBOUND_... | java | public static ConnectionType getConnectionType(byte type) {
switch (type) {
case TYPE_OUTBOUND:
return OUTBOUND;
case TYPE_OUTBOUND_CR_TO_REMOTE:
return OUTBOUND_CR_TO_REMOTE;
case TYPE_OUTBOUND_SR_TO_CR_REMOTE:
return OUTBOUND_... | [
"public",
"static",
"ConnectionType",
"getConnectionType",
"(",
"byte",
"type",
")",
"{",
"switch",
"(",
"type",
")",
"{",
"case",
"TYPE_OUTBOUND",
":",
"return",
"OUTBOUND",
";",
"case",
"TYPE_OUTBOUND_CR_TO_REMOTE",
":",
"return",
"OUTBOUND_CR_TO_REMOTE",
";",
"... | Set the connection type on the virtual connection.
@param type
ConnectionType for the VirtualConnection
@return ConnectionType | [
"Set",
"the",
"connection",
"type",
"on",
"the",
"virtual",
"connection",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/connmgmt/ConnectionType.java#L134-L153 |
69,822 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java | GenericUtils.asInt | static public int asInt(byte[] array) {
if (null == array || 4 != array.length) {
throw new IllegalArgumentException("Length of the byte array should be 4");
}
return ((array[0] << 24)
+ ((array[1] & 255) << 16)
+ ((array[2] & 255) << 8) + (array[3] ... | java | static public int asInt(byte[] array) {
if (null == array || 4 != array.length) {
throw new IllegalArgumentException("Length of the byte array should be 4");
}
return ((array[0] << 24)
+ ((array[1] & 255) << 16)
+ ((array[2] & 255) << 8) + (array[3] ... | [
"static",
"public",
"int",
"asInt",
"(",
"byte",
"[",
"]",
"array",
")",
"{",
"if",
"(",
"null",
"==",
"array",
"||",
"4",
"!=",
"array",
".",
"length",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Length of the byte array should be 4\"",
")... | Takes an array of 4 bytes and returns an integer that is
represented by them.
@param array
@return int that represents the 4 bytes
@throws IllegalArgumentException for invalid arguments | [
"Takes",
"an",
"array",
"of",
"4",
"bytes",
"and",
"returns",
"an",
"integer",
"that",
"is",
"represented",
"by",
"them",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java#L320-L329 |
69,823 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java | GenericUtils.asBytes | static public byte[] asBytes(int value) {
if (0 > value) {
throw new IllegalArgumentException("value cannot be less than zero");
}
byte[] result = new byte[4];
result[0] = (byte) ((value >>> 24) & 0xFF);
result[1] = (byte) ((value >>> 16) & 0xFF);
result[2] ... | java | static public byte[] asBytes(int value) {
if (0 > value) {
throw new IllegalArgumentException("value cannot be less than zero");
}
byte[] result = new byte[4];
result[0] = (byte) ((value >>> 24) & 0xFF);
result[1] = (byte) ((value >>> 16) & 0xFF);
result[2] ... | [
"static",
"public",
"byte",
"[",
"]",
"asBytes",
"(",
"int",
"value",
")",
"{",
"if",
"(",
"0",
">",
"value",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"value cannot be less than zero\"",
")",
";",
"}",
"byte",
"[",
"]",
"result",
"=",
... | Returns an array of 4 bytes that represent the integer.
@param value the integer
@return the 4 byte array
@throws IllegalArgumentException if the argument is less than 0 | [
"Returns",
"an",
"array",
"of",
"4",
"bytes",
"that",
"represent",
"the",
"integer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java#L513-L525 |
69,824 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java | GenericUtils.getEnglishString | static public String getEnglishString(WsByteBuffer[] list) {
if (null == list) {
return null;
}
int size = 0;
int i;
for (i = 0; i < list.length && null != list[i]; i++) {
size += list[i].remaining();
}
if (0 == size) {
return n... | java | static public String getEnglishString(WsByteBuffer[] list) {
if (null == list) {
return null;
}
int size = 0;
int i;
for (i = 0; i < list.length && null != list[i]; i++) {
size += list[i].remaining();
}
if (0 == size) {
return n... | [
"static",
"public",
"String",
"getEnglishString",
"(",
"WsByteBuffer",
"[",
"]",
"list",
")",
"{",
"if",
"(",
"null",
"==",
"list",
")",
"{",
"return",
"null",
";",
"}",
"int",
"size",
"=",
"0",
";",
"int",
"i",
";",
"for",
"(",
"i",
"=",
"0",
";... | Utility method to take a list of buffers and convert their data into
an English encoded string. These buffers are expected to be flipped
already, in that position is 0 and limit is the end of data in each
one.
@param list
@return String (null if input is null or no data is present in them) | [
"Utility",
"method",
"to",
"take",
"a",
"list",
"of",
"buffers",
"and",
"convert",
"their",
"data",
"into",
"an",
"English",
"encoded",
"string",
".",
"These",
"buffers",
"are",
"expected",
"to",
"be",
"flipped",
"already",
"in",
"that",
"position",
"is",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java#L536-L557 |
69,825 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java | GenericUtils.dumpArrayToTraceLog | static public void dumpArrayToTraceLog(byte[] arr) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "[ ");
if (null == arr) {
Tr.debug(tc, "null");
} else {
for (int i = 0; i < arr.length; i++) {
... | java | static public void dumpArrayToTraceLog(byte[] arr) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "[ ");
if (null == arr) {
Tr.debug(tc, "null");
} else {
for (int i = 0; i < arr.length; i++) {
... | [
"static",
"public",
"void",
"dumpArrayToTraceLog",
"(",
"byte",
"[",
"]",
"arr",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"... | Writes the contents of the array to the trace log.
@param arr | [
"Writes",
"the",
"contents",
"of",
"the",
"array",
"to",
"the",
"trace",
"log",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java#L586-L598 |
69,826 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java | GenericUtils.expandByteArray | static public byte[] expandByteArray(byte[] src, byte[] dst) {
int srcLength = (null != src) ? src.length : 0;
int dstLength = (null != dst) ? dst.length : 0;
return expandByteArray(src, dst, 0, srcLength, 0, dstLength);
} | java | static public byte[] expandByteArray(byte[] src, byte[] dst) {
int srcLength = (null != src) ? src.length : 0;
int dstLength = (null != dst) ? dst.length : 0;
return expandByteArray(src, dst, 0, srcLength, 0, dstLength);
} | [
"static",
"public",
"byte",
"[",
"]",
"expandByteArray",
"(",
"byte",
"[",
"]",
"src",
",",
"byte",
"[",
"]",
"dst",
")",
"{",
"int",
"srcLength",
"=",
"(",
"null",
"!=",
"src",
")",
"?",
"src",
".",
"length",
":",
"0",
";",
"int",
"dstLength",
"... | Generic method to copy the entire length of each buffer.
@param src
@param dst
@return byte[] | [
"Generic",
"method",
"to",
"copy",
"the",
"entire",
"length",
"of",
"each",
"buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java#L696-L700 |
69,827 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java | GenericUtils.expandByteArray | static public byte[] expandByteArray(byte[] src, byte b) {
int srcLength = (null != src) ? src.length : 0;
int totalLen = srcLength + 1;
byte[] rc = new byte[totalLen];
try {
if (null != src) {
System.arraycopy(src, 0, rc, 0, srcLength);
}
... | java | static public byte[] expandByteArray(byte[] src, byte b) {
int srcLength = (null != src) ? src.length : 0;
int totalLen = srcLength + 1;
byte[] rc = new byte[totalLen];
try {
if (null != src) {
System.arraycopy(src, 0, rc, 0, srcLength);
}
... | [
"static",
"public",
"byte",
"[",
"]",
"expandByteArray",
"(",
"byte",
"[",
"]",
"src",
",",
"byte",
"b",
")",
"{",
"int",
"srcLength",
"=",
"(",
"null",
"!=",
"src",
")",
"?",
"src",
".",
"length",
":",
"0",
";",
"int",
"totalLen",
"=",
"srcLength"... | Helper method to append a byte to a byte array.
@param src byte array
@param b byte to be appended to the src byte array
@return target byte array | [
"Helper",
"method",
"to",
"append",
"a",
"byte",
"to",
"a",
"byte",
"array",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java#L799-L822 |
69,828 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java | GenericUtils.getBytes | static public byte[] getBytes(StringBuffer data) {
if (null == data) {
return null;
}
int len = data.length();
char[] chars = new char[len];
data.getChars(0, len, chars, 0);
byte[] bytes = new byte[len];
for (int i = 0; i < len; i++) {
byte... | java | static public byte[] getBytes(StringBuffer data) {
if (null == data) {
return null;
}
int len = data.length();
char[] chars = new char[len];
data.getChars(0, len, chars, 0);
byte[] bytes = new byte[len];
for (int i = 0; i < len; i++) {
byte... | [
"static",
"public",
"byte",
"[",
"]",
"getBytes",
"(",
"StringBuffer",
"data",
")",
"{",
"if",
"(",
"null",
"==",
"data",
")",
"{",
"return",
"null",
";",
"}",
"int",
"len",
"=",
"data",
".",
"length",
"(",
")",
";",
"char",
"[",
"]",
"chars",
"=... | Utility method to get the bytes from a StringBuffer. These bytes will
be in whatever encoding was in the original chars put into the string
buffer object.
@param data
@return byte[] | [
"Utility",
"method",
"to",
"get",
"the",
"bytes",
"from",
"a",
"StringBuffer",
".",
"These",
"bytes",
"will",
"be",
"in",
"whatever",
"encoding",
"was",
"in",
"the",
"original",
"chars",
"put",
"into",
"the",
"string",
"buffer",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java#L832-L844 |
69,829 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java | GenericUtils.getBytes | static public byte[] getBytes(String input) {
if (null != input) {
int length = input.length();
byte[] output = new byte[length];
for (int i = 0; i < length; i++) {
output[i] = (byte) input.charAt(i);
}
return output;
}
... | java | static public byte[] getBytes(String input) {
if (null != input) {
int length = input.length();
byte[] output = new byte[length];
for (int i = 0; i < length; i++) {
output[i] = (byte) input.charAt(i);
}
return output;
}
... | [
"static",
"public",
"byte",
"[",
"]",
"getBytes",
"(",
"String",
"input",
")",
"{",
"if",
"(",
"null",
"!=",
"input",
")",
"{",
"int",
"length",
"=",
"input",
".",
"length",
"(",
")",
";",
"byte",
"[",
"]",
"output",
"=",
"new",
"byte",
"[",
"len... | Simple utility to get the bytes from a String but handle a
null String as well.
@param input
@return byte[] | [
"Simple",
"utility",
"to",
"get",
"the",
"bytes",
"from",
"a",
"String",
"but",
"handle",
"a",
"null",
"String",
"as",
"well",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java#L875-L886 |
69,830 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java | GenericUtils.getEnglishString | static public String getEnglishString(byte[] data) {
if (null == data) {
return null;
}
char chars[] = new char[data.length];
for (int i = 0; i < data.length; i++) {
chars[i] = (char) (data[i] & 0xff);
}
return new String(chars);
} | java | static public String getEnglishString(byte[] data) {
if (null == data) {
return null;
}
char chars[] = new char[data.length];
for (int i = 0; i < data.length; i++) {
chars[i] = (char) (data[i] & 0xff);
}
return new String(chars);
} | [
"static",
"public",
"String",
"getEnglishString",
"(",
"byte",
"[",
"]",
"data",
")",
"{",
"if",
"(",
"null",
"==",
"data",
")",
"{",
"return",
"null",
";",
"}",
"char",
"chars",
"[",
"]",
"=",
"new",
"char",
"[",
"data",
".",
"length",
"]",
";",
... | Utility method to get the ISO English string from the given bytes. If
this an unsupported encoding exception is thrown by the conversion, then
an IllegalArgumentException will be thrown.
@param data
@return String
@exception IllegalArgumentException | [
"Utility",
"method",
"to",
"get",
"the",
"ISO",
"English",
"string",
"from",
"the",
"given",
"bytes",
".",
"If",
"this",
"an",
"unsupported",
"encoding",
"exception",
"is",
"thrown",
"by",
"the",
"conversion",
"then",
"an",
"IllegalArgumentException",
"will",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java#L910-L919 |
69,831 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java | GenericUtils.formatHexData | static private StringBuilder formatHexData(StringBuilder buffer, byte[] data, int inOffset) {
int offset = inOffset;
int end = offset + 8;
if (offset >= data.length) {
// have nothing, just print empty chars
buffer.append(" ");
return buf... | java | static private StringBuilder formatHexData(StringBuilder buffer, byte[] data, int inOffset) {
int offset = inOffset;
int end = offset + 8;
if (offset >= data.length) {
// have nothing, just print empty chars
buffer.append(" ");
return buf... | [
"static",
"private",
"StringBuilder",
"formatHexData",
"(",
"StringBuilder",
"buffer",
",",
"byte",
"[",
"]",
"data",
",",
"int",
"inOffset",
")",
"{",
"int",
"offset",
"=",
"inOffset",
";",
"int",
"end",
"=",
"offset",
"+",
"8",
";",
"if",
"(",
"offset"... | Format the next 8 bytes of the input data starting from the offset as
2 digit hex characters.
@param buffer
@param data
@param inOffset
@return StringBuilder | [
"Format",
"the",
"next",
"8",
"bytes",
"of",
"the",
"input",
"data",
"starting",
"from",
"the",
"offset",
"as",
"2",
"digit",
"hex",
"characters",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java#L957-L978 |
69,832 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java | GenericUtils.formatTextData | static private StringBuilder formatTextData(StringBuilder buffer, byte[] data, int inOffset) {
int offset = inOffset;
int end = offset + 16;
for (; offset < end; offset++) {
if (offset >= data.length) {
buffer.append(" ");
continue;
}
... | java | static private StringBuilder formatTextData(StringBuilder buffer, byte[] data, int inOffset) {
int offset = inOffset;
int end = offset + 16;
for (; offset < end; offset++) {
if (offset >= data.length) {
buffer.append(" ");
continue;
}
... | [
"static",
"private",
"StringBuilder",
"formatTextData",
"(",
"StringBuilder",
"buffer",
",",
"byte",
"[",
"]",
"data",
",",
"int",
"inOffset",
")",
"{",
"int",
"offset",
"=",
"inOffset",
";",
"int",
"end",
"=",
"offset",
"+",
"16",
";",
"for",
"(",
";",
... | Format the next 16 bytes of the input data starting from the input offset
as ASCII characters. Non-ASCII bytes will be printed as a period symbol.
@param buffer
@param data
@param inOffset
@return StringBuilder | [
"Format",
"the",
"next",
"16",
"bytes",
"of",
"the",
"input",
"data",
"starting",
"from",
"the",
"input",
"offset",
"as",
"ASCII",
"characters",
".",
"Non",
"-",
"ASCII",
"bytes",
"will",
"be",
"printed",
"as",
"a",
"period",
"symbol",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java#L989-L1004 |
69,833 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java | GenericUtils.skipToChar | static public int skipToChar(byte[] data, int start, byte target) {
int index = start;
while (index < data.length && target != data[index]) {
index++;
}
return index;
} | java | static public int skipToChar(byte[] data, int start, byte target) {
int index = start;
while (index < data.length && target != data[index]) {
index++;
}
return index;
} | [
"static",
"public",
"int",
"skipToChar",
"(",
"byte",
"[",
"]",
"data",
",",
"int",
"start",
",",
"byte",
"target",
")",
"{",
"int",
"index",
"=",
"start",
";",
"while",
"(",
"index",
"<",
"data",
".",
"length",
"&&",
"target",
"!=",
"data",
"[",
"... | Utility method to skip past data in an array until it runs out of space
or finds the target character.
@param data
@param start
@param target
@return int (return index, equals data.length if not found) | [
"Utility",
"method",
"to",
"skip",
"past",
"data",
"in",
"an",
"array",
"until",
"it",
"runs",
"out",
"of",
"space",
"or",
"finds",
"the",
"target",
"character",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java#L1087-L1093 |
69,834 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java | GenericUtils.skipToChars | static public int skipToChars(byte[] data, int start, byte[] targets) {
int index = start;
int y = 0;
byte current;
for (; index < data.length; index++) {
current = data[index];
for (y = 0; y < targets.length; y++) {
if (current == targets[y]) {
... | java | static public int skipToChars(byte[] data, int start, byte[] targets) {
int index = start;
int y = 0;
byte current;
for (; index < data.length; index++) {
current = data[index];
for (y = 0; y < targets.length; y++) {
if (current == targets[y]) {
... | [
"static",
"public",
"int",
"skipToChars",
"(",
"byte",
"[",
"]",
"data",
",",
"int",
"start",
",",
"byte",
"[",
"]",
"targets",
")",
"{",
"int",
"index",
"=",
"start",
";",
"int",
"y",
"=",
"0",
";",
"byte",
"current",
";",
"for",
"(",
";",
"inde... | Utility method to skip past data in an array until it runs out of space
or finds one of the the target characters.
@param data
@param start
@param targets
@return int (return index, equals data.length if not found) | [
"Utility",
"method",
"to",
"skip",
"past",
"data",
"in",
"an",
"array",
"until",
"it",
"runs",
"out",
"of",
"space",
"or",
"finds",
"one",
"of",
"the",
"the",
"target",
"characters",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java#L1104-L1117 |
69,835 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java | GenericUtils.skipWhiteSpace | static public int skipWhiteSpace(byte[] data, int start) {
int index = start + 1;
while (index < data.length && BNFHeaders.SPACE == data[index]) {
index++;
}
return index;
} | java | static public int skipWhiteSpace(byte[] data, int start) {
int index = start + 1;
while (index < data.length && BNFHeaders.SPACE == data[index]) {
index++;
}
return index;
} | [
"static",
"public",
"int",
"skipWhiteSpace",
"(",
"byte",
"[",
"]",
"data",
",",
"int",
"start",
")",
"{",
"int",
"index",
"=",
"start",
"+",
"1",
";",
"while",
"(",
"index",
"<",
"data",
".",
"length",
"&&",
"BNFHeaders",
".",
"SPACE",
"==",
"data",... | Simple method to skip past any space characters from the starting
index onwards, until it finds a non-space character or the end of the
buffer. Returns the index it stopped on.
@param data
@param start
@return int | [
"Simple",
"method",
"to",
"skip",
"past",
"any",
"space",
"characters",
"from",
"the",
"starting",
"index",
"onwards",
"until",
"it",
"finds",
"a",
"non",
"-",
"space",
"character",
"or",
"the",
"end",
"of",
"the",
"buffer",
".",
"Returns",
"the",
"index",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java#L1128-L1134 |
69,836 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java | GenericUtils.sizeOf | static public int sizeOf(WsByteBuffer[] list) {
if (null == list) {
return 0;
}
int size = 0;
for (int i = 0; i < list.length; i++) {
if (null != list[i]) {
size += list[i].remaining();
}
}
return size;
} | java | static public int sizeOf(WsByteBuffer[] list) {
if (null == list) {
return 0;
}
int size = 0;
for (int i = 0; i < list.length; i++) {
if (null != list[i]) {
size += list[i].remaining();
}
}
return size;
} | [
"static",
"public",
"int",
"sizeOf",
"(",
"WsByteBuffer",
"[",
"]",
"list",
")",
"{",
"if",
"(",
"null",
"==",
"list",
")",
"{",
"return",
"0",
";",
"}",
"int",
"size",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"list",
"... | Utility method to count the total number of "used" bytes in the list of
buffers. This would represent the size of the data if it was printed
out.
@param list
@return int | [
"Utility",
"method",
"to",
"count",
"the",
"total",
"number",
"of",
"used",
"bytes",
"in",
"the",
"list",
"of",
"buffers",
".",
"This",
"would",
"represent",
"the",
"size",
"of",
"the",
"data",
"if",
"it",
"was",
"printed",
"out",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java#L1164-L1175 |
69,837 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java | GenericUtils.readValue | static public byte[] readValue(ObjectInput in, int len) throws IOException {
int bytesRead = 0;
byte[] data = new byte[len];
for (int offset = 0; offset < len; offset += bytesRead) {
bytesRead = in.read(data, offset, len - offset);
if (bytesRead == -1) {
t... | java | static public byte[] readValue(ObjectInput in, int len) throws IOException {
int bytesRead = 0;
byte[] data = new byte[len];
for (int offset = 0; offset < len; offset += bytesRead) {
bytesRead = in.read(data, offset, len - offset);
if (bytesRead == -1) {
t... | [
"static",
"public",
"byte",
"[",
"]",
"readValue",
"(",
"ObjectInput",
"in",
",",
"int",
"len",
")",
"throws",
"IOException",
"{",
"int",
"bytesRead",
"=",
"0",
";",
"byte",
"[",
"]",
"data",
"=",
"new",
"byte",
"[",
"len",
"]",
";",
"for",
"(",
"i... | Encapsulate the logic to read an entire byte array from the input stream.
@param in
@param len
@return new array read from stream
@throws IOException | [
"Encapsulate",
"the",
"logic",
"to",
"read",
"an",
"entire",
"byte",
"array",
"from",
"the",
"input",
"stream",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java#L1185-L1195 |
69,838 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java | GenericUtils.blockContents | static public String blockContents(byte[] value) {
if (null == value) {
return null;
}
char[] data = new char[value.length];
for (int i = 0; i < data.length; i++) {
data[i] = '*';
}
return new String(data);
} | java | static public String blockContents(byte[] value) {
if (null == value) {
return null;
}
char[] data = new char[value.length];
for (int i = 0; i < data.length; i++) {
data[i] = '*';
}
return new String(data);
} | [
"static",
"public",
"String",
"blockContents",
"(",
"byte",
"[",
"]",
"value",
")",
"{",
"if",
"(",
"null",
"==",
"value",
")",
"{",
"return",
"null",
";",
"}",
"char",
"[",
"]",
"data",
"=",
"new",
"char",
"[",
"value",
".",
"length",
"]",
";",
... | Create a string that is the same length as the input, but filled with
characters.
@param value
@return String | [
"Create",
"a",
"string",
"that",
"is",
"the",
"same",
"length",
"as",
"the",
"input",
"but",
"filled",
"with",
"characters",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java#L1229-L1238 |
69,839 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/jaas/modules/CertificateLoginModule.java | CertificateLoginModule.handleCollectiveLogin | private void handleCollectiveLogin(X509Certificate certChain[], CollectiveAuthenticationPlugin plugin,
boolean collectiveCert) throws InvalidNameException, AuthenticationException, Exception {
// If the chain is not authenticated, it will throw an AuthenticationException
... | java | private void handleCollectiveLogin(X509Certificate certChain[], CollectiveAuthenticationPlugin plugin,
boolean collectiveCert) throws InvalidNameException, AuthenticationException, Exception {
// If the chain is not authenticated, it will throw an AuthenticationException
... | [
"private",
"void",
"handleCollectiveLogin",
"(",
"X509Certificate",
"certChain",
"[",
"]",
",",
"CollectiveAuthenticationPlugin",
"plugin",
",",
"boolean",
"collectiveCert",
")",
"throws",
"InvalidNameException",
",",
"AuthenticationException",
",",
"Exception",
"{",
"// ... | Handles a collective certificate login.
@param certChain
@param x509Subject
@throws InvalidNameException
@throws AuthenticationException
@throws Exception | [
"Handles",
"a",
"collective",
"certificate",
"login",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/jaas/modules/CertificateLoginModule.java#L228-L240 |
69,840 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/jaas/modules/CertificateLoginModule.java | CertificateLoginModule.addCredentials | private void addCredentials(String accessId) throws Exception {
temporarySubject = new Subject();
Hashtable<String, Object> hashtable = new Hashtable<String, Object>();
hashtable.put(AttributeNameConstants.WSCREDENTIAL_UNIQUEID, AccessIdUtil.getUniqueId(accessId));
temporarySubject.getPu... | java | private void addCredentials(String accessId) throws Exception {
temporarySubject = new Subject();
Hashtable<String, Object> hashtable = new Hashtable<String, Object>();
hashtable.put(AttributeNameConstants.WSCREDENTIAL_UNIQUEID, AccessIdUtil.getUniqueId(accessId));
temporarySubject.getPu... | [
"private",
"void",
"addCredentials",
"(",
"String",
"accessId",
")",
"throws",
"Exception",
"{",
"temporarySubject",
"=",
"new",
"Subject",
"(",
")",
";",
"Hashtable",
"<",
"String",
",",
"Object",
">",
"hashtable",
"=",
"new",
"Hashtable",
"<",
"String",
",... | Add unique ID and call setPrincipalAndCredentials
@param accessId
@throws Exception | [
"Add",
"unique",
"ID",
"and",
"call",
"setPrincipalAndCredentials"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/jaas/modules/CertificateLoginModule.java#L248-L256 |
69,841 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/jaas/modules/CertificateLoginModule.java | CertificateLoginModule.handleUserLogin | private void handleUserLogin(X509Certificate certChain[]) throws RegistryException, CertificateMapNotSupportedException, CertificateMapFailedException, EntryNotFoundException, Exception {
UserRegistry userRegistry = getUserRegistry();
username = userRegistry.mapCertificate(certChain);
authentica... | java | private void handleUserLogin(X509Certificate certChain[]) throws RegistryException, CertificateMapNotSupportedException, CertificateMapFailedException, EntryNotFoundException, Exception {
UserRegistry userRegistry = getUserRegistry();
username = userRegistry.mapCertificate(certChain);
authentica... | [
"private",
"void",
"handleUserLogin",
"(",
"X509Certificate",
"certChain",
"[",
"]",
")",
"throws",
"RegistryException",
",",
"CertificateMapNotSupportedException",
",",
"CertificateMapFailedException",
",",
"EntryNotFoundException",
",",
"Exception",
"{",
"UserRegistry",
"... | Handles a non-collective certificate login.
Note:
In distributed env, both username and securityName in this method are the same.
In zOS env, username has platform cred appended while securityName does not.
username : TESTUSER::c2c2c70001013....00
securityName: TESTUSER
@param certChain
@throws RegistryException
@th... | [
"Handles",
"a",
"non",
"-",
"collective",
"certificate",
"login",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/jaas/modules/CertificateLoginModule.java#L275-L286 |
69,842 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/BeanDeploymentArchiveImpl.java | BeanDeploymentArchiveImpl.getBeanDiscoveryMode | private BeanDiscoveryMode getBeanDiscoveryMode() {
if (beanDiscoveryMode == null) {
BeansXml beansXml = getBeansXml();
beanDiscoveryMode = BeanDiscoveryMode.ANNOTATED;
if (beansXml != null) {
beanDiscoveryMode = beansXml.getBeanDiscoveryMode();
} ... | java | private BeanDiscoveryMode getBeanDiscoveryMode() {
if (beanDiscoveryMode == null) {
BeansXml beansXml = getBeansXml();
beanDiscoveryMode = BeanDiscoveryMode.ANNOTATED;
if (beansXml != null) {
beanDiscoveryMode = beansXml.getBeanDiscoveryMode();
} ... | [
"private",
"BeanDiscoveryMode",
"getBeanDiscoveryMode",
"(",
")",
"{",
"if",
"(",
"beanDiscoveryMode",
"==",
"null",
")",
"{",
"BeansXml",
"beansXml",
"=",
"getBeansXml",
"(",
")",
";",
"beanDiscoveryMode",
"=",
"BeanDiscoveryMode",
".",
"ANNOTATED",
";",
"if",
... | Determine the bean deployment archive scanning mode
If there is a beans.xml, the bean discovery mode will be used.
If there is no beans.xml, the mode will be annotated, unless the enableImplicitBeanArchives is configured as false via the server.xml.
If there is no beans.xml and the enableImplicitBeanArchives attribute ... | [
"Determine",
"the",
"bean",
"deployment",
"archive",
"scanning",
"mode",
"If",
"there",
"is",
"a",
"beans",
".",
"xml",
"the",
"bean",
"discovery",
"mode",
"will",
"be",
"used",
".",
"If",
"there",
"is",
"no",
"beans",
".",
"xml",
"the",
"mode",
"will",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/BeanDeploymentArchiveImpl.java#L233-L247 |
69,843 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/BeanDeploymentArchiveImpl.java | BeanDeploymentArchiveImpl.removeVetoedClasses | private void removeVetoedClasses(Set<Class<?>> classes) {
//get hold of classnames
Set<String> classNames = new HashSet<String>();
for (Class<?> clazz : classes) {
classNames.add(clazz.getName());
}
// take into considerations of the exclude in beans.xml
Colle... | java | private void removeVetoedClasses(Set<Class<?>> classes) {
//get hold of classnames
Set<String> classNames = new HashSet<String>();
for (Class<?> clazz : classes) {
classNames.add(clazz.getName());
}
// take into considerations of the exclude in beans.xml
Colle... | [
"private",
"void",
"removeVetoedClasses",
"(",
"Set",
"<",
"Class",
"<",
"?",
">",
">",
"classes",
")",
"{",
"//get hold of classnames",
"Set",
"<",
"String",
">",
"classNames",
"=",
"new",
"HashSet",
"<",
"String",
">",
"(",
")",
";",
"for",
"(",
"Class... | Need to removed the vetoed classes from the set so that we can ignore them
@param classes | [
"Need",
"to",
"removed",
"the",
"vetoed",
"classes",
"from",
"the",
"set",
"so",
"that",
"we",
"can",
"ignore",
"them"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/BeanDeploymentArchiveImpl.java#L516-L534 |
69,844 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/runtime/impl/Topicspace.java | Topicspace.getSubscription | private ControllableSubscription getSubscription(String id)
throws SIMPControllableNotFoundException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getSubscription", id);
//id is assumed to be SIBUuid12
SIBUuid12 uuid = new SIBUuid12(id);
Subscripti... | java | private ControllableSubscription getSubscription(String id)
throws SIMPControllableNotFoundException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getSubscription", id);
//id is assumed to be SIBUuid12
SIBUuid12 uuid = new SIBUuid12(id);
Subscripti... | [
"private",
"ControllableSubscription",
"getSubscription",
"(",
"String",
"id",
")",
"throws",
"SIMPControllableNotFoundException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",... | Gets and returns the subscription based on the id.
@param id
@return
@throws SIMPControllableNotFoundException | [
"Gets",
"and",
"returns",
"the",
"subscription",
"based",
"on",
"the",
"id",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/runtime/impl/Topicspace.java#L190-L222 |
69,845 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpPipelineEventHandler.java | HttpPipelineEventHandler.activate | @SuppressWarnings("unused")
@Activate
protected void activate(ComponentContext context) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Activating the HTTP pipeline event handler");
}
} | java | @SuppressWarnings("unused")
@Activate
protected void activate(ComponentContext context) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Activating the HTTP pipeline event handler");
}
} | [
"@",
"SuppressWarnings",
"(",
"\"unused\"",
")",
"@",
"Activate",
"protected",
"void",
"activate",
"(",
"ComponentContext",
"context",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")"... | DS method for activation of this service component.
@param context | [
"DS",
"method",
"for",
"activation",
"of",
"this",
"service",
"component",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpPipelineEventHandler.java#L52-L58 |
69,846 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpPipelineEventHandler.java | HttpPipelineEventHandler.deactivate | @SuppressWarnings("unused")
@Deactivate
protected void deactivate(ComponentContext context) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Deactivating the HTTP pipeline event handler");
}
} | java | @SuppressWarnings("unused")
@Deactivate
protected void deactivate(ComponentContext context) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Deactivating the HTTP pipeline event handler");
}
} | [
"@",
"SuppressWarnings",
"(",
"\"unused\"",
")",
"@",
"Deactivate",
"protected",
"void",
"deactivate",
"(",
"ComponentContext",
"context",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
... | DS method for deactivation of this service component.
@param context | [
"DS",
"method",
"for",
"deactivation",
"of",
"this",
"service",
"component",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpPipelineEventHandler.java#L65-L71 |
69,847 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/HttpChannelUtils.java | HttpChannelUtils.getEnglishBytes | static public byte[] getEnglishBytes(String data) {
if (null == data) {
return null;
}
char[] chars = data.toCharArray();
byte[] bytes = new byte[chars.length];
for (int i = 0; i < chars.length; i++) {
bytes[i] = (byte) chars[i];
}
return b... | java | static public byte[] getEnglishBytes(String data) {
if (null == data) {
return null;
}
char[] chars = data.toCharArray();
byte[] bytes = new byte[chars.length];
for (int i = 0; i < chars.length; i++) {
bytes[i] = (byte) chars[i];
}
return b... | [
"static",
"public",
"byte",
"[",
"]",
"getEnglishBytes",
"(",
"String",
"data",
")",
"{",
"if",
"(",
"null",
"==",
"data",
")",
"{",
"return",
"null",
";",
"}",
"char",
"[",
"]",
"chars",
"=",
"data",
".",
"toCharArray",
"(",
")",
";",
"byte",
"[",... | Utility method to get ISO english encoded bytes from the input string.
@param data
@return byte[] | [
"Utility",
"method",
"to",
"get",
"ISO",
"english",
"encoded",
"bytes",
"from",
"the",
"input",
"string",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/HttpChannelUtils.java#L135-L145 |
69,848 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/HttpChannelUtils.java | HttpChannelUtils.getEnglishString | static public String getEnglishString(byte[] data, int start, int end) {
int len = end - start;
if (0 >= len || null == data) {
return null;
}
char chars[] = new char[len];
for (int i = start; i < end; i++) {
chars[i] = (char) (data[i] & 0xff);
}
... | java | static public String getEnglishString(byte[] data, int start, int end) {
int len = end - start;
if (0 >= len || null == data) {
return null;
}
char chars[] = new char[len];
for (int i = start; i < end; i++) {
chars[i] = (char) (data[i] & 0xff);
}
... | [
"static",
"public",
"String",
"getEnglishString",
"(",
"byte",
"[",
"]",
"data",
",",
"int",
"start",
",",
"int",
"end",
")",
"{",
"int",
"len",
"=",
"end",
"-",
"start",
";",
"if",
"(",
"0",
">=",
"len",
"||",
"null",
"==",
"data",
")",
"{",
"re... | Utility method to get the ISO English string from the given bytes.
@param data
@param start
@param end
@return String | [
"Utility",
"method",
"to",
"get",
"the",
"ISO",
"English",
"string",
"from",
"the",
"given",
"bytes",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/HttpChannelUtils.java#L172-L182 |
69,849 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/interceptors/InterceptorMetaData.java | InterceptorMetaData.createInterceptorInstances | public void createInterceptorInstances(InjectionEngine injectionEngine,
Object[] interceptors,
ManagedObjectContext managedObjectContext,
ManagedBeanOBase targetContext) throws Exception {
... | java | public void createInterceptorInstances(InjectionEngine injectionEngine,
Object[] interceptors,
ManagedObjectContext managedObjectContext,
ManagedBeanOBase targetContext) throws Exception {
... | [
"public",
"void",
"createInterceptorInstances",
"(",
"InjectionEngine",
"injectionEngine",
",",
"Object",
"[",
"]",
"interceptors",
",",
"ManagedObjectContext",
"managedObjectContext",
",",
"ManagedBeanOBase",
"targetContext",
")",
"throws",
"Exception",
"{",
"final",
"bo... | Create the interceptor instances associated with this
enterprise bean instance. The lifetime of interceptor instances
is identical to lifetime of the EJB instance.
@param injectionEngine the injection engine
@param interceptors the array of interceptor instances to populate
@param managedObjectContext the managed obje... | [
"Create",
"the",
"interceptor",
"instances",
"associated",
"with",
"this",
"enterprise",
"bean",
"instance",
".",
"The",
"lifetime",
"of",
"interceptor",
"instances",
"is",
"identical",
"to",
"lifetime",
"of",
"the",
"EJB",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/interceptors/InterceptorMetaData.java#L180-L204 |
69,850 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/StopChainTask.java | StopChainTask.run | public void run() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "run");
}
try {
framework.stopChain(chainName, 0L);
} catch (Exception e) {
FFDCFilter.processException(e, getClass().getName() + ".run", "68",
... | java | public void run() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "run");
}
try {
framework.stopChain(chainName, 0L);
} catch (Exception e) {
FFDCFilter.processException(e, getClass().getName() + ".run", "68",
... | [
"public",
"void",
"run",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"run\"",
")",
";",
"}",
"try",
"{",
"framework",
... | This method will be called when the secondsToWait expires after this task
has been placed in the channel framework's timer.
@see java.lang.Runnable#run() | [
"This",
"method",
"will",
"be",
"called",
"when",
"the",
"secondsToWait",
"expires",
"after",
"this",
"task",
"has",
"been",
"placed",
"in",
"the",
"channel",
"framework",
"s",
"timer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/StopChainTask.java#L63-L78 |
69,851 | OpenLiberty/open-liberty | dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/schema/AttributeDefinitionSpecification.java | AttributeDefinitionSpecification.getOptionValues | @Override
public String[] getOptionValues() {
String[] values = new String[valueOptions.size()];
for (int i = 0; i < values.length; i++) {
values[i] = valueOptions.get(i)[0];
}
return values;
} | java | @Override
public String[] getOptionValues() {
String[] values = new String[valueOptions.size()];
for (int i = 0; i < values.length; i++) {
values[i] = valueOptions.get(i)[0];
}
return values;
} | [
"@",
"Override",
"public",
"String",
"[",
"]",
"getOptionValues",
"(",
")",
"{",
"String",
"[",
"]",
"values",
"=",
"new",
"String",
"[",
"valueOptions",
".",
"size",
"(",
")",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"values",
... | return only values from option | [
"return",
"only",
"values",
"from",
"option"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/schema/AttributeDefinitionSpecification.java#L198-L205 |
69,852 | OpenLiberty/open-liberty | dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/schema/AttributeDefinitionSpecification.java | AttributeDefinitionSpecification.getOptionLabels | @Override
public String[] getOptionLabels() {
String[] labels = new String[valueOptions.size()];
for (int i = 0; i < labels.length; i++) {
labels[i] = valueOptions.get(i)[1];
}
return labels;
} | java | @Override
public String[] getOptionLabels() {
String[] labels = new String[valueOptions.size()];
for (int i = 0; i < labels.length; i++) {
labels[i] = valueOptions.get(i)[1];
}
return labels;
} | [
"@",
"Override",
"public",
"String",
"[",
"]",
"getOptionLabels",
"(",
")",
"{",
"String",
"[",
"]",
"labels",
"=",
"new",
"String",
"[",
"valueOptions",
".",
"size",
"(",
")",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"labels",
... | return only labels from option | [
"return",
"only",
"labels",
"from",
"option"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/schema/AttributeDefinitionSpecification.java#L210-L217 |
69,853 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/SubscriptionMessageHandler.java | SubscriptionMessageHandler.createSubscriptionMessage | private SubscriptionMessage createSubscriptionMessage()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "createSubscriptionMessage");
ControlMessageFactory factory = null;
SubscriptionMessage subscriptionMessage = null;
try
{
factory = MessageProcessor.getControlMessageFactory();
su... | java | private SubscriptionMessage createSubscriptionMessage()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "createSubscriptionMessage");
ControlMessageFactory factory = null;
SubscriptionMessage subscriptionMessage = null;
try
{
factory = MessageProcessor.getControlMessageFactory();
su... | [
"private",
"SubscriptionMessage",
"createSubscriptionMessage",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"createSubscriptionMessage\"",
")",
";",
"ControlMessageFactory",
"factory",
"=",
"null",
... | This method creates the subscription control message
@return The SubscriptionMessage created | [
"This",
"method",
"creates",
"the",
"subscription",
"control",
"message"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/SubscriptionMessageHandler.java#L107-L135 |
69,854 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/SubscriptionMessageHandler.java | SubscriptionMessageHandler.reset | private void reset()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "reset");
if (iInitialised)
{
// Reset the ArrayLists associated with this message
iTopics.clear();
iTopicSpaces.clear();
iTopicSpaceMappings.clear();
// Create a new message to send to this Neigh... | java | private void reset()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "reset");
if (iInitialised)
{
// Reset the ArrayLists associated with this message
iTopics.clear();
iTopicSpaces.clear();
iTopicSpaceMappings.clear();
// Create a new message to send to this Neigh... | [
"private",
"void",
"reset",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"reset\"",
")",
";",
"if",
"(",
"iInitialised",
")",
"{",
"// Reset the ArrayLists associated with this message ",... | Resets the complete message state | [
"Resets",
"the",
"complete",
"message",
"state"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/SubscriptionMessageHandler.java#L140-L162 |
69,855 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/SubscriptionMessageHandler.java | SubscriptionMessageHandler.resetCreateSubscriptionMessage | protected void resetCreateSubscriptionMessage(MESubscription subscription, boolean isLocalBus)
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "resetCreateSubscriptionMessage", new Object[]{subscription, new Boolean(isLocalBus)});
// Reset the state
reset();
// Indicate that this is a create messag... | java | protected void resetCreateSubscriptionMessage(MESubscription subscription, boolean isLocalBus)
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "resetCreateSubscriptionMessage", new Object[]{subscription, new Boolean(isLocalBus)});
// Reset the state
reset();
// Indicate that this is a create messag... | [
"protected",
"void",
"resetCreateSubscriptionMessage",
"(",
"MESubscription",
"subscription",
",",
"boolean",
"isLocalBus",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"resetCreateSubscriptionMessage\"",
... | Method to reset the Subscription message object and
reinitialise it as a create proxy subscription message
@param subscription The subscription to add to the message.
@param isLocalBus The subscription is being sent to a the local bus | [
"Method",
"to",
"reset",
"the",
"Subscription",
"message",
"object",
"and",
"reinitialise",
"it",
"as",
"a",
"create",
"proxy",
"subscription",
"message"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/SubscriptionMessageHandler.java#L172-L208 |
69,856 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/SubscriptionMessageHandler.java | SubscriptionMessageHandler.resetDeleteSubscriptionMessage | protected void resetDeleteSubscriptionMessage()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "resetDeleteSubscriptionMessage");
// Reset the state
reset();
// Indicate that this is a create message
iSubscriptionMessage.setSubscriptionMessageType(
SubscriptionMessageType.DELETE);
... | java | protected void resetDeleteSubscriptionMessage()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "resetDeleteSubscriptionMessage");
// Reset the state
reset();
// Indicate that this is a create message
iSubscriptionMessage.setSubscriptionMessageType(
SubscriptionMessageType.DELETE);
... | [
"protected",
"void",
"resetDeleteSubscriptionMessage",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"resetDeleteSubscriptionMessage\"",
")",
";",
"// Reset the state",
"reset",
"(",
")",
";",
"/... | Method to reset the Subscription message object and
reinitialise it as a delete proxy subscription message.
This empty delete message that is created tells the Neighbouring
ME that this is the last message that it will receive from it. | [
"Method",
"to",
"reset",
"the",
"Subscription",
"message",
"object",
"and",
"reinitialise",
"it",
"as",
"a",
"delete",
"proxy",
"subscription",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/SubscriptionMessageHandler.java#L262-L276 |
69,857 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/SubscriptionMessageHandler.java | SubscriptionMessageHandler.resetResetSubscriptionMessage | protected void resetResetSubscriptionMessage()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "resetResetSubscriptionMessage");
// Reset the state
reset();
// Indicate that this is a create message
iSubscriptionMessage.setSubscriptionMessageType(
SubscriptionMessageType.RESET);
... | java | protected void resetResetSubscriptionMessage()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "resetResetSubscriptionMessage");
// Reset the state
reset();
// Indicate that this is a create message
iSubscriptionMessage.setSubscriptionMessageType(
SubscriptionMessageType.RESET);
... | [
"protected",
"void",
"resetResetSubscriptionMessage",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"resetResetSubscriptionMessage\"",
")",
";",
"// Reset the state",
"reset",
"(",
")",
";",
"// ... | Method to reset the Subscription message object and
reinitialise it as a Reset proxy subscription message | [
"Method",
"to",
"reset",
"the",
"Subscription",
"message",
"object",
"and",
"reinitialise",
"it",
"as",
"a",
"Reset",
"proxy",
"subscription",
"message"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/SubscriptionMessageHandler.java#L282-L296 |
69,858 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/SubscriptionMessageHandler.java | SubscriptionMessageHandler.resetReplySubscriptionMessage | protected void resetReplySubscriptionMessage()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "resetReplySubscriptionMessage");
// Reset the state
reset();
// Indicate that this is a create message
iSubscriptionMessage.setSubscriptionMessageType(
SubscriptionMessageType.REPLY);
... | java | protected void resetReplySubscriptionMessage()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "resetReplySubscriptionMessage");
// Reset the state
reset();
// Indicate that this is a create message
iSubscriptionMessage.setSubscriptionMessageType(
SubscriptionMessageType.REPLY);
... | [
"protected",
"void",
"resetReplySubscriptionMessage",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"resetReplySubscriptionMessage\"",
")",
";",
"// Reset the state",
"reset",
"(",
")",
";",
"// ... | Method to reset the Subscription message object and
reinitialise it as a Reply proxy subscription message | [
"Method",
"to",
"reset",
"the",
"Subscription",
"message",
"object",
"and",
"reinitialise",
"it",
"as",
"a",
"Reply",
"proxy",
"subscription",
"message"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/SubscriptionMessageHandler.java#L302-L316 |
69,859 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/SubscriptionMessageHandler.java | SubscriptionMessageHandler.addSubscriptionToMessage | protected void addSubscriptionToMessage(MESubscription subscription, boolean isLocalBus)
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "addSubscriptionToMessage", new Object[]{subscription, new Boolean(isLocalBus)});
// Add the subscription related information.
iTopics.add(subscription.getTopic());
... | java | protected void addSubscriptionToMessage(MESubscription subscription, boolean isLocalBus)
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "addSubscriptionToMessage", new Object[]{subscription, new Boolean(isLocalBus)});
// Add the subscription related information.
iTopics.add(subscription.getTopic());
... | [
"protected",
"void",
"addSubscriptionToMessage",
"(",
"MESubscription",
"subscription",
",",
"boolean",
"isLocalBus",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"addSubscriptionToMessage\"",
",",
"ne... | Adds a subscription to the proxy message that is to be sent.
This will either be a delete or reset message.
Reset will add messages to the list to resync with the Neighbour
and the Delete will send it on due to receiving a Reset.
@param subscription The MESubscription to add to the message.
@param isLocalBus The me... | [
"Adds",
"a",
"subscription",
"to",
"the",
"proxy",
"message",
"that",
"is",
"to",
"be",
"sent",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/SubscriptionMessageHandler.java#L328-L355 |
69,860 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/SubscriptionMessageHandler.java | SubscriptionMessageHandler.getSubscriptionMessage | protected SubscriptionMessage getSubscriptionMessage()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "getSubscriptionMessage");
// Set the values in the message
iSubscriptionMessage.setTopics(iTopics);
iSubscriptionMessage.setMEName(iMEName);
iSubscriptionMessage.setMEUUID(iMEUUID.toByteAr... | java | protected SubscriptionMessage getSubscriptionMessage()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "getSubscriptionMessage");
// Set the values in the message
iSubscriptionMessage.setTopics(iTopics);
iSubscriptionMessage.setMEName(iMEName);
iSubscriptionMessage.setMEUUID(iMEUUID.toByteAr... | [
"protected",
"SubscriptionMessage",
"getSubscriptionMessage",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getSubscriptionMessage\"",
")",
";",
"// Set the values in the message ",
"iSubscriptionMes... | Method to return the Subscription Message to be sent
to the Neighbouring ME's
This also assigns all the Lists to the message.
@return SubscriptionMessage The subscription message to be
sent to the Neighbouring ME.
@param isForeignBus The subscription is being sent to a foreign bus | [
"Method",
"to",
"return",
"the",
"Subscription",
"Message",
"to",
"be",
"sent",
"to",
"the",
"Neighbouring",
"ME",
"s"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/SubscriptionMessageHandler.java#L367-L387 |
69,861 | OpenLiberty/open-liberty | dev/com.ibm.ws.request.probe.audit.servlet/src/com/ibm/ws/request/probe/audit/servlet/AuditPE.java | AuditPE.auditEventSafAuthDetails | private void auditEventSafAuthDetails(Object[] methodParams) {
// Getting object array which have audit fields
Object[] varargs = (Object[]) methodParams[1];
// Get audit fields and convert them to respective type
int safReturnCode = (Integer) varargs[0];
int racfReturnCode = (Integer) varargs[1];
int rac... | java | private void auditEventSafAuthDetails(Object[] methodParams) {
// Getting object array which have audit fields
Object[] varargs = (Object[]) methodParams[1];
// Get audit fields and convert them to respective type
int safReturnCode = (Integer) varargs[0];
int racfReturnCode = (Integer) varargs[1];
int rac... | [
"private",
"void",
"auditEventSafAuthDetails",
"(",
"Object",
"[",
"]",
"methodParams",
")",
"{",
"// Getting object array which have audit fields",
"Object",
"[",
"]",
"varargs",
"=",
"(",
"Object",
"[",
"]",
")",
"methodParams",
"[",
"1",
"]",
";",
"// Get audit... | Handles audit event for SECURITY_SAF_AUTH_DETAILS
@param methodParams | [
"Handles",
"audit",
"event",
"for",
"SECURITY_SAF_AUTH_DETAILS"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.request.probe.audit.servlet/src/com/ibm/ws/request/probe/audit/servlet/AuditPE.java#L685-L710 |
69,862 | OpenLiberty/open-liberty | dev/com.ibm.ws.rest.handler/src/com/ibm/ws/rest/handler/internal/service/RESTHandlerContainerImpl.java | RESTHandlerContainerImpl.getValues | private String[] getValues(Object propValue) {
String[] keys = null;
if (propValue instanceof String) {
keys = new String[] { (String) propValue };
} else if (propValue instanceof String[]) {
keys = (String[]) propValue;
} else {
if (TraceComponent.is... | java | private String[] getValues(Object propValue) {
String[] keys = null;
if (propValue instanceof String) {
keys = new String[] { (String) propValue };
} else if (propValue instanceof String[]) {
keys = (String[]) propValue;
} else {
if (TraceComponent.is... | [
"private",
"String",
"[",
"]",
"getValues",
"(",
"Object",
"propValue",
")",
"{",
"String",
"[",
"]",
"keys",
"=",
"null",
";",
"if",
"(",
"propValue",
"instanceof",
"String",
")",
"{",
"keys",
"=",
"new",
"String",
"[",
"]",
"{",
"(",
"String",
")",... | Gets a set of values for a given property
@param handler
@return | [
"Gets",
"a",
"set",
"of",
"values",
"for",
"a",
"given",
"property"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.rest.handler/src/com/ibm/ws/rest/handler/internal/service/RESTHandlerContainerImpl.java#L119-L152 |
69,863 | OpenLiberty/open-liberty | dev/com.ibm.ws.rest.handler/src/com/ibm/ws/rest/handler/internal/service/RESTHandlerContainerImpl.java | RESTHandlerContainerImpl.getHandler | public HandlerInfo getHandler(String requestURL) {
Iterator<HandlerPath> keys = handlerKeys.iterator();
if (requestURL == null || keys == null) {
return null;
}
// Check to see if we have a direct hit
Iterator<ServiceAndServiceReferencePair<RESTHandler>> itr = handl... | java | public HandlerInfo getHandler(String requestURL) {
Iterator<HandlerPath> keys = handlerKeys.iterator();
if (requestURL == null || keys == null) {
return null;
}
// Check to see if we have a direct hit
Iterator<ServiceAndServiceReferencePair<RESTHandler>> itr = handl... | [
"public",
"HandlerInfo",
"getHandler",
"(",
"String",
"requestURL",
")",
"{",
"Iterator",
"<",
"HandlerPath",
">",
"keys",
"=",
"handlerKeys",
".",
"iterator",
"(",
")",
";",
"if",
"(",
"requestURL",
"==",
"null",
"||",
"keys",
"==",
"null",
")",
"{",
"r... | Try to find the appropriate RESTHandler and HandlerPath pair for the given URL. Return null if no match found.
May return null for the HandlerPath field if the RESTHandler matched an URL that did not contain variables.
@param requestURL The URL from the HTTP request. This is the URL that needs to be matched. | [
"Try",
"to",
"find",
"the",
"appropriate",
"RESTHandler",
"and",
"HandlerPath",
"pair",
"for",
"the",
"given",
"URL",
".",
"Return",
"null",
"if",
"no",
"match",
"found",
".",
"May",
"return",
"null",
"for",
"the",
"HandlerPath",
"field",
"if",
"the",
"RES... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.rest.handler/src/com/ibm/ws/rest/handler/internal/service/RESTHandlerContainerImpl.java#L325-L383 |
69,864 | OpenLiberty/open-liberty | dev/com.ibm.ws.rest.handler/src/com/ibm/ws/rest/handler/internal/service/RESTHandlerContainerImpl.java | RESTHandlerContainerImpl.registeredKeys | @Override
public Iterator<String> registeredKeys() {
Iterator<HandlerPath> paths = handlerKeys.iterator();
List<String> registeredKeys = new ArrayList<String>(handlerKeys.size());
while (paths.hasNext()) {
HandlerPath path = paths.next();
if (!path.isHidden()) {
... | java | @Override
public Iterator<String> registeredKeys() {
Iterator<HandlerPath> paths = handlerKeys.iterator();
List<String> registeredKeys = new ArrayList<String>(handlerKeys.size());
while (paths.hasNext()) {
HandlerPath path = paths.next();
if (!path.isHidden()) {
... | [
"@",
"Override",
"public",
"Iterator",
"<",
"String",
">",
"registeredKeys",
"(",
")",
"{",
"Iterator",
"<",
"HandlerPath",
">",
"paths",
"=",
"handlerKeys",
".",
"iterator",
"(",
")",
";",
"List",
"<",
"String",
">",
"registeredKeys",
"=",
"new",
"ArrayLi... | Return our registered keys. | [
"Return",
"our",
"registered",
"keys",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.rest.handler/src/com/ibm/ws/rest/handler/internal/service/RESTHandlerContainerImpl.java#L388-L400 |
69,865 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/HashedArray.java | HashedArray.get | synchronized public Element get(long index) {
int bind = ((int)index & Integer.MAX_VALUE) % buckets.length;
Element[] bucket = buckets[bind];
if (bucket == null)
return null;
for (int i = 0; i < counts[bind]; i++)
if (bucket[i].getIndex() == index)
return bucket[i];
return null;
... | java | synchronized public Element get(long index) {
int bind = ((int)index & Integer.MAX_VALUE) % buckets.length;
Element[] bucket = buckets[bind];
if (bucket == null)
return null;
for (int i = 0; i < counts[bind]; i++)
if (bucket[i].getIndex() == index)
return bucket[i];
return null;
... | [
"synchronized",
"public",
"Element",
"get",
"(",
"long",
"index",
")",
"{",
"int",
"bind",
"=",
"(",
"(",
"int",
")",
"index",
"&",
"Integer",
".",
"MAX_VALUE",
")",
"%",
"buckets",
".",
"length",
";",
"Element",
"[",
"]",
"bucket",
"=",
"buckets",
"... | Get an element from the array | [
"Get",
"an",
"element",
"from",
"the",
"array"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/HashedArray.java#L66-L75 |
69,866 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/HashedArray.java | HashedArray.set | synchronized public void set(Element value) {
int bind = ((int)value.getIndex() & Integer.MAX_VALUE) % buckets.length;
Element[] bucket = buckets[bind];
int count = counts[bind];
if (bucket == null)
buckets[bind] = bucket = new Element[initBucketSize];
else if (bucket.length == count) {
... | java | synchronized public void set(Element value) {
int bind = ((int)value.getIndex() & Integer.MAX_VALUE) % buckets.length;
Element[] bucket = buckets[bind];
int count = counts[bind];
if (bucket == null)
buckets[bind] = bucket = new Element[initBucketSize];
else if (bucket.length == count) {
... | [
"synchronized",
"public",
"void",
"set",
"(",
"Element",
"value",
")",
"{",
"int",
"bind",
"=",
"(",
"(",
"int",
")",
"value",
".",
"getIndex",
"(",
")",
"&",
"Integer",
".",
"MAX_VALUE",
")",
"%",
"buckets",
".",
"length",
";",
"Element",
"[",
"]",
... | Set an element into the array | [
"Set",
"an",
"element",
"into",
"the",
"array"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/HashedArray.java#L80-L94 |
69,867 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/HashedArray.java | HashedArray.toArray | synchronized public Object[] toArray(Object[] values) {
int count = 0;
for (int bind = 0; bind < buckets.length; bind++) {
if (counts[bind] > 0)
System.arraycopy(buckets[bind], 0, values, count, counts[bind]);
count += counts[bind];
}
return values;
} | java | synchronized public Object[] toArray(Object[] values) {
int count = 0;
for (int bind = 0; bind < buckets.length; bind++) {
if (counts[bind] > 0)
System.arraycopy(buckets[bind], 0, values, count, counts[bind]);
count += counts[bind];
}
return values;
} | [
"synchronized",
"public",
"Object",
"[",
"]",
"toArray",
"(",
"Object",
"[",
"]",
"values",
")",
"{",
"int",
"count",
"=",
"0",
";",
"for",
"(",
"int",
"bind",
"=",
"0",
";",
"bind",
"<",
"buckets",
".",
"length",
";",
"bind",
"++",
")",
"{",
"if... | Return the contents of the HashedArray as an array | [
"Return",
"the",
"contents",
"of",
"the",
"HashedArray",
"as",
"an",
"array"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/HashedArray.java#L110-L118 |
69,868 | OpenLiberty/open-liberty | dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/ApplicationManager.java | ApplicationManager.getProperty | @SuppressWarnings("unchecked")
private <T> T getProperty(Map<String, Object> properties, String name, T deflt) {
T value = deflt;
try {
T prop = (T) properties.get(name);
if (prop != null) {
value = prop;
}
} catch (ClassCastException e) {
... | java | @SuppressWarnings("unchecked")
private <T> T getProperty(Map<String, Object> properties, String name, T deflt) {
T value = deflt;
try {
T prop = (T) properties.get(name);
if (prop != null) {
value = prop;
}
} catch (ClassCastException e) {
... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"private",
"<",
"T",
">",
"T",
"getProperty",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"properties",
",",
"String",
"name",
",",
"T",
"deflt",
")",
"{",
"T",
"value",
"=",
"deflt",
";",
"try",
... | get a property and if not set, use the supplied default | [
"get",
"a",
"property",
"and",
"if",
"not",
"set",
"use",
"the",
"supplied",
"default"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/ApplicationManager.java#L71-L83 |
69,869 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java | Tr.register | public static TraceComponent register(String name, Class<?> aClass, String[] groups) {
return register(name, aClass, groups, null);
} | java | public static TraceComponent register(String name, Class<?> aClass, String[] groups) {
return register(name, aClass, groups, null);
} | [
"public",
"static",
"TraceComponent",
"register",
"(",
"String",
"name",
",",
"Class",
"<",
"?",
">",
"aClass",
",",
"String",
"[",
"]",
"groups",
")",
"{",
"return",
"register",
"(",
"name",
",",
"aClass",
",",
"groups",
",",
"null",
")",
";",
"}"
] | Register the provided name with the trace service and assign it to the
provided groups.
@param name
a <code>String</code> to register a component for with
the trace manager. The name is used in the registration
process.
@param aClass
a valid <code>Class</code> to register a component for with
the trace manager. The cl... | [
"Register",
"the",
"provided",
"name",
"with",
"the",
"trace",
"service",
"and",
"assign",
"it",
"to",
"the",
"provided",
"groups",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java#L228-L230 |
69,870 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java | Tr.audit | public static final void audit(TraceComponent tc, String msgKey, Object... objs) {
TrConfigurator.getDelegate().audit(tc, msgKey, objs);
} | java | public static final void audit(TraceComponent tc, String msgKey, Object... objs) {
TrConfigurator.getDelegate().audit(tc, msgKey, objs);
} | [
"public",
"static",
"final",
"void",
"audit",
"(",
"TraceComponent",
"tc",
",",
"String",
"msgKey",
",",
"Object",
"...",
"objs",
")",
"{",
"TrConfigurator",
".",
"getDelegate",
"(",
")",
".",
"audit",
"(",
"tc",
",",
"msgKey",
",",
"objs",
")",
";",
"... | Print the provided translated message if the input trace component allows
audit level messages.
@param tc
the non-null <code>TraceComponent</code> the event is
associated with.
@param msgKey
the message key identifying an NLS message for this event.
This message must be in the resource bundle currently
associated with... | [
"Print",
"the",
"provided",
"translated",
"message",
"if",
"the",
"input",
"trace",
"component",
"allows",
"audit",
"level",
"messages",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java#L364-L366 |
69,871 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java | Tr.entry | public static final void entry(TraceComponent tc, String methodName, Object... objs) {
TrConfigurator.getDelegate().entry(tc, methodName, objs);
} | java | public static final void entry(TraceComponent tc, String methodName, Object... objs) {
TrConfigurator.getDelegate().entry(tc, methodName, objs);
} | [
"public",
"static",
"final",
"void",
"entry",
"(",
"TraceComponent",
"tc",
",",
"String",
"methodName",
",",
"Object",
"...",
"objs",
")",
"{",
"TrConfigurator",
".",
"getDelegate",
"(",
")",
".",
"entry",
"(",
"tc",
",",
"methodName",
",",
"objs",
")",
... | Print the provided trace point if the input trace component allows entry
level messages.
@param tc
the non-null <code>TraceComponent</code> the event is
associated with.
@param methodName
@param objs
a variable number (zero to n) of <code>Objects</code>.
toString() is called on each object and the results are
appended... | [
"Print",
"the",
"provided",
"trace",
"point",
"if",
"the",
"input",
"trace",
"component",
"allows",
"entry",
"level",
"messages",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java#L442-L444 |
69,872 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java | Tr.formatMessage | public static final String formatMessage(TraceComponent tc, String msgKey, Object... objs) {
return formatMessage(tc, Locale.getDefault(), msgKey, objs);
} | java | public static final String formatMessage(TraceComponent tc, String msgKey, Object... objs) {
return formatMessage(tc, Locale.getDefault(), msgKey, objs);
} | [
"public",
"static",
"final",
"String",
"formatMessage",
"(",
"TraceComponent",
"tc",
",",
"String",
"msgKey",
",",
"Object",
"...",
"objs",
")",
"{",
"return",
"formatMessage",
"(",
"tc",
",",
"Locale",
".",
"getDefault",
"(",
")",
",",
"msgKey",
",",
"obj... | Translate a message in the context of the input trace component using
the default locale. This method is typically used to provide translated
messages that might help resolve an exception that is surfaced to a user.
@param tc
the non-null <code>TraceComponent</code> of the message
@param msgKey
the message key identif... | [
"Translate",
"a",
"message",
"in",
"the",
"context",
"of",
"the",
"input",
"trace",
"component",
"using",
"the",
"default",
"locale",
".",
"This",
"method",
"is",
"typically",
"used",
"to",
"provide",
"translated",
"messages",
"that",
"might",
"help",
"resolve... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java#L675-L677 |
69,873 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java | Tr.formatMessage | public static final String formatMessage(TraceComponent tc, List<Locale> locales, String msgKey, Object... objs) {
// WsLogRecord.createWsLogRecord + BaseTraceService.formatMessage
// The best odds for finding the resource bundle are with using the
// classloader that loaded the associated clas... | java | public static final String formatMessage(TraceComponent tc, List<Locale> locales, String msgKey, Object... objs) {
// WsLogRecord.createWsLogRecord + BaseTraceService.formatMessage
// The best odds for finding the resource bundle are with using the
// classloader that loaded the associated clas... | [
"public",
"static",
"final",
"String",
"formatMessage",
"(",
"TraceComponent",
"tc",
",",
"List",
"<",
"Locale",
">",
"locales",
",",
"String",
"msgKey",
",",
"Object",
"...",
"objs",
")",
"{",
"// WsLogRecord.createWsLogRecord + BaseTraceService.formatMessage",
"// T... | Translate a message in the context of the input trace component. This
method is typically used to provide translated messages that might help
resolve an exception that is surfaced to a user.
@param tc
the non-null <code>TraceComponent</code> of the message
@param locales
the possible locales to use for translation. Lo... | [
"Translate",
"a",
"message",
"in",
"the",
"context",
"of",
"the",
"input",
"trace",
"component",
".",
"This",
"method",
"is",
"typically",
"used",
"to",
"provide",
"translated",
"messages",
"that",
"might",
"help",
"resolve",
"an",
"exception",
"that",
"is",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java#L723-L744 |
69,874 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java | Tr.registerTraceComponent | static void registerTraceComponent(TraceComponent tc) {
tc.setTraceSpec(activeTraceSpec);
TrService activeDelegate = TrConfigurator.getDelegate();
activeDelegate.register(tc);
TrConfigurator.traceComponentRegistered(tc);
// Add the new TraceComponent to the queue of new trace ... | java | static void registerTraceComponent(TraceComponent tc) {
tc.setTraceSpec(activeTraceSpec);
TrService activeDelegate = TrConfigurator.getDelegate();
activeDelegate.register(tc);
TrConfigurator.traceComponentRegistered(tc);
// Add the new TraceComponent to the queue of new trace ... | [
"static",
"void",
"registerTraceComponent",
"(",
"TraceComponent",
"tc",
")",
"{",
"tc",
".",
"setTraceSpec",
"(",
"activeTraceSpec",
")",
";",
"TrService",
"activeDelegate",
"=",
"TrConfigurator",
".",
"getDelegate",
"(",
")",
";",
"activeDelegate",
".",
"registe... | Support for com.ibm.ejs.ras.Tr register methods | [
"Support",
"for",
"com",
".",
"ibm",
".",
"ejs",
".",
"ras",
".",
"Tr",
"register",
"methods"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java#L749-L763 |
69,875 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/BatchingContextImpl.java | BatchingContextImpl.updateXIDToCommitted | public void updateXIDToCommitted(PersistentTranId xid)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "updateXIDToCommitted", "XID="+xid);
if (_deferredException == null)
{
// We are committing a transaction. The transaction can
/... | java | public void updateXIDToCommitted(PersistentTranId xid)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "updateXIDToCommitted", "XID="+xid);
if (_deferredException == null)
{
// We are committing a transaction. The transaction can
/... | [
"public",
"void",
"updateXIDToCommitted",
"(",
"PersistentTranId",
"xid",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"updateXIDToCommit... | In the OM implementation this method is used to flag the batching
context so that upon the next call to executeBatch the OM transaction
being used is committed.
@param xid | [
"In",
"the",
"OM",
"implementation",
"this",
"method",
"is",
"used",
"to",
"flag",
"the",
"batching",
"context",
"so",
"that",
"upon",
"the",
"next",
"call",
"to",
"executeBatch",
"the",
"OM",
"transaction",
"being",
"used",
"is",
"committed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/BatchingContextImpl.java#L607-L632 |
69,876 | OpenLiberty/open-liberty | dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAEMFactory.java | JPAEMFactory.unwrap | public <T> T unwrap(Class<T> cls) // d706751
{
if (cls.isInstance(ivFactory))
{
return cls.cast(ivFactory);
}
throw new PersistenceException(cls.toString());
} | java | public <T> T unwrap(Class<T> cls) // d706751
{
if (cls.isInstance(ivFactory))
{
return cls.cast(ivFactory);
}
throw new PersistenceException(cls.toString());
} | [
"public",
"<",
"T",
">",
"T",
"unwrap",
"(",
"Class",
"<",
"T",
">",
"cls",
")",
"// d706751",
"{",
"if",
"(",
"cls",
".",
"isInstance",
"(",
"ivFactory",
")",
")",
"{",
"return",
"cls",
".",
"cast",
"(",
"ivFactory",
")",
";",
"}",
"throw",
"new... | Return an object of the specified type to allow access to
provider-specific API.
@param cls the class of the object to be returned
@return an instance of the specified class
@throws PersistenceException if the class is not supported | [
"Return",
"an",
"object",
"of",
"the",
"specified",
"type",
"to",
"allow",
"access",
"to",
"provider",
"-",
"specific",
"API",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAEMFactory.java#L78-L86 |
69,877 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.service/src/com/ibm/wsspi/kernel/service/utils/AtomicServiceReference.java | AtomicServiceReference.getService | @SuppressWarnings("unchecked")
private T getService(boolean throwException) {
T svc = null;
ReferenceTuple<T> current = null;
ReferenceTuple<T> newTuple = null;
do {
// Get the current tuple
current = tuple.get();
// We have both a context and a ... | java | @SuppressWarnings("unchecked")
private T getService(boolean throwException) {
T svc = null;
ReferenceTuple<T> current = null;
ReferenceTuple<T> newTuple = null;
do {
// Get the current tuple
current = tuple.get();
// We have both a context and a ... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"private",
"T",
"getService",
"(",
"boolean",
"throwException",
")",
"{",
"T",
"svc",
"=",
"null",
";",
"ReferenceTuple",
"<",
"T",
">",
"current",
"=",
"null",
";",
"ReferenceTuple",
"<",
"T",
">",
"newT... | Try to locate the service
@param throwException if true, throw exception when required services are
missing
@return T or null if unavailable | [
"Try",
"to",
"locate",
"the",
"service"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.service/src/com/ibm/wsspi/kernel/service/utils/AtomicServiceReference.java#L220-L273 |
69,878 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBThreadData.java | EJBThreadData.getCurrentThreadContext | private static <T> ThreadContext<T> getCurrentThreadContext(ThreadContext<T> threadContext)
{
return ((ThreadContextImpl<T>) threadContext).get();
} | java | private static <T> ThreadContext<T> getCurrentThreadContext(ThreadContext<T> threadContext)
{
return ((ThreadContextImpl<T>) threadContext).get();
} | [
"private",
"static",
"<",
"T",
">",
"ThreadContext",
"<",
"T",
">",
"getCurrentThreadContext",
"(",
"ThreadContext",
"<",
"T",
">",
"threadContext",
")",
"{",
"return",
"(",
"(",
"ThreadContextImpl",
"<",
"T",
">",
")",
"threadContext",
")",
".",
"get",
"(... | Obtains a context object optimized for accessing the current thread. | [
"Obtains",
"a",
"context",
"object",
"optimized",
"for",
"accessing",
"the",
"current",
"thread",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBThreadData.java#L47-L50 |
69,879 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBThreadData.java | EJBThreadData.getCallbackBeanO | public BeanO getCallbackBeanO()
{
BeanO result = ivCallbackBeanOStack.peek();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getCallbackBeanO: " + result);
return result;
} | java | public BeanO getCallbackBeanO()
{
BeanO result = ivCallbackBeanOStack.peek();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getCallbackBeanO: " + result);
return result;
} | [
"public",
"BeanO",
"getCallbackBeanO",
"(",
")",
"{",
"BeanO",
"result",
"=",
"ivCallbackBeanOStack",
".",
"peek",
"(",
")",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
"."... | Gets a reference to the bean that the container is currently processing
via a business method or lifecycle callback.
@return the callback bean, or null if the container is not processing a
bean | [
"Gets",
"a",
"reference",
"to",
"the",
"bean",
"that",
"the",
"container",
"is",
"currently",
"processing",
"via",
"a",
"business",
"method",
"or",
"lifecycle",
"callback",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBThreadData.java#L206-L213 |
69,880 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBThreadData.java | EJBThreadData.pushCallbackBeanO | public void pushCallbackBeanO(BeanO bean) // d662032
throws CSIException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "pushCallbackBeanO: " + bean);
HandleListInterface hl = bean.reAssociateHandleList();
ivHandleListContext.beginContext(hl... | java | public void pushCallbackBeanO(BeanO bean) // d662032
throws CSIException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "pushCallbackBeanO: " + bean);
HandleListInterface hl = bean.reAssociateHandleList();
ivHandleListContext.beginContext(hl... | [
"public",
"void",
"pushCallbackBeanO",
"(",
"BeanO",
"bean",
")",
"// d662032",
"throws",
"CSIException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",... | Updates the bean that the container is currently processing via a
business method or lifecycle callback, and establishes a thread context
specific to the bean.
@throws CSIException if an exception occurs while reassociating handles | [
"Updates",
"the",
"bean",
"that",
"the",
"container",
"is",
"currently",
"processing",
"via",
"a",
"business",
"method",
"or",
"lifecycle",
"callback",
"and",
"establishes",
"a",
"thread",
"context",
"specific",
"to",
"the",
"bean",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBThreadData.java#L222-L232 |
69,881 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBThreadData.java | EJBThreadData.pushClassLoader | public void pushClassLoader(BeanMetaData bmd)
{
ClassLoader classLoader = bmd.ivContextClassLoader; // F85059
Object origCL = svThreadContextAccessor.pushContextClassLoaderForUnprivileged(classLoader);
ivClassLoaderStack.push(origCL);
if (TraceComponent.isAnyTracingEnabled() && tc.i... | java | public void pushClassLoader(BeanMetaData bmd)
{
ClassLoader classLoader = bmd.ivContextClassLoader; // F85059
Object origCL = svThreadContextAccessor.pushContextClassLoaderForUnprivileged(classLoader);
ivClassLoaderStack.push(origCL);
if (TraceComponent.isAnyTracingEnabled() && tc.i... | [
"public",
"void",
"pushClassLoader",
"(",
"BeanMetaData",
"bmd",
")",
"{",
"ClassLoader",
"classLoader",
"=",
"bmd",
".",
"ivContextClassLoader",
";",
"// F85059",
"Object",
"origCL",
"=",
"svThreadContextAccessor",
".",
"pushContextClassLoaderForUnprivileged",
"(",
"cl... | Sets the thread context class loader for the specified bean metadata, and
saves the current thread context class loader. | [
"Sets",
"the",
"thread",
"context",
"class",
"loader",
"for",
"the",
"specified",
"bean",
"metadata",
"and",
"saves",
"the",
"current",
"thread",
"context",
"class",
"loader",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBThreadData.java#L253-L264 |
69,882 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBThreadData.java | EJBThreadData.getContextData | public Map<String, Object> getContextData() // d644886
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
Map<String, Object> contextData;
if (isLifecycleMethodActive()) // d704496
{
if (ivLifecycleContextData == null)
{
ivLifec... | java | public Map<String, Object> getContextData() // d644886
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
Map<String, Object> contextData;
if (isLifecycleMethodActive()) // d704496
{
if (ivLifecycleContextData == null)
{
ivLifec... | [
"public",
"Map",
"<",
"String",
",",
"Object",
">",
"getContextData",
"(",
")",
"// d644886",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"Map",
"<",
"String",
",",
"Object",
">",
"contextData",
";"... | Gets the context data associated with the current EJB method or EJB
lifecycle callback.
@see BeanO#getContextData
@throws IllegalStateException if neither an EJB method nor an EJB
lifecycle method is active on the thread | [
"Gets",
"the",
"context",
"data",
"associated",
"with",
"the",
"current",
"EJB",
"method",
"or",
"EJB",
"lifecycle",
"callback",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBThreadData.java#L373-L414 |
69,883 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/Utils.java | Utils.getImpl | protected static Object getImpl(String className, Class[] types, Object[] args) {
// No tracing as this is used to load the trace factory.
Object Impl; // For return.
try {
Class classToInstantiate = Class.forName(className);
java.lang.reflect.Constructor constructor = c... | java | protected static Object getImpl(String className, Class[] types, Object[] args) {
// No tracing as this is used to load the trace factory.
Object Impl; // For return.
try {
Class classToInstantiate = Class.forName(className);
java.lang.reflect.Constructor constructor = c... | [
"protected",
"static",
"Object",
"getImpl",
"(",
"String",
"className",
",",
"Class",
"[",
"]",
"types",
",",
"Object",
"[",
"]",
"args",
")",
"{",
"// No tracing as this is used to load the trace factory.",
"Object",
"Impl",
";",
"// For return.",
"try",
"{",
"Cl... | Create a platform specific instance of a utils class.
@param className the simple name of the class whois implementation is to be found.
@param types used to select the constructor.
@param args used to invoke the constructor.
@return Object the utils class loaded. | [
"Create",
"a",
"platform",
"specific",
"instance",
"of",
"a",
"utils",
"class",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/Utils.java#L34-L53 |
69,884 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/UniqueKeyRangeManager.java | UniqueKeyRangeManager.scheduleUpdate | public void scheduleUpdate(UniqueKeyGenerator generator)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "scheduleUpdate", "GeneratorName="+generator.getName());
synchronized (_asyncQ)
{
_asyncQ.add(generator);
_asyncQ.notify();
... | java | public void scheduleUpdate(UniqueKeyGenerator generator)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "scheduleUpdate", "GeneratorName="+generator.getName());
synchronized (_asyncQ)
{
_asyncQ.add(generator);
_asyncQ.notify();
... | [
"public",
"void",
"scheduleUpdate",
"(",
"UniqueKeyGenerator",
"generator",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"scheduleUpdate\... | Request an asynchronous update of the persistent state
@param generator to be updated | [
"Request",
"an",
"asynchronous",
"update",
"of",
"the",
"persistent",
"state"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/UniqueKeyRangeManager.java#L131-L142 |
69,885 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/UniqueKeyRangeManager.java | UniqueKeyRangeManager.entryExists | public boolean entryExists(UniqueKeyGenerator generator)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "entryExists", "GeneratorName="+generator.getName());
boolean retval = false;
if (_generators.containsKey(generator.getName()))
{
... | java | public boolean entryExists(UniqueKeyGenerator generator)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "entryExists", "GeneratorName="+generator.getName());
boolean retval = false;
if (_generators.containsKey(generator.getName()))
{
... | [
"public",
"boolean",
"entryExists",
"(",
"UniqueKeyGenerator",
"generator",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"entryExists\"",... | Test if the generator is known to the persistence layer
@param generator to check for
@return true if generator exists, false otherwise | [
"Test",
"if",
"the",
"generator",
"is",
"known",
"to",
"the",
"persistence",
"layer"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/UniqueKeyRangeManager.java#L151-L164 |
69,886 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/UniqueKeyRangeManager.java | UniqueKeyRangeManager.addEntry | public long addEntry(UniqueKeyGenerator generator) throws PersistenceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "addEntry", "GeneratorName="+generator.getName());
if (!_generators.containsKey(generator.getName()))
{
Transaction t... | java | public long addEntry(UniqueKeyGenerator generator) throws PersistenceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "addEntry", "GeneratorName="+generator.getName());
if (!_generators.containsKey(generator.getName()))
{
Transaction t... | [
"public",
"long",
"addEntry",
"(",
"UniqueKeyGenerator",
"generator",
")",
"throws",
"PersistenceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"... | Tell the persistence layer about a new generator
@param generator
@return initial key to be used by the generator
@throws PersistenceException | [
"Tell",
"the",
"persistence",
"layer",
"about",
"a",
"new",
"generator"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/UniqueKeyRangeManager.java#L174-L227 |
69,887 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/UniqueKeyRangeManager.java | UniqueKeyRangeManager.updateEntry | public long updateEntry(UniqueKeyGenerator generator) throws PersistenceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "updateEntry", "GeneratorName="+generator.getName());
long currentLimit = 0L;
// Do we know of this generator?
if (_g... | java | public long updateEntry(UniqueKeyGenerator generator) throws PersistenceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "updateEntry", "GeneratorName="+generator.getName());
long currentLimit = 0L;
// Do we know of this generator?
if (_g... | [
"public",
"long",
"updateEntry",
"(",
"UniqueKeyGenerator",
"generator",
")",
"throws",
"PersistenceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
... | Request an immediate update to the persistent state
@param generator to be updated
@return the value that was stored prior to the update
@throws PersistenceException | [
"Request",
"an",
"immediate",
"update",
"to",
"the",
"persistent",
"state"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/UniqueKeyRangeManager.java#L237-L302 |
69,888 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/UniqueKeyRangeManager.java | UniqueKeyRangeManager.run | public void run()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "run");
UniqueKeyGenerator generator = null;
while (_running)
{
synchronized (_asyncQ)
{
// Do we have anything to do?
while... | java | public void run()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "run");
UniqueKeyGenerator generator = null;
while (_running)
{
synchronized (_asyncQ)
{
// Do we have anything to do?
while... | [
"public",
"void",
"run",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"run\"",
")",
";",
"UniqueKeyGenerator",
"generator",
"=... | This method is where the asynchronous reads and writes are done
to the filesystem for persistent updates to the currently active
range of keys. | [
"This",
"method",
"is",
"where",
"the",
"asynchronous",
"reads",
"and",
"writes",
"are",
"done",
"to",
"the",
"filesystem",
"for",
"persistent",
"updates",
"to",
"the",
"currently",
"active",
"range",
"of",
"keys",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/UniqueKeyRangeManager.java#L310-L358 |
69,889 | OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/client/injection/ServiceRefObjectFactory.java | ServiceRefObjectFactory.getInstance | private Object getInstance(TransientWebServiceRefInfo tInfo, WebServiceRefInfo wsrInfo) throws Exception {
Object instance = null;
// First, obtain an instance of the JAX-WS Service class.
Service svc = null;
List<WebServiceFeature> originalWsFeatureList = LibertyProviderImpl.getWebSe... | java | private Object getInstance(TransientWebServiceRefInfo tInfo, WebServiceRefInfo wsrInfo) throws Exception {
Object instance = null;
// First, obtain an instance of the JAX-WS Service class.
Service svc = null;
List<WebServiceFeature> originalWsFeatureList = LibertyProviderImpl.getWebSe... | [
"private",
"Object",
"getInstance",
"(",
"TransientWebServiceRefInfo",
"tInfo",
",",
"WebServiceRefInfo",
"wsrInfo",
")",
"throws",
"Exception",
"{",
"Object",
"instance",
"=",
"null",
";",
"// First, obtain an instance of the JAX-WS Service class.",
"Service",
"svc",
"=",
... | This method will create an instance of a JAX-WS service ref, using the metadata supplied in the WebServiceRefInfo
object. | [
"This",
"method",
"will",
"create",
"an",
"instance",
"of",
"a",
"JAX",
"-",
"WS",
"service",
"ref",
"using",
"the",
"metadata",
"supplied",
"in",
"the",
"WebServiceRefInfo",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/client/injection/ServiceRefObjectFactory.java#L176-L222 |
69,890 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.authentication.filter/src/com/ibm/ws/security/authentication/filter/internal/OrCondition.java | OrCondition.checkCondition | @Override
public boolean checkCondition(IValue test) throws FilterException {
Iterator iter = values.iterator();
while (iter.hasNext()) {
IValue value = (IValue) iter.next();
if (value.containedBy(test)) {
return true;
}
}
return fa... | java | @Override
public boolean checkCondition(IValue test) throws FilterException {
Iterator iter = values.iterator();
while (iter.hasNext()) {
IValue value = (IValue) iter.next();
if (value.containedBy(test)) {
return true;
}
}
return fa... | [
"@",
"Override",
"public",
"boolean",
"checkCondition",
"(",
"IValue",
"test",
")",
"throws",
"FilterException",
"{",
"Iterator",
"iter",
"=",
"values",
".",
"iterator",
"(",
")",
";",
"while",
"(",
"iter",
".",
"hasNext",
"(",
")",
")",
"{",
"IValue",
"... | Loop through all of the values and see if any of them pass the equality test | [
"Loop",
"through",
"all",
"of",
"the",
"values",
"and",
"see",
"if",
"any",
"of",
"them",
"pass",
"the",
"equality",
"test"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authentication.filter/src/com/ibm/ws/security/authentication/filter/internal/OrCondition.java#L44-L54 |
69,891 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/dataobject/IDAndRealm.java | IDAndRealm.setRealm | public void setRealm(String inputRealm) {
if ((inputRealm != null) && (!inputRealm.equals(""))) {
this.realm = inputRealm;
setRealmDefined(true);
}
} | java | public void setRealm(String inputRealm) {
if ((inputRealm != null) && (!inputRealm.equals(""))) {
this.realm = inputRealm;
setRealmDefined(true);
}
} | [
"public",
"void",
"setRealm",
"(",
"String",
"inputRealm",
")",
"{",
"if",
"(",
"(",
"inputRealm",
"!=",
"null",
")",
"&&",
"(",
"!",
"inputRealm",
".",
"equals",
"(",
"\"\"",
")",
")",
")",
"{",
"this",
".",
"realm",
"=",
"inputRealm",
";",
"setReal... | Set the realm.
@param inputRealm The realm to set.
@pre inputRealm != null
@pre inputRealm != "" | [
"Set",
"the",
"realm",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/dataobject/IDAndRealm.java#L101-L106 |
69,892 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/upgrade/H2HandlerImpl.java | H2HandlerImpl.isH2Request | @Override
public boolean isH2Request(HttpInboundConnection hic, ServletRequest request) throws ServletException {
//first check if H2 is enabled for this channel/port
if (!((Http2InboundConnection)hic).isHTTP2UpgradeRequest(null, true) ){
return false;
}
... | java | @Override
public boolean isH2Request(HttpInboundConnection hic, ServletRequest request) throws ServletException {
//first check if H2 is enabled for this channel/port
if (!((Http2InboundConnection)hic).isHTTP2UpgradeRequest(null, true) ){
return false;
}
... | [
"@",
"Override",
"public",
"boolean",
"isH2Request",
"(",
"HttpInboundConnection",
"hic",
",",
"ServletRequest",
"request",
")",
"throws",
"ServletException",
"{",
"//first check if H2 is enabled for this channel/port",
"if",
"(",
"!",
"(",
"(",
"Http2InboundConnection",
... | Determines if a given request is an http2 upgrade request | [
"Determines",
"if",
"a",
"given",
"request",
"is",
"an",
"http2",
"upgrade",
"request"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/upgrade/H2HandlerImpl.java#L40-L60 |
69,893 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/upgrade/H2HandlerImpl.java | H2HandlerImpl.handleRequest | @Override
public void handleRequest(HttpInboundConnection hic, HttpServletRequest request, HttpServletResponse response) {
Http2InboundConnection h2ic = (Http2InboundConnection) hic;
H2UpgradeHandlerWrapper h2uh = null;
try {
h2uh = request.upgrade(H2UpgradeHandlerWrapper.class);... | java | @Override
public void handleRequest(HttpInboundConnection hic, HttpServletRequest request, HttpServletResponse response) {
Http2InboundConnection h2ic = (Http2InboundConnection) hic;
H2UpgradeHandlerWrapper h2uh = null;
try {
h2uh = request.upgrade(H2UpgradeHandlerWrapper.class);... | [
"@",
"Override",
"public",
"void",
"handleRequest",
"(",
"HttpInboundConnection",
"hic",
",",
"HttpServletRequest",
"request",
",",
"HttpServletResponse",
"response",
")",
"{",
"Http2InboundConnection",
"h2ic",
"=",
"(",
"Http2InboundConnection",
")",
"hic",
";",
"H2U... | Upgrades the given request for http2 | [
"Upgrades",
"the",
"given",
"request",
"for",
"http2"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/upgrade/H2HandlerImpl.java#L65-L106 |
69,894 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionEvent.java | WSConnectionEvent.recycle | public final WSConnectionEvent recycle(int eid, Exception ex, Object handle)
{
id = eid;
exception = ex;
setConnectionHandle(handle);
return this;
} | java | public final WSConnectionEvent recycle(int eid, Exception ex, Object handle)
{
id = eid;
exception = ex;
setConnectionHandle(handle);
return this;
} | [
"public",
"final",
"WSConnectionEvent",
"recycle",
"(",
"int",
"eid",
",",
"Exception",
"ex",
",",
"Object",
"handle",
")",
"{",
"id",
"=",
"eid",
";",
"exception",
"=",
"ex",
";",
"setConnectionHandle",
"(",
"handle",
")",
";",
"return",
"this",
";",
"}... | Recycle this ConnectionEvent by replacing the current values with those for the new
event.
@param eid ConnectionEvent constant indicating the type of ConnectionEvent.
@param ex the exception about to be throw to the application, or null if none.
@param handle Connection handle on which the error occurred, or null if n... | [
"Recycle",
"this",
"ConnectionEvent",
"by",
"replacing",
"the",
"current",
"values",
"with",
"those",
"for",
"the",
"new",
"event",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionEvent.java#L79-L86 |
69,895 | OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLWriteServiceContext.java | SSLWriteServiceContext.encryptAndWriteAsync | public VirtualConnection encryptAndWriteAsync(long numBytes, boolean forceQueue, int timeout) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "encryptAndWriteAsync: " + numBytes);
}
this.asyncBytesToWrite = 0L;
this.asyncTimeout = timeout;
... | java | public VirtualConnection encryptAndWriteAsync(long numBytes, boolean forceQueue, int timeout) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "encryptAndWriteAsync: " + numBytes);
}
this.asyncBytesToWrite = 0L;
this.asyncTimeout = timeout;
... | [
"public",
"VirtualConnection",
"encryptAndWriteAsync",
"(",
"long",
"numBytes",
",",
"boolean",
"forceQueue",
",",
"int",
"timeout",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
... | This method is called as a part of an asynchronous write, but after a
potential SSL handshake has taken place.
@param numBytes
@param forceQueue
@param timeout
@return virtual connection | [
"This",
"method",
"is",
"called",
"as",
"a",
"part",
"of",
"an",
"asynchronous",
"write",
"but",
"after",
"a",
"potential",
"SSL",
"handshake",
"has",
"taken",
"place",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLWriteServiceContext.java#L442-L511 |
69,896 | OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLWriteServiceContext.java | SSLWriteServiceContext.doHandshake | private SSLEngineResult doHandshake(MyHandshakeCompletedCallback hsCallback) throws IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "doHandshake");
}
SSLEngineResult sslResult;
SSLEngine sslEngine = getConnLink().getSSLEngine();
... | java | private SSLEngineResult doHandshake(MyHandshakeCompletedCallback hsCallback) throws IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "doHandshake");
}
SSLEngineResult sslResult;
SSLEngine sslEngine = getConnLink().getSSLEngine();
... | [
"private",
"SSLEngineResult",
"doHandshake",
"(",
"MyHandshakeCompletedCallback",
"hsCallback",
")",
"throws",
"IOException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
... | When a write is attempted, a first check is done to see if the SSL engine
needs to do a handshake. If so, this method will be called. Note, it is
used by both the sync and async writes.
@param hsCallback callback for use by async write, null for sync write
@return result of the handshake
@throws IOException | [
"When",
"a",
"write",
"is",
"attempted",
"a",
"first",
"check",
"is",
"done",
"to",
"see",
"if",
"the",
"SSL",
"engine",
"needs",
"to",
"do",
"a",
"handshake",
".",
"If",
"so",
"this",
"method",
"will",
"be",
"called",
".",
"Note",
"it",
"is",
"used"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLWriteServiceContext.java#L619-L678 |
69,897 | OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLWriteServiceContext.java | SSLWriteServiceContext.encryptMessage | private SSLEngineResult encryptMessage() throws IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "encryptMessage");
}
// Get the application buffer used as input to the encryption algorithm.
// Extract the app buffers containing d... | java | private SSLEngineResult encryptMessage() throws IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "encryptMessage");
}
// Get the application buffer used as input to the encryption algorithm.
// Extract the app buffers containing d... | [
"private",
"SSLEngineResult",
"encryptMessage",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"encryptMe... | Handle common activity of write and writeAsynch involving the encryption of the
current buffers. The caller will have the responsibility of writing them to the
device side channel.
@return SSLEngineResult
@throws IOException | [
"Handle",
"common",
"activity",
"of",
"write",
"and",
"writeAsynch",
"involving",
"the",
"encryption",
"of",
"the",
"current",
"buffers",
".",
"The",
"caller",
"will",
"have",
"the",
"responsibility",
"of",
"writing",
"them",
"to",
"the",
"device",
"side",
"ch... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLWriteServiceContext.java#L688-L750 |
69,898 | OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLWriteServiceContext.java | SSLWriteServiceContext.increaseEncryptedBuffer | protected void increaseEncryptedBuffer() throws IOException {
final int packetSize = getConnLink().getPacketBufferSize();
if (null == this.encryptedAppBuffer) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Allocating encryptedAppBuffer, siz... | java | protected void increaseEncryptedBuffer() throws IOException {
final int packetSize = getConnLink().getPacketBufferSize();
if (null == this.encryptedAppBuffer) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Allocating encryptedAppBuffer, siz... | [
"protected",
"void",
"increaseEncryptedBuffer",
"(",
")",
"throws",
"IOException",
"{",
"final",
"int",
"packetSize",
"=",
"getConnLink",
"(",
")",
".",
"getPacketBufferSize",
"(",
")",
";",
"if",
"(",
"null",
"==",
"this",
".",
"encryptedAppBuffer",
")",
"{",... | Reuse the buffers used to send data out to the network. If existing buffer
is available, grow the array by one.
@throws IOException - if allocation failed | [
"Reuse",
"the",
"buffers",
"used",
"to",
"send",
"data",
"out",
"to",
"the",
"network",
".",
"If",
"existing",
"buffer",
"is",
"available",
"grow",
"the",
"array",
"by",
"one",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLWriteServiceContext.java#L758-L787 |
69,899 | OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLWriteServiceContext.java | SSLWriteServiceContext.getEncryptedAppBuffer | private void getEncryptedAppBuffer(int requested_size) throws IOException {
final int size = Math.max(getConnLink().getPacketBufferSize(), requested_size);
synchronized (closeSync) {
if (closeCalled) {
IOException up = new IOException("Operation failed due to connection clo... | java | private void getEncryptedAppBuffer(int requested_size) throws IOException {
final int size = Math.max(getConnLink().getPacketBufferSize(), requested_size);
synchronized (closeSync) {
if (closeCalled) {
IOException up = new IOException("Operation failed due to connection clo... | [
"private",
"void",
"getEncryptedAppBuffer",
"(",
"int",
"requested_size",
")",
"throws",
"IOException",
"{",
"final",
"int",
"size",
"=",
"Math",
".",
"max",
"(",
"getConnLink",
"(",
")",
".",
"getPacketBufferSize",
"(",
")",
",",
"requested_size",
")",
";",
... | Make sure that an output buffer is ready for encryption use. This will always
allocate a minimum of the current SSLSession packet size.
@param requested_size | [
"Make",
"sure",
"that",
"an",
"output",
"buffer",
"is",
"ready",
"for",
"encryption",
"use",
".",
"This",
"will",
"always",
"allocate",
"a",
"minimum",
"of",
"the",
"current",
"SSLSession",
"packet",
"size",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLWriteServiceContext.java#L795-L822 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.