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 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java | HttpEndpointImpl.shutdownFramework | @FFDCIgnore(Exception.class)
final void shutdownFramework() {
Tr.audit(tc, "httpChain.error.shutdown", name);
try {
Bundle bundle = bundleContext.getBundle(Constants.SYSTEM_BUNDLE_LOCATION);
if (bundle != null)
bundle.stop();
} catch (Exception e) {
... | java | @FFDCIgnore(Exception.class)
final void shutdownFramework() {
Tr.audit(tc, "httpChain.error.shutdown", name);
try {
Bundle bundle = bundleContext.getBundle(Constants.SYSTEM_BUNDLE_LOCATION);
if (bundle != null)
bundle.stop();
} catch (Exception e) {
... | [
"@",
"FFDCIgnore",
"(",
"Exception",
".",
"class",
")",
"final",
"void",
"shutdownFramework",
"(",
")",
"{",
"Tr",
".",
"audit",
"(",
"tc",
",",
"\"httpChain.error.shutdown\"",
",",
"name",
")",
";",
"try",
"{",
"Bundle",
"bundle",
"=",
"bundleContext",
".... | When an error occurs during startup and the config variable
fail.on.error.enabled is true,
then this method is used to stop the root bundle thus bringing down the
OSGi framework. | [
"When",
"an",
"error",
"occurs",
"during",
"startup",
"and",
"the",
"config",
"variable",
"fail",
".",
"on",
".",
"error",
".",
"enabled",
"is",
"true",
"then",
"this",
"method",
"is",
"used",
"to",
"stop",
"the",
"root",
"bundle",
"thus",
"bringing",
"d... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java#L392-L405 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java | HttpEndpointImpl.setSslOptions | @Trivial
@Reference(name = "sslOptions",
service = ChannelConfiguration.class,
policy = ReferencePolicy.DYNAMIC,
policyOption = ReferencePolicyOption.GREEDY,
cardinality = ReferenceCardinality.OPTIONAL)
protected void setSslOptions(ServiceReference<Cha... | java | @Trivial
@Reference(name = "sslOptions",
service = ChannelConfiguration.class,
policy = ReferencePolicy.DYNAMIC,
policyOption = ReferencePolicyOption.GREEDY,
cardinality = ReferenceCardinality.OPTIONAL)
protected void setSslOptions(ServiceReference<Cha... | [
"@",
"Trivial",
"@",
"Reference",
"(",
"name",
"=",
"\"sslOptions\"",
",",
"service",
"=",
"ChannelConfiguration",
".",
"class",
",",
"policy",
"=",
"ReferencePolicy",
".",
"DYNAMIC",
",",
"policyOption",
"=",
"ReferencePolicyOption",
".",
"GREEDY",
",",
"cardin... | The specific sslOptions is selected by a filter set through metatype that matches a specific
user-configured option set or falls back to a default.
@param service | [
"The",
"specific",
"sslOptions",
"is",
"selected",
"by",
"a",
"filter",
"set",
"through",
"metatype",
"that",
"matches",
"a",
"specific",
"user",
"-",
"configured",
"option",
"set",
"or",
"falls",
"back",
"to",
"a",
"default",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java#L496-L510 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java | HttpEndpointImpl.setRemoteIp | @Trivial
@Reference(name = "remoteIp",
service = ChannelConfiguration.class,
policy = ReferencePolicy.DYNAMIC,
policyOption = ReferencePolicyOption.GREEDY,
cardinality = ReferenceCardinality.MANDATORY)
protected void setRemoteIp(ChannelConfiguration co... | java | @Trivial
@Reference(name = "remoteIp",
service = ChannelConfiguration.class,
policy = ReferencePolicy.DYNAMIC,
policyOption = ReferencePolicyOption.GREEDY,
cardinality = ReferenceCardinality.MANDATORY)
protected void setRemoteIp(ChannelConfiguration co... | [
"@",
"Trivial",
"@",
"Reference",
"(",
"name",
"=",
"\"remoteIp\"",
",",
"service",
"=",
"ChannelConfiguration",
".",
"class",
",",
"policy",
"=",
"ReferencePolicy",
".",
"DYNAMIC",
",",
"policyOption",
"=",
"ReferencePolicyOption",
".",
"GREEDY",
",",
"cardinal... | The specific remoteIpOptions is selected by a filter set through metatype that matches a specific user-configured option set or falls back to a default.
@param service | [
"The",
"specific",
"remoteIpOptions",
"is",
"selected",
"by",
"a",
"filter",
"set",
"through",
"metatype",
"that",
"matches",
"a",
"specific",
"user",
"-",
"configured",
"option",
"set",
"or",
"falls",
"back",
"to",
"a",
"default",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java#L618-L632 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java | HttpEndpointImpl.setExecutorService | @Reference(name = "executorService", service = ExecutorService.class, policy = ReferencePolicy.DYNAMIC)
protected void setExecutorService(ServiceReference<ExecutorService> executorService) {
this.executorService.setReference(executorService);
} | java | @Reference(name = "executorService", service = ExecutorService.class, policy = ReferencePolicy.DYNAMIC)
protected void setExecutorService(ServiceReference<ExecutorService> executorService) {
this.executorService.setReference(executorService);
} | [
"@",
"Reference",
"(",
"name",
"=",
"\"executorService\"",
",",
"service",
"=",
"ExecutorService",
".",
"class",
",",
"policy",
"=",
"ReferencePolicy",
".",
"DYNAMIC",
")",
"protected",
"void",
"setExecutorService",
"(",
"ServiceReference",
"<",
"ExecutorService",
... | DS method for setting the required dynamic executor service reference.
@param bundle | [
"DS",
"method",
"for",
"setting",
"the",
"required",
"dynamic",
"executor",
"service",
"reference",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java#L678-L681 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java | HttpEndpointImpl.performAction | @Trivial
private void performAction(Runnable action, boolean addToQueue) {
ExecutorService exec = executorService.getService();
if (exec == null) {
// If we can't find the executor service, we have to run it in place.
action.run();
} else {
// If we can f... | java | @Trivial
private void performAction(Runnable action, boolean addToQueue) {
ExecutorService exec = executorService.getService();
if (exec == null) {
// If we can't find the executor service, we have to run it in place.
action.run();
} else {
// If we can f... | [
"@",
"Trivial",
"private",
"void",
"performAction",
"(",
"Runnable",
"action",
",",
"boolean",
"addToQueue",
")",
"{",
"ExecutorService",
"exec",
"=",
"executorService",
".",
"getService",
"(",
")",
";",
"if",
"(",
"exec",
"==",
"null",
")",
"{",
"// If we c... | Schedule an activity to run off the SCR action thread,
if the ExecutorService is available
@param action Runnable action to execute
@param addToQueue Set to false if the action should be scheduled independently of the actionQueue | [
"Schedule",
"an",
"activity",
"to",
"run",
"off",
"the",
"SCR",
"action",
"thread",
"if",
"the",
"ExecutorService",
"is",
"available"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java#L748-L782 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThroughputDistribution.java | ThroughputDistribution.reset | synchronized void reset(double value, int updated) {
ewma = value;
ewmaStddev = value * SINGLE_VALUE_STDDEV;
ewmaVariance = ewmaStddev * ewmaStddev;
consecutiveOutliers = 0;
lastUpdate = updated;
} | java | synchronized void reset(double value, int updated) {
ewma = value;
ewmaStddev = value * SINGLE_VALUE_STDDEV;
ewmaVariance = ewmaStddev * ewmaStddev;
consecutiveOutliers = 0;
lastUpdate = updated;
} | [
"synchronized",
"void",
"reset",
"(",
"double",
"value",
",",
"int",
"updated",
")",
"{",
"ewma",
"=",
"value",
";",
"ewmaStddev",
"=",
"value",
"*",
"SINGLE_VALUE_STDDEV",
";",
"ewmaVariance",
"=",
"ewmaStddev",
"*",
"ewmaStddev",
";",
"consecutiveOutliers",
... | Reset the distribution by throwing away all history and
adding a single data point.
@param value the single data point that makes up the distribution | [
"Reset",
"the",
"distribution",
"by",
"throwing",
"away",
"all",
"history",
"and",
"adding",
"a",
"single",
"data",
"point",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThroughputDistribution.java#L95-L101 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThroughputDistribution.java | ThroughputDistribution.addDataPoint | synchronized void addDataPoint(double value, int updated) {
// 8/10/2012: Force the standard deviation to 1/3 of the first data point
// 8/11:2012: Force it to 1/6th of the first data point (more accurate)
if (ewmaVariance == Double.NEGATIVE_INFINITY) {
reset(value, updated);
... | java | synchronized void addDataPoint(double value, int updated) {
// 8/10/2012: Force the standard deviation to 1/3 of the first data point
// 8/11:2012: Force it to 1/6th of the first data point (more accurate)
if (ewmaVariance == Double.NEGATIVE_INFINITY) {
reset(value, updated);
... | [
"synchronized",
"void",
"addDataPoint",
"(",
"double",
"value",
",",
"int",
"updated",
")",
"{",
"// 8/10/2012: Force the standard deviation to 1/3 of the first data point",
"// 8/11:2012: Force it to 1/6th of the first data point (more accurate)",
"if",
"(",
"ewmaVariance",
"==",
... | Add a throughput observation to the distribution, setting lastUpdate
@param value the observed throughput | [
"Add",
"a",
"throughput",
"observation",
"to",
"the",
"distribution",
"setting",
"lastUpdate"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThroughputDistribution.java#L143-L159 | train |
OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.el.3.0/src/javax/el/Util.java | Util.handleThrowable | static void handleThrowable(Throwable t) {
if (t instanceof ThreadDeath) {
throw (ThreadDeath) t;
}
if (t instanceof VirtualMachineError) {
throw (VirtualMachineError) t;
}
// All other instances of Throwable will be silently swallowed
} | java | static void handleThrowable(Throwable t) {
if (t instanceof ThreadDeath) {
throw (ThreadDeath) t;
}
if (t instanceof VirtualMachineError) {
throw (VirtualMachineError) t;
}
// All other instances of Throwable will be silently swallowed
} | [
"static",
"void",
"handleThrowable",
"(",
"Throwable",
"t",
")",
"{",
"if",
"(",
"t",
"instanceof",
"ThreadDeath",
")",
"{",
"throw",
"(",
"ThreadDeath",
")",
"t",
";",
"}",
"if",
"(",
"t",
"instanceof",
"VirtualMachineError",
")",
"{",
"throw",
"(",
"Vi... | Checks whether the supplied Throwable is one that needs to be
rethrown and swallows all others.
@param t the Throwable to check | [
"Checks",
"whether",
"the",
"supplied",
"Throwable",
"is",
"one",
"that",
"needs",
"to",
"be",
"rethrown",
"and",
"swallows",
"all",
"others",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.el.3.0/src/javax/el/Util.java#L48-L56 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/cache/Cache.java | Cache.isEvictionRequired | protected boolean isEvictionRequired() {
boolean evictionRequired = false;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
int size = primaryTable.size() + secondaryTable.size() + tertiaryTable.size();
Tr.debug(tc, "The current cache size is " + size + "( " + p... | java | protected boolean isEvictionRequired() {
boolean evictionRequired = false;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
int size = primaryTable.size() + secondaryTable.size() + tertiaryTable.size();
Tr.debug(tc, "The current cache size is " + size + "( " + p... | [
"protected",
"boolean",
"isEvictionRequired",
"(",
")",
"{",
"boolean",
"evictionRequired",
"=",
"false",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"int",
"size",
"=",
"prim... | Determine if the cache is "full" and entries need
to be evicted. | [
"Determine",
"if",
"the",
"cache",
"is",
""",
";",
"full"",
";",
"and",
"entries",
"need",
"to",
"be",
"evicted",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/cache/Cache.java#L190-L209 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/ee6/MyFacesContainerInitializer.java | MyFacesContainerInitializer.isDelegatedFacesServlet | private boolean isDelegatedFacesServlet(String className)
{
if (className == null)
{
// The class name can be null if this is e.g., a JSP mapped to
// a servlet.
return false;
}
try
{
Class<?> clazz = Class.forName(className);
... | java | private boolean isDelegatedFacesServlet(String className)
{
if (className == null)
{
// The class name can be null if this is e.g., a JSP mapped to
// a servlet.
return false;
}
try
{
Class<?> clazz = Class.forName(className);
... | [
"private",
"boolean",
"isDelegatedFacesServlet",
"(",
"String",
"className",
")",
"{",
"if",
"(",
"className",
"==",
"null",
")",
"{",
"// The class name can be null if this is e.g., a JSP mapped to",
"// a servlet.",
"return",
"false",
";",
"}",
"try",
"{",
"Class",
... | Checks if the class represented by className implements DelegatedFacesServlet.
@param className
@return | [
"Checks",
"if",
"the",
"class",
"represented",
"by",
"className",
"implements",
"DelegatedFacesServlet",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/ee6/MyFacesContainerInitializer.java#L287-L305 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java | PmiRegistry.unregisterModule | public static synchronized void unregisterModule(PmiModule instance) {
if (disabled)
return;
if (instance == null) // || instance.getPath().length<=1) return;
return;
// check if the path has null in it. if a module is unregistered twice
// the path will have nul... | java | public static synchronized void unregisterModule(PmiModule instance) {
if (disabled)
return;
if (instance == null) // || instance.getPath().length<=1) return;
return;
// check if the path has null in it. if a module is unregistered twice
// the path will have nul... | [
"public",
"static",
"synchronized",
"void",
"unregisterModule",
"(",
"PmiModule",
"instance",
")",
"{",
"if",
"(",
"disabled",
")",
"return",
";",
"if",
"(",
"instance",
"==",
"null",
")",
"// || instance.getPath().length<=1) return;",
"return",
";",
"// check if th... | remove module - never remove TYPE_MODULE. | [
"remove",
"module",
"-",
"never",
"remove",
"TYPE_MODULE",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java#L265-L316 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java | PmiRegistry.getModuleAggregate | protected static ModuleAggregate getModuleAggregate(String moduleID) {
ModuleAggregate aggregate = (ModuleAggregate) moduleAggregates.get(moduleID);
if (aggregate != null)
return aggregate;
// need to create it - synchronized
synchronized (moduleAggregates) {
aggr... | java | protected static ModuleAggregate getModuleAggregate(String moduleID) {
ModuleAggregate aggregate = (ModuleAggregate) moduleAggregates.get(moduleID);
if (aggregate != null)
return aggregate;
// need to create it - synchronized
synchronized (moduleAggregates) {
aggr... | [
"protected",
"static",
"ModuleAggregate",
"getModuleAggregate",
"(",
"String",
"moduleID",
")",
"{",
"ModuleAggregate",
"aggregate",
"=",
"(",
"ModuleAggregate",
")",
"moduleAggregates",
".",
"get",
"(",
"moduleID",
")",
";",
"if",
"(",
"aggregate",
"!=",
"null",
... | create it if not there - synchronized | [
"create",
"it",
"if",
"not",
"there",
"-",
"synchronized"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java#L347-L363 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java | PmiRegistry.findModuleItem | public static ModuleItem findModuleItem(String[] path) {
if (disabled)
return null;
if (path == null || path[0].equals(APPSERVER_MODULE)) {
return moduleRoot;
}
return moduleRoot.find(path, 0);
} | java | public static ModuleItem findModuleItem(String[] path) {
if (disabled)
return null;
if (path == null || path[0].equals(APPSERVER_MODULE)) {
return moduleRoot;
}
return moduleRoot.find(path, 0);
} | [
"public",
"static",
"ModuleItem",
"findModuleItem",
"(",
"String",
"[",
"]",
"path",
")",
"{",
"if",
"(",
"disabled",
")",
"return",
"null",
";",
"if",
"(",
"path",
"==",
"null",
"||",
"path",
"[",
"0",
"]",
".",
"equals",
"(",
"APPSERVER_MODULE",
")",... | find a ModuleItem | [
"find",
"a",
"ModuleItem"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java#L411-L418 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java | PmiRegistry.getInstrumentationLevel | public static StatLevelSpec[] getInstrumentationLevel(StatDescriptor sd, boolean recursive) {
if (disabled)
return null;
ModuleItem item = findModuleItem(sd.getPath());
if (item == null) { // wrong moduleName
return null;
} else {
if (!recursive) {
... | java | public static StatLevelSpec[] getInstrumentationLevel(StatDescriptor sd, boolean recursive) {
if (disabled)
return null;
ModuleItem item = findModuleItem(sd.getPath());
if (item == null) { // wrong moduleName
return null;
} else {
if (!recursive) {
... | [
"public",
"static",
"StatLevelSpec",
"[",
"]",
"getInstrumentationLevel",
"(",
"StatDescriptor",
"sd",
",",
"boolean",
"recursive",
")",
"{",
"if",
"(",
"disabled",
")",
"return",
"null",
";",
"ModuleItem",
"item",
"=",
"findModuleItem",
"(",
"sd",
".",
"getPa... | 6.0 API | [
"6",
".",
"0",
"API"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java#L664-L690 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java | PmiRegistry.getInstrumentationLevel | public static int getInstrumentationLevel(String[] path) {
if (disabled)
return LEVEL_UNDEFINED;
DataDescriptor dd = new DataDescriptor(path);
ModuleItem item = findModuleItem(dd);
if (item == null) { // wrong moduleName
return LEVEL_UNDEFINED;
} else {
... | java | public static int getInstrumentationLevel(String[] path) {
if (disabled)
return LEVEL_UNDEFINED;
DataDescriptor dd = new DataDescriptor(path);
ModuleItem item = findModuleItem(dd);
if (item == null) { // wrong moduleName
return LEVEL_UNDEFINED;
} else {
... | [
"public",
"static",
"int",
"getInstrumentationLevel",
"(",
"String",
"[",
"]",
"path",
")",
"{",
"if",
"(",
"disabled",
")",
"return",
"LEVEL_UNDEFINED",
";",
"DataDescriptor",
"dd",
"=",
"new",
"DataDescriptor",
"(",
"path",
")",
";",
"ModuleItem",
"item",
... | get instrumenation level based on the path during runtime | [
"get",
"instrumenation",
"level",
"based",
"on",
"the",
"path",
"during",
"runtime"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java#L819-L829 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java | PmiRegistry.getInstrumentationLevelString | public static String getInstrumentationLevelString() {
if (disabled)
return null;
Map modules = moduleRoot.children;
if (modules == null) {
return "";
} else {
PerfLevelDescriptor[] plds = new PerfLevelDescriptor[modules.size()];
Iterator v... | java | public static String getInstrumentationLevelString() {
if (disabled)
return null;
Map modules = moduleRoot.children;
if (modules == null) {
return "";
} else {
PerfLevelDescriptor[] plds = new PerfLevelDescriptor[modules.size()];
Iterator v... | [
"public",
"static",
"String",
"getInstrumentationLevelString",
"(",
")",
"{",
"if",
"(",
"disabled",
")",
"return",
"null",
";",
"Map",
"modules",
"=",
"moduleRoot",
".",
"children",
";",
"if",
"(",
"modules",
"==",
"null",
")",
"{",
"return",
"\"\"",
";",... | return the top level modules's PerfLevelDescriptor in String | [
"return",
"the",
"top",
"level",
"modules",
"s",
"PerfLevelDescriptor",
"in",
"String"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java#L845-L863 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtBuilder.java | JwtBuilder.audience | public JwtBuilder audience(List<String> newaudiences)
throws InvalidClaimException {
// this.AUDIENCE
// if (newaudiences != null && !newaudiences.isEmpty()) {
//
// ArrayList<String> audiences = new ArrayList<String>();
// for (String aud... | java | public JwtBuilder audience(List<String> newaudiences)
throws InvalidClaimException {
// this.AUDIENCE
// if (newaudiences != null && !newaudiences.isEmpty()) {
//
// ArrayList<String> audiences = new ArrayList<String>();
// for (String aud... | [
"public",
"JwtBuilder",
"audience",
"(",
"List",
"<",
"String",
">",
"newaudiences",
")",
"throws",
"InvalidClaimException",
"{",
"// this.AUDIENCE",
"// if (newaudiences != null && !newaudiences.isEmpty()) {",
"//",
"// ArrayList<String> audiences = new ArrayList<S... | Sets audience claim. This claim in the JWT identifies the recipients that the token is intended for.
@param newaudiences
This is a list of Strings and will be used to set the "aud" claim in the {@code JwtToken}
@return {@code JwtBuilder} object
@throws InvalidClaimException
Thrown if the newaudiences is {@code null}, ... | [
"Sets",
"audience",
"claim",
".",
"This",
"claim",
"in",
"the",
"JWT",
"identifies",
"the",
"recipients",
"that",
"the",
"token",
"is",
"intended",
"for",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtBuilder.java#L184-L211 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtBuilder.java | JwtBuilder.signWith | public JwtBuilder signWith(String algorithm, Key key) throws KeyException {
builder = builder.signWith(algorithm, key);
return this;
} | java | public JwtBuilder signWith(String algorithm, Key key) throws KeyException {
builder = builder.signWith(algorithm, key);
return this;
} | [
"public",
"JwtBuilder",
"signWith",
"(",
"String",
"algorithm",
",",
"Key",
"key",
")",
"throws",
"KeyException",
"{",
"builder",
"=",
"builder",
".",
"signWith",
"(",
"algorithm",
",",
"key",
")",
";",
"return",
"this",
";",
"}"
] | Signing key and algorithm information.
@param algorithm
This String value represents the signing algorithm. This information will be used
to sign the {@code JwtToken}
@param key
The private key {@code Key} to use for signing JWTs.
@return {@code JwtBuilder} object
@throws KeyException
Thrown if the key is {@code null}... | [
"Signing",
"key",
"and",
"algorithm",
"information",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtBuilder.java#L327-L330 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtBuilder.java | JwtBuilder.claim | public JwtBuilder claim(String name, Object value)
throws InvalidClaimException {
// if (isValidClaim(name, value)) {
// if (name.equals(Claims.AUDIENCE)) {
// if (value instanceof ArrayList) {
// this.audience((ArrayList) v... | java | public JwtBuilder claim(String name, Object value)
throws InvalidClaimException {
// if (isValidClaim(name, value)) {
// if (name.equals(Claims.AUDIENCE)) {
// if (value instanceof ArrayList) {
// this.audience((ArrayList) v... | [
"public",
"JwtBuilder",
"claim",
"(",
"String",
"name",
",",
"Object",
"value",
")",
"throws",
"InvalidClaimException",
"{",
"// if (isValidClaim(name, value)) {",
"// if (name.equals(Claims.AUDIENCE)) {",
"// if (value instanceof ArrayList) {",
"// ... | Sets the specified claim.
@param name
This is a String and represents the name of the claim
@param value
This is an Object and represents the value of the claim
@return {@code JwtBuilder} object
@throws InvalidClaimException
Thrown if the claim is {@code null}, or the value is {@code null} or the value is not the corr... | [
"Sets",
"the",
"specified",
"claim",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtBuilder.java#L364-L437 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtBuilder.java | JwtBuilder.claim | public JwtBuilder claim(Map<String, Object> map)
throws InvalidClaimException {
// if (map == null) {
// String err = Tr.formatMessage(tc, "JWT_INVALID_CLAIMS_ERR");// "JWT_INVALID_CLAIMS_ERR";
// throw new InvalidClaimException(err);
// }
... | java | public JwtBuilder claim(Map<String, Object> map)
throws InvalidClaimException {
// if (map == null) {
// String err = Tr.formatMessage(tc, "JWT_INVALID_CLAIMS_ERR");// "JWT_INVALID_CLAIMS_ERR";
// throw new InvalidClaimException(err);
// }
... | [
"public",
"JwtBuilder",
"claim",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"map",
")",
"throws",
"InvalidClaimException",
"{",
"// if (map == null) {",
"// String err = Tr.formatMessage(tc, \"JWT_INVALID_CLAIMS_ERR\");// \"JWT_INVALID_CLAIMS_ERR\";",
"// ... | Sets the specified claims.
@param map
This is a Map and represents the collection of claim name and claim value pairs to be set in the JWT.
@return {@code JwtBuilder} object
@throws InvalidClaimException
Thrown if the claim is {@code null}, or the value is {@code null} or the value is not the correct type for the
cla... | [
"Sets",
"the",
"specified",
"claims",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtBuilder.java#L451-L462 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtBuilder.java | JwtBuilder.claimFrom | public JwtBuilder claimFrom(String jsonOrJwt, String claim)
throws InvalidClaimException, InvalidTokenException {
// if (JwtUtils.isNullEmpty(claim)) {
// String err = Tr.formatMessage(tc, "JWT_INVALID_CLAIM_ERR",
// new Object[] { claim });
... | java | public JwtBuilder claimFrom(String jsonOrJwt, String claim)
throws InvalidClaimException, InvalidTokenException {
// if (JwtUtils.isNullEmpty(claim)) {
// String err = Tr.formatMessage(tc, "JWT_INVALID_CLAIM_ERR",
// new Object[] { claim });
... | [
"public",
"JwtBuilder",
"claimFrom",
"(",
"String",
"jsonOrJwt",
",",
"String",
"claim",
")",
"throws",
"InvalidClaimException",
",",
"InvalidTokenException",
"{",
"// if (JwtUtils.isNullEmpty(claim)) {",
"// String err = Tr.formatMessage(tc, \"JWT_INVALID_CLAIM_ERR... | Retrieves the specified claim from the given json or jwt string.
@param jsonOrJwt
This is a String and represents either base 64 encoded or decoded JWT payload in the json format or base 64
encoded JWT
@return {@code JwtBuilder} object
@throws InvalidClaimException
Thrown if the claim is {@code null} or empty
@throws... | [
"Retrieves",
"the",
"specified",
"claim",
"from",
"the",
"given",
"json",
"or",
"jwt",
"string",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtBuilder.java#L542-L584 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDataReceivedInvocation.java | ReceiveListenerDataReceivedInvocation.getThreadContext | protected Dispatchable getThreadContext()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getThreadContext");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getThreadContext");
return null;
} | java | protected Dispatchable getThreadContext()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getThreadContext");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getThreadContext");
return null;
} | [
"protected",
"Dispatchable",
"getThreadContext",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getThreadContext\"",
"... | Not needed for receive listener data invocations
@return Returns null. | [
"Not",
"needed",
"for",
"receive",
"listener",
"data",
"invocations"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDataReceivedInvocation.java#L92-L98 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDataReceivedInvocation.java | ReceiveListenerDataReceivedInvocation.invoke | protected synchronized void invoke()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "invoke");
try
{
// Pass details to implementor's conversation receive listener.
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils... | java | protected synchronized void invoke()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "invoke");
try
{
// Pass details to implementor's conversation receive listener.
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils... | [
"protected",
"synchronized",
"void",
"invoke",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"invoke\"",
")",
";",... | Invokes the dataReceived method. If the callback throws an exception
than the connection associated with it is invalidated. | [
"Invokes",
"the",
"dataReceived",
"method",
".",
"If",
"the",
"callback",
"throws",
"an",
"exception",
"than",
"the",
"connection",
"associated",
"with",
"it",
"is",
"invalidated",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDataReceivedInvocation.java#L105-L135 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDataReceivedInvocation.java | ReceiveListenerDataReceivedInvocation.reset | protected synchronized void reset(Connection connection,
ReceiveListener listener,
WsByteBuffer data,
int size,
int segmentType,
int requestNumber,
int priority,
... | java | protected synchronized void reset(Connection connection,
ReceiveListener listener,
WsByteBuffer data,
int size,
int segmentType,
int requestNumber,
int priority,
... | [
"protected",
"synchronized",
"void",
"reset",
"(",
"Connection",
"connection",
",",
"ReceiveListener",
"listener",
",",
"WsByteBuffer",
"data",
",",
"int",
"size",
",",
"int",
"segmentType",
",",
"int",
"requestNumber",
",",
"int",
"priority",
",",
"boolean",
"a... | Resets the state of this invocation object - used by the pooling code. | [
"Resets",
"the",
"state",
"of",
"this",
"invocation",
"object",
"-",
"used",
"by",
"the",
"pooling",
"code",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDataReceivedInvocation.java#L138-L177 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDataReceivedInvocation.java | ReceiveListenerDataReceivedInvocation.repool | protected synchronized void repool()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "repool");
// begin F181705.5
connection = null;
listener = null;
data = null;
conversation = null;
// end F181705.5
owningPool.add(this);
... | java | protected synchronized void repool()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "repool");
// begin F181705.5
connection = null;
listener = null;
data = null;
conversation = null;
// end F181705.5
owningPool.add(this);
... | [
"protected",
"synchronized",
"void",
"repool",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"repool\"",
")",
";",... | Returns this object to its associated object pool. | [
"Returns",
"this",
"object",
"to",
"its",
"associated",
"object",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDataReceivedInvocation.java#L180-L194 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OidcClientUtil.java | OidcClientUtil.setCookieForRequestParameter | public static void setCookieForRequestParameter(HttpServletRequest request, HttpServletResponse response, String id, String state, boolean isHttpsRequest, ConvergedClientConfig clientCfg) {
//OidcClientConfigImpl clientCfg = activatedOidcClientImpl.getOidcClientConfig(request, id);
Map<String, String[]>... | java | public static void setCookieForRequestParameter(HttpServletRequest request, HttpServletResponse response, String id, String state, boolean isHttpsRequest, ConvergedClientConfig clientCfg) {
//OidcClientConfigImpl clientCfg = activatedOidcClientImpl.getOidcClientConfig(request, id);
Map<String, String[]>... | [
"public",
"static",
"void",
"setCookieForRequestParameter",
"(",
"HttpServletRequest",
"request",
",",
"HttpServletResponse",
"response",
",",
"String",
"id",
",",
"String",
"state",
",",
"boolean",
"isHttpsRequest",
",",
"ConvergedClientConfig",
"clientCfg",
")",
"{",
... | set the code cookie during authentication | [
"set",
"the",
"code",
"cookie",
"during",
"authentication"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OidcClientUtil.java#L382-L420 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/utils/JAXRSUtils.java | JAXRSUtils.getStructuredParams | public static MultivaluedMap<String, String> getStructuredParams(String query,
String sep,
boolean decode,
boolea... | java | public static MultivaluedMap<String, String> getStructuredParams(String query,
String sep,
boolean decode,
boolea... | [
"public",
"static",
"MultivaluedMap",
"<",
"String",
",",
"String",
">",
"getStructuredParams",
"(",
"String",
"query",
",",
"String",
"sep",
",",
"boolean",
"decode",
",",
"boolean",
"decodePlus",
")",
"{",
"MultivaluedMap",
"<",
"String",
",",
"String",
">",... | Retrieve map of query parameters from the passed in message
@param message
@return a Map of query parameters. | [
"Retrieve",
"map",
"of",
"query",
"parameters",
"from",
"the",
"passed",
"in",
"message"
] | 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/JAXRSUtils.java#L1285-L1294 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/utils/JAXRSUtils.java | JAXRSUtils.intersectMimeTypes | public static List<MediaType> intersectMimeTypes(List<MediaType> requiredMediaTypes,
List<MediaType> userMediaTypes,
boolean addRequiredParamsIfPossible) {
return intersectMimeTypes(requiredMediaTypes, user... | java | public static List<MediaType> intersectMimeTypes(List<MediaType> requiredMediaTypes,
List<MediaType> userMediaTypes,
boolean addRequiredParamsIfPossible) {
return intersectMimeTypes(requiredMediaTypes, user... | [
"public",
"static",
"List",
"<",
"MediaType",
">",
"intersectMimeTypes",
"(",
"List",
"<",
"MediaType",
">",
"requiredMediaTypes",
",",
"List",
"<",
"MediaType",
">",
"userMediaTypes",
",",
"boolean",
"addRequiredParamsIfPossible",
")",
"{",
"return",
"intersectMime... | intersect two mime types
@param mimeTypesA
@param mimeTypesB
@return return a list of intersected mime types | [
"intersect",
"two",
"mime",
"types"
] | 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/JAXRSUtils.java#L1543-L1547 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.metrics/src/com/ibm/ws/microprofile/metrics/impl/MetricRegistryImpl.java | MetricRegistryImpl.addNameToApplicationMap | protected void addNameToApplicationMap(String name) {
String appName = getApplicationName();
// If it is a base metric, the name will be null
if (appName == null)
return;
ConcurrentLinkedQueue<String> list = applicationMap.get(appName);
if (list == null) {
... | java | protected void addNameToApplicationMap(String name) {
String appName = getApplicationName();
// If it is a base metric, the name will be null
if (appName == null)
return;
ConcurrentLinkedQueue<String> list = applicationMap.get(appName);
if (list == null) {
... | [
"protected",
"void",
"addNameToApplicationMap",
"(",
"String",
"name",
")",
"{",
"String",
"appName",
"=",
"getApplicationName",
"(",
")",
";",
"// If it is a base metric, the name will be null",
"if",
"(",
"appName",
"==",
"null",
")",
"return",
";",
"ConcurrentLinke... | Adds the metric name to an application map.
This map is not a complete list of metrics owned by an application,
produced metrics are managed in the MetricsExtension
@param name | [
"Adds",
"the",
"metric",
"name",
"to",
"an",
"application",
"map",
".",
"This",
"map",
"is",
"not",
"a",
"complete",
"list",
"of",
"metrics",
"owned",
"by",
"an",
"application",
"produced",
"metrics",
"are",
"managed",
"in",
"the",
"MetricsExtension"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.metrics/src/com/ibm/ws/microprofile/metrics/impl/MetricRegistryImpl.java#L180-L194 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.metrics/src/com/ibm/ws/microprofile/metrics/impl/MetricRegistryImpl.java | MetricRegistryImpl.getNames | @Override
public SortedSet<String> getNames() {
return Collections.unmodifiableSortedSet(new TreeSet<String>(metrics.keySet()));
} | java | @Override
public SortedSet<String> getNames() {
return Collections.unmodifiableSortedSet(new TreeSet<String>(metrics.keySet()));
} | [
"@",
"Override",
"public",
"SortedSet",
"<",
"String",
">",
"getNames",
"(",
")",
"{",
"return",
"Collections",
".",
"unmodifiableSortedSet",
"(",
"new",
"TreeSet",
"<",
"String",
">",
"(",
"metrics",
".",
"keySet",
"(",
")",
")",
")",
";",
"}"
] | Returns a set of the names of all the metrics in the registry.
@return the names of all the metrics | [
"Returns",
"a",
"set",
"of",
"the",
"names",
"of",
"all",
"the",
"metrics",
"in",
"the",
"registry",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.metrics/src/com/ibm/ws/microprofile/metrics/impl/MetricRegistryImpl.java#L319-L322 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.metrics/src/com/ibm/ws/microprofile/metrics/impl/MetricRegistryImpl.java | MetricRegistryImpl.getCounters | @Override
public SortedMap<String, Counter> getCounters(MetricFilter filter) {
return getMetrics(Counter.class, filter);
} | java | @Override
public SortedMap<String, Counter> getCounters(MetricFilter filter) {
return getMetrics(Counter.class, filter);
} | [
"@",
"Override",
"public",
"SortedMap",
"<",
"String",
",",
"Counter",
">",
"getCounters",
"(",
"MetricFilter",
"filter",
")",
"{",
"return",
"getMetrics",
"(",
"Counter",
".",
"class",
",",
"filter",
")",
";",
"}"
] | Returns a map of all the counters in the registry and their names which match the given
filter.
@param filter the metric filter to match
@return all the counters in the registry | [
"Returns",
"a",
"map",
"of",
"all",
"the",
"counters",
"in",
"the",
"registry",
"and",
"their",
"names",
"which",
"match",
"the",
"given",
"filter",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.metrics/src/com/ibm/ws/microprofile/metrics/impl/MetricRegistryImpl.java#L362-L365 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.metrics/src/com/ibm/ws/microprofile/metrics/impl/MetricRegistryImpl.java | MetricRegistryImpl.getHistograms | @Override
public SortedMap<String, Histogram> getHistograms(MetricFilter filter) {
return getMetrics(Histogram.class, filter);
} | java | @Override
public SortedMap<String, Histogram> getHistograms(MetricFilter filter) {
return getMetrics(Histogram.class, filter);
} | [
"@",
"Override",
"public",
"SortedMap",
"<",
"String",
",",
"Histogram",
">",
"getHistograms",
"(",
"MetricFilter",
"filter",
")",
"{",
"return",
"getMetrics",
"(",
"Histogram",
".",
"class",
",",
"filter",
")",
";",
"}"
] | Returns a map of all the histograms in the registry and their names which match the given
filter.
@param filter the metric filter to match
@return all the histograms in the registry | [
"Returns",
"a",
"map",
"of",
"all",
"the",
"histograms",
"in",
"the",
"registry",
"and",
"their",
"names",
"which",
"match",
"the",
"given",
"filter",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.metrics/src/com/ibm/ws/microprofile/metrics/impl/MetricRegistryImpl.java#L384-L387 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.metrics/src/com/ibm/ws/microprofile/metrics/impl/MetricRegistryImpl.java | MetricRegistryImpl.getMeters | @Override
public SortedMap<String, Meter> getMeters(MetricFilter filter) {
return getMetrics(Meter.class, filter);
} | java | @Override
public SortedMap<String, Meter> getMeters(MetricFilter filter) {
return getMetrics(Meter.class, filter);
} | [
"@",
"Override",
"public",
"SortedMap",
"<",
"String",
",",
"Meter",
">",
"getMeters",
"(",
"MetricFilter",
"filter",
")",
"{",
"return",
"getMetrics",
"(",
"Meter",
".",
"class",
",",
"filter",
")",
";",
"}"
] | Returns a map of all the meters in the registry and their names which match the given filter.
@param filter the metric filter to match
@return all the meters in the registry | [
"Returns",
"a",
"map",
"of",
"all",
"the",
"meters",
"in",
"the",
"registry",
"and",
"their",
"names",
"which",
"match",
"the",
"given",
"filter",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.metrics/src/com/ibm/ws/microprofile/metrics/impl/MetricRegistryImpl.java#L405-L408 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.metrics/src/com/ibm/ws/microprofile/metrics/impl/MetricRegistryImpl.java | MetricRegistryImpl.getTimers | @Override
public SortedMap<String, Timer> getTimers(MetricFilter filter) {
return getMetrics(Timer.class, filter);
} | java | @Override
public SortedMap<String, Timer> getTimers(MetricFilter filter) {
return getMetrics(Timer.class, filter);
} | [
"@",
"Override",
"public",
"SortedMap",
"<",
"String",
",",
"Timer",
">",
"getTimers",
"(",
"MetricFilter",
"filter",
")",
"{",
"return",
"getMetrics",
"(",
"Timer",
".",
"class",
",",
"filter",
")",
";",
"}"
] | Returns a map of all the timers in the registry and their names which match the given filter.
@param filter the metric filter to match
@return all the timers in the registry | [
"Returns",
"a",
"map",
"of",
"all",
"the",
"timers",
"in",
"the",
"registry",
"and",
"their",
"names",
"which",
"match",
"the",
"given",
"filter",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.metrics/src/com/ibm/ws/microprofile/metrics/impl/MetricRegistryImpl.java#L426-L429 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/LookupTable.java | LookupTable.addElement | public synchronized int addElement(E theElement) {
if (theElement == null) {
return -1;
}
if (elementCount == currentCapacity) {
// try to expand the table to handle the new value, if that fails
// then it will throw an illegalstate exception
expan... | java | public synchronized int addElement(E theElement) {
if (theElement == null) {
return -1;
}
if (elementCount == currentCapacity) {
// try to expand the table to handle the new value, if that fails
// then it will throw an illegalstate exception
expan... | [
"public",
"synchronized",
"int",
"addElement",
"(",
"E",
"theElement",
")",
"{",
"if",
"(",
"theElement",
"==",
"null",
")",
"{",
"return",
"-",
"1",
";",
"}",
"if",
"(",
"elementCount",
"==",
"currentCapacity",
")",
"{",
"// try to expand the table to handle ... | Add an element to the LookupTable. Returns the index value which can be
used to look up the element in the LookupTable.
@param theElement
the object to add to the LookupTable. Should not be null.
@return an int holding the Index value which points to the object in the
LookupTable. -1 if theElement is null. | [
"Add",
"an",
"element",
"to",
"the",
"LookupTable",
".",
"Returns",
"the",
"index",
"value",
"which",
"can",
"be",
"used",
"to",
"look",
"up",
"the",
"element",
"in",
"the",
"LookupTable",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/LookupTable.java#L124-L141 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/LookupTable.java | LookupTable.removeElement | public synchronized Object removeElement(int theIndex) {
if (theIndex < 0 || theIndex > currentCapacity - 1) {
throw new IllegalArgumentException("Index is out of range.");
}
Object theElement = theElementArray[theIndex];
if (theElement != null) {
theElementArray[... | java | public synchronized Object removeElement(int theIndex) {
if (theIndex < 0 || theIndex > currentCapacity - 1) {
throw new IllegalArgumentException("Index is out of range.");
}
Object theElement = theElementArray[theIndex];
if (theElement != null) {
theElementArray[... | [
"public",
"synchronized",
"Object",
"removeElement",
"(",
"int",
"theIndex",
")",
"{",
"if",
"(",
"theIndex",
"<",
"0",
"||",
"theIndex",
">",
"currentCapacity",
"-",
"1",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Index is out of range.\"",
"... | Remove the object from the LookupTable which is referenced by the
supplied Index value.
@param theIndex
an int containing the index value of the element to remove
from the LookupTable
@return the Object which was removed from the LookupTable - null if no
object was removed. | [
"Remove",
"the",
"object",
"from",
"the",
"LookupTable",
"which",
"is",
"referenced",
"by",
"the",
"supplied",
"Index",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/LookupTable.java#L153-L164 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/LookupTable.java | LookupTable.findElement | public int findElement(Object element) {
for (int i = 0; i < currentCapacity; i++) {
if (element == theElementArray[i]) {
return i;
}
}
return -1;
} | java | public int findElement(Object element) {
for (int i = 0; i < currentCapacity; i++) {
if (element == theElementArray[i]) {
return i;
}
}
return -1;
} | [
"public",
"int",
"findElement",
"(",
"Object",
"element",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"currentCapacity",
";",
"i",
"++",
")",
"{",
"if",
"(",
"element",
"==",
"theElementArray",
"[",
"i",
"]",
")",
"{",
"return",
"i",... | Finds a supplied object in the LookupTable and returns its index.
@param element
the object to find in the LookupTable. This is a SLOW
operation as it scans the whole table.
@return the Index of the Object in the LookupTable. -1 if the object is
not in the LookupTable. | [
"Finds",
"a",
"supplied",
"object",
"in",
"the",
"LookupTable",
"and",
"returns",
"its",
"index",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/LookupTable.java#L175-L183 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/LookupTable.java | LookupTable.expandTable | @SuppressWarnings("unchecked")
private void expandTable() {
int newCapacity = currentCapacity + increment;
if (newCapacity < currentCapacity) {
throw new IllegalStateException(
"Attempt to expand LookupTable beyond maximum capacity");
}
E[] the... | java | @SuppressWarnings("unchecked")
private void expandTable() {
int newCapacity = currentCapacity + increment;
if (newCapacity < currentCapacity) {
throw new IllegalStateException(
"Attempt to expand LookupTable beyond maximum capacity");
}
E[] the... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"private",
"void",
"expandTable",
"(",
")",
"{",
"int",
"newCapacity",
"=",
"currentCapacity",
"+",
"increment",
";",
"if",
"(",
"newCapacity",
"<",
"currentCapacity",
")",
"{",
"throw",
"new",
"IllegalStateExc... | Expands the lookup table to accommodate more elements. Does this by
adding the expansion increment to the current capacity. | [
"Expands",
"the",
"lookup",
"table",
"to",
"accommodate",
"more",
"elements",
".",
"Does",
"this",
"by",
"adding",
"the",
"expansion",
"increment",
"to",
"the",
"current",
"capacity",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/LookupTable.java#L205-L216 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java | LdapAdapter.initialize | public void initialize(Map<String, Object> configProps) throws WIMException {
reposId = (String) configProps.get(KEY_ID);
reposRealm = (String) configProps.get(REALM);
if (String.valueOf(configProps.get(ConfigConstants.CONFIG_PROP_SUPPORT_CHANGE_LOG)).equalsIgnoreCase(ConfigConstants.CONFIG_SUP... | java | public void initialize(Map<String, Object> configProps) throws WIMException {
reposId = (String) configProps.get(KEY_ID);
reposRealm = (String) configProps.get(REALM);
if (String.valueOf(configProps.get(ConfigConstants.CONFIG_PROP_SUPPORT_CHANGE_LOG)).equalsIgnoreCase(ConfigConstants.CONFIG_SUP... | [
"public",
"void",
"initialize",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"configProps",
")",
"throws",
"WIMException",
"{",
"reposId",
"=",
"(",
"String",
")",
"configProps",
".",
"get",
"(",
"KEY_ID",
")",
";",
"reposRealm",
"=",
"(",
"String",
")... | Function that is invoked when the LdapAdapter is initialized.
It extracts the repository configuration details and sets itself up with the required properties.
@param configProps | [
"Function",
"that",
"is",
"invoked",
"when",
"the",
"LdapAdapter",
"is",
"initialized",
".",
"It",
"extracts",
"the",
"repository",
"configuration",
"details",
"and",
"sets",
"itself",
"up",
"with",
"the",
"required",
"properties",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java#L234-L250 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java | LdapAdapter.getCallerUniqueName | private String getCallerUniqueName() throws WIMApplicationException {
String uniqueName = null;
Subject subject = null;
WSCredential cred = null;
try {
/* Get the subject */
if ((subject = WSSubject.getRunAsSubject()) == null) {
subject = WSSubjec... | java | private String getCallerUniqueName() throws WIMApplicationException {
String uniqueName = null;
Subject subject = null;
WSCredential cred = null;
try {
/* Get the subject */
if ((subject = WSSubject.getRunAsSubject()) == null) {
subject = WSSubjec... | [
"private",
"String",
"getCallerUniqueName",
"(",
")",
"throws",
"WIMApplicationException",
"{",
"String",
"uniqueName",
"=",
"null",
";",
"Subject",
"subject",
"=",
"null",
";",
"WSCredential",
"cred",
"=",
"null",
";",
"try",
"{",
"/* Get the subject */",
"if",
... | Helper function returns the caller's unique name.
Created to use for logging the calls to clear cache with clearAll mode.
@return Caller's principalName
@throws WIMApplicationException | [
"Helper",
"function",
"returns",
"the",
"caller",
"s",
"unique",
"name",
".",
"Created",
"to",
"use",
"for",
"logging",
"the",
"calls",
"to",
"clear",
"cache",
"with",
"clearAll",
"mode",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java#L865-L897 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java | LdapAdapter.createEntityFromLdapEntry | private Entity createEntityFromLdapEntry(Object parentDO, String propName, LdapEntry ldapEntry, List<String> propNames) throws WIMException {
final String METHODNAME = "createEntityFromLdapEntry";
String outEntityType = ldapEntry.getType();
Entity outEntity = null;
// For changed entiti... | java | private Entity createEntityFromLdapEntry(Object parentDO, String propName, LdapEntry ldapEntry, List<String> propNames) throws WIMException {
final String METHODNAME = "createEntityFromLdapEntry";
String outEntityType = ldapEntry.getType();
Entity outEntity = null;
// For changed entiti... | [
"private",
"Entity",
"createEntityFromLdapEntry",
"(",
"Object",
"parentDO",
",",
"String",
"propName",
",",
"LdapEntry",
"ldapEntry",
",",
"List",
"<",
"String",
">",
"propNames",
")",
"throws",
"WIMException",
"{",
"final",
"String",
"METHODNAME",
"=",
"\"create... | Create an Entity object corresponding to the LdapEntry object returned by the LdapConnection object.
@param parentDO
@param propName
@param ldapEntry
@param propNames
@return
@throws WIMException | [
"Create",
"an",
"Entity",
"object",
"corresponding",
"to",
"the",
"LdapEntry",
"object",
"returned",
"by",
"the",
"LdapConnection",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java#L909-L970 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java | LdapAdapter.getString | @Trivial
private String getString(boolean isOctet, Object ldapValue) {
if (isOctet) {
return LdapHelper.getOctetString((byte[]) ldapValue);
} else {
return ldapValue.toString();
}
} | java | @Trivial
private String getString(boolean isOctet, Object ldapValue) {
if (isOctet) {
return LdapHelper.getOctetString((byte[]) ldapValue);
} else {
return ldapValue.toString();
}
} | [
"@",
"Trivial",
"private",
"String",
"getString",
"(",
"boolean",
"isOctet",
",",
"Object",
"ldapValue",
")",
"{",
"if",
"(",
"isOctet",
")",
"{",
"return",
"LdapHelper",
".",
"getOctetString",
"(",
"(",
"byte",
"[",
"]",
")",
"ldapValue",
")",
";",
"}",... | Convert the value into an appropriate string value.
@param isOctet
@param ldapValue
@return | [
"Convert",
"the",
"value",
"into",
"an",
"appropriate",
"string",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java#L1082-L1089 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java | LdapAdapter.getDateString | private String getDateString(Object ldapValue) throws WIMSystemException {
return String.valueOf(getDateString(ldapValue, false));
} | java | private String getDateString(Object ldapValue) throws WIMSystemException {
return String.valueOf(getDateString(ldapValue, false));
} | [
"private",
"String",
"getDateString",
"(",
"Object",
"ldapValue",
")",
"throws",
"WIMSystemException",
"{",
"return",
"String",
".",
"valueOf",
"(",
"getDateString",
"(",
"ldapValue",
",",
"false",
")",
")",
";",
"}"
] | Convert the value into an appropriate date string value.
@param ldapValue
@return | [
"Convert",
"the",
"value",
"into",
"an",
"appropriate",
"date",
"string",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java#L1097-L1099 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java | LdapAdapter.createIdentiferFromLdapEntry | @Trivial
private IdentifierType createIdentiferFromLdapEntry(LdapEntry ldapEntry) throws WIMException {
IdentifierType outId = new IdentifierType();
outId.setUniqueName(ldapEntry.getUniqueName());
outId.setExternalId(ldapEntry.getExtId());
outId.setExternalName(ldapEntry.getDN());
... | java | @Trivial
private IdentifierType createIdentiferFromLdapEntry(LdapEntry ldapEntry) throws WIMException {
IdentifierType outId = new IdentifierType();
outId.setUniqueName(ldapEntry.getUniqueName());
outId.setExternalId(ldapEntry.getExtId());
outId.setExternalName(ldapEntry.getDN());
... | [
"@",
"Trivial",
"private",
"IdentifierType",
"createIdentiferFromLdapEntry",
"(",
"LdapEntry",
"ldapEntry",
")",
"throws",
"WIMException",
"{",
"IdentifierType",
"outId",
"=",
"new",
"IdentifierType",
"(",
")",
";",
"outId",
".",
"setUniqueName",
"(",
"ldapEntry",
"... | Create an IdentifierType object for the LdapEntry.
@param ldapEntry
@return
@throws WIMException | [
"Create",
"an",
"IdentifierType",
"object",
"for",
"the",
"LdapEntry",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java#L1188-L1196 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java | LdapAdapter.setPropertyValue | @SuppressWarnings("unchecked")
private void setPropertyValue(Entity entity, Attribute attr, String propName, LdapAttribute ldapAttr) throws WIMException {
String dataType = entity.getDataType(propName);
boolean isMany = entity.isMultiValuedProperty(propName);
String syntax = LDAP_ATTR_SYNTA... | java | @SuppressWarnings("unchecked")
private void setPropertyValue(Entity entity, Attribute attr, String propName, LdapAttribute ldapAttr) throws WIMException {
String dataType = entity.getDataType(propName);
boolean isMany = entity.isMultiValuedProperty(propName);
String syntax = LDAP_ATTR_SYNTA... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"private",
"void",
"setPropertyValue",
"(",
"Entity",
"entity",
",",
"Attribute",
"attr",
",",
"String",
"propName",
",",
"LdapAttribute",
"ldapAttr",
")",
"throws",
"WIMException",
"{",
"String",
"dataType",
"="... | Set the appropriate value for the specified property.
@param entity
@param attr
@param prop
@param ldapAttr
@throws WIMException | [
"Set",
"the",
"appropriate",
"value",
"for",
"the",
"specified",
"property",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java#L1207-L1257 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java | LdapAdapter.processPropertyValue | private Object processPropertyValue(Entity entity, String propName, final String dataType, final String syntax, Object ldapValue) throws WIMException {
if (DATA_TYPE_STRING.equals(dataType)) {
boolean octet = LDAP_ATTR_SYNTAX_OCTETSTRING.equalsIgnoreCase(syntax);
return getString(octet, ... | java | private Object processPropertyValue(Entity entity, String propName, final String dataType, final String syntax, Object ldapValue) throws WIMException {
if (DATA_TYPE_STRING.equals(dataType)) {
boolean octet = LDAP_ATTR_SYNTAX_OCTETSTRING.equalsIgnoreCase(syntax);
return getString(octet, ... | [
"private",
"Object",
"processPropertyValue",
"(",
"Entity",
"entity",
",",
"String",
"propName",
",",
"final",
"String",
"dataType",
",",
"final",
"String",
"syntax",
",",
"Object",
"ldapValue",
")",
"throws",
"WIMException",
"{",
"if",
"(",
"DATA_TYPE_STRING",
... | Process the value of a property.
@param entity The entity to process the value for.
@param propName The property name to process.
@param dataType The data type of the property.
@param syntax The syntax for the property.
@param ldapValue The value from the LDAP server.
@return The processed value.
@throws WIMException ... | [
"Process",
"the",
"value",
"of",
"a",
"property",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java#L1270-L1309 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java | LdapAdapter.getGroups | private void getGroups(Entity entity, LdapEntry ldapEntry, GroupMembershipControl grpMbrshipCtrl) throws WIMException {
if (grpMbrshipCtrl == null) {
return;
}
int level = grpMbrshipCtrl.getLevel();
List<String> propNames = grpMbrshipCtrl.getProperties();
String[] ba... | java | private void getGroups(Entity entity, LdapEntry ldapEntry, GroupMembershipControl grpMbrshipCtrl) throws WIMException {
if (grpMbrshipCtrl == null) {
return;
}
int level = grpMbrshipCtrl.getLevel();
List<String> propNames = grpMbrshipCtrl.getProperties();
String[] ba... | [
"private",
"void",
"getGroups",
"(",
"Entity",
"entity",
",",
"LdapEntry",
"ldapEntry",
",",
"GroupMembershipControl",
"grpMbrshipCtrl",
")",
"throws",
"WIMException",
"{",
"if",
"(",
"grpMbrshipCtrl",
"==",
"null",
")",
"{",
"return",
";",
"}",
"int",
"level",
... | Method to get the Groups for the given entity.
@param entity
@param ldapEntry
@param grpMbrshipCtrl
@throws WIMException | [
"Method",
"to",
"get",
"the",
"Groups",
"for",
"the",
"given",
"entity",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java#L1319-L1360 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java | LdapAdapter.getDynamicMembers | private List<String> getDynamicMembers(Attribute groupMemberURLs) throws WIMException {
final String METHODNAME = "getDynamicMembers";
List<String> memberDNs = new ArrayList<String>();
if (groupMemberURLs != null) {
try {
for (NamingEnumeration<?> enu = groupMemberUR... | java | private List<String> getDynamicMembers(Attribute groupMemberURLs) throws WIMException {
final String METHODNAME = "getDynamicMembers";
List<String> memberDNs = new ArrayList<String>();
if (groupMemberURLs != null) {
try {
for (NamingEnumeration<?> enu = groupMemberUR... | [
"private",
"List",
"<",
"String",
">",
"getDynamicMembers",
"(",
"Attribute",
"groupMemberURLs",
")",
"throws",
"WIMException",
"{",
"final",
"String",
"METHODNAME",
"=",
"\"getDynamicMembers\"",
";",
"List",
"<",
"String",
">",
"memberDNs",
"=",
"new",
"ArrayList... | Method to get the list of dynamic members from the given Group Member URL.
@param groupMemberURLs
@return
@throws WIMException | [
"Method",
"to",
"get",
"the",
"list",
"of",
"dynamic",
"members",
"from",
"the",
"given",
"Group",
"Member",
"URL",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java#L2371-L2425 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java | LdapAdapter.getDescendants | private void getDescendants(Entity entity, LdapEntry ldapEntry, DescendantControl descCtrl) throws WIMException {
if (descCtrl == null) {
return;
}
List<String> propNames = descCtrl.getProperties();
int level = descCtrl.getLevel();
List<String> descTypes = getEntityT... | java | private void getDescendants(Entity entity, LdapEntry ldapEntry, DescendantControl descCtrl) throws WIMException {
if (descCtrl == null) {
return;
}
List<String> propNames = descCtrl.getProperties();
int level = descCtrl.getLevel();
List<String> descTypes = getEntityT... | [
"private",
"void",
"getDescendants",
"(",
"Entity",
"entity",
",",
"LdapEntry",
"ldapEntry",
",",
"DescendantControl",
"descCtrl",
")",
"throws",
"WIMException",
"{",
"if",
"(",
"descCtrl",
"==",
"null",
")",
"{",
"return",
";",
"}",
"List",
"<",
"String",
"... | Method to get the list of descendants.
@param entity
@param ldapEntry
@param descCtrl
@throws WIMException | [
"Method",
"to",
"get",
"the",
"list",
"of",
"descendants",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java#L2435-L2492 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java | LdapAdapter.getAncestors | private void getAncestors(Entity entity, LdapEntry ldapEntry, AncestorControl ancesCtrl) throws WIMException {
if (ancesCtrl == null) {
return;
}
List<String> propNames = ancesCtrl.getProperties();
int level = ancesCtrl.getLevel();
List<String> ancesTypes = getEntity... | java | private void getAncestors(Entity entity, LdapEntry ldapEntry, AncestorControl ancesCtrl) throws WIMException {
if (ancesCtrl == null) {
return;
}
List<String> propNames = ancesCtrl.getProperties();
int level = ancesCtrl.getLevel();
List<String> ancesTypes = getEntity... | [
"private",
"void",
"getAncestors",
"(",
"Entity",
"entity",
",",
"LdapEntry",
"ldapEntry",
",",
"AncestorControl",
"ancesCtrl",
")",
"throws",
"WIMException",
"{",
"if",
"(",
"ancesCtrl",
"==",
"null",
")",
"{",
"return",
";",
"}",
"List",
"<",
"String",
">"... | Method to get the ancestors of the given entity.
@param entity
@param ldapEntry
@param ancesCtrl
@throws WIMException | [
"Method",
"to",
"get",
"the",
"ancestors",
"of",
"the",
"given",
"entity",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java#L2579-L2610 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java | LdapAdapter.getSpecifiedRealms | public static Set<String> getSpecifiedRealms(Root root) {
Set<String> result = new HashSet<String>();
List<Context> contexts = root.getContexts();
for (Context context : contexts) {
String key = context.getKey();
if (key != null && key.equals(SchemaConstants.PROP_REALM)) ... | java | public static Set<String> getSpecifiedRealms(Root root) {
Set<String> result = new HashSet<String>();
List<Context> contexts = root.getContexts();
for (Context context : contexts) {
String key = context.getKey();
if (key != null && key.equals(SchemaConstants.PROP_REALM)) ... | [
"public",
"static",
"Set",
"<",
"String",
">",
"getSpecifiedRealms",
"(",
"Root",
"root",
")",
"{",
"Set",
"<",
"String",
">",
"result",
"=",
"new",
"HashSet",
"<",
"String",
">",
"(",
")",
";",
"List",
"<",
"Context",
">",
"contexts",
"=",
"root",
"... | return the specified realms from the root object of the input data graph
@param root
@return | [
"return",
"the",
"specified",
"realms",
"from",
"the",
"root",
"object",
"of",
"the",
"input",
"data",
"graph"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java#L2658-L2669 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java | LdapAdapter.getContextProperty | public static String getContextProperty(Root root, String propertyName) {
String result = "";
List<Context> contexts = root.getContexts();
for (Context context : contexts) {
String key = context.getKey();
if (key != null && key.equals(propertyName)) {
resu... | java | public static String getContextProperty(Root root, String propertyName) {
String result = "";
List<Context> contexts = root.getContexts();
for (Context context : contexts) {
String key = context.getKey();
if (key != null && key.equals(propertyName)) {
resu... | [
"public",
"static",
"String",
"getContextProperty",
"(",
"Root",
"root",
",",
"String",
"propertyName",
")",
"{",
"String",
"result",
"=",
"\"\"",
";",
"List",
"<",
"Context",
">",
"contexts",
"=",
"root",
".",
"getContexts",
"(",
")",
";",
"for",
"(",
"... | return the customProperty from the root object of the input data graph
@param root
@param propertyName
@return | [
"return",
"the",
"customProperty",
"from",
"the",
"root",
"object",
"of",
"the",
"input",
"data",
"graph"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java#L2678-L2689 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java | LdapAdapter.isEntitySearchBaseConfigured | private boolean isEntitySearchBaseConfigured(List<String> mbrTypes) {
String METHODNAME = "isEntitySearchBaseConfigured(mbrTypes)";
boolean isConfigured = false;
if (mbrTypes != null) {
for (String mbrType : mbrTypes) {
LdapEntity ldapEntity = iLdapConfigMgr.getLdapEn... | java | private boolean isEntitySearchBaseConfigured(List<String> mbrTypes) {
String METHODNAME = "isEntitySearchBaseConfigured(mbrTypes)";
boolean isConfigured = false;
if (mbrTypes != null) {
for (String mbrType : mbrTypes) {
LdapEntity ldapEntity = iLdapConfigMgr.getLdapEn... | [
"private",
"boolean",
"isEntitySearchBaseConfigured",
"(",
"List",
"<",
"String",
">",
"mbrTypes",
")",
"{",
"String",
"METHODNAME",
"=",
"\"isEntitySearchBaseConfigured(mbrTypes)\"",
";",
"boolean",
"isConfigured",
"=",
"false",
";",
"if",
"(",
"mbrTypes",
"!=",
"n... | Checks if a search base is configured for the entity types.
@param mbrTypes Entity types
@return | [
"Checks",
"if",
"a",
"search",
"base",
"is",
"configured",
"for",
"the",
"entity",
"types",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java#L2866-L2881 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java | LdapAdapter.deleteAll | private List<LdapEntry> deleteAll(LdapEntry ldapEntry, boolean delDescendant) throws WIMException {
String dn = ldapEntry.getDN();
List<LdapEntry> delEntries = new ArrayList<LdapEntry>();
List<LdapEntry> descs = getDescendants(dn, SearchControls.ONELEVEL_SCOPE);
if (descs.size() > 0) {
... | java | private List<LdapEntry> deleteAll(LdapEntry ldapEntry, boolean delDescendant) throws WIMException {
String dn = ldapEntry.getDN();
List<LdapEntry> delEntries = new ArrayList<LdapEntry>();
List<LdapEntry> descs = getDescendants(dn, SearchControls.ONELEVEL_SCOPE);
if (descs.size() > 0) {
... | [
"private",
"List",
"<",
"LdapEntry",
">",
"deleteAll",
"(",
"LdapEntry",
"ldapEntry",
",",
"boolean",
"delDescendant",
")",
"throws",
"WIMException",
"{",
"String",
"dn",
"=",
"ldapEntry",
".",
"getDN",
"(",
")",
";",
"List",
"<",
"LdapEntry",
">",
"delEntri... | Delete the descendants of the specified ldap entry.
@param ldapEntry
@param delDescendant
@return
@throws WIMException | [
"Delete",
"the",
"descendants",
"of",
"the",
"specified",
"ldap",
"entry",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java#L3104-L3131 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java | LdapAdapter.getDescendants | private List<LdapEntry> getDescendants(String DN, int level) throws WIMException {
int scope = SearchControls.ONELEVEL_SCOPE;
if (level == 0) {
scope = SearchControls.SUBTREE_SCOPE;
}
List<LdapEntry> descendants = new ArrayList<LdapEntry>();
Set<LdapEntry> ldapEntri... | java | private List<LdapEntry> getDescendants(String DN, int level) throws WIMException {
int scope = SearchControls.ONELEVEL_SCOPE;
if (level == 0) {
scope = SearchControls.SUBTREE_SCOPE;
}
List<LdapEntry> descendants = new ArrayList<LdapEntry>();
Set<LdapEntry> ldapEntri... | [
"private",
"List",
"<",
"LdapEntry",
">",
"getDescendants",
"(",
"String",
"DN",
",",
"int",
"level",
")",
"throws",
"WIMException",
"{",
"int",
"scope",
"=",
"SearchControls",
".",
"ONELEVEL_SCOPE",
";",
"if",
"(",
"level",
"==",
"0",
")",
"{",
"scope",
... | Get all the descendants of the given DN.
@param DN
@param level
@return
@throws WIMException | [
"Get",
"all",
"the",
"descendants",
"of",
"the",
"given",
"DN",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java#L3148-L3162 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java | LdapAdapter.getGroups | private List<String> getGroups(String dn) throws WIMException {
List<String> grpList = new ArrayList<String>();
String filter = iLdapConfigMgr.getGroupMemberFilter(dn);
String[] searchBases = iLdapConfigMgr.getGroupSearchBases();
for (int i = 0; i < searchBases.length; i++) {
... | java | private List<String> getGroups(String dn) throws WIMException {
List<String> grpList = new ArrayList<String>();
String filter = iLdapConfigMgr.getGroupMemberFilter(dn);
String[] searchBases = iLdapConfigMgr.getGroupSearchBases();
for (int i = 0; i < searchBases.length; i++) {
... | [
"private",
"List",
"<",
"String",
">",
"getGroups",
"(",
"String",
"dn",
")",
"throws",
"WIMException",
"{",
"List",
"<",
"String",
">",
"grpList",
"=",
"new",
"ArrayList",
"<",
"String",
">",
"(",
")",
";",
"String",
"filter",
"=",
"iLdapConfigMgr",
"."... | Get the groups that contain the specified DN as its member.
@param dn
@return
@throws WIMException | [
"Get",
"the",
"groups",
"that",
"contain",
"the",
"specified",
"DN",
"as",
"its",
"member",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java#L3171-L3192 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java | LdapAdapter.updateGroupMember | private void updateGroupMember(String oldDN, String newDN) throws WIMException {
if (!iLdapConfigMgr.updateGroupMembership()) {
return;
}
String filter = iLdapConfigMgr.getGroupMemberFilter(oldDN);
String[] mbrAttrs = iLdapConfigMgr.getMemberAttributes();
Map<String, ... | java | private void updateGroupMember(String oldDN, String newDN) throws WIMException {
if (!iLdapConfigMgr.updateGroupMembership()) {
return;
}
String filter = iLdapConfigMgr.getGroupMemberFilter(oldDN);
String[] mbrAttrs = iLdapConfigMgr.getMemberAttributes();
Map<String, ... | [
"private",
"void",
"updateGroupMember",
"(",
"String",
"oldDN",
",",
"String",
"newDN",
")",
"throws",
"WIMException",
"{",
"if",
"(",
"!",
"iLdapConfigMgr",
".",
"updateGroupMembership",
"(",
")",
")",
"{",
"return",
";",
"}",
"String",
"filter",
"=",
"iLda... | Update the Group member
@param oldDN
@param newDN
@throws WIMException | [
"Update",
"the",
"Group",
"member"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapAdapter.java#L3201-L3256 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.audit.reader/src/com/ibm/ws/security/audit/reader/tasks/HelpTask.java | HelpTask.getTask | private AuditUtilityTask getTask(String taskName) {
AuditUtilityTask task = null;
for (AuditUtilityTask availTask : tasks) {
if (availTask.getTaskName().equals(taskName)) {
task = availTask;
}
}
return task;
} | java | private AuditUtilityTask getTask(String taskName) {
AuditUtilityTask task = null;
for (AuditUtilityTask availTask : tasks) {
if (availTask.getTaskName().equals(taskName)) {
task = availTask;
}
}
return task;
} | [
"private",
"AuditUtilityTask",
"getTask",
"(",
"String",
"taskName",
")",
"{",
"AuditUtilityTask",
"task",
"=",
"null",
";",
"for",
"(",
"AuditUtilityTask",
"availTask",
":",
"tasks",
")",
"{",
"if",
"(",
"availTask",
".",
"getTaskName",
"(",
")",
".",
"equa... | Given a task name, return the corresponding AuditUtilityTask.
@param taskName desired task name
@return corresponding AuditUtilityTask, or null if
no match is found | [
"Given",
"a",
"task",
"name",
"return",
"the",
"corresponding",
"AuditUtilityTask",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.audit.reader/src/com/ibm/ws/security/audit/reader/tasks/HelpTask.java#L137-L145 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/LiteralImpl.java | LiteralImpl.objectType | static int objectType(Object value) {
if (value instanceof String)
return STRING;
else if (value instanceof Boolean) // was BooleanValue
return BOOLEAN;
else if (value instanceof Number) //was NumericValue
// NumericValue types are ordered INT..DOUBLE starting at zero. Selector types are
... | java | static int objectType(Object value) {
if (value instanceof String)
return STRING;
else if (value instanceof Boolean) // was BooleanValue
return BOOLEAN;
else if (value instanceof Number) //was NumericValue
// NumericValue types are ordered INT..DOUBLE starting at zero. Selector types are
... | [
"static",
"int",
"objectType",
"(",
"Object",
"value",
")",
"{",
"if",
"(",
"value",
"instanceof",
"String",
")",
"return",
"STRING",
";",
"else",
"if",
"(",
"value",
"instanceof",
"Boolean",
")",
"// was BooleanValue",
"return",
"BOOLEAN",
";",
"else",
"if"... | Determine Selector type code of a Literal value according to its class. Used by the
Literal constructor and by the Evaluator
@param value the value whose type is requested
@return one of the available literal type codes or Selector.INVALID | [
"Determine",
"Selector",
"type",
"code",
"of",
"a",
"Literal",
"value",
"according",
"to",
"its",
"class",
".",
"Used",
"by",
"the",
"Literal",
"constructor",
"and",
"by",
"the",
"Evaluator"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/LiteralImpl.java#L40-L53 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/response/IResponseImpl.java | IResponseImpl.convertHttpCookie | private Cookie convertHttpCookie(HttpCookie cookie)
{
Cookie rc = new Cookie(cookie.getName(), cookie.getValue());
rc.setVersion(cookie.getVersion());
if (null != cookie.getPath())
{
rc.setPath(cookie.getPath());
}
if (null != cookie.getDomain())
{
rc.setDomain(cookie.getDomain... | java | private Cookie convertHttpCookie(HttpCookie cookie)
{
Cookie rc = new Cookie(cookie.getName(), cookie.getValue());
rc.setVersion(cookie.getVersion());
if (null != cookie.getPath())
{
rc.setPath(cookie.getPath());
}
if (null != cookie.getDomain())
{
rc.setDomain(cookie.getDomain... | [
"private",
"Cookie",
"convertHttpCookie",
"(",
"HttpCookie",
"cookie",
")",
"{",
"Cookie",
"rc",
"=",
"new",
"Cookie",
"(",
"cookie",
".",
"getName",
"(",
")",
",",
"cookie",
".",
"getValue",
"(",
")",
")",
";",
"rc",
".",
"setVersion",
"(",
"cookie",
... | Convert the transport cookie to a J2EE cookie.
@param cookie
@return Cookie | [
"Convert",
"the",
"transport",
"cookie",
"to",
"a",
"J2EE",
"cookie",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/response/IResponseImpl.java#L289-L304 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/view/JspViewDeclarationLanguageBase.java | JspViewDeclarationLanguageBase.getResponseSwitch | private static ResponseSwitch getResponseSwitch(Object response)
{
// unwrap the response until we find a ResponseSwitch
while (response != null)
{
if (response instanceof ResponseSwitch)
{
// found
return (ResponseSwitch) response;
}
... | java | private static ResponseSwitch getResponseSwitch(Object response)
{
// unwrap the response until we find a ResponseSwitch
while (response != null)
{
if (response instanceof ResponseSwitch)
{
// found
return (ResponseSwitch) response;
}
... | [
"private",
"static",
"ResponseSwitch",
"getResponseSwitch",
"(",
"Object",
"response",
")",
"{",
"// unwrap the response until we find a ResponseSwitch",
"while",
"(",
"response",
"!=",
"null",
")",
"{",
"if",
"(",
"response",
"instanceof",
"ResponseSwitch",
")",
"{",
... | Trys to obtain a ResponseSwitch from the Response.
@param response
@return if found, the ResponseSwitch, null otherwise | [
"Trys",
"to",
"obtain",
"a",
"ResponseSwitch",
"from",
"the",
"Response",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/view/JspViewDeclarationLanguageBase.java#L412-L431 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/view/JspViewDeclarationLanguageBase.java | JspViewDeclarationLanguageBase.createResponseSwitch | private static ResponseSwitch createResponseSwitch(Object response)
{
if (response instanceof HttpServletResponse)
{
return new HttpServletResponseSwitch((HttpServletResponse) response);
}
else if (response instanceof ServletResponse)
{
return new ServletResponseSwitc... | java | private static ResponseSwitch createResponseSwitch(Object response)
{
if (response instanceof HttpServletResponse)
{
return new HttpServletResponseSwitch((HttpServletResponse) response);
}
else if (response instanceof ServletResponse)
{
return new ServletResponseSwitc... | [
"private",
"static",
"ResponseSwitch",
"createResponseSwitch",
"(",
"Object",
"response",
")",
"{",
"if",
"(",
"response",
"instanceof",
"HttpServletResponse",
")",
"{",
"return",
"new",
"HttpServletResponseSwitch",
"(",
"(",
"HttpServletResponse",
")",
"response",
")... | Try to create a ResponseSwitch for this response.
@param response
@return the created ResponseSwitch, if there is a ResponseSwitch
implementation for the given response, null otherwise | [
"Try",
"to",
"create",
"a",
"ResponseSwitch",
"for",
"this",
"response",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/view/JspViewDeclarationLanguageBase.java#L439-L450 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/ServiceProvider.java | ServiceProvider.updateFederatedManagerService | private void updateFederatedManagerService() {
if (!activated) {
return;
}
if (profileManager.getReference() != null) {
Tr.info(tc, "FEDERATED_MANAGER_SERVICE_READY");
} else {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
... | java | private void updateFederatedManagerService() {
if (!activated) {
return;
}
if (profileManager.getReference() != null) {
Tr.info(tc, "FEDERATED_MANAGER_SERVICE_READY");
} else {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
... | [
"private",
"void",
"updateFederatedManagerService",
"(",
")",
"{",
"if",
"(",
"!",
"activated",
")",
"{",
"return",
";",
"}",
"if",
"(",
"profileManager",
".",
"getReference",
"(",
")",
"!=",
"null",
")",
"{",
"Tr",
".",
"info",
"(",
"tc",
",",
"\"FEDE... | Federated Manager is ready when all of these required services have been registered. | [
"Federated",
"Manager",
"is",
"ready",
"when",
"all",
"of",
"these",
"required",
"services",
"have",
"been",
"registered",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/ServiceProvider.java#L76-L88 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/SSLConfigManager.java | SSLConfigManager.parseSSLConfig | private SSLConfig parseSSLConfig(Map<String, Object> properties, boolean reinitialize) throws Exception {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "parseSSLConfig: " + properties.get(LibertyConstants.KEY_ID), properties);
SSLConfig rc = parseSecureSocket... | java | private SSLConfig parseSSLConfig(Map<String, Object> properties, boolean reinitialize) throws Exception {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "parseSSLConfig: " + properties.get(LibertyConstants.KEY_ID), properties);
SSLConfig rc = parseSecureSocket... | [
"private",
"SSLConfig",
"parseSSLConfig",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"properties",
",",
"boolean",
"reinitialize",
")",
"throws",
"Exception",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntry... | Helper method to build the SSLConfig properties from the SSLConfig model
object. | [
"Helper",
"method",
"to",
"build",
"the",
"SSLConfig",
"properties",
"from",
"the",
"SSLConfig",
"model",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/SSLConfigManager.java#L314-L323 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/SSLConfigManager.java | SSLConfigManager.getSSLConfig | public synchronized SSLConfig getSSLConfig(String alias) throws IllegalArgumentException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "getSSLConfig: " + alias);
SSLConfig rc = null;
if (alias == null || alias.equals("")) {
rc = getDefau... | java | public synchronized SSLConfig getSSLConfig(String alias) throws IllegalArgumentException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "getSSLConfig: " + alias);
SSLConfig rc = null;
if (alias == null || alias.equals("")) {
rc = getDefau... | [
"public",
"synchronized",
"SSLConfig",
"getSSLConfig",
"(",
"String",
"alias",
")",
"throws",
"IllegalArgumentException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry"... | Finds an SSLConfig from the Map given an alias.
@param alias
@return SSLConfig
@throws IllegalArgumentException | [
"Finds",
"an",
"SSLConfig",
"from",
"the",
"Map",
"given",
"an",
"alias",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/SSLConfigManager.java#L595-L610 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/SSLConfigManager.java | SSLConfigManager.loadGlobalProperties | public synchronized void loadGlobalProperties(Map<String, Object> map) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "loadGlobalProperties");
// clear before reloading.
globalConfigProperties.clear();
for (Entry<String, Object> prop : map.e... | java | public synchronized void loadGlobalProperties(Map<String, Object> map) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "loadGlobalProperties");
// clear before reloading.
globalConfigProperties.clear();
for (Entry<String, Object> prop : map.e... | [
"public",
"synchronized",
"void",
"loadGlobalProperties",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"map",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry... | Helper method for loading global properties.
@param map | [
"Helper",
"method",
"for",
"loading",
"global",
"properties",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/SSLConfigManager.java#L617-L638 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.couchdb/src/com/ibm/ws/couchdb/internal/CouchDbService.java | CouchDbService.set | @Trivial
private void set(Class<?> builderCls, Object builder, String propName, Object value)
throws IntrospectionException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {
try {
Class<?> cls = COUCHDB_CLIENT_OPTIONS_TYPES.get(propName);
... | java | @Trivial
private void set(Class<?> builderCls, Object builder, String propName, Object value)
throws IntrospectionException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {
try {
Class<?> cls = COUCHDB_CLIENT_OPTIONS_TYPES.get(propName);
... | [
"@",
"Trivial",
"private",
"void",
"set",
"(",
"Class",
"<",
"?",
">",
"builderCls",
",",
"Object",
"builder",
",",
"String",
"propName",
",",
"Object",
"value",
")",
"throws",
"IntrospectionException",
",",
"IllegalArgumentException",
",",
"IllegalAccessException... | Configure a couchdb option.
@param builder
class org.ektorp.http.StdHttpClient$Builder
@param builder
instance org.ektorp.http.StdHttpClient$Builder
@param propName
name of the config property
@param value
value of the config property. | [
"Configure",
"a",
"couchdb",
"option",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.couchdb/src/com/ibm/ws/couchdb/internal/CouchDbService.java#L229-L262 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfiguratorHelper.java | WebAppConfiguratorHelper.configureJMSConnectionFactories | private void configureJMSConnectionFactories(List<JMSConnectionFactory> jmsConnFactories) {
Map<String, ConfigItem<JMSConnectionFactory>> jmsCfConfigItemMap = configurator.getConfigItemMap(JNDIEnvironmentRefType.JMSConnectionFactory.getXMLElementName());
for (JMSConnectionFactory jmsCo... | java | private void configureJMSConnectionFactories(List<JMSConnectionFactory> jmsConnFactories) {
Map<String, ConfigItem<JMSConnectionFactory>> jmsCfConfigItemMap = configurator.getConfigItemMap(JNDIEnvironmentRefType.JMSConnectionFactory.getXMLElementName());
for (JMSConnectionFactory jmsCo... | [
"private",
"void",
"configureJMSConnectionFactories",
"(",
"List",
"<",
"JMSConnectionFactory",
">",
"jmsConnFactories",
")",
"{",
"Map",
"<",
"String",
",",
"ConfigItem",
"<",
"JMSConnectionFactory",
">",
">",
"jmsCfConfigItemMap",
"=",
"configurator",
".",
"getConfi... | To configure JMS ConnectionFactory
@param jmsConnFactories | [
"To",
"configure",
"JMS",
"ConnectionFactory"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfiguratorHelper.java#L1420-L1449 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfiguratorHelper.java | WebAppConfiguratorHelper.configureJMSDestinations | private void configureJMSDestinations(List<JMSDestination> jmsDestinations) {
Map<String, ConfigItem<JMSDestination>> jmsDestinationConfigItemMap = configurator.getConfigItemMap(JNDIEnvironmentRefType.JMSConnectionFactory.getXMLElementName());
for (JMSDestination jmsDestination : jmsDestination... | java | private void configureJMSDestinations(List<JMSDestination> jmsDestinations) {
Map<String, ConfigItem<JMSDestination>> jmsDestinationConfigItemMap = configurator.getConfigItemMap(JNDIEnvironmentRefType.JMSConnectionFactory.getXMLElementName());
for (JMSDestination jmsDestination : jmsDestination... | [
"private",
"void",
"configureJMSDestinations",
"(",
"List",
"<",
"JMSDestination",
">",
"jmsDestinations",
")",
"{",
"Map",
"<",
"String",
",",
"ConfigItem",
"<",
"JMSDestination",
">",
">",
"jmsDestinationConfigItemMap",
"=",
"configurator",
".",
"getConfigItemMap",
... | To configure JMS Destinations
@param jmsDestinations | [
"To",
"configure",
"JMS",
"Destinations"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfiguratorHelper.java#L1455-L1483 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/ExternalContextUtils.java | ExternalContextUtils.getRequestType | public static final RequestType getRequestType(ExternalContext externalContext)
{
//Stuff is laid out strangely in this class in order to optimize
//performance. We want to do as few instanceof's as possible so
//things are laid out according to the expected frequency of the
//vario... | java | public static final RequestType getRequestType(ExternalContext externalContext)
{
//Stuff is laid out strangely in this class in order to optimize
//performance. We want to do as few instanceof's as possible so
//things are laid out according to the expected frequency of the
//vario... | [
"public",
"static",
"final",
"RequestType",
"getRequestType",
"(",
"ExternalContext",
"externalContext",
")",
"{",
"//Stuff is laid out strangely in this class in order to optimize",
"//performance. We want to do as few instanceof's as possible so",
"//things are laid out according to the e... | Returns the requestType of this ExternalContext.
@param externalContext the current external context
@return the appropriate RequestType for this external context
@see RequestType | [
"Returns",
"the",
"requestType",
"of",
"this",
"ExternalContext",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/ExternalContextUtils.java#L119-L158 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/ExternalContextUtils.java | ExternalContextUtils.getRequestType | public static final RequestType getRequestType(Object context, Object request)
{
//Stuff is laid out strangely in this class in order to optimize
//performance. We want to do as few instanceof's as possible so
//things are laid out according to the expected frequency of the
//variou... | java | public static final RequestType getRequestType(Object context, Object request)
{
//Stuff is laid out strangely in this class in order to optimize
//performance. We want to do as few instanceof's as possible so
//things are laid out according to the expected frequency of the
//variou... | [
"public",
"static",
"final",
"RequestType",
"getRequestType",
"(",
"Object",
"context",
",",
"Object",
"request",
")",
"{",
"//Stuff is laid out strangely in this class in order to optimize",
"//performance. We want to do as few instanceof's as possible so",
"//things are laid out acc... | This method is used when a ExternalContext object is not available,
like in TomahawkFacesContextFactory.
According to TOMAHAWK-1331, the object context could receive an
instance of javax.portlet.PortletContext or javax.portlet.PortletConfig,
so we check both cases.
@param context
@param request
@return | [
"This",
"method",
"is",
"used",
"when",
"a",
"ExternalContext",
"object",
"is",
"not",
"available",
"like",
"in",
"TomahawkFacesContextFactory",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/ExternalContextUtils.java#L172-L212 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/ExternalContextUtils.java | ExternalContextUtils.getRequestInputStream | public static InputStream getRequestInputStream(ExternalContext ec)
throws IOException
{
RequestType type = getRequestType(ec);
if (type.isRequestFromClient())
{
Object req = ec.getRequest();
if (type.isPortlet())
{
return (Inpu... | java | public static InputStream getRequestInputStream(ExternalContext ec)
throws IOException
{
RequestType type = getRequestType(ec);
if (type.isRequestFromClient())
{
Object req = ec.getRequest();
if (type.isPortlet())
{
return (Inpu... | [
"public",
"static",
"InputStream",
"getRequestInputStream",
"(",
"ExternalContext",
"ec",
")",
"throws",
"IOException",
"{",
"RequestType",
"type",
"=",
"getRequestType",
"(",
"ec",
")",
";",
"if",
"(",
"type",
".",
"isRequestFromClient",
"(",
")",
")",
"{",
"... | Returns the request input stream if one is available
@param ec the current external context
@return the request's input stream
@throws IOException if there was a problem getting the input stream | [
"Returns",
"the",
"request",
"input",
"stream",
"if",
"one",
"is",
"available"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/ExternalContextUtils.java#L436-L454 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/ExternalContextUtils.java | ExternalContextUtils._runMethod | private static Object _runMethod(Object obj, String methodName)
{
try
{
Method sessionIdMethod = obj.getClass().getMethod(methodName);
return sessionIdMethod.invoke(obj);
}
catch (Exception e)
{
return null;
}
} | java | private static Object _runMethod(Object obj, String methodName)
{
try
{
Method sessionIdMethod = obj.getClass().getMethod(methodName);
return sessionIdMethod.invoke(obj);
}
catch (Exception e)
{
return null;
}
} | [
"private",
"static",
"Object",
"_runMethod",
"(",
"Object",
"obj",
",",
"String",
"methodName",
")",
"{",
"try",
"{",
"Method",
"sessionIdMethod",
"=",
"obj",
".",
"getClass",
"(",
")",
".",
"getMethod",
"(",
"methodName",
")",
";",
"return",
"sessionIdMetho... | Runs a method on an object and returns the result
@param obj the object to run the method on
@param methodName the name of the method
@return the results of the method run | [
"Runs",
"a",
"method",
"on",
"an",
"object",
"and",
"returns",
"the",
"result"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/ExternalContextUtils.java#L579-L591 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/ExternalContextUtils.java | ExternalContextUtils.getHttpServletResponse | public static HttpServletResponse getHttpServletResponse(Object response)
{
// unwrap the response until we find a HttpServletResponse
while (response != null)
{
if (response instanceof HttpServletResponse)
{
// found
return (HttpServle... | java | public static HttpServletResponse getHttpServletResponse(Object response)
{
// unwrap the response until we find a HttpServletResponse
while (response != null)
{
if (response instanceof HttpServletResponse)
{
// found
return (HttpServle... | [
"public",
"static",
"HttpServletResponse",
"getHttpServletResponse",
"(",
"Object",
"response",
")",
"{",
"// unwrap the response until we find a HttpServletResponse",
"while",
"(",
"response",
"!=",
"null",
")",
"{",
"if",
"(",
"response",
"instanceof",
"HttpServletRespons... | Trys to obtain a HttpServletResponse from the Response.
Note that this method also trys to unwrap any ServletResponseWrapper
in order to retrieve a valid HttpServletResponse.
@param response
@return if found, the HttpServletResponse, null otherwise | [
"Trys",
"to",
"obtain",
"a",
"HttpServletResponse",
"from",
"the",
"Response",
".",
"Note",
"that",
"this",
"method",
"also",
"trys",
"to",
"unwrap",
"any",
"ServletResponseWrapper",
"in",
"order",
"to",
"retrieve",
"a",
"valid",
"HttpServletResponse",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/ExternalContextUtils.java#L711-L730 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/SymbolTable.java | SymbolTable.addSymbol | public String addSymbol(String symbol) {
// search for identical symbol
int bucket = hash(symbol) % fTableSize;
int length = symbol.length();
OUTER: for (Entry entry = fBuckets[bucket]; entry != null; entry = entry.next) {
if (length == entry.characters.length) {
... | java | public String addSymbol(String symbol) {
// search for identical symbol
int bucket = hash(symbol) % fTableSize;
int length = symbol.length();
OUTER: for (Entry entry = fBuckets[bucket]; entry != null; entry = entry.next) {
if (length == entry.characters.length) {
... | [
"public",
"String",
"addSymbol",
"(",
"String",
"symbol",
")",
"{",
"// search for identical symbol",
"int",
"bucket",
"=",
"hash",
"(",
"symbol",
")",
"%",
"fTableSize",
";",
"int",
"length",
"=",
"symbol",
".",
"length",
"(",
")",
";",
"OUTER",
":",
"for... | Adds the specified symbol to the symbol table and returns a
reference to the unique symbol. If the symbol already exists,
the previous symbol reference is returned instead, in order
guarantee that symbol references remain unique.
@param symbol The new symbol. | [
"Adds",
"the",
"specified",
"symbol",
"to",
"the",
"symbol",
"table",
"and",
"returns",
"a",
"reference",
"to",
"the",
"unique",
"symbol",
".",
"If",
"the",
"symbol",
"already",
"exists",
"the",
"previous",
"symbol",
"reference",
"is",
"returned",
"instead",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/SymbolTable.java#L86-L107 | train |
OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/XARecoveryWrapper.java | XARecoveryWrapper.deserialize | static XARecoveryWrapper deserialize(byte[] serializedWrapper)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "deserialize");
XARecoveryWrapper wrapper = null;
try
{
final ByteArrayInputStream bis = new ByteArrayInputStream(serializedWrapper);
final Obj... | java | static XARecoveryWrapper deserialize(byte[] serializedWrapper)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "deserialize");
XARecoveryWrapper wrapper = null;
try
{
final ByteArrayInputStream bis = new ByteArrayInputStream(serializedWrapper);
final Obj... | [
"static",
"XARecoveryWrapper",
"deserialize",
"(",
"byte",
"[",
"]",
"serializedWrapper",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"deserialize\"",
")",
";",
"XARecoveryWrapper",
"wrapper",
"=",
... | which classloader is passed in and which is on the thread. | [
"which",
"classloader",
"is",
"passed",
"in",
"and",
"which",
"is",
"on",
"the",
"thread",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/XARecoveryWrapper.java#L288-L319 | train |
OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/XARecoveryWrapper.java | XARecoveryWrapper.canonicalise | private String[] canonicalise(final String[] xaResInfoClasspath)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "canonicalise", xaResInfoClasspath);
final String[] result;
if(xaResInfoClasspath != null)
{
final ArrayList<String> al = new ArrayList<String>();
... | java | private String[] canonicalise(final String[] xaResInfoClasspath)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "canonicalise", xaResInfoClasspath);
final String[] result;
if(xaResInfoClasspath != null)
{
final ArrayList<String> al = new ArrayList<String>();
... | [
"private",
"String",
"[",
"]",
"canonicalise",
"(",
"final",
"String",
"[",
"]",
"xaResInfoClasspath",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"canonicalise\"",
",",
"xaResInfoClasspath",
")",
... | Canonicalise inbound paths so they can be compared with paths held in the classloaders
@param xaResInfoClasspath
@return | [
"Canonicalise",
"inbound",
"paths",
"so",
"they",
"can",
"be",
"compared",
"with",
"paths",
"held",
"in",
"the",
"classloaders"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/XARecoveryWrapper.java#L375-L433 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionEventListener.java | ConnectionEventListener.connectionClosed | @Override
public void connectionClosed(ConnectionEvent event) {
final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled();
if (isTracingEnabled && tc.isEntryEnabled()) {
Tr.entry(this, tc, "connectionClosed");
}
if (event.getId() == ConnectionEvent.CONNECTI... | java | @Override
public void connectionClosed(ConnectionEvent event) {
final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled();
if (isTracingEnabled && tc.isEntryEnabled()) {
Tr.entry(this, tc, "connectionClosed");
}
if (event.getId() == ConnectionEvent.CONNECTI... | [
"@",
"Override",
"public",
"void",
"connectionClosed",
"(",
"ConnectionEvent",
"event",
")",
"{",
"final",
"boolean",
"isTracingEnabled",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"isTracingEnabled",
"&&",
"tc",
".",
"isEntryEnab... | This method is called by a resource adapter when the application calls close on a
Connection.
@param ConnectionEvent | [
"This",
"method",
"is",
"called",
"by",
"a",
"resource",
"adapter",
"when",
"the",
"application",
"calls",
"close",
"on",
"a",
"Connection",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionEventListener.java#L60-L174 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionEventListener.java | ConnectionEventListener.connectionErrorOccurred | @Override
public void connectionErrorOccurred(ConnectionEvent event) {
int eventID = event.getId();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
StringBuilder entry = new StringBuilder(event.getClass().getSimpleName()).append('{');
entry.append("id=").... | java | @Override
public void connectionErrorOccurred(ConnectionEvent event) {
int eventID = event.getId();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
StringBuilder entry = new StringBuilder(event.getClass().getSimpleName()).append('{');
entry.append("id=").... | [
"@",
"Override",
"public",
"void",
"connectionErrorOccurred",
"(",
"ConnectionEvent",
"event",
")",
"{",
"int",
"eventID",
"=",
"event",
".",
"getId",
"(",
")",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntry... | This method is called by a resource adapter when a connection error occurs.
This is also called internally by this class when other event handling methods fail
and require cleanup.
@param ConnectionEvent | [
"This",
"method",
"is",
"called",
"by",
"a",
"resource",
"adapter",
"when",
"a",
"connection",
"error",
"occurs",
".",
"This",
"is",
"also",
"called",
"internally",
"by",
"this",
"class",
"when",
"other",
"event",
"handling",
"methods",
"fail",
"and",
"requi... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionEventListener.java#L184-L305 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionEventListener.java | ConnectionEventListener.localTransactionCommitted | @Override
public void localTransactionCommitted(ConnectionEvent event) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(this, tc, "localTransactionCommitted");
}
if (event.getId() == ConnectionEvent.LOCAL_TRANSACTION_COMMITTED) {
if (mc... | java | @Override
public void localTransactionCommitted(ConnectionEvent event) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(this, tc, "localTransactionCommitted");
}
if (event.getId() == ConnectionEvent.LOCAL_TRANSACTION_COMMITTED) {
if (mc... | [
"@",
"Override",
"public",
"void",
"localTransactionCommitted",
"(",
"ConnectionEvent",
"event",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"thi... | This method is called by a resource adapter when a CCI local transation commit is called
by the application on a connection. If the MC is associated with a UOW,
delist its corresponding transaction wrapper.
@param ConnectionEvent | [
"This",
"method",
"is",
"called",
"by",
"a",
"resource",
"adapter",
"when",
"a",
"CCI",
"local",
"transation",
"commit",
"is",
"called",
"by",
"the",
"application",
"on",
"a",
"connection",
".",
"If",
"the",
"MC",
"is",
"associated",
"with",
"a",
"UOW",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionEventListener.java#L315-L377 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionEventListener.java | ConnectionEventListener.localTransactionStarted | @Override
public void localTransactionStarted(ConnectionEvent event) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(this, tc, "localTransactionStarted");
}
if (event.getId() == ConnectionEvent.LOCAL_TRANSACTION_STARTED) {
//
... | java | @Override
public void localTransactionStarted(ConnectionEvent event) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(this, tc, "localTransactionStarted");
}
if (event.getId() == ConnectionEvent.LOCAL_TRANSACTION_STARTED) {
//
... | [
"@",
"Override",
"public",
"void",
"localTransactionStarted",
"(",
"ConnectionEvent",
"event",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"this"... | This method is called by a resource adapter when a CCI local transation begin is called
by the application on a connection
@param ConnectionEvent | [
"This",
"method",
"is",
"called",
"by",
"a",
"resource",
"adapter",
"when",
"a",
"CCI",
"local",
"transation",
"begin",
"is",
"called",
"by",
"the",
"application",
"on",
"a",
"connection"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionEventListener.java#L455-L574 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/OSGiInjectionScopeData.java | OSGiInjectionScopeData.hasObjectWithPrefix | public boolean hasObjectWithPrefix(NamingConstants.JavaColonNamespace namespace, String name) throws NamingException {
if (namespace == NamingConstants.JavaColonNamespace.COMP) {
return hasObjectWithPrefix(compLock, compBindings, name);
}
if (namespace == NamingConstants.JavaColonNam... | java | public boolean hasObjectWithPrefix(NamingConstants.JavaColonNamespace namespace, String name) throws NamingException {
if (namespace == NamingConstants.JavaColonNamespace.COMP) {
return hasObjectWithPrefix(compLock, compBindings, name);
}
if (namespace == NamingConstants.JavaColonNam... | [
"public",
"boolean",
"hasObjectWithPrefix",
"(",
"NamingConstants",
".",
"JavaColonNamespace",
"namespace",
",",
"String",
"name",
")",
"throws",
"NamingException",
"{",
"if",
"(",
"namespace",
"==",
"NamingConstants",
".",
"JavaColonNamespace",
".",
"COMP",
")",
"{... | Returns true if a JNDI subcontext exists. | [
"Returns",
"true",
"if",
"a",
"JNDI",
"subcontext",
"exists",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/OSGiInjectionScopeData.java#L403-L414 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/OSGiInjectionScopeData.java | OSGiInjectionScopeData.listInstances | public Collection<? extends NameClassPair> listInstances(NamingConstants.JavaColonNamespace namespace, String contextName) throws NamingException {
if (namespace == NamingConstants.JavaColonNamespace.COMP) {
return listInstances(compLock, compBindings, contextName);
}
if (namespace =... | java | public Collection<? extends NameClassPair> listInstances(NamingConstants.JavaColonNamespace namespace, String contextName) throws NamingException {
if (namespace == NamingConstants.JavaColonNamespace.COMP) {
return listInstances(compLock, compBindings, contextName);
}
if (namespace =... | [
"public",
"Collection",
"<",
"?",
"extends",
"NameClassPair",
">",
"listInstances",
"(",
"NamingConstants",
".",
"JavaColonNamespace",
"namespace",
",",
"String",
"contextName",
")",
"throws",
"NamingException",
"{",
"if",
"(",
"namespace",
"==",
"NamingConstants",
... | Lists the contents of a JNDI subcontext. | [
"Lists",
"the",
"contents",
"of",
"a",
"JNDI",
"subcontext",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/OSGiInjectionScopeData.java#L429-L440 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/OSGiInjectionScopeData.java | OSGiInjectionScopeData.disableDeferredReferenceData | private synchronized void disableDeferredReferenceData() {
deferredReferenceDataEnabled = false;
if (parent != null && deferredReferenceDatas != null) {
parent.removeDeferredReferenceData(this);
deferredReferenceDatas = null;
}
} | java | private synchronized void disableDeferredReferenceData() {
deferredReferenceDataEnabled = false;
if (parent != null && deferredReferenceDatas != null) {
parent.removeDeferredReferenceData(this);
deferredReferenceDatas = null;
}
} | [
"private",
"synchronized",
"void",
"disableDeferredReferenceData",
"(",
")",
"{",
"deferredReferenceDataEnabled",
"=",
"false",
";",
"if",
"(",
"parent",
"!=",
"null",
"&&",
"deferredReferenceDatas",
"!=",
"null",
")",
"{",
"parent",
".",
"removeDeferredReferenceData"... | Unregister this scope data with its parent if necessary for deferred
reference data processing. | [
"Unregister",
"this",
"scope",
"data",
"with",
"its",
"parent",
"if",
"necessary",
"for",
"deferred",
"reference",
"data",
"processing",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/OSGiInjectionScopeData.java#L467-L473 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/OSGiInjectionScopeData.java | OSGiInjectionScopeData.addDeferredReferenceData | public synchronized void addDeferredReferenceData(DeferredReferenceData refData) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "addDeferredReferenceData", "this=" + this, refData);
}
if (deferredReferenceDatas == null) {
deferredRefere... | java | public synchronized void addDeferredReferenceData(DeferredReferenceData refData) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "addDeferredReferenceData", "this=" + this, refData);
}
if (deferredReferenceDatas == null) {
deferredRefere... | [
"public",
"synchronized",
"void",
"addDeferredReferenceData",
"(",
"DeferredReferenceData",
"refData",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
... | Add a child deferred reference data to this scope. | [
"Add",
"a",
"child",
"deferred",
"reference",
"data",
"to",
"this",
"scope",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/OSGiInjectionScopeData.java#L478-L494 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/OSGiInjectionScopeData.java | OSGiInjectionScopeData.removeDeferredReferenceData | public synchronized void removeDeferredReferenceData(DeferredReferenceData refData) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "removeDeferredReferenceData", "this=" + this, refData);
}
if (deferredReferenceDatas != null) {
deferred... | java | public synchronized void removeDeferredReferenceData(DeferredReferenceData refData) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "removeDeferredReferenceData", "this=" + this, refData);
}
if (deferredReferenceDatas != null) {
deferred... | [
"public",
"synchronized",
"void",
"removeDeferredReferenceData",
"(",
"DeferredReferenceData",
"refData",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",... | Remove a child deferred reference data to this scope. | [
"Remove",
"a",
"child",
"deferred",
"reference",
"data",
"to",
"this",
"scope",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/OSGiInjectionScopeData.java#L499-L511 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/OSGiInjectionScopeData.java | OSGiInjectionScopeData.processDeferredReferenceData | @Override
public boolean processDeferredReferenceData() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "processDeferredReferenceData", "this=" + this);
}
Map<DeferredReferenceData, Boolean> deferredReferenceDatas;
synchronized (this) {
... | java | @Override
public boolean processDeferredReferenceData() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "processDeferredReferenceData", "this=" + this);
}
Map<DeferredReferenceData, Boolean> deferredReferenceDatas;
synchronized (this) {
... | [
"@",
"Override",
"public",
"boolean",
"processDeferredReferenceData",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"processDefer... | Process all child reference datas.
@return true if any reference data was processed. | [
"Process",
"all",
"child",
"reference",
"datas",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/OSGiInjectionScopeData.java#L518-L555 | train |
OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.jsf.2.3/src/javax/faces/component/UIViewParameter.java | UIViewParameter.releaseRenderer | @SuppressWarnings("unused")
private static void releaseRenderer()
{
if (log.isLoggable(Level.FINEST))
{
log.finest("releaseRenderer rendererMap -> " + delegateRendererMap.toString());
}
ClassLoader classLoader = Thread.currentThread().getContextClas... | java | @SuppressWarnings("unused")
private static void releaseRenderer()
{
if (log.isLoggable(Level.FINEST))
{
log.finest("releaseRenderer rendererMap -> " + delegateRendererMap.toString());
}
ClassLoader classLoader = Thread.currentThread().getContextClas... | [
"@",
"SuppressWarnings",
"(",
"\"unused\"",
")",
"private",
"static",
"void",
"releaseRenderer",
"(",
")",
"{",
"if",
"(",
"log",
".",
"isLoggable",
"(",
"Level",
".",
"FINEST",
")",
")",
"{",
"log",
".",
"finest",
"(",
"\"releaseRenderer rendererMap -> \"",
... | The idea of this method is to be called from AbstractFacesInitializer. | [
"The",
"idea",
"of",
"this",
"method",
"is",
"to",
"be",
"called",
"from",
"AbstractFacesInitializer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.3/src/javax/faces/component/UIViewParameter.java#L267-L292 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.social/src/com/ibm/ws/security/social/twitter/Utils.java | Utils.generateNonce | public static String generateNonce(int length) {
if (length < 0) {
if (tc.isDebugEnabled()) {
Tr.debug(tc, "Negative length provided. Will default to nonce of length " + NONCE_LENGTH);
}
length = NONCE_LENGTH;
}
StringBuilder randomString = new... | java | public static String generateNonce(int length) {
if (length < 0) {
if (tc.isDebugEnabled()) {
Tr.debug(tc, "Negative length provided. Will default to nonce of length " + NONCE_LENGTH);
}
length = NONCE_LENGTH;
}
StringBuilder randomString = new... | [
"public",
"static",
"String",
"generateNonce",
"(",
"int",
"length",
")",
"{",
"if",
"(",
"length",
"<",
"0",
")",
"{",
"if",
"(",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"Negative length provided. Will defa... | Generates a random string with the specified length.
@param length
@return | [
"Generates",
"a",
"random",
"string",
"with",
"the",
"specified",
"length",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.social/src/com/ibm/ws/security/social/twitter/Utils.java#L50-L64 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.client/src/com/ibm/ws/security/client/internal/authentication/ClientAuthenticationService.java | ClientAuthenticationService.authenticate | public Subject authenticate(CallbackHandler callbackHandler, Subject subject) throws WSLoginFailedException, CredentialException {
if (callbackHandler == null) {
throw new WSLoginFailedException(TraceNLS.getFormattedMessage(
t... | java | public Subject authenticate(CallbackHandler callbackHandler, Subject subject) throws WSLoginFailedException, CredentialException {
if (callbackHandler == null) {
throw new WSLoginFailedException(TraceNLS.getFormattedMessage(
t... | [
"public",
"Subject",
"authenticate",
"(",
"CallbackHandler",
"callbackHandler",
",",
"Subject",
"subject",
")",
"throws",
"WSLoginFailedException",
",",
"CredentialException",
"{",
"if",
"(",
"callbackHandler",
"==",
"null",
")",
"{",
"throw",
"new",
"WSLoginFailedExc... | Authenticating on the client will only create a "dummy" basic auth subject and does not
truly authenticate anything. This subject is sent to the server ove CSIv2 where the real
authentication happens.
@param callbackHandler the callbackhandler to get the authentication data from, must not be <null>
@param subject the ... | [
"Authenticating",
"on",
"the",
"client",
"will",
"only",
"create",
"a",
"dummy",
"basic",
"auth",
"subject",
"and",
"does",
"not",
"truly",
"authenticate",
"anything",
".",
"This",
"subject",
"is",
"sent",
"to",
"the",
"server",
"ove",
"CSIv2",
"where",
"the... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.client/src/com/ibm/ws/security/client/internal/authentication/ClientAuthenticationService.java#L83-L115 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.client/src/com/ibm/ws/security/client/internal/authentication/ClientAuthenticationService.java | ClientAuthenticationService.createBasicAuthSubject | protected Subject createBasicAuthSubject(AuthenticationData authenticationData, Subject subject) throws WSLoginFailedException, CredentialException {
Subject basicAuthSubject = subject != null ? subject : new Subject();
String loginRealm = (String) authenticationData.get(AuthenticationData.REALM);
... | java | protected Subject createBasicAuthSubject(AuthenticationData authenticationData, Subject subject) throws WSLoginFailedException, CredentialException {
Subject basicAuthSubject = subject != null ? subject : new Subject();
String loginRealm = (String) authenticationData.get(AuthenticationData.REALM);
... | [
"protected",
"Subject",
"createBasicAuthSubject",
"(",
"AuthenticationData",
"authenticationData",
",",
"Subject",
"subject",
")",
"throws",
"WSLoginFailedException",
",",
"CredentialException",
"{",
"Subject",
"basicAuthSubject",
"=",
"subject",
"!=",
"null",
"?",
"subje... | Create the basic auth subject using the given authentication data
@param authenticationData the user, password and realm to create the subject
@param subject the partial subject, can be null
@return a basic auth subject that has not been authenticated yet
@throws WSLoginFailedException if the user or password are <nul... | [
"Create",
"the",
"basic",
"auth",
"subject",
"using",
"the",
"given",
"authentication",
"data"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.client/src/com/ibm/ws/security/client/internal/authentication/ClientAuthenticationService.java#L126-L145 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RLSSuspendTokenManager.java | RLSSuspendTokenManager.getInstance | static RLSSuspendTokenManager getInstance()
{
if (tc.isEntryEnabled()) Tr.entry(tc, "getInstance");
if (tc.isEntryEnabled()) Tr.exit(tc, "getInstance", _instance);
return _instance;
} | java | static RLSSuspendTokenManager getInstance()
{
if (tc.isEntryEnabled()) Tr.entry(tc, "getInstance");
if (tc.isEntryEnabled()) Tr.exit(tc, "getInstance", _instance);
return _instance;
} | [
"static",
"RLSSuspendTokenManager",
"getInstance",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"getInstance\"",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
... | Returns the single instance of the RLSSuspendTokenManager | [
"Returns",
"the",
"single",
"instance",
"of",
"the",
"RLSSuspendTokenManager"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RLSSuspendTokenManager.java#L61-L66 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RLSSuspendTokenManager.java | RLSSuspendTokenManager.registerSuspend | RLSSuspendToken registerSuspend(int timeout)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "registerSuspend", new Integer(timeout));
// Generate the suspend token
// RLSSuspendToken token = new RLSSuspendTokenImpl();
RLSSuspendToken token = Configuration.getRecoveryLogComponent()
... | java | RLSSuspendToken registerSuspend(int timeout)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "registerSuspend", new Integer(timeout));
// Generate the suspend token
// RLSSuspendToken token = new RLSSuspendTokenImpl();
RLSSuspendToken token = Configuration.getRecoveryLogComponent()
... | [
"RLSSuspendToken",
"registerSuspend",
"(",
"int",
"timeout",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"registerSuspend\"",
",",
"new",
"Integer",
"(",
"timeout",
")",
")",
";",
"// Generate the ... | Registers that a suspend call has been made on the RecoveryLogService and generates
a unique RLSSuspendToken which must be passed in to registerResume to cancel this
suspend operation
@param timeout the value in seconds in which a corresponding resume call is expected
@return A unique token | [
"Registers",
"that",
"a",
"suspend",
"call",
"has",
"been",
"made",
"on",
"the",
"RecoveryLogService",
"and",
"generates",
"a",
"unique",
"RLSSuspendToken",
"which",
"must",
"be",
"passed",
"in",
"to",
"registerResume",
"to",
"cancel",
"this",
"suspend",
"operat... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RLSSuspendTokenManager.java#L76-L112 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RLSSuspendTokenManager.java | RLSSuspendTokenManager.registerResume | void registerResume(RLSSuspendToken token) throws RLSInvalidSuspendTokenException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "registerResume", token);
if (token != null && _tokenMap.containsKey(token))
{
// Cast the token to its actual type
// RLSSuspendTokenImpl t... | java | void registerResume(RLSSuspendToken token) throws RLSInvalidSuspendTokenException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "registerResume", token);
if (token != null && _tokenMap.containsKey(token))
{
// Cast the token to its actual type
// RLSSuspendTokenImpl t... | [
"void",
"registerResume",
"(",
"RLSSuspendToken",
"token",
")",
"throws",
"RLSInvalidSuspendTokenException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"registerResume\"",
",",
"token",
")",
";",
"if",
"... | Cancels the suspend request that returned the matching RLSSuspendToken.
The suspend call's alarm, if there is one, will also be cancelled
In the event that the suspend token is null or not recognized
throws an RLSInvalidSuspendTokenException
@param token
@throws RLSInvalidSuspendTokenException | [
"Cancels",
"the",
"suspend",
"request",
"that",
"returned",
"the",
"matching",
"RLSSuspendToken",
".",
"The",
"suspend",
"call",
"s",
"alarm",
"if",
"there",
"is",
"one",
"will",
"also",
"be",
"cancelled"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RLSSuspendTokenManager.java#L149-L180 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RLSSuspendTokenManager.java | RLSSuspendTokenManager.isResumable | boolean isResumable()
{
if (tc.isEntryEnabled()) Tr.entry(tc, "isResumable");
boolean isResumable = true;
synchronized(_tokenMap)
{
if (!_tokenMap.isEmpty())
{
isResumable = false;
}
}
if (tc.isE... | java | boolean isResumable()
{
if (tc.isEntryEnabled()) Tr.entry(tc, "isResumable");
boolean isResumable = true;
synchronized(_tokenMap)
{
if (!_tokenMap.isEmpty())
{
isResumable = false;
}
}
if (tc.isE... | [
"boolean",
"isResumable",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"isResumable\"",
")",
";",
"boolean",
"isResumable",
"=",
"true",
";",
"synchronized",
"(",
"_tokenMap",
")",
"{",
"if... | Returns true if there are no tokens in the map
indicating that no active suspends exist.
@return | [
"Returns",
"true",
"if",
"there",
"are",
"no",
"tokens",
"in",
"the",
"map",
"indicating",
"that",
"no",
"active",
"suspends",
"exist",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RLSSuspendTokenManager.java#L187-L204 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/util/UniqueNameHelper.java | UniqueNameHelper.formatUniqueName | public static String formatUniqueName(String uniqueName) throws InvalidUniqueNameException {
String validName = getValidUniqueName(uniqueName);
if (validName == null) {
if (tc.isErrorEnabled()) {
Tr.error(tc, WIMMessageKey.INVALID_UNIQUE_NAME_SYNTAX, WIMMessageHelper.generate... | java | public static String formatUniqueName(String uniqueName) throws InvalidUniqueNameException {
String validName = getValidUniqueName(uniqueName);
if (validName == null) {
if (tc.isErrorEnabled()) {
Tr.error(tc, WIMMessageKey.INVALID_UNIQUE_NAME_SYNTAX, WIMMessageHelper.generate... | [
"public",
"static",
"String",
"formatUniqueName",
"(",
"String",
"uniqueName",
")",
"throws",
"InvalidUniqueNameException",
"{",
"String",
"validName",
"=",
"getValidUniqueName",
"(",
"uniqueName",
")",
";",
"if",
"(",
"validName",
"==",
"null",
")",
"{",
"if",
... | Formats the specified entity unique name and also check it using the LDAP DN syntax rule.
The formatting including remove
@param The unique name of the entity to be formatted.
@return The formatted entity unique name.
@exception InvalidUniqueNameException if the specified member DN does not pass the syntax check. | [
"Formats",
"the",
"specified",
"entity",
"unique",
"name",
"and",
"also",
"check",
"it",
"using",
"the",
"LDAP",
"DN",
"syntax",
"rule",
".",
"The",
"formatting",
"including",
"remove"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/util/UniqueNameHelper.java#L58-L71 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/util/UniqueNameHelper.java | UniqueNameHelper.constructUniqueName | public static String constructUniqueName(String[] RDNs, Entity entity, String parentDN, boolean throwExc) throws WIMException {
boolean found = false;
String uniqueName = null;
String missingPropName = null;
for (int i = 0; i < RDNs.length; i++) {
String[] localRDNs = getRDNs... | java | public static String constructUniqueName(String[] RDNs, Entity entity, String parentDN, boolean throwExc) throws WIMException {
boolean found = false;
String uniqueName = null;
String missingPropName = null;
for (int i = 0; i < RDNs.length; i++) {
String[] localRDNs = getRDNs... | [
"public",
"static",
"String",
"constructUniqueName",
"(",
"String",
"[",
"]",
"RDNs",
",",
"Entity",
"entity",
",",
"String",
"parentDN",
",",
"boolean",
"throwExc",
")",
"throws",
"WIMException",
"{",
"boolean",
"found",
"=",
"false",
";",
"String",
"uniqueNa... | Returns the unique name based on the input value.
@param RDNs a list possible rdns
@param entity the entity DataObject which contains the entity data
@param parentDN the unique name of the parent
@param throwExc if true, exception is thrown if a uniqueName can not be constructed
@return the unique name, null if unique... | [
"Returns",
"the",
"unique",
"name",
"based",
"on",
"the",
"input",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/util/UniqueNameHelper.java#L130-L171 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/util/UniqueNameHelper.java | UniqueNameHelper.escapeAttributeValue | private static String escapeAttributeValue(String value) {
final String escapees = ",=+<>#;\"\\";
char[] chars = value.toCharArray();
StringBuffer buf = new StringBuffer(2 * value.length());
// Find leading and trailing whitespace.
int lead; // index of first char that is not le... | java | private static String escapeAttributeValue(String value) {
final String escapees = ",=+<>#;\"\\";
char[] chars = value.toCharArray();
StringBuffer buf = new StringBuffer(2 * value.length());
// Find leading and trailing whitespace.
int lead; // index of first char that is not le... | [
"private",
"static",
"String",
"escapeAttributeValue",
"(",
"String",
"value",
")",
"{",
"final",
"String",
"escapees",
"=",
"\",=+<>#;\\\"\\\\\"",
";",
"char",
"[",
"]",
"chars",
"=",
"value",
".",
"toCharArray",
"(",
")",
";",
"StringBuffer",
"buf",
"=",
"... | Given the value of an attribute, returns a string suitable for inclusion in a DN.
If the value is a string, this is accomplished by using backslash (\) to escape
the following characters: , = + < > # ; " \
@param value
@return | [
"Given",
"the",
"value",
"of",
"an",
"attribute",
"returns",
"a",
"string",
"suitable",
"for",
"inclusion",
"in",
"a",
"DN",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/util/UniqueNameHelper.java#L226-L253 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/util/UniqueNameHelper.java | UniqueNameHelper.unescapeSpaces | public static String unescapeSpaces(String in) {
char[] chars = in.toCharArray();
int end = chars.length;
StringBuffer out = new StringBuffer(in.length());
for (int i = 0; i < end; i++) {
/*
* Remove any backslashes that precede spaces.
*/
... | java | public static String unescapeSpaces(String in) {
char[] chars = in.toCharArray();
int end = chars.length;
StringBuffer out = new StringBuffer(in.length());
for (int i = 0; i < end; i++) {
/*
* Remove any backslashes that precede spaces.
*/
... | [
"public",
"static",
"String",
"unescapeSpaces",
"(",
"String",
"in",
")",
"{",
"char",
"[",
"]",
"chars",
"=",
"in",
".",
"toCharArray",
"(",
")",
";",
"int",
"end",
"=",
"chars",
".",
"length",
";",
"StringBuffer",
"out",
"=",
"new",
"StringBuffer",
"... | Replace any unnecessary escaped spaces from the input DN.
@param in The input DN.
@return The DN without unnecessary escaped spaces. | [
"Replace",
"any",
"unnecessary",
"escaped",
"spaces",
"from",
"the",
"input",
"DN",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/util/UniqueNameHelper.java#L283-L306 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/xml/XmlUtils.java | XmlUtils.getChildText | public static String getChildText(Element elem, String childTagName)
{
NodeList nodeList = elem.getElementsByTagName(childTagName);
int len = nodeList.getLength();
if (len == 0)
{
return null;
}
return getElementText((Element)nodeList.item(len - 1));
... | java | public static String getChildText(Element elem, String childTagName)
{
NodeList nodeList = elem.getElementsByTagName(childTagName);
int len = nodeList.getLength();
if (len == 0)
{
return null;
}
return getElementText((Element)nodeList.item(len - 1));
... | [
"public",
"static",
"String",
"getChildText",
"(",
"Element",
"elem",
",",
"String",
"childTagName",
")",
"{",
"NodeList",
"nodeList",
"=",
"elem",
".",
"getElementsByTagName",
"(",
"childTagName",
")",
";",
"int",
"len",
"=",
"nodeList",
".",
"getLength",
"("... | Return content of child element with given tag name.
If more than one children with this name are present, the content of the last
element is returned.
@param elem
@param childTagName
@return content of child element or null if no child element with this name was found | [
"Return",
"content",
"of",
"child",
"element",
"with",
"given",
"tag",
"name",
".",
"If",
"more",
"than",
"one",
"children",
"with",
"this",
"name",
"are",
"present",
"the",
"content",
"of",
"the",
"last",
"element",
"is",
"returned",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/xml/XmlUtils.java#L67-L78 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.