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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
66,400 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConnectionImpl.java | ConnectionImpl.checkDestinationAccess | private void checkDestinationAccess(DestinationHandler destination,
String destinationName,
String busName,
SecurityContext secContext)
throws SINotAuthorizedException
{
... | java | private void checkDestinationAccess(DestinationHandler destination,
String destinationName,
String busName,
SecurityContext secContext)
throws SINotAuthorizedException
{
... | [
"private",
"void",
"checkDestinationAccess",
"(",
"DestinationHandler",
"destination",
",",
"String",
"destinationName",
",",
"String",
"busName",
",",
"SecurityContext",
"secContext",
")",
"throws",
"SINotAuthorizedException",
"{",
"if",
"(",
"TraceComponent",
".",
"is... | Checks the authority of a producer to produce to a destination | [
"Checks",
"the",
"authority",
"of",
"a",
"producer",
"to",
"produce",
"to",
"a",
"destination"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConnectionImpl.java#L7331-L7369 |
66,401 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConnectionImpl.java | ConnectionImpl.getSubscription | @Override
public MPSubscription getSubscription(String subscriptionName)
throws SIDurableSubscriptionNotFoundException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"getSubscription",
... | java | @Override
public MPSubscription getSubscription(String subscriptionName)
throws SIDurableSubscriptionNotFoundException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"getSubscription",
... | [
"@",
"Override",
"public",
"MPSubscription",
"getSubscription",
"(",
"String",
"subscriptionName",
")",
"throws",
"SIDurableSubscriptionNotFoundException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
... | Retrieve the MPSubscription object that represents the named durable subscription
This function is only available on locally homed subscriptions | [
"Retrieve",
"the",
"MPSubscription",
"object",
"that",
"represents",
"the",
"named",
"durable",
"subscription"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConnectionImpl.java#L7376-L7415 |
66,402 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConnectionImpl.java | ConnectionImpl.deregisterConsumerSetMonitor | @Override
public void deregisterConsumerSetMonitor(
ConsumerSetChangeCallback callback)
throws SINotPossibleInCurrentConfigurationException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
... | java | @Override
public void deregisterConsumerSetMonitor(
ConsumerSetChangeCallback callback)
throws SINotPossibleInCurrentConfigurationException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
... | [
"@",
"Override",
"public",
"void",
"deregisterConsumerSetMonitor",
"(",
"ConsumerSetChangeCallback",
"callback",
")",
"throws",
"SINotPossibleInCurrentConfigurationException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntr... | Deregisters a previously registered callback. | [
"Deregisters",
"a",
"previously",
"registered",
"callback",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConnectionImpl.java#L7744-L7761 |
66,403 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConnectionImpl.java | ConnectionImpl.getConnectionProperties | public Map getConnectionProperties()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getConnectionProperties");
SibTr.exit(tc, "getConnectionProperties", _connectionProperties);
}
return _connectionProperties;
} | java | public Map getConnectionProperties()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getConnectionProperties");
SibTr.exit(tc, "getConnectionProperties", _connectionProperties);
}
return _connectionProperties;
} | [
"public",
"Map",
"getConnectionProperties",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getConnectionProperties\"",
")",
";... | Retrieve the properties associated with this connection. | [
"Retrieve",
"the",
"properties",
"associated",
"with",
"this",
"connection",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConnectionImpl.java#L7789-L7797 |
66,404 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConnectionImpl.java | ConnectionImpl.setConnectionProperties | public void setConnectionProperties(Map connectionProperties)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getConnectionProperties", connectionProperties);
SibTr.exit(tc, "getConnectionProperties");
}
_connectionPropert... | java | public void setConnectionProperties(Map connectionProperties)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getConnectionProperties", connectionProperties);
SibTr.exit(tc, "getConnectionProperties");
}
_connectionPropert... | [
"public",
"void",
"setConnectionProperties",
"(",
"Map",
"connectionProperties",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"get... | Set the properties associated with this connection. Supports Unittest environment. | [
"Set",
"the",
"properties",
"associated",
"with",
"this",
"connection",
".",
"Supports",
"Unittest",
"environment",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConnectionImpl.java#L7802-L7810 |
66,405 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/CHFWEventHandler.java | CHFWEventHandler.stopChain | private void stopChain(String name, Event event) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Stop chain event; chain=" + name);
}
ChannelFramework cf = ChannelFrameworkFactory.getChannelFramework();
try {
if (cf.isChainRunnin... | java | private void stopChain(String name, Event event) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Stop chain event; chain=" + name);
}
ChannelFramework cf = ChannelFrameworkFactory.getChannelFramework();
try {
if (cf.isChainRunnin... | [
"private",
"void",
"stopChain",
"(",
"String",
"name",
",",
"Event",
"event",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEventEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"event",
"(",
"tc",
",",
"\"Sto... | Stop the explicit chain provided.
@param name
@param event | [
"Stop",
"the",
"explicit",
"chain",
"provided",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/CHFWEventHandler.java#L90-L106 |
66,406 | OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/builder/WebServiceRefInfoBuilder.java | WebServiceRefInfoBuilder.buildPartialInfoFromWebServiceClient | private static WebServiceRefPartialInfo buildPartialInfoFromWebServiceClient(Class<?> serviceInterfaceClass) {
WebServiceClient webServiceClient = serviceInterfaceClass.getAnnotation(WebServiceClient.class);
if (webServiceClient == null) {
return null;
}
String className = s... | java | private static WebServiceRefPartialInfo buildPartialInfoFromWebServiceClient(Class<?> serviceInterfaceClass) {
WebServiceClient webServiceClient = serviceInterfaceClass.getAnnotation(WebServiceClient.class);
if (webServiceClient == null) {
return null;
}
String className = s... | [
"private",
"static",
"WebServiceRefPartialInfo",
"buildPartialInfoFromWebServiceClient",
"(",
"Class",
"<",
"?",
">",
"serviceInterfaceClass",
")",
"{",
"WebServiceClient",
"webServiceClient",
"=",
"serviceInterfaceClass",
".",
"getAnnotation",
"(",
"WebServiceClient",
".",
... | This method will build a ServiceRefPartialInfo object from a class with an
@WebServiceClient annotation. | [
"This",
"method",
"will",
"build",
"a",
"ServiceRefPartialInfo",
"object",
"from",
"a",
"class",
"with",
"an"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/builder/WebServiceRefInfoBuilder.java#L238-L258 |
66,407 | OpenLiberty/open-liberty | dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/ConfigurationList.java | ConfigurationList.collectElementsById | public Map<ConfigID, List<T>> collectElementsById(Map<ConfigID, List<T>> map, String defaultId, String pid) {
if (map == null) {
map = new HashMap<ConfigID, List<T>>();
}
int index = 0;
for (T configElement : configElements) {
String id = configElement.getId();
... | java | public Map<ConfigID, List<T>> collectElementsById(Map<ConfigID, List<T>> map, String defaultId, String pid) {
if (map == null) {
map = new HashMap<ConfigID, List<T>>();
}
int index = 0;
for (T configElement : configElements) {
String id = configElement.getId();
... | [
"public",
"Map",
"<",
"ConfigID",
",",
"List",
"<",
"T",
">",
">",
"collectElementsById",
"(",
"Map",
"<",
"ConfigID",
",",
"List",
"<",
"T",
">",
">",
"map",
",",
"String",
"defaultId",
",",
"String",
"pid",
")",
"{",
"if",
"(",
"map",
"==",
"null... | Collects elements into Lists based on their ID. If an ID is not specified, the defaultId will be used.
If the defaultId is null, an id will be generated.
@param map
@param defaultId
@return | [
"Collects",
"elements",
"into",
"Lists",
"based",
"on",
"their",
"ID",
".",
"If",
"an",
"ID",
"is",
"not",
"specified",
"the",
"defaultId",
"will",
"be",
"used",
".",
"If",
"the",
"defaultId",
"is",
"null",
"an",
"id",
"will",
"be",
"generated",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/ConfigurationList.java#L107-L135 |
66,408 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/ArrayUtil.java | ArrayUtil.readLong | public static long readLong(byte b[], int offset) {
long retValue;
retValue = ((long)b[offset++]) << 56;
retValue |= ((long)b[offset++] & 0xff) << 48;
retValue |= ((long)b[offset++] & 0xff) << 40;
retValue |= ((long)b[offset++] & 0xff) << 32;
retValue |= ((long)b[offset++] & 0xff) << 24;
re... | java | public static long readLong(byte b[], int offset) {
long retValue;
retValue = ((long)b[offset++]) << 56;
retValue |= ((long)b[offset++] & 0xff) << 48;
retValue |= ((long)b[offset++] & 0xff) << 40;
retValue |= ((long)b[offset++] & 0xff) << 32;
retValue |= ((long)b[offset++] & 0xff) << 24;
re... | [
"public",
"static",
"long",
"readLong",
"(",
"byte",
"b",
"[",
"]",
",",
"int",
"offset",
")",
"{",
"long",
"retValue",
";",
"retValue",
"=",
"(",
"(",
"long",
")",
"b",
"[",
"offset",
"++",
"]",
")",
"<<",
"56",
";",
"retValue",
"|=",
"(",
"(",
... | Unserializes a long from a byte array at a specific offset in big-endian order
@param b byte array from which to read a long value.
@param offset offset within byte array to start reading.
@return long read from byte array. | [
"Unserializes",
"a",
"long",
"from",
"a",
"byte",
"array",
"at",
"a",
"specific",
"offset",
"in",
"big",
"-",
"endian",
"order"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/ArrayUtil.java#L46-L59 |
66,409 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/ArrayUtil.java | ArrayUtil.writeLong | public static void writeLong(byte b[], int offset, long value) {
b[offset++] = (byte) (value >>> 56);
b[offset++] = (byte) (value >>> 48);
b[offset++] = (byte) (value >>> 40);
b[offset++] = (byte) (value >>> 32);
b[offset++] = (byte) (value >>> 24);
b[offset++] = (byte) (value >>> 16);
b[off... | java | public static void writeLong(byte b[], int offset, long value) {
b[offset++] = (byte) (value >>> 56);
b[offset++] = (byte) (value >>> 48);
b[offset++] = (byte) (value >>> 40);
b[offset++] = (byte) (value >>> 32);
b[offset++] = (byte) (value >>> 24);
b[offset++] = (byte) (value >>> 16);
b[off... | [
"public",
"static",
"void",
"writeLong",
"(",
"byte",
"b",
"[",
"]",
",",
"int",
"offset",
",",
"long",
"value",
")",
"{",
"b",
"[",
"offset",
"++",
"]",
"=",
"(",
"byte",
")",
"(",
"value",
">>>",
"56",
")",
";",
"b",
"[",
"offset",
"++",
"]",... | Serializes a long into a byte array at a specific offset in big-endian order
@param b byte array in which to write a long value.
@param offset offset within byte array to start writing.
@param value long to write to byte array. | [
"Serializes",
"a",
"long",
"into",
"a",
"byte",
"array",
"at",
"a",
"specific",
"offset",
"in",
"big",
"-",
"endian",
"order"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/ArrayUtil.java#L68-L77 |
66,410 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/ArrayUtil.java | ArrayUtil.readInt | public static int readInt(byte b[], int offset) {
int retValue;
retValue = ((int)b[offset++]) << 24;
retValue |= ((int)b[offset++] & 0xff) << 16;
retValue |= ((int)b[offset++] & 0xff) << 8;
retValue |= (int)b[offset] & 0xff;
return retValue;
} | java | public static int readInt(byte b[], int offset) {
int retValue;
retValue = ((int)b[offset++]) << 24;
retValue |= ((int)b[offset++] & 0xff) << 16;
retValue |= ((int)b[offset++] & 0xff) << 8;
retValue |= (int)b[offset] & 0xff;
return retValue;
} | [
"public",
"static",
"int",
"readInt",
"(",
"byte",
"b",
"[",
"]",
",",
"int",
"offset",
")",
"{",
"int",
"retValue",
";",
"retValue",
"=",
"(",
"(",
"int",
")",
"b",
"[",
"offset",
"++",
"]",
")",
"<<",
"24",
";",
"retValue",
"|=",
"(",
"(",
"i... | Unserializes an int from a byte array at a specific offset in big-endian order
@param b byte array from which to read an int value.
@param offset offset within byte array to start reading.
@return int read from byte array. | [
"Unserializes",
"an",
"int",
"from",
"a",
"byte",
"array",
"at",
"a",
"specific",
"offset",
"in",
"big",
"-",
"endian",
"order"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/ArrayUtil.java#L86-L95 |
66,411 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/ArrayUtil.java | ArrayUtil.writeInt | public static void writeInt(byte[] b, int offset, int value) {
b[offset++] = (byte) (value >>> 24);
b[offset++] = (byte) (value >>> 16);
b[offset++] = (byte) (value >>> 8);
b[offset] = (byte)value;
} | java | public static void writeInt(byte[] b, int offset, int value) {
b[offset++] = (byte) (value >>> 24);
b[offset++] = (byte) (value >>> 16);
b[offset++] = (byte) (value >>> 8);
b[offset] = (byte)value;
} | [
"public",
"static",
"void",
"writeInt",
"(",
"byte",
"[",
"]",
"b",
",",
"int",
"offset",
",",
"int",
"value",
")",
"{",
"b",
"[",
"offset",
"++",
"]",
"=",
"(",
"byte",
")",
"(",
"value",
">>>",
"24",
")",
";",
"b",
"[",
"offset",
"++",
"]",
... | Serializes an int into a byte array at a specific offset in big-endian order
@param b byte array in which to write an int value.
@param offset offset within byte array to start writing.
@param value int to write to byte array. | [
"Serializes",
"an",
"int",
"into",
"a",
"byte",
"array",
"at",
"a",
"specific",
"offset",
"in",
"big",
"-",
"endian",
"order"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/ArrayUtil.java#L104-L109 |
66,412 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/ArrayUtil.java | ArrayUtil.readShort | public static short readShort(byte b[], int offset) {
int retValue;
retValue = b[offset++] << 8;
retValue |= b[offset] & 0xff;
return (short)retValue;
} | java | public static short readShort(byte b[], int offset) {
int retValue;
retValue = b[offset++] << 8;
retValue |= b[offset] & 0xff;
return (short)retValue;
} | [
"public",
"static",
"short",
"readShort",
"(",
"byte",
"b",
"[",
"]",
",",
"int",
"offset",
")",
"{",
"int",
"retValue",
";",
"retValue",
"=",
"b",
"[",
"offset",
"++",
"]",
"<<",
"8",
";",
"retValue",
"|=",
"b",
"[",
"offset",
"]",
"&",
"0xff",
... | Unserializes a short from a byte array at a specific offset in big-endian order
@param b byte array from which to read a short value.
@param offset offset within byte array to start reading.
@return short read from byte array. | [
"Unserializes",
"a",
"short",
"from",
"a",
"byte",
"array",
"at",
"a",
"specific",
"offset",
"in",
"big",
"-",
"endian",
"order"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/ArrayUtil.java#L118-L125 |
66,413 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/ArrayUtil.java | ArrayUtil.writeShort | public static void writeShort(byte b[], int offset, short value) {
b[offset++] = (byte) (value >>> 8);
b[offset] = (byte)value;
} | java | public static void writeShort(byte b[], int offset, short value) {
b[offset++] = (byte) (value >>> 8);
b[offset] = (byte)value;
} | [
"public",
"static",
"void",
"writeShort",
"(",
"byte",
"b",
"[",
"]",
",",
"int",
"offset",
",",
"short",
"value",
")",
"{",
"b",
"[",
"offset",
"++",
"]",
"=",
"(",
"byte",
")",
"(",
"value",
">>>",
"8",
")",
";",
"b",
"[",
"offset",
"]",
"=",... | Serializes a short into a byte array at a specific offset in big-endian order
@param b byte array in which to write a short value.
@param offset offset within byte array to start writing.
@param value short to write to byte array. | [
"Serializes",
"a",
"short",
"into",
"a",
"byte",
"array",
"at",
"a",
"specific",
"offset",
"in",
"big",
"-",
"endian",
"order"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/util/ArrayUtil.java#L134-L137 |
66,414 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.javaeesec_fat/fat/src/com/ibm/ws/security/javaeesec/fat_helper/SSLHelper.java | SSLHelper.establishSSLContext | public static void establishSSLContext(HttpClient client, int port, LibertyServer server) {
establishSSLContext(client, port, server, null, null, null, null, "TLSv1.2");
} | java | public static void establishSSLContext(HttpClient client, int port, LibertyServer server) {
establishSSLContext(client, port, server, null, null, null, null, "TLSv1.2");
} | [
"public",
"static",
"void",
"establishSSLContext",
"(",
"HttpClient",
"client",
",",
"int",
"port",
",",
"LibertyServer",
"server",
")",
"{",
"establishSSLContext",
"(",
"client",
",",
"port",
",",
"server",
",",
"null",
",",
"null",
",",
"null",
",",
"null"... | Adds an SSL context to the HttpClient. No trust or client certificate is
established and a trust-all policy is assumed.
@param client the HttpClient
@param port SSL port
@param server the LibertyServer | [
"Adds",
"an",
"SSL",
"context",
"to",
"the",
"HttpClient",
".",
"No",
"trust",
"or",
"client",
"certificate",
"is",
"established",
"and",
"a",
"trust",
"-",
"all",
"policy",
"is",
"assumed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.javaeesec_fat/fat/src/com/ibm/ws/security/javaeesec/fat_helper/SSLHelper.java#L48-L50 |
66,415 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/util/EventListeners.java | EventListeners.fireEvent | public final void fireEvent(EventObject evt, EventListenerV visitor){
EventListener[] list = getListenerArray();
for(int i=0; i<list.length; i++){
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE))
logger.logp(Level.FINE, CLASS_NAME,"fireEvent", ... | java | public final void fireEvent(EventObject evt, EventListenerV visitor){
EventListener[] list = getListenerArray();
for(int i=0; i<list.length; i++){
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE))
logger.logp(Level.FINE, CLASS_NAME,"fireEvent", ... | [
"public",
"final",
"void",
"fireEvent",
"(",
"EventObject",
"evt",
",",
"EventListenerV",
"visitor",
")",
"{",
"EventListener",
"[",
"]",
"list",
"=",
"getListenerArray",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"list",
".",
"len... | Fire the event to all listeners by allowing the visitor
to visit each listener. The visitor is responsible for
implementing the actual firing of the event to each listener. | [
"Fire",
"the",
"event",
"to",
"all",
"listeners",
"by",
"allowing",
"the",
"visitor",
"to",
"visit",
"each",
"listener",
".",
"The",
"visitor",
"is",
"responsible",
"for",
"implementing",
"the",
"actual",
"firing",
"of",
"the",
"event",
"to",
"each",
"listen... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/util/EventListeners.java#L52-L59 |
66,416 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/util/EventListeners.java | EventListeners.addListener | public final synchronized void addListener(EventListener l) {
if(l ==null) {
throw new IllegalArgumentException("Listener " + l +
" is null");
}
if(listeners == EMPTY_LISTENERS) {
listeners = new EventListener[1];
... | java | public final synchronized void addListener(EventListener l) {
if(l ==null) {
throw new IllegalArgumentException("Listener " + l +
" is null");
}
if(listeners == EMPTY_LISTENERS) {
listeners = new EventListener[1];
... | [
"public",
"final",
"synchronized",
"void",
"addListener",
"(",
"EventListener",
"l",
")",
"{",
"if",
"(",
"l",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Listener \"",
"+",
"l",
"+",
"\" is null\"",
")",
";",
"}",
"if",
"("... | Add the listener as a listener to the list.
@param l the listener to be added | [
"Add",
"the",
"listener",
"as",
"a",
"listener",
"to",
"the",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/util/EventListeners.java#L72-L89 |
66,417 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/util/EventListeners.java | EventListeners.removeListener | public final synchronized void removeListener(EventListener l) {
if(l ==null) {
throw new IllegalArgumentException("Listener " + l +
" is null");
}
// Is l on the list?
int index = -1;
for(int i = listeners.length-1; i>=... | java | public final synchronized void removeListener(EventListener l) {
if(l ==null) {
throw new IllegalArgumentException("Listener " + l +
" is null");
}
// Is l on the list?
int index = -1;
for(int i = listeners.length-1; i>=... | [
"public",
"final",
"synchronized",
"void",
"removeListener",
"(",
"EventListener",
"l",
")",
"{",
"if",
"(",
"l",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Listener \"",
"+",
"l",
"+",
"\" is null\"",
")",
";",
"}",
"// Is l... | Remove the listener.
@param l the listener to be removed | [
"Remove",
"the",
"listener",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/util/EventListeners.java#L95-L124 |
66,418 | OpenLiberty/open-liberty | dev/com.ibm.ws.org.apache.cxf.cxf.core.3.2/src/org/apache/cxf/common/util/ProxyHelper.java | ProxyHelper.getClassLoaderForInterfaces | private ClassLoader getClassLoaderForInterfaces(final ClassLoader loader, final Class<?>[] interfaces) {
if (canSeeAllInterfaces(loader, interfaces)) {
LOG.log(Level.FINE, "current classloader " + loader + " can see all interface");
return loader;
}
String sortedNameFromI... | java | private ClassLoader getClassLoaderForInterfaces(final ClassLoader loader, final Class<?>[] interfaces) {
if (canSeeAllInterfaces(loader, interfaces)) {
LOG.log(Level.FINE, "current classloader " + loader + " can see all interface");
return loader;
}
String sortedNameFromI... | [
"private",
"ClassLoader",
"getClassLoaderForInterfaces",
"(",
"final",
"ClassLoader",
"loader",
",",
"final",
"Class",
"<",
"?",
">",
"[",
"]",
"interfaces",
")",
"{",
"if",
"(",
"canSeeAllInterfaces",
"(",
"loader",
",",
"interfaces",
")",
")",
"{",
"LOG",
... | Return a classloader that can see all the given interfaces If the given loader can see all interfaces
then it is used. If not then a combined classloader of all interface classloaders is returned.
@param loader use supplied class loader
@param interfaces
@return classloader that sees all interfaces | [
"Return",
"a",
"classloader",
"that",
"can",
"see",
"all",
"the",
"given",
"interfaces",
"If",
"the",
"given",
"loader",
"can",
"see",
"all",
"interfaces",
"then",
"it",
"is",
"used",
".",
"If",
"not",
"then",
"a",
"combined",
"classloader",
"of",
"all",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.core.3.2/src/org/apache/cxf/common/util/ProxyHelper.java#L61-L89 |
66,419 | OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.jsf.2.3/src/javax/faces/application/Application.java | Application.getMyfacesApplicationInstance | private Application getMyfacesApplicationInstance()
{
FacesContext facesContext = FacesContext.getCurrentInstance();
if (facesContext != null)
{
ExternalContext externalContext = facesContext.getExternalContext();
if (externalContext != null)
{
... | java | private Application getMyfacesApplicationInstance()
{
FacesContext facesContext = FacesContext.getCurrentInstance();
if (facesContext != null)
{
ExternalContext externalContext = facesContext.getExternalContext();
if (externalContext != null)
{
... | [
"private",
"Application",
"getMyfacesApplicationInstance",
"(",
")",
"{",
"FacesContext",
"facesContext",
"=",
"FacesContext",
".",
"getCurrentInstance",
"(",
")",
";",
"if",
"(",
"facesContext",
"!=",
"null",
")",
"{",
"ExternalContext",
"externalContext",
"=",
"fa... | Retrieve the current Myfaces Application Instance, lookup
on the application map. All methods introduced on jsf 1.2
for Application interface should thrown by default
UnsupportedOperationException, but the ri scan and find the
original Application impl, and redirect the call to that
method instead throwing it, allowing... | [
"Retrieve",
"the",
"current",
"Myfaces",
"Application",
"Instance",
"lookup",
"on",
"the",
"application",
"map",
".",
"All",
"methods",
"introduced",
"on",
"jsf",
"1",
".",
"2",
"for",
"Application",
"interface",
"should",
"thrown",
"by",
"default",
"Unsupported... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.3/src/javax/faces/application/Application.java#L94-L107 |
66,420 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelBootstrap.java | KernelBootstrap.buildClassLoader | protected ClassLoader buildClassLoader(final List<URL> urlList, String verifyJarProperty) {
if (libertyBoot) {
// for liberty boot we just use the class loader that loaded this class
return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
@Override
... | java | protected ClassLoader buildClassLoader(final List<URL> urlList, String verifyJarProperty) {
if (libertyBoot) {
// for liberty boot we just use the class loader that loaded this class
return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
@Override
... | [
"protected",
"ClassLoader",
"buildClassLoader",
"(",
"final",
"List",
"<",
"URL",
">",
"urlList",
",",
"String",
"verifyJarProperty",
")",
"{",
"if",
"(",
"libertyBoot",
")",
"{",
"// for liberty boot we just use the class loader that loaded this class",
"return",
"Access... | Build the nested classloader containing the OSGi framework, and the log provider.
@param urlList
@param verifyJarProperty
@return | [
"Build",
"the",
"nested",
"classloader",
"containing",
"the",
"OSGi",
"framework",
"and",
"the",
"log",
"provider",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelBootstrap.java#L379-L422 |
66,421 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelBootstrap.java | KernelBootstrap.enableJava2SecurityIfSet | public static void enableJava2SecurityIfSet(BootstrapConfig bootProps, List<URL> urlList) {
if (bootProps.get(BootstrapConstants.JAVA_2_SECURITY_PROPERTY) != null) {
NameBasedLocalBundleRepository repo = new NameBasedLocalBundleRepository(bootProps.getInstallRoot());
urlList.add(getJarF... | java | public static void enableJava2SecurityIfSet(BootstrapConfig bootProps, List<URL> urlList) {
if (bootProps.get(BootstrapConstants.JAVA_2_SECURITY_PROPERTY) != null) {
NameBasedLocalBundleRepository repo = new NameBasedLocalBundleRepository(bootProps.getInstallRoot());
urlList.add(getJarF... | [
"public",
"static",
"void",
"enableJava2SecurityIfSet",
"(",
"BootstrapConfig",
"bootProps",
",",
"List",
"<",
"URL",
">",
"urlList",
")",
"{",
"if",
"(",
"bootProps",
".",
"get",
"(",
"BootstrapConstants",
".",
"JAVA_2_SECURITY_PROPERTY",
")",
"!=",
"null",
")"... | Set Java 2 Security if enabled | [
"Set",
"Java",
"2",
"Security",
"if",
"enabled"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelBootstrap.java#L427-L440 |
66,422 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelBootstrap.java | KernelBootstrap.getProductInfoDisplayName | protected static String getProductInfoDisplayName() {
String result = null;
try {
Map<String, ProductInfo> products = ProductInfo.getAllProductInfo();
StringBuilder builder = new StringBuilder();
for (ProductInfo productInfo : products.values()) {
Prod... | java | protected static String getProductInfoDisplayName() {
String result = null;
try {
Map<String, ProductInfo> products = ProductInfo.getAllProductInfo();
StringBuilder builder = new StringBuilder();
for (ProductInfo productInfo : products.values()) {
Prod... | [
"protected",
"static",
"String",
"getProductInfoDisplayName",
"(",
")",
"{",
"String",
"result",
"=",
"null",
";",
"try",
"{",
"Map",
"<",
"String",
",",
"ProductInfo",
">",
"products",
"=",
"ProductInfo",
".",
"getAllProductInfo",
"(",
")",
";",
"StringBuilde... | Return a display name for the currently running server. | [
"Return",
"a",
"display",
"name",
"for",
"the",
"currently",
"running",
"server",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelBootstrap.java#L641-L664 |
66,423 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelBootstrap.java | KernelBootstrap.getInstrumentation | protected Instrumentation getInstrumentation() {
ClassLoader cl = ClassLoader.getSystemClassLoader();
Instrumentation i = findInstrumentation(cl, "com.ibm.ws.kernel.instrument.BootstrapAgent");
if (i == null)
i = findInstrumentation(cl, "wlp.lib.extract.agent.BootstrapAgent");
... | java | protected Instrumentation getInstrumentation() {
ClassLoader cl = ClassLoader.getSystemClassLoader();
Instrumentation i = findInstrumentation(cl, "com.ibm.ws.kernel.instrument.BootstrapAgent");
if (i == null)
i = findInstrumentation(cl, "wlp.lib.extract.agent.BootstrapAgent");
... | [
"protected",
"Instrumentation",
"getInstrumentation",
"(",
")",
"{",
"ClassLoader",
"cl",
"=",
"ClassLoader",
".",
"getSystemClassLoader",
"(",
")",
";",
"Instrumentation",
"i",
"=",
"findInstrumentation",
"(",
"cl",
",",
"\"com.ibm.ws.kernel.instrument.BootstrapAgent\"",... | Fetch the BootstrapAgent instrumentation instance from the BootstrapAgent
in the system classloader.
@return Instrumentation instance initialized by the Launcher, may be null. | [
"Fetch",
"the",
"BootstrapAgent",
"instrumentation",
"instance",
"from",
"the",
"BootstrapAgent",
"in",
"the",
"system",
"classloader",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelBootstrap.java#L679-L685 |
66,424 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/configuration/JspConfiguration.java | JspConfiguration.createClonedJspConfiguration | public JspConfiguration createClonedJspConfiguration() {
return new JspConfiguration(configManager, this.getServletVersion(), this.jspVersion, this.isXml, this.isXmlSpecified, this.elIgnored, this.scriptingInvalid(), this.isTrimDirectiveWhitespaces(), this.isDeferredSyntaxAllowedAsLiteral(), this.getTrimDirecti... | java | public JspConfiguration createClonedJspConfiguration() {
return new JspConfiguration(configManager, this.getServletVersion(), this.jspVersion, this.isXml, this.isXmlSpecified, this.elIgnored, this.scriptingInvalid(), this.isTrimDirectiveWhitespaces(), this.isDeferredSyntaxAllowedAsLiteral(), this.getTrimDirecti... | [
"public",
"JspConfiguration",
"createClonedJspConfiguration",
"(",
")",
"{",
"return",
"new",
"JspConfiguration",
"(",
"configManager",
",",
"this",
".",
"getServletVersion",
"(",
")",
",",
"this",
".",
"jspVersion",
",",
"this",
".",
"isXml",
",",
"this",
".",
... | This method is used for creating a configuration for a tag file. The tag file may want to override some properties if it's jsp version in the tld is different than the server version | [
"This",
"method",
"is",
"used",
"for",
"creating",
"a",
"configuration",
"for",
"a",
"tag",
"file",
".",
"The",
"tag",
"file",
"may",
"want",
"to",
"override",
"some",
"properties",
"if",
"it",
"s",
"jsp",
"version",
"in",
"the",
"tld",
"is",
"different"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/configuration/JspConfiguration.java#L118-L120 |
66,425 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/configuration/JspConfiguration.java | JspConfiguration.getExpressionFactory | public ExpressionFactory getExpressionFactory() {
// lazy init here, sync to avoid race condition
synchronized(this) {
if (expressionFactory == null) {
expressionFactory = ExpressionFactory.newInstance();
}
}
//allow JCDI to w... | java | public ExpressionFactory getExpressionFactory() {
// lazy init here, sync to avoid race condition
synchronized(this) {
if (expressionFactory == null) {
expressionFactory = ExpressionFactory.newInstance();
}
}
//allow JCDI to w... | [
"public",
"ExpressionFactory",
"getExpressionFactory",
"(",
")",
"{",
"// lazy init here, sync to avoid race condition",
"synchronized",
"(",
"this",
")",
"{",
"if",
"(",
"expressionFactory",
"==",
"null",
")",
"{",
"expressionFactory",
"=",
"ExpressionFactory",
".",
"n... | LIDB4147-9 Begin | [
"LIDB4147",
"-",
"9",
"Begin"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/configuration/JspConfiguration.java#L283-L308 |
66,426 | OpenLiberty/open-liberty | dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/ClassInfoCache.java | ClassInfoCache.getDelayableClassInfo | protected ClassInfoImpl getDelayableClassInfo(Type type) {
String typeClassName = type.getClassName();
if (tc.isDebugEnabled()) {
// Type 'toString' answers the descriptor;
// show the type class name, too, for clarity.
Tr.debug(tc, MessageFormat.format("[ {0} ] ENT... | java | protected ClassInfoImpl getDelayableClassInfo(Type type) {
String typeClassName = type.getClassName();
if (tc.isDebugEnabled()) {
// Type 'toString' answers the descriptor;
// show the type class name, too, for clarity.
Tr.debug(tc, MessageFormat.format("[ {0} ] ENT... | [
"protected",
"ClassInfoImpl",
"getDelayableClassInfo",
"(",
"Type",
"type",
")",
"{",
"String",
"typeClassName",
"=",
"type",
".",
"getClassName",
"(",
")",
";",
"if",
"(",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"// Type 'toString' answers the descriptor... | For array types, the previous implementation used the element name. | [
"For",
"array",
"types",
"the",
"previous",
"implementation",
"used",
"the",
"element",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/ClassInfoCache.java#L335-L386 |
66,427 | OpenLiberty/open-liberty | dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/ClassInfoCache.java | ClassInfoCache.getArrayClassInfo | public ArrayClassInfo getArrayClassInfo(String typeClassName, Type arrayType) {
ClassInfoImpl elementClassInfo = getDelayableClassInfo(arrayType.getElementType());
return new ArrayClassInfo(typeClassName, elementClassInfo);
} | java | public ArrayClassInfo getArrayClassInfo(String typeClassName, Type arrayType) {
ClassInfoImpl elementClassInfo = getDelayableClassInfo(arrayType.getElementType());
return new ArrayClassInfo(typeClassName, elementClassInfo);
} | [
"public",
"ArrayClassInfo",
"getArrayClassInfo",
"(",
"String",
"typeClassName",
",",
"Type",
"arrayType",
")",
"{",
"ClassInfoImpl",
"elementClassInfo",
"=",
"getDelayableClassInfo",
"(",
"arrayType",
".",
"getElementType",
"(",
")",
")",
";",
"return",
"new",
"Arr... | Note that this will recurse as long as the element type is still an array type. | [
"Note",
"that",
"this",
"will",
"recurse",
"as",
"long",
"as",
"the",
"element",
"type",
"is",
"still",
"an",
"array",
"type",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/ClassInfoCache.java#L394-L398 |
66,428 | OpenLiberty/open-liberty | dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/ClassInfoCache.java | ClassInfoCache.addClassInfo | protected boolean addClassInfo(NonDelayedClassInfo classInfo) {
boolean didAdd;
if (classInfo.isJavaClass()) {
didAdd = basicPutJavaClassInfo(classInfo);
} else if (classInfo.isAnnotationPresent() ||
classInfo.isFieldAnnotationPresent() ||
clas... | java | protected boolean addClassInfo(NonDelayedClassInfo classInfo) {
boolean didAdd;
if (classInfo.isJavaClass()) {
didAdd = basicPutJavaClassInfo(classInfo);
} else if (classInfo.isAnnotationPresent() ||
classInfo.isFieldAnnotationPresent() ||
clas... | [
"protected",
"boolean",
"addClassInfo",
"(",
"NonDelayedClassInfo",
"classInfo",
")",
"{",
"boolean",
"didAdd",
";",
"if",
"(",
"classInfo",
".",
"isJavaClass",
"(",
")",
")",
"{",
"didAdd",
"=",
"basicPutJavaClassInfo",
"(",
"classInfo",
")",
";",
"}",
"else"... | Do update the LRU state. | [
"Do",
"update",
"the",
"LRU",
"state",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/ClassInfoCache.java#L943-L977 |
66,429 | OpenLiberty/open-liberty | dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/ClassInfoCache.java | ClassInfoCache.addAsFirst | protected void addAsFirst(NonDelayedClassInfo classInfo) {
String methodName = "addAsFirst";
boolean doLog = tc.isDebugEnabled();
String useHashText = (doLog ? getHashText() : null);
String useClassHashText = (doLog ? classInfo.getHashText() : null);
if (doLog) {
log... | java | protected void addAsFirst(NonDelayedClassInfo classInfo) {
String methodName = "addAsFirst";
boolean doLog = tc.isDebugEnabled();
String useHashText = (doLog ? getHashText() : null);
String useClassHashText = (doLog ? classInfo.getHashText() : null);
if (doLog) {
log... | [
"protected",
"void",
"addAsFirst",
"(",
"NonDelayedClassInfo",
"classInfo",
")",
"{",
"String",
"methodName",
"=",
"\"addAsFirst\"",
";",
"boolean",
"doLog",
"=",
"tc",
".",
"isDebugEnabled",
"(",
")",
";",
"String",
"useHashText",
"=",
"(",
"doLog",
"?",
"get... | put us over the maximum size, trim off the last element. | [
"put",
"us",
"over",
"the",
"maximum",
"size",
"trim",
"off",
"the",
"last",
"element",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/ClassInfoCache.java#L1154-L1247 |
66,430 | OpenLiberty/open-liberty | dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/ClassInfoCache.java | ClassInfoCache.makeFirst | public void makeFirst(NonDelayedClassInfo classInfo) {
String methodName = "makeFirst";
boolean doLog = tc.isDebugEnabled();
String useHashText = (doLog ? getHashText() : null);
String useClassHashText = (doLog ? classInfo.getHashText() : null);
if (doLog) {
logLinks... | java | public void makeFirst(NonDelayedClassInfo classInfo) {
String methodName = "makeFirst";
boolean doLog = tc.isDebugEnabled();
String useHashText = (doLog ? getHashText() : null);
String useClassHashText = (doLog ? classInfo.getHashText() : null);
if (doLog) {
logLinks... | [
"public",
"void",
"makeFirst",
"(",
"NonDelayedClassInfo",
"classInfo",
")",
"{",
"String",
"methodName",
"=",
"\"makeFirst\"",
";",
"boolean",
"doLog",
"=",
"tc",
".",
"isDebugEnabled",
"(",
")",
";",
"String",
"useHashText",
"=",
"(",
"doLog",
"?",
"getHashT... | The class info is last, or the class info is somewhere in the middle. | [
"The",
"class",
"info",
"is",
"last",
"or",
"the",
"class",
"info",
"is",
"somewhere",
"in",
"the",
"middle",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/ClassInfoCache.java#L1255-L1316 |
66,431 | OpenLiberty/open-liberty | dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileEntry.java | ZipFileEntry.getResource | @Override
@FFDCIgnore(MalformedURLException.class)
public URL getResource() {
String useRelPath = getRelativePath();
if ( (zipEntryData == null) || zipEntryData.isDirectory() ) {
useRelPath += "/";
}
URI entryUri = rootContainer.createEntryUri(useRelPath);
i... | java | @Override
@FFDCIgnore(MalformedURLException.class)
public URL getResource() {
String useRelPath = getRelativePath();
if ( (zipEntryData == null) || zipEntryData.isDirectory() ) {
useRelPath += "/";
}
URI entryUri = rootContainer.createEntryUri(useRelPath);
i... | [
"@",
"Override",
"@",
"FFDCIgnore",
"(",
"MalformedURLException",
".",
"class",
")",
"public",
"URL",
"getResource",
"(",
")",
"{",
"String",
"useRelPath",
"=",
"getRelativePath",
"(",
")",
";",
"if",
"(",
"(",
"zipEntryData",
"==",
"null",
")",
"||",
"zip... | Answer the URL of this entry.
Directory type entries have a trailing "/". That is required by
{@link ClassLoader#getResource(String)}.
Answer null if a malformed URL is obtained.
@return The URL for this entry. | [
"Answer",
"the",
"URL",
"of",
"this",
"entry",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileEntry.java#L124-L155 |
66,432 | OpenLiberty/open-liberty | dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileEntry.java | ZipFileEntry.getInputStream | @Override
public InputStream getInputStream() throws IOException {
if ( (zipEntryData == null) || zipEntryData.isDirectory() ) {
return null;
}
final ZipFileHandle zipFileHandle = rootContainer.getZipFileHandle(); // throws IOException
ZipFile zipFile = zipFileHandle.op... | java | @Override
public InputStream getInputStream() throws IOException {
if ( (zipEntryData == null) || zipEntryData.isDirectory() ) {
return null;
}
final ZipFileHandle zipFileHandle = rootContainer.getZipFileHandle(); // throws IOException
ZipFile zipFile = zipFileHandle.op... | [
"@",
"Override",
"public",
"InputStream",
"getInputStream",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"(",
"zipEntryData",
"==",
"null",
")",
"||",
"zipEntryData",
".",
"isDirectory",
"(",
")",
")",
"{",
"return",
"null",
";",
"}",
"final",
"ZipFi... | Obtain an input stream for the entry.
Answer null for directory entries. That is, when the zip entry is not
available and when the zip entry is a directory entry.
The input stream which is obtained should be closed as soon as possible
following use.
@return An input stream for the entry. | [
"Obtain",
"an",
"input",
"stream",
"for",
"the",
"entry",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileEntry.java#L168-L283 |
66,433 | OpenLiberty/open-liberty | dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileEntry.java | ZipFileEntry.getEnclosingContainer | @Override
public ArtifactContainer getEnclosingContainer() {
// The enclosing container may be set when the entry is
// created, in which case the enclosing container lock is null
// and is never needed.
//
// The entry can be created in these ways:
//
// ZipF... | java | @Override
public ArtifactContainer getEnclosingContainer() {
// The enclosing container may be set when the entry is
// created, in which case the enclosing container lock is null
// and is never needed.
//
// The entry can be created in these ways:
//
// ZipF... | [
"@",
"Override",
"public",
"ArtifactContainer",
"getEnclosingContainer",
"(",
")",
"{",
"// The enclosing container may be set when the entry is",
"// created, in which case the enclosing container lock is null",
"// and is never needed.",
"//",
"// The entry can be created in these ways:",
... | Answer the enclosing container of this entry.
Obtaining the enclosing container is expensive. The implementation
works very hard to avoid having to obtain the enclosing container.
First, the zip entry is created with the enclosing container when
the container is already available. Second, the implementation only
ask... | [
"Answer",
"the",
"enclosing",
"container",
"of",
"this",
"entry",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileEntry.java#L392-L467 |
66,434 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/Normalizer.java | Normalizer.normalize | public char normalize(char currentChar) {
if (NORMALIZE_UPPER == getNormalization()) {
return toUpper(currentChar);
}
if (NORMALIZE_LOWER == getNormalization()) {
return toLower(currentChar);
}
return currentChar;
} | java | public char normalize(char currentChar) {
if (NORMALIZE_UPPER == getNormalization()) {
return toUpper(currentChar);
}
if (NORMALIZE_LOWER == getNormalization()) {
return toLower(currentChar);
}
return currentChar;
} | [
"public",
"char",
"normalize",
"(",
"char",
"currentChar",
")",
"{",
"if",
"(",
"NORMALIZE_UPPER",
"==",
"getNormalization",
"(",
")",
")",
"{",
"return",
"toUpper",
"(",
"currentChar",
")",
";",
"}",
"if",
"(",
"NORMALIZE_LOWER",
"==",
"getNormalization",
"... | Take the input character and normalize based on this normalizer instance.
@param currentChar
@return char (normalized based on settings) | [
"Take",
"the",
"input",
"character",
"and",
"normalize",
"based",
"on",
"this",
"normalizer",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/Normalizer.java#L112-L120 |
66,435 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/Normalizer.java | Normalizer.normalize | static public char normalize(char input, int format) {
if (NORMALIZE_LOWER == format) {
return toLower(input);
}
if (NORMALIZE_UPPER == format) {
return toUpper(input);
}
return input;
} | java | static public char normalize(char input, int format) {
if (NORMALIZE_LOWER == format) {
return toLower(input);
}
if (NORMALIZE_UPPER == format) {
return toUpper(input);
}
return input;
} | [
"static",
"public",
"char",
"normalize",
"(",
"char",
"input",
",",
"int",
"format",
")",
"{",
"if",
"(",
"NORMALIZE_LOWER",
"==",
"format",
")",
"{",
"return",
"toLower",
"(",
"input",
")",
";",
"}",
"if",
"(",
"NORMALIZE_UPPER",
"==",
"format",
")",
... | Take the input character and normalize based on the input format.
@param input
@param format
@return normalized character. | [
"Take",
"the",
"input",
"character",
"and",
"normalize",
"based",
"on",
"the",
"input",
"format",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/Normalizer.java#L184-L192 |
66,436 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/filter/FilterInstanceWrapper.java | FilterInstanceWrapper.init | public void init(IFilterConfig filterConfig) throws ServletException
{
try
{
// init the filter instance
_filterState = FILTER_STATE_INITIALIZING;
// LIDB-3598: begin
this._filterConfig = filterConfig;
if(_eventSource != null && _eventSource.hasFilter... | java | public void init(IFilterConfig filterConfig) throws ServletException
{
try
{
// init the filter instance
_filterState = FILTER_STATE_INITIALIZING;
// LIDB-3598: begin
this._filterConfig = filterConfig;
if(_eventSource != null && _eventSource.hasFilter... | [
"public",
"void",
"init",
"(",
"IFilterConfig",
"filterConfig",
")",
"throws",
"ServletException",
"{",
"try",
"{",
"// init the filter instance",
"_filterState",
"=",
"FILTER_STATE_INITIALIZING",
";",
"// LIDB-3598: begin",
"this",
".",
"_filterConfig",
"=",
"filterConfi... | Initializes the filter wrapper and the underlying filter instance
@param fConfig - the filter config object for this filter instance | [
"Initializes",
"the",
"filter",
"wrapper",
"and",
"the",
"underlying",
"filter",
"instance"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/filter/FilterInstanceWrapper.java#L124-L160 |
66,437 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/filter/FilterInstanceWrapper.java | FilterInstanceWrapper.destroy | public void destroy() throws ServletException
{
try
{
// destroy the filter instance
_filterState = FILTER_STATE_DESTROYING;
for (int i = 0;(nServicing.get() > 0) && i < 60; i++) {
try {
if (i == 0)
{
logger.logp(Level.INFO, CLASS_NAME,"des... | java | public void destroy() throws ServletException
{
try
{
// destroy the filter instance
_filterState = FILTER_STATE_DESTROYING;
for (int i = 0;(nServicing.get() > 0) && i < 60; i++) {
try {
if (i == 0)
{
logger.logp(Level.INFO, CLASS_NAME,"des... | [
"public",
"void",
"destroy",
"(",
")",
"throws",
"ServletException",
"{",
"try",
"{",
"// destroy the filter instance",
"_filterState",
"=",
"FILTER_STATE_DESTROYING",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"(",
"nServicing",
".",
"get",
"(",
")",
">",
... | Destroys the filter wrapper and the underlying filter instance | [
"Destroys",
"the",
"filter",
"wrapper",
"and",
"the",
"underlying",
"filter",
"instance"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/filter/FilterInstanceWrapper.java#L297-L345 |
66,438 | OpenLiberty/open-liberty | dev/com.ibm.ws.management.security/src/com/ibm/ws/management/security/internal/JMXSecurityMBeanServer.java | JMXSecurityMBeanServer.activate | protected synchronized void activate(ComponentContext cc) {
pipelineRef.activate(cc);
securityServiceRef.activate(cc);
insertJMXSecurityFilter();
} | java | protected synchronized void activate(ComponentContext cc) {
pipelineRef.activate(cc);
securityServiceRef.activate(cc);
insertJMXSecurityFilter();
} | [
"protected",
"synchronized",
"void",
"activate",
"(",
"ComponentContext",
"cc",
")",
"{",
"pipelineRef",
".",
"activate",
"(",
"cc",
")",
";",
"securityServiceRef",
".",
"activate",
"(",
"cc",
")",
";",
"insertJMXSecurityFilter",
"(",
")",
";",
"}"
] | Insert the JMX security filter upon activation. This will only
happen if we have both the MBeanServerPipeline and the SecurityService.
@param cc | [
"Insert",
"the",
"JMX",
"security",
"filter",
"upon",
"activation",
".",
"This",
"will",
"only",
"happen",
"if",
"we",
"have",
"both",
"the",
"MBeanServerPipeline",
"and",
"the",
"SecurityService",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.management.security/src/com/ibm/ws/management/security/internal/JMXSecurityMBeanServer.java#L93-L98 |
66,439 | OpenLiberty/open-liberty | dev/com.ibm.ws.management.security/src/com/ibm/ws/management/security/internal/JMXSecurityMBeanServer.java | JMXSecurityMBeanServer.deactivate | protected synchronized void deactivate(ComponentContext cc) {
removeJMXSecurityFilter();
pipelineRef.deactivate(cc);
securityServiceRef.deactivate(cc);
} | java | protected synchronized void deactivate(ComponentContext cc) {
removeJMXSecurityFilter();
pipelineRef.deactivate(cc);
securityServiceRef.deactivate(cc);
} | [
"protected",
"synchronized",
"void",
"deactivate",
"(",
"ComponentContext",
"cc",
")",
"{",
"removeJMXSecurityFilter",
"(",
")",
";",
"pipelineRef",
".",
"deactivate",
"(",
"cc",
")",
";",
"securityServiceRef",
".",
"deactivate",
"(",
"cc",
")",
";",
"}"
] | Remove the JMX security filter upon deactivation.
@param cc | [
"Remove",
"the",
"JMX",
"security",
"filter",
"upon",
"deactivation",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.management.security/src/com/ibm/ws/management/security/internal/JMXSecurityMBeanServer.java#L120-L125 |
66,440 | OpenLiberty/open-liberty | dev/com.ibm.ws.management.security/src/com/ibm/ws/management/security/internal/JMXSecurityMBeanServer.java | JMXSecurityMBeanServer.throwAuthzException | private void throwAuthzException() throws SecurityException {
SubjectManager subjectManager = new SubjectManager();
String name = "UNAUTHENTICATED";
if (subjectManager.getInvocationSubject() != null) {
name = subjectManager.getInvocationSubject().getPrincipals().iterator().next().get... | java | private void throwAuthzException() throws SecurityException {
SubjectManager subjectManager = new SubjectManager();
String name = "UNAUTHENTICATED";
if (subjectManager.getInvocationSubject() != null) {
name = subjectManager.getInvocationSubject().getPrincipals().iterator().next().get... | [
"private",
"void",
"throwAuthzException",
"(",
")",
"throws",
"SecurityException",
"{",
"SubjectManager",
"subjectManager",
"=",
"new",
"SubjectManager",
"(",
")",
";",
"String",
"name",
"=",
"\"UNAUTHENTICATED\"",
";",
"if",
"(",
"subjectManager",
".",
"getInvocati... | Throwing a SecurityException as not all of the methods that need
protection throw an MBeanException. We can change this if we need to.
@throws SecurityException | [
"Throwing",
"a",
"SecurityException",
"as",
"not",
"all",
"of",
"the",
"methods",
"that",
"need",
"protection",
"throw",
"an",
"MBeanException",
".",
"We",
"can",
"change",
"this",
"if",
"we",
"need",
"to",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.management.security/src/com/ibm/ws/management/security/internal/JMXSecurityMBeanServer.java#L162-L171 |
66,441 | OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.connector.client.rest/src/com/ibm/ws/jmx/connector/client/rest/internal/NotificationRegistry.java | NotificationRegistry.setupNotificationArea | protected void setupNotificationArea() throws Throwable {
final String sourceMethod = "setupNotificationArea";
URL notificationsURL = null;
HttpsURLConnection connection = null;
try {
// Get URL for creating a notification area
notificationsURL = serverConnection... | java | protected void setupNotificationArea() throws Throwable {
final String sourceMethod = "setupNotificationArea";
URL notificationsURL = null;
HttpsURLConnection connection = null;
try {
// Get URL for creating a notification area
notificationsURL = serverConnection... | [
"protected",
"void",
"setupNotificationArea",
"(",
")",
"throws",
"Throwable",
"{",
"final",
"String",
"sourceMethod",
"=",
"\"setupNotificationArea\"",
";",
"URL",
"notificationsURL",
"=",
"null",
";",
"HttpsURLConnection",
"connection",
"=",
"null",
";",
"try",
"{... | we want to avoid cycles. | [
"we",
"want",
"to",
"avoid",
"cycles",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.client.rest/src/com/ibm/ws/jmx/connector/client/rest/internal/NotificationRegistry.java#L78-L151 |
66,442 | OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.connector.client.rest/src/com/ibm/ws/jmx/connector/client/rest/internal/NotificationRegistry.java | NotificationRegistry.sendClosingSignal | private void sendClosingSignal() {
URL clientURL = null;
HttpsURLConnection connection = null;
try {
// Get the appropriate URL to delete notification client
if (serverConnection.serverVersion >= 4) {
//V4+ clients use /{clientID} to delete the notificatio... | java | private void sendClosingSignal() {
URL clientURL = null;
HttpsURLConnection connection = null;
try {
// Get the appropriate URL to delete notification client
if (serverConnection.serverVersion >= 4) {
//V4+ clients use /{clientID} to delete the notificatio... | [
"private",
"void",
"sendClosingSignal",
"(",
")",
"{",
"URL",
"clientURL",
"=",
"null",
";",
"HttpsURLConnection",
"connection",
"=",
"null",
";",
"try",
"{",
"// Get the appropriate URL to delete notification client",
"if",
"(",
"serverConnection",
".",
"serverVersion"... | We don't throw any errors because the connector is about to be closed. | [
"We",
"don",
"t",
"throw",
"any",
"errors",
"because",
"the",
"connector",
"is",
"about",
"to",
"be",
"closed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.client.rest/src/com/ibm/ws/jmx/connector/client/rest/internal/NotificationRegistry.java#L285-L324 |
66,443 | OpenLiberty/open-liberty | dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/utils/InjectionUtils.java | InjectionUtils.getAsynchronizedGenericType | private static Type getAsynchronizedGenericType(Object targetObject) {
if (targetObject instanceof java.util.Collection) {
Class<? extends java.util.Collection> rawType = (Class<? extends Collection>) targetObject.getClass();
Class<?> actualType = Object.class;
if (((java.uti... | java | private static Type getAsynchronizedGenericType(Object targetObject) {
if (targetObject instanceof java.util.Collection) {
Class<? extends java.util.Collection> rawType = (Class<? extends Collection>) targetObject.getClass();
Class<?> actualType = Object.class;
if (((java.uti... | [
"private",
"static",
"Type",
"getAsynchronizedGenericType",
"(",
"Object",
"targetObject",
")",
"{",
"if",
"(",
"targetObject",
"instanceof",
"java",
".",
"util",
".",
"Collection",
")",
"{",
"Class",
"<",
"?",
"extends",
"java",
".",
"util",
".",
"Collection"... | Hack to generate a type class for collection object.
@param targetObject
@return | [
"Hack",
"to",
"generate",
"a",
"type",
"class",
"for",
"collection",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/utils/InjectionUtils.java#L1780-L1815 |
66,444 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoveryDirectorImpl.java | RecoveryDirectorImpl.currentFailureScope | @Override
public synchronized FailureScope currentFailureScope() {
if (tc.isEntryEnabled())
Tr.entry(tc, "currentFailureScope", this);
if (_currentFailureScope == null) {
_currentFailureScope = new FileFailureScope();
}
if (tc.isEntryEnabled())
T... | java | @Override
public synchronized FailureScope currentFailureScope() {
if (tc.isEntryEnabled())
Tr.entry(tc, "currentFailureScope", this);
if (_currentFailureScope == null) {
_currentFailureScope = new FileFailureScope();
}
if (tc.isEntryEnabled())
T... | [
"@",
"Override",
"public",
"synchronized",
"FailureScope",
"currentFailureScope",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"currentFailureScope\"",
",",
"this",
")",
";",
"if",
"(",
"_curre... | Invoked by a client service to determine the "current" FailureScope. This is
defined as a FailureScope that identifies the current point of execution. In
practice this means the current server on distributed or server region on 390.
@return FailureScope The current FailureScope. | [
"Invoked",
"by",
"a",
"client",
"service",
"to",
"determine",
"the",
"current",
"FailureScope",
".",
"This",
"is",
"defined",
"as",
"a",
"FailureScope",
"that",
"identifies",
"the",
"current",
"point",
"of",
"execution",
".",
"In",
"practice",
"this",
"means",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoveryDirectorImpl.java#L579-L591 |
66,445 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoveryDirectorImpl.java | RecoveryDirectorImpl.directInitialization | @Override
public void directInitialization(FailureScope failureScope) throws RecoveryFailedException {
if (tc.isEntryEnabled())
Tr.entry(tc, "directInitialization", new Object[] { failureScope, this });
// Use configuration to determine if recovery is local (for z/OS).
final Fai... | java | @Override
public void directInitialization(FailureScope failureScope) throws RecoveryFailedException {
if (tc.isEntryEnabled())
Tr.entry(tc, "directInitialization", new Object[] { failureScope, this });
// Use configuration to determine if recovery is local (for z/OS).
final Fai... | [
"@",
"Override",
"public",
"void",
"directInitialization",
"(",
"FailureScope",
"failureScope",
")",
"throws",
"RecoveryFailedException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"directInitialization\"",
... | Internal method to initiate recovery processing of the given FailureScope. All
registered RecoveryAgent objects will be directed to process the FailureScope
in sequence.
@param FailureScope The FailureScope to process.
@return boolean success | [
"Internal",
"method",
"to",
"initiate",
"recovery",
"processing",
"of",
"the",
"given",
"FailureScope",
".",
"All",
"registered",
"RecoveryAgent",
"objects",
"will",
"be",
"directed",
"to",
"process",
"the",
"FailureScope",
"in",
"sequence",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoveryDirectorImpl.java#L604-L718 |
66,446 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoveryDirectorImpl.java | RecoveryDirectorImpl.directTermination | public void directTermination(FailureScope failureScope) throws TerminationFailedException {
if (tc.isEntryEnabled())
Tr.entry(tc, "directTermination", new Object[] { failureScope, this });
Tr.info(tc, "CWRLS0014_HALT_PEER_RECOVERY", failureScope.serverName());
// If callbacks are ... | java | public void directTermination(FailureScope failureScope) throws TerminationFailedException {
if (tc.isEntryEnabled())
Tr.entry(tc, "directTermination", new Object[] { failureScope, this });
Tr.info(tc, "CWRLS0014_HALT_PEER_RECOVERY", failureScope.serverName());
// If callbacks are ... | [
"public",
"void",
"directTermination",
"(",
"FailureScope",
"failureScope",
")",
"throws",
"TerminationFailedException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"directTermination\"",
",",
"new",
"Object"... | Internal method to terminate recovery processing of the given FailureScope. All
registered RecoveryAgent objects will be directed to terminate processing of the
FailureScopein sequence.
@param FailureScope The FailureScope to process. | [
"Internal",
"method",
"to",
"terminate",
"recovery",
"processing",
"of",
"the",
"given",
"FailureScope",
".",
"All",
"registered",
"RecoveryAgent",
"objects",
"will",
"be",
"directed",
"to",
"terminate",
"processing",
"of",
"the",
"FailureScopein",
"sequence",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoveryDirectorImpl.java#L730-L804 |
66,447 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoveryDirectorImpl.java | RecoveryDirectorImpl.registerRecoveryEventListener | @Override
public void registerRecoveryEventListener(RecoveryEventListener rel) /* @MD19638A */
{
if (tc.isEntryEnabled())
Tr.entry(tc, "registerRecoveryEventListener", rel);
RegisteredRecoveryEventListeners.instance().add(rel);
if (tc.isEntryEnabled())
Tr.exit(t... | java | @Override
public void registerRecoveryEventListener(RecoveryEventListener rel) /* @MD19638A */
{
if (tc.isEntryEnabled())
Tr.entry(tc, "registerRecoveryEventListener", rel);
RegisteredRecoveryEventListeners.instance().add(rel);
if (tc.isEntryEnabled())
Tr.exit(t... | [
"@",
"Override",
"public",
"void",
"registerRecoveryEventListener",
"(",
"RecoveryEventListener",
"rel",
")",
"/* @MD19638A */",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"registerRecoveryEventListener\"",
",... | Register the recovery event callback listener.
@param rel The new recovery event listener | [
"Register",
"the",
"recovery",
"event",
"callback",
"listener",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoveryDirectorImpl.java#L1668-L1678 |
66,448 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoveryDirectorImpl.java | RecoveryDirectorImpl.isHAEnabled | @Override
public boolean isHAEnabled() {
if (tc.isEntryEnabled())
Tr.entry(tc, "isHAEnabled");
final boolean haEnabled = Configuration.HAEnabled();
if (tc.isEntryEnabled())
Tr.exit(tc, "isHAEnabled", haEnabled);
return haEnabled;
} | java | @Override
public boolean isHAEnabled() {
if (tc.isEntryEnabled())
Tr.entry(tc, "isHAEnabled");
final boolean haEnabled = Configuration.HAEnabled();
if (tc.isEntryEnabled())
Tr.exit(tc, "isHAEnabled", haEnabled);
return haEnabled;
} | [
"@",
"Override",
"public",
"boolean",
"isHAEnabled",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"isHAEnabled\"",
")",
";",
"final",
"boolean",
"haEnabled",
"=",
"Configuration",
".",
"HAEna... | This method allows a client service to determine if High Availability support
has been enabled for the local cluster.
@return boolean true if HA support is enabled, otherwise false. | [
"This",
"method",
"allows",
"a",
"client",
"service",
"to",
"determine",
"if",
"High",
"Availability",
"support",
"has",
"been",
"enabled",
"for",
"the",
"local",
"cluster",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoveryDirectorImpl.java#L1689-L1699 |
66,449 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/UserTransactionImpl.java | UserTransactionImpl.registerCallback | public void registerCallback(UOWScopeCallback callback)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "registerCallback", new Object[]{callback, this});
_callbackManager.addCallback(callback);
if (tc.isEntryEnabled()) Tr.exit(tc, "registerCallback");
} | java | public void registerCallback(UOWScopeCallback callback)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "registerCallback", new Object[]{callback, this});
_callbackManager.addCallback(callback);
if (tc.isEntryEnabled()) Tr.exit(tc, "registerCallback");
} | [
"public",
"void",
"registerCallback",
"(",
"UOWScopeCallback",
"callback",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"registerCallback\"",
",",
"new",
"Object",
"[",
"]",
"{",
"callback",
",",
... | Register users who want notification on UserTransaction Begin and End
@param callback | [
"Register",
"users",
"who",
"want",
"notification",
"on",
"UserTransaction",
"Begin",
"and",
"End"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/UserTransactionImpl.java#L281-L288 |
66,450 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/UserTransactionImpl.java | UserTransactionImpl.unregisterCallback | public void unregisterCallback(UOWScopeCallback callback)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "unregisterCallback", new Object[]{callback, this});
_callbackManager.removeCallback(callback);
if (tc.isEntryEnabled()) Tr.exit(tc, "unregisterCallback");
} | java | public void unregisterCallback(UOWScopeCallback callback)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "unregisterCallback", new Object[]{callback, this});
_callbackManager.removeCallback(callback);
if (tc.isEntryEnabled()) Tr.exit(tc, "unregisterCallback");
} | [
"public",
"void",
"unregisterCallback",
"(",
"UOWScopeCallback",
"callback",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"unregisterCallback\"",
",",
"new",
"Object",
"[",
"]",
"{",
"callback",
","... | unregister users who want notification on UserTransaction Begin and End
@param callback | [
"unregister",
"users",
"who",
"want",
"notification",
"on",
"UserTransaction",
"Begin",
"and",
"End"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/UserTransactionImpl.java#L295-L302 |
66,451 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/udpchannel/internal/UDPConnLink.java | UDPConnLink.connectCommon | private void connectCommon(Object _udpRequestContextObject) throws IOException {
String localAddress = "*";
int localPort = 0;
Map<Object, Object> vcStateMap = getVirtualConnection().getStateMap();
if (vcStateMap != null) {
//
// Size of the buffer the channel sho... | java | private void connectCommon(Object _udpRequestContextObject) throws IOException {
String localAddress = "*";
int localPort = 0;
Map<Object, Object> vcStateMap = getVirtualConnection().getStateMap();
if (vcStateMap != null) {
//
// Size of the buffer the channel sho... | [
"private",
"void",
"connectCommon",
"(",
"Object",
"_udpRequestContextObject",
")",
"throws",
"IOException",
"{",
"String",
"localAddress",
"=",
"\"*\"",
";",
"int",
"localPort",
"=",
"0",
";",
"Map",
"<",
"Object",
",",
"Object",
">",
"vcStateMap",
"=",
"getV... | Common connect logic between sync and async connect requests.
@param _udpRequestContextObject
@throws IOException | [
"Common",
"connect",
"logic",
"between",
"sync",
"and",
"async",
"connect",
"requests",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/udpchannel/internal/UDPConnLink.java#L78-L131 |
66,452 | OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/JaxWsServerMetaData.java | JaxWsServerMetaData.retrieveEndpointName | public String retrieveEndpointName(J2EEName j2eeName) {
for (Entry<String, J2EEName> entry : endpointNameJ2EENameMap.entrySet()) {
if (entry.getValue().equals(j2eeName)) {
return entry.getKey();
}
}
return null;
} | java | public String retrieveEndpointName(J2EEName j2eeName) {
for (Entry<String, J2EEName> entry : endpointNameJ2EENameMap.entrySet()) {
if (entry.getValue().equals(j2eeName)) {
return entry.getKey();
}
}
return null;
} | [
"public",
"String",
"retrieveEndpointName",
"(",
"J2EEName",
"j2eeName",
")",
"{",
"for",
"(",
"Entry",
"<",
"String",
",",
"J2EEName",
">",
"entry",
":",
"endpointNameJ2EENameMap",
".",
"entrySet",
"(",
")",
")",
"{",
"if",
"(",
"entry",
".",
"getValue",
... | Get the endpoint name by j2eeName
@param j2eeName
@return | [
"Get",
"the",
"endpoint",
"name",
"by",
"j2eeName"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/JaxWsServerMetaData.java#L82-L89 |
66,453 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/collections/linkedlist/Link.java | Link._tryUnlink | private final void _tryUnlink() {
if (0 >= _cursorCount && _state == LOGICALLY_UNLINKED) {
_previousLink._nextLink = _nextLink;
_nextLink._previousLink = _previousLink;
_previousLink = null;
_nextLink = null;
// Defect 240039
//_parent = nu... | java | private final void _tryUnlink() {
if (0 >= _cursorCount && _state == LOGICALLY_UNLINKED) {
_previousLink._nextLink = _nextLink;
_nextLink._previousLink = _previousLink;
_previousLink = null;
_nextLink = null;
// Defect 240039
//_parent = nu... | [
"private",
"final",
"void",
"_tryUnlink",
"(",
")",
"{",
"if",
"(",
"0",
">=",
"_cursorCount",
"&&",
"_state",
"==",
"LOGICALLY_UNLINKED",
")",
"{",
"_previousLink",
".",
"_nextLink",
"=",
"_nextLink",
";",
"_nextLink",
".",
"_previousLink",
"=",
"_previousLin... | Attempt to physically unlink the receiver if appropriate.
MUST BE CALLED UNDER _parent MONITOR. | [
"Attempt",
"to",
"physically",
"unlink",
"the",
"receiver",
"if",
"appropriate",
".",
"MUST",
"BE",
"CALLED",
"UNDER",
"_parent",
"MONITOR",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/collections/linkedlist/Link.java#L185-L195 |
66,454 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/collections/linkedlist/Link.java | Link.getNextLink | public final Link getNextLink() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(this, tc, "getNextLink", _positionString());
}
Link nextLink = null;
LinkedList parent = _parent;
if (null != parent) {
nextLink = _parent.getN... | java | public final Link getNextLink() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(this, tc, "getNextLink", _positionString());
}
Link nextLink = null;
LinkedList parent = _parent;
if (null != parent) {
nextLink = _parent.getN... | [
"public",
"final",
"Link",
"getNextLink",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getNextLink\"",
",",... | Navigate to the next logical link.
This version is for use with non-cursored navigation.
@return the next link object or null if nothing left in the list to return
@ deprecated. Use list.getNextLink(); | [
"Navigate",
"to",
"the",
"next",
"logical",
"link",
".",
"This",
"version",
"is",
"for",
"use",
"with",
"non",
"-",
"cursored",
"navigation",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/collections/linkedlist/Link.java#L240-L253 |
66,455 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/collections/linkedlist/Link.java | Link.xmlWriteOn | public void xmlWriteOn(FormattedWriter writer) throws IOException {
String name = "link";
writer.write("<");
writer.write(name);
xmlWriteAttributesOn(writer);
writer.write(" />");
} | java | public void xmlWriteOn(FormattedWriter writer) throws IOException {
String name = "link";
writer.write("<");
writer.write(name);
xmlWriteAttributesOn(writer);
writer.write(" />");
} | [
"public",
"void",
"xmlWriteOn",
"(",
"FormattedWriter",
"writer",
")",
"throws",
"IOException",
"{",
"String",
"name",
"=",
"\"link\"",
";",
"writer",
".",
"write",
"(",
"\"<\"",
")",
";",
"writer",
".",
"write",
"(",
"name",
")",
";",
"xmlWriteAttributesOn"... | Default XML output.
@param buffer
@throws IOException | [
"Default",
"XML",
"output",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/collections/linkedlist/Link.java#L406-L412 |
66,456 | OpenLiberty/open-liberty | dev/com.ibm.ws.clientcontainer/src/com/ibm/ws/clientcontainer/internal/LifecycleCallbackHelper.java | LifecycleCallbackHelper.doPostConstruct | @SuppressWarnings("rawtypes")
public void doPostConstruct(Class clazz, List<LifecycleCallback> postConstructs) throws InjectionException {
mainClassName = clazz.getName();
doPostConstruct(clazz, postConstructs, null);
} | java | @SuppressWarnings("rawtypes")
public void doPostConstruct(Class clazz, List<LifecycleCallback> postConstructs) throws InjectionException {
mainClassName = clazz.getName();
doPostConstruct(clazz, postConstructs, null);
} | [
"@",
"SuppressWarnings",
"(",
"\"rawtypes\"",
")",
"public",
"void",
"doPostConstruct",
"(",
"Class",
"clazz",
",",
"List",
"<",
"LifecycleCallback",
">",
"postConstructs",
")",
"throws",
"InjectionException",
"{",
"mainClassName",
"=",
"clazz",
".",
"getName",
"(... | Processes the PostConstruct callback method for the application main class
@param clazz the application main class object
@param postConstructs a list of PostConstruct metadata in the application client module
@throws InjectionException | [
"Processes",
"the",
"PostConstruct",
"callback",
"method",
"for",
"the",
"application",
"main",
"class"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.clientcontainer/src/com/ibm/ws/clientcontainer/internal/LifecycleCallbackHelper.java#L47-L51 |
66,457 | OpenLiberty/open-liberty | dev/com.ibm.ws.clientcontainer/src/com/ibm/ws/clientcontainer/internal/LifecycleCallbackHelper.java | LifecycleCallbackHelper.doPostConstruct | public void doPostConstruct(Object instance, List<LifecycleCallback> postConstructs) throws InjectionException {
doPostConstruct(instance.getClass(), postConstructs, instance);
} | java | public void doPostConstruct(Object instance, List<LifecycleCallback> postConstructs) throws InjectionException {
doPostConstruct(instance.getClass(), postConstructs, instance);
} | [
"public",
"void",
"doPostConstruct",
"(",
"Object",
"instance",
",",
"List",
"<",
"LifecycleCallback",
">",
"postConstructs",
")",
"throws",
"InjectionException",
"{",
"doPostConstruct",
"(",
"instance",
".",
"getClass",
"(",
")",
",",
"postConstructs",
",",
"inst... | Processes the PostConstruct callback method for the login callback handler class
@param instance the instance object of the login callback handler class
@param postConstructs a list of PostConstruct metadata in the application client module
@throws InjectionException | [
"Processes",
"the",
"PostConstruct",
"callback",
"method",
"for",
"the",
"login",
"callback",
"handler",
"class"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.clientcontainer/src/com/ibm/ws/clientcontainer/internal/LifecycleCallbackHelper.java#L60-L62 |
66,458 | OpenLiberty/open-liberty | dev/com.ibm.ws.clientcontainer/src/com/ibm/ws/clientcontainer/internal/LifecycleCallbackHelper.java | LifecycleCallbackHelper.doPreDestroy | public void doPreDestroy(Object instance, List<LifecycleCallback> preDestroy) throws InjectionException {
doPreDestroy(instance.getClass(), preDestroy, instance);
} | java | public void doPreDestroy(Object instance, List<LifecycleCallback> preDestroy) throws InjectionException {
doPreDestroy(instance.getClass(), preDestroy, instance);
} | [
"public",
"void",
"doPreDestroy",
"(",
"Object",
"instance",
",",
"List",
"<",
"LifecycleCallback",
">",
"preDestroy",
")",
"throws",
"InjectionException",
"{",
"doPreDestroy",
"(",
"instance",
".",
"getClass",
"(",
")",
",",
"preDestroy",
",",
"instance",
")",
... | Processes the PreDestroy callback method for the login callback handler class
@param instance the instance object of the login callback handler class
@param postConstructs a list of PreDestroy metadata in the application client module
@throws InjectionException | [
"Processes",
"the",
"PreDestroy",
"callback",
"method",
"for",
"the",
"login",
"callback",
"handler",
"class"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.clientcontainer/src/com/ibm/ws/clientcontainer/internal/LifecycleCallbackHelper.java#L71-L73 |
66,459 | OpenLiberty/open-liberty | dev/com.ibm.ws.clientcontainer/src/com/ibm/ws/clientcontainer/internal/LifecycleCallbackHelper.java | LifecycleCallbackHelper.doPostConstruct | @SuppressWarnings("rawtypes")
private void doPostConstruct(Class clazz, List<LifecycleCallback> postConstructs, Object instance) throws InjectionException {
if (!metadataComplete && clazz.getSuperclass() != null) {
doPostConstruct(clazz.getSuperclass(), postConstructs, instance);
}
... | java | @SuppressWarnings("rawtypes")
private void doPostConstruct(Class clazz, List<LifecycleCallback> postConstructs, Object instance) throws InjectionException {
if (!metadataComplete && clazz.getSuperclass() != null) {
doPostConstruct(clazz.getSuperclass(), postConstructs, instance);
}
... | [
"@",
"SuppressWarnings",
"(",
"\"rawtypes\"",
")",
"private",
"void",
"doPostConstruct",
"(",
"Class",
"clazz",
",",
"List",
"<",
"LifecycleCallback",
">",
"postConstructs",
",",
"Object",
"instance",
")",
"throws",
"InjectionException",
"{",
"if",
"(",
"!",
"me... | Processes the PostConstruct callback method
@param clazz the callback class object
@param postConstructs a list of PostConstruct application client module deployment descriptor.
@param instance the instance object of the callback class. It can be null for static method.
@throws InjectionException | [
"Processes",
"the",
"PostConstruct",
"callback",
"method"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.clientcontainer/src/com/ibm/ws/clientcontainer/internal/LifecycleCallbackHelper.java#L83-L99 |
66,460 | OpenLiberty/open-liberty | dev/com.ibm.ws.clientcontainer/src/com/ibm/ws/clientcontainer/internal/LifecycleCallbackHelper.java | LifecycleCallbackHelper.getAnnotatedMethod | @SuppressWarnings("rawtypes")
public Method getAnnotatedMethod(Class clazz, Class<? extends Annotation> annotationClass) {
Method m = null;
Method[] methods = clazz.getDeclaredMethods();
for (int i = 0; i < methods.length; i++) {
Annotation[] a = methods[i].getAnnotations();
... | java | @SuppressWarnings("rawtypes")
public Method getAnnotatedMethod(Class clazz, Class<? extends Annotation> annotationClass) {
Method m = null;
Method[] methods = clazz.getDeclaredMethods();
for (int i = 0; i < methods.length; i++) {
Annotation[] a = methods[i].getAnnotations();
... | [
"@",
"SuppressWarnings",
"(",
"\"rawtypes\"",
")",
"public",
"Method",
"getAnnotatedMethod",
"(",
"Class",
"clazz",
",",
"Class",
"<",
"?",
"extends",
"Annotation",
">",
"annotationClass",
")",
"{",
"Method",
"m",
"=",
"null",
";",
"Method",
"[",
"]",
"metho... | Gets the annotated method from the class object.
@param clazz the Class to be inspected.
@param annotationClass the annotation class object
@return a Method object or null if there is no annotated method. | [
"Gets",
"the",
"annotated",
"method",
"from",
"the",
"class",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.clientcontainer/src/com/ibm/ws/clientcontainer/internal/LifecycleCallbackHelper.java#L156-L177 |
66,461 | OpenLiberty/open-liberty | dev/com.ibm.ws.clientcontainer/src/com/ibm/ws/clientcontainer/internal/LifecycleCallbackHelper.java | LifecycleCallbackHelper.invokeMethod | @SuppressWarnings({ "rawtypes", "unchecked" })
public void invokeMethod(final Class clazz, final String methodName, final Object instance) {
// instance can be null for the static application main method
AccessController.doPrivileged(new PrivilegedAction() {
@Override
public ... | java | @SuppressWarnings({ "rawtypes", "unchecked" })
public void invokeMethod(final Class clazz, final String methodName, final Object instance) {
// instance can be null for the static application main method
AccessController.doPrivileged(new PrivilegedAction() {
@Override
public ... | [
"@",
"SuppressWarnings",
"(",
"{",
"\"rawtypes\"",
",",
"\"unchecked\"",
"}",
")",
"public",
"void",
"invokeMethod",
"(",
"final",
"Class",
"clazz",
",",
"final",
"String",
"methodName",
",",
"final",
"Object",
"instance",
")",
"{",
"// instance can be null for th... | Invokes the class method. The object instance can be null for the application main class.
@param clazz the Class object
@param methodName the Method name
@param instance the instance object of the class. It can be null if the class is the application Main. | [
"Invokes",
"the",
"class",
"method",
".",
"The",
"object",
"instance",
"can",
"be",
"null",
"for",
"the",
"application",
"main",
"class",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.clientcontainer/src/com/ibm/ws/clientcontainer/internal/LifecycleCallbackHelper.java#L186-L211 |
66,462 | OpenLiberty/open-liberty | dev/com.ibm.ws.clientcontainer/src/com/ibm/ws/clientcontainer/internal/LifecycleCallbackHelper.java | LifecycleCallbackHelper.getMethodNameFromDD | public String getMethodNameFromDD(List<LifecycleCallback> callbacks, String classname) {
String methodName = null;
for (LifecycleCallback callback : callbacks) {
// lifecycle-callback-class default to the enclosing component class Client
String callbackClassName;
call... | java | public String getMethodNameFromDD(List<LifecycleCallback> callbacks, String classname) {
String methodName = null;
for (LifecycleCallback callback : callbacks) {
// lifecycle-callback-class default to the enclosing component class Client
String callbackClassName;
call... | [
"public",
"String",
"getMethodNameFromDD",
"(",
"List",
"<",
"LifecycleCallback",
">",
"callbacks",
",",
"String",
"classname",
")",
"{",
"String",
"methodName",
"=",
"null",
";",
"for",
"(",
"LifecycleCallback",
"callback",
":",
"callbacks",
")",
"{",
"// lifec... | Gets the lifecycle callback method name from the application client module deployment descriptor
@param callbacks a list of lifecycle-callback in the application client module deployment descriptor
@param classname the Class name
@return the Mehtod name | [
"Gets",
"the",
"lifecycle",
"callback",
"method",
"name",
"from",
"the",
"application",
"client",
"module",
"deployment",
"descriptor"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.clientcontainer/src/com/ibm/ws/clientcontainer/internal/LifecycleCallbackHelper.java#L220-L238 |
66,463 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java | LTPAToken2.encrypt | private final void encrypt() throws Exception {
String signStr = Base64Coder.toString(Base64Coder.base64Encode(signature));
String ud = userData.toString();
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(this, tc, "encrypt: userData" + ud);
}
... | java | private final void encrypt() throws Exception {
String signStr = Base64Coder.toString(Base64Coder.base64Encode(signature));
String ud = userData.toString();
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(this, tc, "encrypt: userData" + ud);
}
... | [
"private",
"final",
"void",
"encrypt",
"(",
")",
"throws",
"Exception",
"{",
"String",
"signStr",
"=",
"Base64Coder",
".",
"toString",
"(",
"Base64Coder",
".",
"base64Encode",
"(",
"signature",
")",
")",
";",
"String",
"ud",
"=",
"userData",
".",
"toString",... | Encrypt the token passed into the token.
@throws TokenException | [
"Encrypt",
"the",
"token",
"passed",
"into",
"the",
"token",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java#L151-L182 |
66,464 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java | LTPAToken2.decrypt | @FFDCIgnore({ BadPaddingException.class, Exception.class })
private final void decrypt() throws InvalidTokenException {
byte[] tokenData;
try {
tokenData = LTPAKeyUtil.decrypt(encryptedBytes.clone(), sharedKey, cipher);
checkTokenBytes(tokenData);
String UTF8Toke... | java | @FFDCIgnore({ BadPaddingException.class, Exception.class })
private final void decrypt() throws InvalidTokenException {
byte[] tokenData;
try {
tokenData = LTPAKeyUtil.decrypt(encryptedBytes.clone(), sharedKey, cipher);
checkTokenBytes(tokenData);
String UTF8Toke... | [
"@",
"FFDCIgnore",
"(",
"{",
"BadPaddingException",
".",
"class",
",",
"Exception",
".",
"class",
"}",
")",
"private",
"final",
"void",
"decrypt",
"(",
")",
"throws",
"InvalidTokenException",
"{",
"byte",
"[",
"]",
"tokenData",
";",
"try",
"{",
"tokenData",
... | Decrypt the encrypted token bytes passed into the constructor. | [
"Decrypt",
"the",
"encrypted",
"token",
"bytes",
"passed",
"into",
"the",
"constructor",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java#L187-L223 |
66,465 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java | LTPAToken2.sign | private final void sign() throws Exception {
String dataStr = this.getUserData().toString();
byte[] data = Base64Coder.getBytes(dataStr);
byte[] signature = sign(data, this.privateKey);
this.setSignature(signature);
} | java | private final void sign() throws Exception {
String dataStr = this.getUserData().toString();
byte[] data = Base64Coder.getBytes(dataStr);
byte[] signature = sign(data, this.privateKey);
this.setSignature(signature);
} | [
"private",
"final",
"void",
"sign",
"(",
")",
"throws",
"Exception",
"{",
"String",
"dataStr",
"=",
"this",
".",
"getUserData",
"(",
")",
".",
"toString",
"(",
")",
";",
"byte",
"[",
"]",
"data",
"=",
"Base64Coder",
".",
"getBytes",
"(",
"dataStr",
")"... | Sign the token passed into the token. | [
"Sign",
"the",
"token",
"passed",
"into",
"the",
"token",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java#L228-L233 |
66,466 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java | LTPAToken2.verify | private final boolean verify() throws Exception {
String dataStr = this.getUserData().toString();
byte[] data = Base64Coder.getBytes(dataStr);
return verify(data, signature, publicKey);
} | java | private final boolean verify() throws Exception {
String dataStr = this.getUserData().toString();
byte[] data = Base64Coder.getBytes(dataStr);
return verify(data, signature, publicKey);
} | [
"private",
"final",
"boolean",
"verify",
"(",
")",
"throws",
"Exception",
"{",
"String",
"dataStr",
"=",
"this",
".",
"getUserData",
"(",
")",
".",
"toString",
"(",
")",
";",
"byte",
"[",
"]",
"data",
"=",
"Base64Coder",
".",
"getBytes",
"(",
"dataStr",
... | Verify the token. | [
"Verify",
"the",
"token",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java#L251-L255 |
66,467 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java | LTPAToken2.validateExpiration | public final void validateExpiration() throws TokenExpiredException {
Date d = new Date();
Date expD = new Date(getExpiration());
boolean expired = d.after(expD);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc, "Current time = " + d + ", ... | java | public final void validateExpiration() throws TokenExpiredException {
Date d = new Date();
Date expD = new Date(getExpiration());
boolean expired = d.after(expD);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc, "Current time = " + d + ", ... | [
"public",
"final",
"void",
"validateExpiration",
"(",
")",
"throws",
"TokenExpiredException",
"{",
"Date",
"d",
"=",
"new",
"Date",
"(",
")",
";",
"Date",
"expD",
"=",
"new",
"Date",
"(",
"getExpiration",
"(",
")",
")",
";",
"boolean",
"expired",
"=",
"d... | Checks if the token has expired.
@throws TokenExpiredException | [
"Checks",
"if",
"the",
"token",
"has",
"expired",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java#L301-L315 |
66,468 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java | LTPAToken2.setExpiration | private final void setExpiration(long expirationInMinutes) {
expirationInMilliseconds = System.currentTimeMillis()+ expirationInMinutes * 60 * 1000;
signature = null;
if (userData != null) {
encryptedBytes = null;
userData.addAttribute("expire", Long.toString(expirationInMillise... | java | private final void setExpiration(long expirationInMinutes) {
expirationInMilliseconds = System.currentTimeMillis()+ expirationInMinutes * 60 * 1000;
signature = null;
if (userData != null) {
encryptedBytes = null;
userData.addAttribute("expire", Long.toString(expirationInMillise... | [
"private",
"final",
"void",
"setExpiration",
"(",
"long",
"expirationInMinutes",
")",
"{",
"expirationInMilliseconds",
"=",
"System",
".",
"currentTimeMillis",
"(",
")",
"+",
"expirationInMinutes",
"*",
"60",
"*",
"1000",
";",
"signature",
"=",
"null",
";",
"if"... | Set expiration limit of the LTPA2 token
@param expirationInMinutes the expiration limit of the LTPA2 token in minutes | [
"Set",
"expiration",
"limit",
"of",
"the",
"LTPA2",
"token"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java#L414-L423 |
66,469 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java | LTPAToken2.toUTF8String | private static final String toUTF8String(byte[] b) {
String ns = null;
try {
ns = new String(b, "UTF8");
} catch (UnsupportedEncodingException e) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Error converting to string;... | java | private static final String toUTF8String(byte[] b) {
String ns = null;
try {
ns = new String(b, "UTF8");
} catch (UnsupportedEncodingException e) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Error converting to string;... | [
"private",
"static",
"final",
"String",
"toUTF8String",
"(",
"byte",
"[",
"]",
"b",
")",
"{",
"String",
"ns",
"=",
"null",
";",
"try",
"{",
"ns",
"=",
"new",
"String",
"(",
"b",
",",
"\"UTF8\"",
")",
";",
"}",
"catch",
"(",
"UnsupportedEncodingExceptio... | Convert the byte representation to the UTF-8 String form.
@param b The byte representation
@return The UTF-8 String form | [
"Convert",
"the",
"byte",
"representation",
"to",
"the",
"UTF",
"-",
"8",
"String",
"form",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java#L431-L441 |
66,470 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java | LTPAToken2.toSimpleString | private static final String toSimpleString(byte[] b) {
StringBuilder sb = new StringBuilder();
for (int i = 0, len = b.length; i < len; i++) {
sb.append((char) (b[i] & 0xff));
}
String str = sb.toString();
return str;
} | java | private static final String toSimpleString(byte[] b) {
StringBuilder sb = new StringBuilder();
for (int i = 0, len = b.length; i < len; i++) {
sb.append((char) (b[i] & 0xff));
}
String str = sb.toString();
return str;
} | [
"private",
"static",
"final",
"String",
"toSimpleString",
"(",
"byte",
"[",
"]",
"b",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
",",
"len",
"=",
"b",
".",
"length",
";",
"i",
"<",... | Convert the byte representation to the String form.
@param b The byte representation
@return The String form | [
"Convert",
"the",
"byte",
"representation",
"to",
"the",
"String",
"form",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java#L449-L456 |
66,471 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java | LTPAToken2.getSimpleBytes | private static final byte[] getSimpleBytes(String str) {
StringBuilder sb = new StringBuilder(str);
byte[] b = new byte[sb.length()];
for (int i = 0, len = sb.length(); i < len; i++) {
b[i] = (byte) sb.charAt(i);
}
return b;
} | java | private static final byte[] getSimpleBytes(String str) {
StringBuilder sb = new StringBuilder(str);
byte[] b = new byte[sb.length()];
for (int i = 0, len = sb.length(); i < len; i++) {
b[i] = (byte) sb.charAt(i);
}
return b;
} | [
"private",
"static",
"final",
"byte",
"[",
"]",
"getSimpleBytes",
"(",
"String",
"str",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
"str",
")",
";",
"byte",
"[",
"]",
"b",
"=",
"new",
"byte",
"[",
"sb",
".",
"length",
"(",
")",... | Convert the String form to the byte representation
@param str The String form
@return The byte representation | [
"Convert",
"the",
"String",
"form",
"to",
"the",
"byte",
"representation"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java#L464-L471 |
66,472 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp.2.3/src/org/apache/jasper/runtime/ProtectedFunctionMapper.java | ProtectedFunctionMapper.getInstance | public static ProtectedFunctionMapper getInstance() {
ProtectedFunctionMapper funcMapper;
if (System.getSecurityManager() != null) {
funcMapper = (ProtectedFunctionMapper) AccessController.doPrivileged(
new PrivilegedAction() {
@Ove... | java | public static ProtectedFunctionMapper getInstance() {
ProtectedFunctionMapper funcMapper;
if (System.getSecurityManager() != null) {
funcMapper = (ProtectedFunctionMapper) AccessController.doPrivileged(
new PrivilegedAction() {
@Ove... | [
"public",
"static",
"ProtectedFunctionMapper",
"getInstance",
"(",
")",
"{",
"ProtectedFunctionMapper",
"funcMapper",
";",
"if",
"(",
"System",
".",
"getSecurityManager",
"(",
")",
"!=",
"null",
")",
"{",
"funcMapper",
"=",
"(",
"ProtectedFunctionMapper",
")",
"Ac... | Generated Servlet and Tag Handler implementations call this
method to retrieve an instance of the ProtectedFunctionMapper.
This is necessary since generated code does not have access to
create instances of classes in this package.
@return A new protected function mapper. | [
"Generated",
"Servlet",
"and",
"Tag",
"Handler",
"implementations",
"call",
"this",
"method",
"to",
"retrieve",
"an",
"instance",
"of",
"the",
"ProtectedFunctionMapper",
".",
"This",
"is",
"necessary",
"since",
"generated",
"code",
"does",
"not",
"have",
"access",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp.2.3/src/org/apache/jasper/runtime/ProtectedFunctionMapper.java#L103-L118 |
66,473 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp.2.3/src/org/apache/jasper/runtime/ProtectedFunctionMapper.java | ProtectedFunctionMapper.resolveFunction | @Override
public Method resolveFunction(String prefix, String localName) {
return (Method) this.fnmap.get(prefix + ":" + localName);
} | java | @Override
public Method resolveFunction(String prefix, String localName) {
return (Method) this.fnmap.get(prefix + ":" + localName);
} | [
"@",
"Override",
"public",
"Method",
"resolveFunction",
"(",
"String",
"prefix",
",",
"String",
"localName",
")",
"{",
"return",
"(",
"Method",
")",
"this",
".",
"fnmap",
".",
"get",
"(",
"prefix",
"+",
"\":\"",
"+",
"localName",
")",
";",
"}"
] | Resolves the specified local name and prefix into a Java.lang.Method.
Returns null if the prefix and local name are not found.
@param prefix the prefix of the function
@param localName the short name of the function
@return the result of the method mapping. Null means no entry found. | [
"Resolves",
"the",
"specified",
"local",
"name",
"and",
"prefix",
"into",
"a",
"Java",
".",
"lang",
".",
"Method",
".",
"Returns",
"null",
"if",
"the",
"prefix",
"and",
"local",
"name",
"are",
"not",
"found",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp.2.3/src/org/apache/jasper/runtime/ProtectedFunctionMapper.java#L177-L180 |
66,474 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSRepeated.java | JSRepeated.setItemType | public void setItemType(JMFType elem) {
if (elem == null)
throw new NullPointerException("Repeated item cannot be null");
itemType = (JSType)elem;
itemType.parent = this;
itemType.siblingPosition = 0;
} | java | public void setItemType(JMFType elem) {
if (elem == null)
throw new NullPointerException("Repeated item cannot be null");
itemType = (JSType)elem;
itemType.parent = this;
itemType.siblingPosition = 0;
} | [
"public",
"void",
"setItemType",
"(",
"JMFType",
"elem",
")",
"{",
"if",
"(",
"elem",
"==",
"null",
")",
"throw",
"new",
"NullPointerException",
"(",
"\"Repeated item cannot be null\"",
")",
";",
"itemType",
"=",
"(",
"JSType",
")",
"elem",
";",
"itemType",
... | Set the item type of the array | [
"Set",
"the",
"item",
"type",
"of",
"the",
"array"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSRepeated.java#L82-L88 |
66,475 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/channel/HttpDispatcherChannel.java | HttpDispatcherChannel.incrementActiveConns | protected void incrementActiveConns() {
int count = this.activeConnections.incrementAndGet();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Increment active, current=" + count);
}
} | java | protected void incrementActiveConns() {
int count = this.activeConnections.incrementAndGet();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Increment active, current=" + count);
}
} | [
"protected",
"void",
"incrementActiveConns",
"(",
")",
"{",
"int",
"count",
"=",
"this",
".",
"activeConnections",
".",
"incrementAndGet",
"(",
")",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",... | Increase the number of active connections currently being processed inside
the HTTP dispatcher. | [
"Increase",
"the",
"number",
"of",
"active",
"connections",
"currently",
"being",
"processed",
"inside",
"the",
"HTTP",
"dispatcher",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/channel/HttpDispatcherChannel.java#L109-L114 |
66,476 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/channel/HttpDispatcherChannel.java | HttpDispatcherChannel.decrementActiveConns | protected void decrementActiveConns() {
int count = this.activeConnections.decrementAndGet();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Decrement active, current=" + count);
}
if (0 == count && this.quiescing) {
signalNoConne... | java | protected void decrementActiveConns() {
int count = this.activeConnections.decrementAndGet();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Decrement active, current=" + count);
}
if (0 == count && this.quiescing) {
signalNoConne... | [
"protected",
"void",
"decrementActiveConns",
"(",
")",
"{",
"int",
"count",
"=",
"this",
".",
"activeConnections",
".",
"decrementAndGet",
"(",
")",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",... | Decrement the number of active connections being processed by the dispatcher. | [
"Decrement",
"the",
"number",
"of",
"active",
"connections",
"being",
"processed",
"by",
"the",
"dispatcher",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/channel/HttpDispatcherChannel.java#L119-L127 |
66,477 | OpenLiberty/open-liberty | dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/internal/ZipFileData.java | ZipFileData.enactOpen | @Trivial
public void enactOpen(long openAt) {
String methodName = "enactOpen";
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled() ) {
Tr.debug(tc, methodName + " On [ " + path + " ] at [ " + toRelSec(initialAt, openAt) + " (s) ]");
}
if ( zipFileState == Zip... | java | @Trivial
public void enactOpen(long openAt) {
String methodName = "enactOpen";
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled() ) {
Tr.debug(tc, methodName + " On [ " + path + " ] at [ " + toRelSec(initialAt, openAt) + " (s) ]");
}
if ( zipFileState == Zip... | [
"@",
"Trivial",
"public",
"void",
"enactOpen",
"(",
"long",
"openAt",
")",
"{",
"String",
"methodName",
"=",
"\"enactOpen\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr... | PENDING -> FULLY_CLOSED | [
"PENDING",
"-",
">",
"FULLY_CLOSED"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/internal/ZipFileData.java#L200-L264 |
66,478 | OpenLiberty/open-liberty | dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/internal/ZipFileData.java | ZipFileData.reacquireZipFile | @Trivial
protected ZipFile reacquireZipFile() throws IOException, ZipException {
String methodName = "reacquireZipFile";
File rawZipFile = new File(path);
long newZipLength = FileUtils.fileLength(rawZipFile);
long newZipLastModified = FileUtils.fileLastModified(rawZipFile);
... | java | @Trivial
protected ZipFile reacquireZipFile() throws IOException, ZipException {
String methodName = "reacquireZipFile";
File rawZipFile = new File(path);
long newZipLength = FileUtils.fileLength(rawZipFile);
long newZipLastModified = FileUtils.fileLastModified(rawZipFile);
... | [
"@",
"Trivial",
"protected",
"ZipFile",
"reacquireZipFile",
"(",
")",
"throws",
"IOException",
",",
"ZipException",
"{",
"String",
"methodName",
"=",
"\"reacquireZipFile\"",
";",
"File",
"rawZipFile",
"=",
"new",
"File",
"(",
"path",
")",
";",
"long",
"newZipLen... | Re-acquire the ZIP file.
If either the zip file length or last modified times changed
since the zip file was set, re-open the zip file and update
the length and last modified times.
A warning is displayed if changes are detected and there are
active opens. If there are no active opens, the data will be
in a pending ... | [
"Re",
"-",
"acquire",
"the",
"ZIP",
"file",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/internal/ZipFileData.java#L468-L535 |
66,479 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/XMLUtils.java | XMLUtils.getAttribute | public static String getAttribute(XMLStreamReader reader, String localName) {
int count = reader.getAttributeCount();
for (int i = 0; i < count; i++) {
String name = reader.getAttributeLocalName(i);
if (localName.equals(name)) {
return reader.getAttributeValue(i);... | java | public static String getAttribute(XMLStreamReader reader, String localName) {
int count = reader.getAttributeCount();
for (int i = 0; i < count; i++) {
String name = reader.getAttributeLocalName(i);
if (localName.equals(name)) {
return reader.getAttributeValue(i);... | [
"public",
"static",
"String",
"getAttribute",
"(",
"XMLStreamReader",
"reader",
",",
"String",
"localName",
")",
"{",
"int",
"count",
"=",
"reader",
".",
"getAttributeCount",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"count",
";",
... | Get the element attribute value
@param reader
@param localName
@return | [
"Get",
"the",
"element",
"attribute",
"value"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/XMLUtils.java#L29-L38 |
66,480 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/XMLUtils.java | XMLUtils.createInstanceByElement | public static <T> T createInstanceByElement(XMLStreamReader reader, Class<T> clazz, Set<String> attrNames) {
if (reader == null || clazz == null || attrNames == null)
return null;
try {
T instance = clazz.newInstance();
int count = reader.getAttributeCount();
... | java | public static <T> T createInstanceByElement(XMLStreamReader reader, Class<T> clazz, Set<String> attrNames) {
if (reader == null || clazz == null || attrNames == null)
return null;
try {
T instance = clazz.newInstance();
int count = reader.getAttributeCount();
... | [
"public",
"static",
"<",
"T",
">",
"T",
"createInstanceByElement",
"(",
"XMLStreamReader",
"reader",
",",
"Class",
"<",
"T",
">",
"clazz",
",",
"Set",
"<",
"String",
">",
"attrNames",
")",
"{",
"if",
"(",
"reader",
"==",
"null",
"||",
"clazz",
"==",
"n... | Create the instance by parse the element, the instance's class must have the empty construct.
The clazz must have the fields in attrNames and all the fields type must be String
@param reader
@param clazz
@param attrNames
@return | [
"Create",
"the",
"instance",
"by",
"parse",
"the",
"element",
"the",
"instance",
"s",
"class",
"must",
"have",
"the",
"empty",
"construct",
".",
"The",
"clazz",
"must",
"have",
"the",
"fields",
"in",
"attrNames",
"and",
"all",
"the",
"fields",
"type",
"mus... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/XMLUtils.java#L49-L80 |
66,481 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java | BindingsHelper.removeEjbBindings | public void removeEjbBindings()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "removeEjbBindings called");
// Just loop through the values, not the keys, as the simple-binding-name
// key may have a # in front of it when the bean was not simple,... | java | public void removeEjbBindings()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "removeEjbBindings called");
// Just loop through the values, not the keys, as the simple-binding-name
// key may have a # in front of it when the bean was not simple,... | [
"public",
"void",
"removeEjbBindings",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"removeEjbBindings called\"",
")",
";",
"// Just ... | Removes all of the EJB bindings for this EJB from the bean specific
and sever wide maps. | [
"Removes",
"all",
"of",
"the",
"EJB",
"bindings",
"for",
"this",
"EJB",
"from",
"the",
"bean",
"specific",
"and",
"sever",
"wide",
"maps",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java#L162-L177 |
66,482 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java | BindingsHelper.isUniqueShortDefaultBinding | public boolean isUniqueShortDefaultBinding(String interfaceName)
{
// If there were no explicit bindings, and only one implicit
// binding, then it is considered uniquie. d457053.1
BindingData bdata = ivServerContextBindingMap.get(interfaceName);
if (bdata != n... | java | public boolean isUniqueShortDefaultBinding(String interfaceName)
{
// If there were no explicit bindings, and only one implicit
// binding, then it is considered uniquie. d457053.1
BindingData bdata = ivServerContextBindingMap.get(interfaceName);
if (bdata != n... | [
"public",
"boolean",
"isUniqueShortDefaultBinding",
"(",
"String",
"interfaceName",
")",
"{",
"// If there were no explicit bindings, and only one implicit",
"// binding, then it is considered uniquie. d457053.1",
"BindingData",
"bdata",
"=",
"ivServerContextBindingMa... | Returns true if a short form default binding is present for the
specified interface, and the current bean is currently the
only bean with this short form default binding, and there are
no explicit bindings.
@param interfaceName name of the EJB interface to check for a
unique short form binding. | [
"Returns",
"true",
"if",
"a",
"short",
"form",
"default",
"binding",
"is",
"present",
"for",
"the",
"specified",
"interface",
"and",
"the",
"current",
"bean",
"is",
"currently",
"the",
"only",
"bean",
"with",
"this",
"short",
"form",
"default",
"binding",
"a... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java#L200-L215 |
66,483 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java | BindingsHelper.removeShortDefaultBindings | public void removeShortDefaultBindings()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "removeShortDefaultBindings called");
for (String bindingName : ivEjbContextShortDefaultJndiNames)
{
removeFromServerContextBindingMap(bindingName... | java | public void removeShortDefaultBindings()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "removeShortDefaultBindings called");
for (String bindingName : ivEjbContextShortDefaultJndiNames)
{
removeFromServerContextBindingMap(bindingName... | [
"public",
"void",
"removeShortDefaultBindings",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"removeShortDefaultBindings called\"",
")",
... | Removes all of the short form default bindings for this EJB from
the bean specific and sever wide maps. | [
"Removes",
"all",
"of",
"the",
"short",
"form",
"default",
"bindings",
"for",
"this",
"EJB",
"from",
"the",
"bean",
"specific",
"and",
"sever",
"wide",
"maps",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java#L230-L241 |
66,484 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java | BindingsHelper.addToServerContextBindingMap | private void addToServerContextBindingMap(String interfaceName,
String bindingName)
throws NameAlreadyBoundException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "addToServerContextBindingMap : "... | java | private void addToServerContextBindingMap(String interfaceName,
String bindingName)
throws NameAlreadyBoundException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "addToServerContextBindingMap : "... | [
"private",
"void",
"addToServerContextBindingMap",
"(",
"String",
"interfaceName",
",",
"String",
"bindingName",
")",
"throws",
"NameAlreadyBoundException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",... | d457053.1 | [
"d457053",
".",
"1"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java#L557-L631 |
66,485 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java | BindingsHelper.getLocalHelper | public static BindingsHelper getLocalHelper(HomeRecord homeRecord)
{
if (homeRecord.ivLocalBindingsHelper == null)
{
homeRecord.ivLocalBindingsHelper =
new BindingsHelper(homeRecord,
cvAllLocalBindings,
... | java | public static BindingsHelper getLocalHelper(HomeRecord homeRecord)
{
if (homeRecord.ivLocalBindingsHelper == null)
{
homeRecord.ivLocalBindingsHelper =
new BindingsHelper(homeRecord,
cvAllLocalBindings,
... | [
"public",
"static",
"BindingsHelper",
"getLocalHelper",
"(",
"HomeRecord",
"homeRecord",
")",
"{",
"if",
"(",
"homeRecord",
".",
"ivLocalBindingsHelper",
"==",
"null",
")",
"{",
"homeRecord",
".",
"ivLocalBindingsHelper",
"=",
"new",
"BindingsHelper",
"(",
"homeReco... | A method for obtaining a Binding Name Helper for use with the local jndi namespace.
@param homeRecord The HomeRecord associated with the bean whose interfaces or home are to
have jndi binding name(s) constructed.
@return An instance of a BindingsHelper for generating jndi names intended to be bound into
the local jndi... | [
"A",
"method",
"for",
"obtaining",
"a",
"Binding",
"Name",
"Helper",
"for",
"use",
"with",
"the",
"local",
"jndi",
"namespace",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java#L790-L800 |
66,486 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java | BindingsHelper.getRemoteHelper | public static BindingsHelper getRemoteHelper(HomeRecord homeRecord)
{
if (homeRecord.ivRemoteBindingsHelper == null)
{
homeRecord.ivRemoteBindingsHelper =
new BindingsHelper(homeRecord,
cvAllRemoteBindings,
... | java | public static BindingsHelper getRemoteHelper(HomeRecord homeRecord)
{
if (homeRecord.ivRemoteBindingsHelper == null)
{
homeRecord.ivRemoteBindingsHelper =
new BindingsHelper(homeRecord,
cvAllRemoteBindings,
... | [
"public",
"static",
"BindingsHelper",
"getRemoteHelper",
"(",
"HomeRecord",
"homeRecord",
")",
"{",
"if",
"(",
"homeRecord",
".",
"ivRemoteBindingsHelper",
"==",
"null",
")",
"{",
"homeRecord",
".",
"ivRemoteBindingsHelper",
"=",
"new",
"BindingsHelper",
"(",
"homeR... | A method for obtaining a Binding Name Helper for use with the remote jndi namespace.
@param homeRecord The HomeRecord associated with the bean whose interfaces or home are to
have jndi binding name(s) constructed.
@return an instance of a BindingsHelper for generating jndi names intended to be bound into
the remote jn... | [
"A",
"method",
"for",
"obtaining",
"a",
"Binding",
"Name",
"Helper",
"for",
"use",
"with",
"the",
"remote",
"jndi",
"namespace",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java#L810-L820 |
66,487 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java | LogRepositoryManagerImpl.stop | public synchronized void stop() {
if (timer != null) {
timer.keepRunning = false;
timer.interrupt();
timer = null;
}
// Remove this manager from the space alert list
LogRepositorySpaceAlert.getInstance().removeRepositoryInfo(this);
} | java | public synchronized void stop() {
if (timer != null) {
timer.keepRunning = false;
timer.interrupt();
timer = null;
}
// Remove this manager from the space alert list
LogRepositorySpaceAlert.getInstance().removeRepositoryInfo(this);
} | [
"public",
"synchronized",
"void",
"stop",
"(",
")",
"{",
"if",
"(",
"timer",
"!=",
"null",
")",
"{",
"timer",
".",
"keepRunning",
"=",
"false",
";",
"timer",
".",
"interrupt",
"(",
")",
";",
"timer",
"=",
"null",
";",
"}",
"// Remove this manager from th... | stop logging and thus stop the timer retention thread | [
"stop",
"logging",
"and",
"thus",
"stop",
"the",
"timer",
"retention",
"thread"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java#L102-L110 |
66,488 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java | LogRepositoryManagerImpl.calculateFileSplit | protected static long calculateFileSplit(long repositorySize) {
if (repositorySize <= 0) {
return MAX_LOG_FILE_SIZE;
}
if (repositorySize < MIN_REPOSITORY_SIZE) {
throw new IllegalArgumentException("Specified repository size is too small");
}
long result = repositorySize / SPLIT_RATIO;
if (resul... | java | protected static long calculateFileSplit(long repositorySize) {
if (repositorySize <= 0) {
return MAX_LOG_FILE_SIZE;
}
if (repositorySize < MIN_REPOSITORY_SIZE) {
throw new IllegalArgumentException("Specified repository size is too small");
}
long result = repositorySize / SPLIT_RATIO;
if (resul... | [
"protected",
"static",
"long",
"calculateFileSplit",
"(",
"long",
"repositorySize",
")",
"{",
"if",
"(",
"repositorySize",
"<=",
"0",
")",
"{",
"return",
"MAX_LOG_FILE_SIZE",
";",
"}",
"if",
"(",
"repositorySize",
"<",
"MIN_REPOSITORY_SIZE",
")",
"{",
"throw",
... | calculates maximum size of repository files based on the required maximum limit
on total size of the repository.
@param repositorySize space constrain on the repository.
@return size constrain of an individual file in the repository. | [
"calculates",
"maximum",
"size",
"of",
"repository",
"files",
"based",
"on",
"the",
"required",
"maximum",
"limit",
"on",
"total",
"size",
"of",
"the",
"repository",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java#L162-L179 |
66,489 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java | LogRepositoryManagerImpl.initFileList | private void initFileList(boolean force) {
if (totalSize < 0 || force) {
fileList.clear();
parentFilesMap.clear();
totalSize = 0L;
File[] files = listRepositoryFiles();
if (files.length > 0) {
Arrays.sort(files, fileComparator);
for (File file: files) {
long size = AccessHelper.getFileLeng... | java | private void initFileList(boolean force) {
if (totalSize < 0 || force) {
fileList.clear();
parentFilesMap.clear();
totalSize = 0L;
File[] files = listRepositoryFiles();
if (files.length > 0) {
Arrays.sort(files, fileComparator);
for (File file: files) {
long size = AccessHelper.getFileLeng... | [
"private",
"void",
"initFileList",
"(",
"boolean",
"force",
")",
"{",
"if",
"(",
"totalSize",
"<",
"0",
"||",
"force",
")",
"{",
"fileList",
".",
"clear",
"(",
")",
";",
"parentFilesMap",
".",
"clear",
"(",
")",
";",
"totalSize",
"=",
"0L",
";",
"Fil... | Initializes file list from the list of files in the repository.
This method should be called while holding a lock on fileList.
@param force indicator that the list should be initialized from the file
system even if it was initialized before. | [
"Initializes",
"file",
"list",
"from",
"the",
"list",
"of",
"files",
"in",
"the",
"repository",
".",
"This",
"method",
"should",
"be",
"called",
"while",
"holding",
"a",
"lock",
"on",
"fileList",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java#L205-L238 |
66,490 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java | LogRepositoryManagerImpl.deleteEmptyRepositoryDirs | protected void deleteEmptyRepositoryDirs() {
File[] directories = listRepositoryDirs();
//determine if the server/controller instance directory is empty
for(int i = 0; i < directories.length; i++){
// This is a directory we should not delete
boolean currentDir = ivSubDirectory != null && ivSubDirectory.c... | java | protected void deleteEmptyRepositoryDirs() {
File[] directories = listRepositoryDirs();
//determine if the server/controller instance directory is empty
for(int i = 0; i < directories.length; i++){
// This is a directory we should not delete
boolean currentDir = ivSubDirectory != null && ivSubDirectory.c... | [
"protected",
"void",
"deleteEmptyRepositoryDirs",
"(",
")",
"{",
"File",
"[",
"]",
"directories",
"=",
"listRepositoryDirs",
"(",
")",
";",
"//determine if the server/controller instance directory is empty",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"director... | Deletes all empty server instance directories, including empty servant directories | [
"Deletes",
"all",
"empty",
"server",
"instance",
"directories",
"including",
"empty",
"servant",
"directories"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java#L244-L275 |
66,491 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java | LogRepositoryManagerImpl.deleteDirectory | protected void deleteDirectory(File directoryName){
if (debugLogger.isLoggable(Level.FINE) && isDebugEnabled()) {
debugLogger.logp(Level.FINE, thisClass, "deleteDirectory", "empty directory "+((directoryName == null) ? "None":
directoryName.getPath()));
}
if (AccessHelper.deleteFile(directoryName)) { //... | java | protected void deleteDirectory(File directoryName){
if (debugLogger.isLoggable(Level.FINE) && isDebugEnabled()) {
debugLogger.logp(Level.FINE, thisClass, "deleteDirectory", "empty directory "+((directoryName == null) ? "None":
directoryName.getPath()));
}
if (AccessHelper.deleteFile(directoryName)) { //... | [
"protected",
"void",
"deleteDirectory",
"(",
"File",
"directoryName",
")",
"{",
"if",
"(",
"debugLogger",
".",
"isLoggable",
"(",
"Level",
".",
"FINE",
")",
"&&",
"isDebugEnabled",
"(",
")",
")",
"{",
"debugLogger",
".",
"logp",
"(",
"Level",
".",
"FINE",
... | Deletes the specified directory
@param the name of the directory to be deleted | [
"Deletes",
"the",
"specified",
"directory"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java#L281-L296 |
66,492 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java | LogRepositoryManagerImpl.purgeOldFiles | private boolean purgeOldFiles(long total) {
boolean result = false;
// Should delete some files.
if (debugLogger.isLoggable(Level.FINE) && LogRepositoryBaseImpl.isDebugEnabled()) {
debugLogger.logp(Level.FINE, thisClass, "purgeOldFiles", "total: "+total+" listSz: "+fileList.size());
}
while(total > 0 && fi... | java | private boolean purgeOldFiles(long total) {
boolean result = false;
// Should delete some files.
if (debugLogger.isLoggable(Level.FINE) && LogRepositoryBaseImpl.isDebugEnabled()) {
debugLogger.logp(Level.FINE, thisClass, "purgeOldFiles", "total: "+total+" listSz: "+fileList.size());
}
while(total > 0 && fi... | [
"private",
"boolean",
"purgeOldFiles",
"(",
"long",
"total",
")",
"{",
"boolean",
"result",
"=",
"false",
";",
"// Should delete some files.",
"if",
"(",
"debugLogger",
".",
"isLoggable",
"(",
"Level",
".",
"FINE",
")",
"&&",
"LogRepositoryBaseImpl",
".",
"isDeb... | Removes old files from the repository. This method does not remove
the most recent file.
This method should be called while holding a lock on fileList.
@param total the amount in bytes of required free space.
@return <code>true</code> if at least one file was removed from the repository. | [
"Removes",
"old",
"files",
"from",
"the",
"repository",
".",
"This",
"method",
"does",
"not",
"remove",
"the",
"most",
"recent",
"file",
".",
"This",
"method",
"should",
"be",
"called",
"while",
"holding",
"a",
"lock",
"on",
"fileList",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java#L356-L373 |
66,493 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java | LogRepositoryManagerImpl.purgeOldestFile | private FileDetails purgeOldestFile() {
debugListLL("prepurgeOldestFile") ;
debugListHM("prepurgeOldestFile") ;
FileDetails returnFD = getOldestInactive() ;
if (debugLogger.isLoggable(Level.FINE) && LogRepositoryBaseImpl.isDebugEnabled()) {
debugLogger.logp(Level.FINE, thisClass, "purgeOldestFile", "oldestI... | java | private FileDetails purgeOldestFile() {
debugListLL("prepurgeOldestFile") ;
debugListHM("prepurgeOldestFile") ;
FileDetails returnFD = getOldestInactive() ;
if (debugLogger.isLoggable(Level.FINE) && LogRepositoryBaseImpl.isDebugEnabled()) {
debugLogger.logp(Level.FINE, thisClass, "purgeOldestFile", "oldestI... | [
"private",
"FileDetails",
"purgeOldestFile",
"(",
")",
"{",
"debugListLL",
"(",
"\"prepurgeOldestFile\"",
")",
";",
"debugListHM",
"(",
"\"prepurgeOldestFile\"",
")",
";",
"FileDetails",
"returnFD",
"=",
"getOldestInactive",
"(",
")",
";",
"if",
"(",
"debugLogger",
... | Removes the oldest file from the repository. This method has logic to avoid removing currently active files
This method should be called with a lock on filelist already attained
@return instance representing the deleted file or <code>null</code> if
fileList was reinitinialized. | [
"Removes",
"the",
"oldest",
"file",
"from",
"the",
"repository",
".",
"This",
"method",
"has",
"logic",
"to",
"avoid",
"removing",
"currently",
"active",
"files",
"This",
"method",
"should",
"be",
"called",
"with",
"a",
"lock",
"on",
"filelist",
"already",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java#L382-L418 |
66,494 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java | LogRepositoryManagerImpl.addNewFileFromSubProcess | public synchronized String addNewFileFromSubProcess(long spTimeStamp, String spPid, String spLabel) {
// TODO: It is theoretically possible that subProcess already created one of these (although it won't happen in our scenario.
// Consider either pulling actual pid from the files on initFileList or looking for the ... | java | public synchronized String addNewFileFromSubProcess(long spTimeStamp, String spPid, String spLabel) {
// TODO: It is theoretically possible that subProcess already created one of these (although it won't happen in our scenario.
// Consider either pulling actual pid from the files on initFileList or looking for the ... | [
"public",
"synchronized",
"String",
"addNewFileFromSubProcess",
"(",
"long",
"spTimeStamp",
",",
"String",
"spPid",
",",
"String",
"spLabel",
")",
"{",
"// TODO: It is theoretically possible that subProcess already created one of these (although it won't happen in our scenario.",
"//... | add information about a new file being created by a subProcess in order to maintain retention information. This is done for all
files created by each subProcess. If IPC facility is not ready, subProcess may have to create first, then notify when IPC is up.
@param spTimeStamp timestamp to associate with the file
@param... | [
"add",
"information",
"about",
"a",
"new",
"file",
"being",
"created",
"by",
"a",
"subProcess",
"in",
"order",
"to",
"maintain",
"retention",
"information",
".",
"This",
"is",
"done",
"for",
"all",
"files",
"created",
"by",
"each",
"subProcess",
".",
"If",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java#L462-L496 |
66,495 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java | LogRepositoryManagerImpl.inactivateSubProcess | public void inactivateSubProcess(String spPid) {
synchronized (fileList) { // always lock fileList first to avoid deadlock
synchronized(activeFilesMap) { // Right into sync block because 99% case is that map contains pid
activeFilesMap.remove(spPid) ;
}
}
if (debugLogger.isLoggable(Level.FINE) && LogR... | java | public void inactivateSubProcess(String spPid) {
synchronized (fileList) { // always lock fileList first to avoid deadlock
synchronized(activeFilesMap) { // Right into sync block because 99% case is that map contains pid
activeFilesMap.remove(spPid) ;
}
}
if (debugLogger.isLoggable(Level.FINE) && LogR... | [
"public",
"void",
"inactivateSubProcess",
"(",
"String",
"spPid",
")",
"{",
"synchronized",
"(",
"fileList",
")",
"{",
"// always lock fileList first to avoid deadlock",
"synchronized",
"(",
"activeFilesMap",
")",
"{",
"// Right into sync block because 99% case is that map cont... | inactivate active file for a given process. Should only be one file active for a process
@param spPid | [
"inactivate",
"active",
"file",
"for",
"a",
"given",
"process",
".",
"Should",
"only",
"be",
"one",
"file",
"active",
"for",
"a",
"process"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java#L502-L511 |
66,496 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/FileServletWrapper.java | FileServletWrapper.getContentLength | protected int getContentLength(boolean update) {
if (update){
contentLength = (int) this.getFileSize(update);
return contentLength;
} else {
if (contentLength==-1){
contentLength = (int) this.getFileSize(update);
retur... | java | protected int getContentLength(boolean update) {
if (update){
contentLength = (int) this.getFileSize(update);
return contentLength;
} else {
if (contentLength==-1){
contentLength = (int) this.getFileSize(update);
retur... | [
"protected",
"int",
"getContentLength",
"(",
"boolean",
"update",
")",
"{",
"if",
"(",
"update",
")",
"{",
"contentLength",
"=",
"(",
"int",
")",
"this",
".",
"getFileSize",
"(",
"update",
")",
";",
"return",
"contentLength",
";",
"}",
"else",
"{",
"if",... | PM92967, pulled up method | [
"PM92967",
"pulled",
"up",
"method"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/FileServletWrapper.java#L744-L757 |
66,497 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParserException.java | ScheduleExpressionParserException.logError | public void logError(String moduleName, String beanName, String methodName)
{
Tr.error(tc, ivError.getMessageId(), new Object[] { beanName, moduleName, methodName, ivField });
} | java | public void logError(String moduleName, String beanName, String methodName)
{
Tr.error(tc, ivError.getMessageId(), new Object[] { beanName, moduleName, methodName, ivField });
} | [
"public",
"void",
"logError",
"(",
"String",
"moduleName",
",",
"String",
"beanName",
",",
"String",
"methodName",
")",
"{",
"Tr",
".",
"error",
"(",
"tc",
",",
"ivError",
".",
"getMessageId",
"(",
")",
",",
"new",
"Object",
"[",
"]",
"{",
"beanName",
... | Logs an error message corresponding to this exception.
@param moduleName the module name
@param beanName the bean name | [
"Logs",
"an",
"error",
"message",
"corresponding",
"to",
"this",
"exception",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParserException.java#L95-L98 |
66,498 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/items/SIMPItem.java | SIMPItem.restore | protected void restore(ObjectInputStream ois, int dataVersion) throws SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "restore", new Object[] { dataVersion});
checkPersistentVersionId(dataVersion);
if (TraceComponent.isAnyTracingEnabl... | java | protected void restore(ObjectInputStream ois, int dataVersion) throws SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "restore", new Object[] { dataVersion});
checkPersistentVersionId(dataVersion);
if (TraceComponent.isAnyTracingEnabl... | [
"protected",
"void",
"restore",
"(",
"ObjectInputStream",
"ois",
",",
"int",
"dataVersion",
")",
"throws",
"SevereMessageStoreException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"S... | Child classes should override this method to restore their persistent
data.
@param ois ObjectInputStream to restore data from.
@param dataVersion Version number of object read from store.
@throws SevereMessageStoreException | [
"Child",
"classes",
"should",
"override",
"this",
"method",
"to",
"restore",
"their",
"persistent",
"data",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/items/SIMPItem.java#L110-L118 |
66,499 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/FileDirObjectStore.java | FileDirObjectStore.captureCheckpointManagedObjects | synchronized void captureCheckpointManagedObjects()
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"captureCheckpointManagedObjectsremove"
);
// Now that we are synchron... | java | synchronized void captureCheckpointManagedObjects()
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"captureCheckpointManagedObjectsremove"
);
// Now that we are synchron... | [
"synchronized",
"void",
"captureCheckpointManagedObjects",
"(",
")",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"entry",
"(",
"this",
",",
"cclass",
",",
"\"captureCheckpo... | Capture the ManagedObjects to write and delete as part of the checkpoint. | [
"Capture",
"the",
"ManagedObjects",
"to",
"write",
"and",
"delete",
"as",
"part",
"of",
"the",
"checkpoint",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/FileDirObjectStore.java#L436-L459 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.