id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
68,500 | OpenLiberty/open-liberty | dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/metatype/ExtendedObjectClassDefinitionImpl.java | ExtendedObjectClassDefinitionImpl.getAliasName | private static String getAliasName(String alias, String bundleLocation) {
String newAlias = alias;
if (alias != null && !alias.isEmpty()) {
try {
if (bundleLocation != null && !bundleLocation.isEmpty()) {
if (bundleLocation.startsWith(XMLConfigConstants.B... | java | private static String getAliasName(String alias, String bundleLocation) {
String newAlias = alias;
if (alias != null && !alias.isEmpty()) {
try {
if (bundleLocation != null && !bundleLocation.isEmpty()) {
if (bundleLocation.startsWith(XMLConfigConstants.B... | [
"private",
"static",
"String",
"getAliasName",
"(",
"String",
"alias",
",",
"String",
"bundleLocation",
")",
"{",
"String",
"newAlias",
"=",
"alias",
";",
"if",
"(",
"alias",
"!=",
"null",
"&&",
"!",
"alias",
".",
"isEmpty",
"(",
")",
")",
"{",
"try",
... | Prefixes the alias with the product extension name if there is a product extension
associated to this OCD.
@param alias The alias name to process.
@param bundleLocation bundle location to analyze to provide prefix for the alias
@return The new alias possibly including a prefix based on the bundle location. | [
"Prefixes",
"the",
"alias",
"with",
"the",
"product",
"extension",
"name",
"if",
"there",
"is",
"a",
"product",
"extension",
"associated",
"to",
"this",
"OCD",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/metatype/ExtendedObjectClassDefinitionImpl.java#L383-L414 |
68,501 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java | ContainerClassLoader.getBytes | @Trivial
private static byte[] getBytes(InputStream stream, int knownSize) throws IOException {
try {
if (knownSize == -1) {
ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
try {
byte[] bytes = new byte[1024];
i... | java | @Trivial
private static byte[] getBytes(InputStream stream, int knownSize) throws IOException {
try {
if (knownSize == -1) {
ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
try {
byte[] bytes = new byte[1024];
i... | [
"@",
"Trivial",
"private",
"static",
"byte",
"[",
"]",
"getBytes",
"(",
"InputStream",
"stream",
",",
"int",
"knownSize",
")",
"throws",
"IOException",
"{",
"try",
"{",
"if",
"(",
"knownSize",
"==",
"-",
"1",
")",
"{",
"ByteArrayOutputStream",
"byteOut",
"... | Util method to totally read an input stream into a byte array.
Used for class definition.
@param stream the stream to read.
@return byte array of data from stream.
@throws IOException if an error occurs. | [
"Util",
"method",
"to",
"totally",
"read",
"an",
"input",
"stream",
"into",
"a",
"byte",
"array",
".",
"Used",
"for",
"class",
"definition",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java#L124-L153 |
68,502 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java | ContainerClassLoader.getSharedClassCacheURL | static URL getSharedClassCacheURL(URL resourceURL, String resourceName) {
URL sharedClassCacheURL;
if (resourceURL == null) {
sharedClassCacheURL = null;
} else {
String protocol = resourceURL.getProtocol();
if ("jar".equals(protocol)) {
shared... | java | static URL getSharedClassCacheURL(URL resourceURL, String resourceName) {
URL sharedClassCacheURL;
if (resourceURL == null) {
sharedClassCacheURL = null;
} else {
String protocol = resourceURL.getProtocol();
if ("jar".equals(protocol)) {
shared... | [
"static",
"URL",
"getSharedClassCacheURL",
"(",
"URL",
"resourceURL",
",",
"String",
"resourceName",
")",
"{",
"URL",
"sharedClassCacheURL",
";",
"if",
"(",
"resourceURL",
"==",
"null",
")",
"{",
"sharedClassCacheURL",
"=",
"null",
";",
"}",
"else",
"{",
"Stri... | Computes the shared class cache URL from the resource URL.
If the URL is a jar protocol URL, then use it as is.
If it is a wsjar protocol URL, then change it to a jar protocol URL.
If it is a file protocol URL, confirm that the URL ends with the
class file name, and return the directory before the package
qualified cl... | [
"Computes",
"the",
"shared",
"class",
"cache",
"URL",
"from",
"the",
"resource",
"URL",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java#L217-L247 |
68,503 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java | ContainerClassLoader.definePackage | public Package definePackage(String name, Manifest manifest, URL sealBase) throws IllegalArgumentException {
Attributes mA = manifest.getMainAttributes();
String specTitle = mA.getValue(Name.SPECIFICATION_TITLE);
String specVersion = mA.getValue(Name.SPECIFICATION_VERSION);
String specVe... | java | public Package definePackage(String name, Manifest manifest, URL sealBase) throws IllegalArgumentException {
Attributes mA = manifest.getMainAttributes();
String specTitle = mA.getValue(Name.SPECIFICATION_TITLE);
String specVersion = mA.getValue(Name.SPECIFICATION_VERSION);
String specVe... | [
"public",
"Package",
"definePackage",
"(",
"String",
"name",
",",
"Manifest",
"manifest",
",",
"URL",
"sealBase",
")",
"throws",
"IllegalArgumentException",
"{",
"Attributes",
"mA",
"=",
"manifest",
".",
"getMainAttributes",
"(",
")",
";",
"String",
"specTitle",
... | to set vars passed up to ClassLoader.definePackage. | [
"to",
"set",
"vars",
"passed",
"up",
"to",
"ClassLoader",
".",
"definePackage",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java#L1496-L1537 |
68,504 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java | ContainerClassLoader.addToClassPath | protected void addToClassPath(Iterable<ArtifactContainer> artifacts) {
for (ArtifactContainer art : artifacts) {
smartClassPath.addArtifactContainer(art);
}
} | java | protected void addToClassPath(Iterable<ArtifactContainer> artifacts) {
for (ArtifactContainer art : artifacts) {
smartClassPath.addArtifactContainer(art);
}
} | [
"protected",
"void",
"addToClassPath",
"(",
"Iterable",
"<",
"ArtifactContainer",
">",
"artifacts",
")",
"{",
"for",
"(",
"ArtifactContainer",
"art",
":",
"artifacts",
")",
"{",
"smartClassPath",
".",
"addArtifactContainer",
"(",
"art",
")",
";",
"}",
"}"
] | Add all the artifact containers to the class path | [
"Add",
"all",
"the",
"artifact",
"containers",
"to",
"the",
"class",
"path"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java#L1542-L1547 |
68,505 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java | ContainerClassLoader.addLibraryFile | @FFDCIgnore(NullPointerException.class)
protected void addLibraryFile(File f) {
if (!!!f.exists()) {
if (tc.isWarningEnabled()) {
Tr.warning(tc, "cls.library.archive", f, new FileNotFoundException(f.getName()));
}
return;
}
// Skip files ... | java | @FFDCIgnore(NullPointerException.class)
protected void addLibraryFile(File f) {
if (!!!f.exists()) {
if (tc.isWarningEnabled()) {
Tr.warning(tc, "cls.library.archive", f, new FileNotFoundException(f.getName()));
}
return;
}
// Skip files ... | [
"@",
"FFDCIgnore",
"(",
"NullPointerException",
".",
"class",
")",
"protected",
"void",
"addLibraryFile",
"(",
"File",
"f",
")",
"{",
"if",
"(",
"!",
"!",
"!",
"f",
".",
"exists",
"(",
")",
")",
"{",
"if",
"(",
"tc",
".",
"isWarningEnabled",
"(",
")"... | Method to allow adding shared libraries to this classloader, currently using File.
@param f the File to add as a shared lib.. can be a dir or a jar (or a loose xml ;p) | [
"Method",
"to",
"allow",
"adding",
"shared",
"libraries",
"to",
"this",
"classloader",
"currently",
"using",
"File",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java#L1554-L1593 |
68,506 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java | ContainerClassLoader.isArchive | @FFDCIgnore(PrivilegedActionException.class)
private boolean isArchive(File f) {
final File target = f;
try {
AccessController.doPrivileged(new PrivilegedExceptionAction<Void>() {
@Override
public Void run() throws IOException {
new Zip... | java | @FFDCIgnore(PrivilegedActionException.class)
private boolean isArchive(File f) {
final File target = f;
try {
AccessController.doPrivileged(new PrivilegedExceptionAction<Void>() {
@Override
public Void run() throws IOException {
new Zip... | [
"@",
"FFDCIgnore",
"(",
"PrivilegedActionException",
".",
"class",
")",
"private",
"boolean",
"isArchive",
"(",
"File",
"f",
")",
"{",
"final",
"File",
"target",
"=",
"f",
";",
"try",
"{",
"AccessController",
".",
"doPrivileged",
"(",
"new",
"PrivilegedExcepti... | Check that a file is an archive
@param f | [
"Check",
"that",
"a",
"file",
"is",
"an",
"archive"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java#L1604-L1623 |
68,507 | OpenLiberty/open-liberty | dev/com.ibm.ws.jndi.url.contexts/src/com/ibm/ws/jndi/url/contexts/javacolon/JavaJNDIComponentMetaDataAccessor.java | JavaJNDIComponentMetaDataAccessor.getComponentMetaData | public static ComponentMetaData getComponentMetaData(JavaColonNamespace namespace, String name) throws NamingException {
ComponentMetaData cmd = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().getComponentMetaData();
if (cmd == null) {
String fullName = name.isEmpty() ? namespac... | java | public static ComponentMetaData getComponentMetaData(JavaColonNamespace namespace, String name) throws NamingException {
ComponentMetaData cmd = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().getComponentMetaData();
if (cmd == null) {
String fullName = name.isEmpty() ? namespac... | [
"public",
"static",
"ComponentMetaData",
"getComponentMetaData",
"(",
"JavaColonNamespace",
"namespace",
",",
"String",
"name",
")",
"throws",
"NamingException",
"{",
"ComponentMetaData",
"cmd",
"=",
"ComponentMetaDataAccessorImpl",
".",
"getComponentMetaDataAccessor",
"(",
... | Helper method to get the component metadata from the thread context.
@return the component metadata data for the thread.
@throws NamingException Throws NamingException if running on a non-Java EE thread. | [
"Helper",
"method",
"to",
"get",
"the",
"component",
"metadata",
"from",
"the",
"thread",
"context",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jndi.url.contexts/src/com/ibm/ws/jndi/url/contexts/javacolon/JavaJNDIComponentMetaDataAccessor.java#L36-L45 |
68,508 | OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.setConfiguration | @Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE)
protected Map<String, Object> setConfiguration(ServiceReference<SecurityConfiguration> ref) {
String id = (String) ref.getProperty(KEY_ID);
if (id != null) {
configs.putReference(id, ref);
}... | java | @Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE)
protected Map<String, Object> setConfiguration(ServiceReference<SecurityConfiguration> ref) {
String id = (String) ref.getProperty(KEY_ID);
if (id != null) {
configs.putReference(id, ref);
}... | [
"@",
"Reference",
"(",
"policy",
"=",
"ReferencePolicy",
".",
"DYNAMIC",
",",
"cardinality",
"=",
"ReferenceCardinality",
".",
"MULTIPLE",
")",
"protected",
"Map",
"<",
"String",
",",
"Object",
">",
"setConfiguration",
"(",
"ServiceReference",
"<",
"SecurityConfig... | Method will be called for each SecurityConfiguration that is registered
in the OSGi service registry. We maintain an internal map of these for
easy access.
If the ID is not defined for the configuration, it is incomplete and
can not be used.
@param ref Reference to a registered SecurityConfiguration | [
"Method",
"will",
"be",
"called",
"for",
"each",
"SecurityConfiguration",
"that",
"is",
"registered",
"in",
"the",
"OSGi",
"service",
"registry",
".",
"We",
"maintain",
"an",
"internal",
"map",
"of",
"these",
"for",
"easy",
"access",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L92-L101 |
68,509 | OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.unsetConfiguration | protected Map<String, Object> unsetConfiguration(ServiceReference<SecurityConfiguration> ref) {
configs.removeReference((String) ref.getProperty(KEY_ID), ref);
return getServiceProperties();
} | java | protected Map<String, Object> unsetConfiguration(ServiceReference<SecurityConfiguration> ref) {
configs.removeReference((String) ref.getProperty(KEY_ID), ref);
return getServiceProperties();
} | [
"protected",
"Map",
"<",
"String",
",",
"Object",
">",
"unsetConfiguration",
"(",
"ServiceReference",
"<",
"SecurityConfiguration",
">",
"ref",
")",
"{",
"configs",
".",
"removeReference",
"(",
"(",
"String",
")",
"ref",
".",
"getProperty",
"(",
"KEY_ID",
")",... | Method will be called for each SecurityConfiguration that is unregistered
in the OSGi service registry. We must remove this instance from our
internal map.
@param ref Reference to an unregistered SecurityConfiguration | [
"Method",
"will",
"be",
"called",
"for",
"each",
"SecurityConfiguration",
"that",
"is",
"unregistered",
"in",
"the",
"OSGi",
"service",
"registry",
".",
"We",
"must",
"remove",
"this",
"instance",
"from",
"our",
"internal",
"map",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L110-L113 |
68,510 | OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.setAuthentication | @Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE)
protected Map<String, Object> setAuthentication(ServiceReference<AuthenticationService> ref) {
if (hasPropertiesFromFile(ref)) {
String id = (String) ref.getProperty(KEY_ID);
if (id != null) {
... | java | @Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE)
protected Map<String, Object> setAuthentication(ServiceReference<AuthenticationService> ref) {
if (hasPropertiesFromFile(ref)) {
String id = (String) ref.getProperty(KEY_ID);
if (id != null) {
... | [
"@",
"Reference",
"(",
"policy",
"=",
"ReferencePolicy",
".",
"DYNAMIC",
",",
"cardinality",
"=",
"ReferenceCardinality",
".",
"MULTIPLE",
")",
"protected",
"Map",
"<",
"String",
",",
"Object",
">",
"setAuthentication",
"(",
"ServiceReference",
"<",
"Authenticatio... | Method will be called for each AuthenticationService that is registered
in the OSGi service registry. We maintain an internal map of these for
easy access.
@param ref Reference to a registered AuthenticationService | [
"Method",
"will",
"be",
"called",
"for",
"each",
"AuthenticationService",
"that",
"is",
"registered",
"in",
"the",
"OSGi",
"service",
"registry",
".",
"We",
"maintain",
"an",
"internal",
"map",
"of",
"these",
"for",
"easy",
"access",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L132-L148 |
68,511 | OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.unsetAuthentication | protected Map<String, Object> unsetAuthentication(ServiceReference<AuthenticationService> ref) {
authentication.removeReference((String) ref.getProperty(KEY_ID), ref);
authentication.removeReference(String.valueOf(ref.getProperty(KEY_SERVICE_ID)), ref);
// determine a new authentication service... | java | protected Map<String, Object> unsetAuthentication(ServiceReference<AuthenticationService> ref) {
authentication.removeReference((String) ref.getProperty(KEY_ID), ref);
authentication.removeReference(String.valueOf(ref.getProperty(KEY_SERVICE_ID)), ref);
// determine a new authentication service... | [
"protected",
"Map",
"<",
"String",
",",
"Object",
">",
"unsetAuthentication",
"(",
"ServiceReference",
"<",
"AuthenticationService",
">",
"ref",
")",
"{",
"authentication",
".",
"removeReference",
"(",
"(",
"String",
")",
"ref",
".",
"getProperty",
"(",
"KEY_ID"... | Method will be called for each AuthenticationService that is unregistered
in the OSGi service registry. We must remove this instance from our
internal map.
@param ref Reference to an unregistered AuthenticationService | [
"Method",
"will",
"be",
"called",
"for",
"each",
"AuthenticationService",
"that",
"is",
"unregistered",
"in",
"the",
"OSGi",
"service",
"registry",
".",
"We",
"must",
"remove",
"this",
"instance",
"from",
"our",
"internal",
"map",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L157-L164 |
68,512 | OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.setAuthorization | @Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE)
protected Map<String, Object> setAuthorization(ServiceReference<AuthorizationService> ref) {
if (hasPropertiesFromFile(ref)) {
String id = (String) ref.getProperty(KEY_ID);
if (id != null) {
... | java | @Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE)
protected Map<String, Object> setAuthorization(ServiceReference<AuthorizationService> ref) {
if (hasPropertiesFromFile(ref)) {
String id = (String) ref.getProperty(KEY_ID);
if (id != null) {
... | [
"@",
"Reference",
"(",
"policy",
"=",
"ReferencePolicy",
".",
"DYNAMIC",
",",
"cardinality",
"=",
"ReferenceCardinality",
".",
"MULTIPLE",
")",
"protected",
"Map",
"<",
"String",
",",
"Object",
">",
"setAuthorization",
"(",
"ServiceReference",
"<",
"AuthorizationS... | Method will be called for each AuthorizationService that is registered
in the OSGi service registry. We maintain an internal map of these for
easy access.
@param ref Reference to a registered AuthorizationService | [
"Method",
"will",
"be",
"called",
"for",
"each",
"AuthorizationService",
"that",
"is",
"registered",
"in",
"the",
"OSGi",
"service",
"registry",
".",
"We",
"maintain",
"an",
"internal",
"map",
"of",
"these",
"for",
"easy",
"access",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L173-L189 |
68,513 | OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.unsetAuthorization | protected Map<String, Object> unsetAuthorization(ServiceReference<AuthorizationService> ref) {
authorization.removeReference((String) ref.getProperty(KEY_ID), ref);
authorization.removeReference(String.valueOf(ref.getProperty(KEY_SERVICE_ID)), ref);
// determine a new authorization service
... | java | protected Map<String, Object> unsetAuthorization(ServiceReference<AuthorizationService> ref) {
authorization.removeReference((String) ref.getProperty(KEY_ID), ref);
authorization.removeReference(String.valueOf(ref.getProperty(KEY_SERVICE_ID)), ref);
// determine a new authorization service
... | [
"protected",
"Map",
"<",
"String",
",",
"Object",
">",
"unsetAuthorization",
"(",
"ServiceReference",
"<",
"AuthorizationService",
">",
"ref",
")",
"{",
"authorization",
".",
"removeReference",
"(",
"(",
"String",
")",
"ref",
".",
"getProperty",
"(",
"KEY_ID",
... | Method will be called for each AuthorizationService that is unregistered
in the OSGi service registry. We must remove this instance from our
internal map.
@param ref Reference to an unregistered AuthorizationService | [
"Method",
"will",
"be",
"called",
"for",
"each",
"AuthorizationService",
"that",
"is",
"unregistered",
"in",
"the",
"OSGi",
"service",
"registry",
".",
"We",
"must",
"remove",
"this",
"instance",
"from",
"our",
"internal",
"map",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L198-L205 |
68,514 | OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.setUserRegistry | @Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE, target = "(config.displayId=*)")
protected Map<String, Object> setUserRegistry(ServiceReference<UserRegistryService> ref) {
adjustUserRegistryServiceRef(ref);
// determine a new user registry service
u... | java | @Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE, target = "(config.displayId=*)")
protected Map<String, Object> setUserRegistry(ServiceReference<UserRegistryService> ref) {
adjustUserRegistryServiceRef(ref);
// determine a new user registry service
u... | [
"@",
"Reference",
"(",
"policy",
"=",
"ReferencePolicy",
".",
"DYNAMIC",
",",
"cardinality",
"=",
"ReferenceCardinality",
".",
"MULTIPLE",
",",
"target",
"=",
"\"(config.displayId=*)\"",
")",
"protected",
"Map",
"<",
"String",
",",
"Object",
">",
"setUserRegistry"... | Method will be called for each UserRegistryService that is registered
in the OSGi service registry. We maintain an internal map of these for
easy access.
@param ref Reference to a registered UserRegistryService | [
"Method",
"will",
"be",
"called",
"for",
"each",
"UserRegistryService",
"that",
"is",
"registered",
"in",
"the",
"OSGi",
"service",
"registry",
".",
"We",
"maintain",
"an",
"internal",
"map",
"of",
"these",
"for",
"easy",
"access",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L214-L221 |
68,515 | OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.unsetUserRegistry | protected Map<String, Object> unsetUserRegistry(ServiceReference<UserRegistryService> ref) {
userRegistry.removeReference((String) ref.getProperty(KEY_ID), ref);
userRegistry.removeReference(String.valueOf(ref.getProperty(KEY_SERVICE_ID)), ref);
// determine a new user registry service
... | java | protected Map<String, Object> unsetUserRegistry(ServiceReference<UserRegistryService> ref) {
userRegistry.removeReference((String) ref.getProperty(KEY_ID), ref);
userRegistry.removeReference(String.valueOf(ref.getProperty(KEY_SERVICE_ID)), ref);
// determine a new user registry service
... | [
"protected",
"Map",
"<",
"String",
",",
"Object",
">",
"unsetUserRegistry",
"(",
"ServiceReference",
"<",
"UserRegistryService",
">",
"ref",
")",
"{",
"userRegistry",
".",
"removeReference",
"(",
"(",
"String",
")",
"ref",
".",
"getProperty",
"(",
"KEY_ID",
")... | Method will be called for each UserRegistryService that is unregistered
in the OSGi service registry. We must remove this instance from our
internal map.
@param ref Reference to an unregistered UserRegistryService | [
"Method",
"will",
"be",
"called",
"for",
"each",
"UserRegistryService",
"that",
"is",
"unregistered",
"in",
"the",
"OSGi",
"service",
"registry",
".",
"We",
"must",
"remove",
"this",
"instance",
"from",
"our",
"internal",
"map",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L251-L258 |
68,516 | OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.getEffectiveSecurityConfiguration | private SecurityConfiguration getEffectiveSecurityConfiguration() {
SecurityConfiguration effectiveConfig = configs.getService(cfgSystemDomain);
if (effectiveConfig == null) {
Tr.error(tc, "SECURITY_SERVICE_ERROR_BAD_DOMAIN", cfgSystemDomain, CFG_KEY_SYSTEM_DOMAIN);
throw new Ill... | java | private SecurityConfiguration getEffectiveSecurityConfiguration() {
SecurityConfiguration effectiveConfig = configs.getService(cfgSystemDomain);
if (effectiveConfig == null) {
Tr.error(tc, "SECURITY_SERVICE_ERROR_BAD_DOMAIN", cfgSystemDomain, CFG_KEY_SYSTEM_DOMAIN);
throw new Ill... | [
"private",
"SecurityConfiguration",
"getEffectiveSecurityConfiguration",
"(",
")",
"{",
"SecurityConfiguration",
"effectiveConfig",
"=",
"configs",
".",
"getService",
"(",
"cfgSystemDomain",
")",
";",
"if",
"(",
"effectiveConfig",
"==",
"null",
")",
"{",
"Tr",
".",
... | Eventually this will be execution context aware and pick the right domain.
Till then, we're only accessing the system domain configuration.
@return SecurityConfiguration representing the "effective" configuration
for the execution context. | [
"Eventually",
"this",
"will",
"be",
"execution",
"context",
"aware",
"and",
"pick",
"the",
"right",
"domain",
".",
"Till",
"then",
"we",
"re",
"only",
"accessing",
"the",
"system",
"domain",
"configuration",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L374-L381 |
68,517 | OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.autoDetectService | private <V> V autoDetectService(String serviceName, ConcurrentServiceReferenceMap<String, V> map) {
Iterator<V> services = map.getServices();
if (services.hasNext() == false) {
Tr.error(tc, "SECURITY_SERVICE_NO_SERVICE_AVAILABLE", serviceName);
throw new IllegalStateException(Tr.... | java | private <V> V autoDetectService(String serviceName, ConcurrentServiceReferenceMap<String, V> map) {
Iterator<V> services = map.getServices();
if (services.hasNext() == false) {
Tr.error(tc, "SECURITY_SERVICE_NO_SERVICE_AVAILABLE", serviceName);
throw new IllegalStateException(Tr.... | [
"private",
"<",
"V",
">",
"V",
"autoDetectService",
"(",
"String",
"serviceName",
",",
"ConcurrentServiceReferenceMap",
"<",
"String",
",",
"V",
">",
"map",
")",
"{",
"Iterator",
"<",
"V",
">",
"services",
"=",
"map",
".",
"getServices",
"(",
")",
";",
"... | When the configuration element is not defined, use some "auto-detect"
logic to try and return the single Service of a specified field. If
there is no service, or multiple services, that is considered an error
case which "auto-detect" can not resolve.
@param serviceName name of the service
@param map ConcurrentServiceR... | [
"When",
"the",
"configuration",
"element",
"is",
"not",
"defined",
"use",
"some",
"auto",
"-",
"detect",
"logic",
"to",
"try",
"and",
"return",
"the",
"single",
"Service",
"of",
"a",
"specified",
"field",
".",
"If",
"there",
"is",
"no",
"service",
"or",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L401-L414 |
68,518 | OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.getAuthenticationService | private AuthenticationService getAuthenticationService(String id) {
AuthenticationService service = authentication.getService(id);
if (service == null) {
throwIllegalArgumentExceptionInvalidAttributeValue(SecurityConfiguration.CFG_KEY_AUTHENTICATION_REF, id);
}
return service... | java | private AuthenticationService getAuthenticationService(String id) {
AuthenticationService service = authentication.getService(id);
if (service == null) {
throwIllegalArgumentExceptionInvalidAttributeValue(SecurityConfiguration.CFG_KEY_AUTHENTICATION_REF, id);
}
return service... | [
"private",
"AuthenticationService",
"getAuthenticationService",
"(",
"String",
"id",
")",
"{",
"AuthenticationService",
"service",
"=",
"authentication",
".",
"getService",
"(",
"id",
")",
";",
"if",
"(",
"service",
"==",
"null",
")",
"{",
"throwIllegalArgumentExcep... | Retrieve the AuthenticationService for the specified id.
@param id AuthenticationService id to retrieve
@return A non-null AuthenticationService instance. | [
"Retrieve",
"the",
"AuthenticationService",
"for",
"the",
"specified",
"id",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L444-L450 |
68,519 | OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.getAuthorizationService | private AuthorizationService getAuthorizationService(String id) {
AuthorizationService service = authorization.getService(id);
if (service == null) {
throwIllegalArgumentExceptionInvalidAttributeValue(SecurityConfiguration.CFG_KEY_AUTHORIZATION_REF, id);
}
return service;
... | java | private AuthorizationService getAuthorizationService(String id) {
AuthorizationService service = authorization.getService(id);
if (service == null) {
throwIllegalArgumentExceptionInvalidAttributeValue(SecurityConfiguration.CFG_KEY_AUTHORIZATION_REF, id);
}
return service;
... | [
"private",
"AuthorizationService",
"getAuthorizationService",
"(",
"String",
"id",
")",
"{",
"AuthorizationService",
"service",
"=",
"authorization",
".",
"getService",
"(",
"id",
")",
";",
"if",
"(",
"service",
"==",
"null",
")",
"{",
"throwIllegalArgumentException... | Retrieve the AuthorizationService for the specified id.
@param id AuthorizationService id to retrieve
@return A non-null AuthorizationService instance. | [
"Retrieve",
"the",
"AuthorizationService",
"for",
"the",
"specified",
"id",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L527-L533 |
68,520 | OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.getUserRegistryService | private UserRegistryService getUserRegistryService(String id) {
UserRegistryService service = userRegistry.getService(id);
if (service == null) {
throwIllegalArgumentExceptionInvalidAttributeValue(SecurityConfiguration.CFG_KEY_USERREGISTRY_REF, id);
}
return service;
} | java | private UserRegistryService getUserRegistryService(String id) {
UserRegistryService service = userRegistry.getService(id);
if (service == null) {
throwIllegalArgumentExceptionInvalidAttributeValue(SecurityConfiguration.CFG_KEY_USERREGISTRY_REF, id);
}
return service;
} | [
"private",
"UserRegistryService",
"getUserRegistryService",
"(",
"String",
"id",
")",
"{",
"UserRegistryService",
"service",
"=",
"userRegistry",
".",
"getService",
"(",
"id",
")",
";",
"if",
"(",
"service",
"==",
"null",
")",
"{",
"throwIllegalArgumentExceptionInva... | Retrieve the UserRegistryService for the specified id.
@param id UserRegistryService id to retrieve
@return A non-null UserRegistryService instance. | [
"Retrieve",
"the",
"UserRegistryService",
"for",
"the",
"specified",
"id",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L558-L564 |
68,521 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/ComponentHandler.java | ComponentHandler.getFacetName | protected final String getFacetName(FaceletContext ctx, UIComponent parent)
{
// TODO: REFACTOR - "facelets.FACET_NAME" should be a constant somewhere, used to be in FacetHandler
// from real Facelets
return (String) parent.getAttributes().get("facelets.FACET_NAME");
} | java | protected final String getFacetName(FaceletContext ctx, UIComponent parent)
{
// TODO: REFACTOR - "facelets.FACET_NAME" should be a constant somewhere, used to be in FacetHandler
// from real Facelets
return (String) parent.getAttributes().get("facelets.FACET_NAME");
} | [
"protected",
"final",
"String",
"getFacetName",
"(",
"FaceletContext",
"ctx",
",",
"UIComponent",
"parent",
")",
"{",
"// TODO: REFACTOR - \"facelets.FACET_NAME\" should be a constant somewhere, used to be in FacetHandler",
"// from real Facelets",
"return",
"(",
"St... | Return the Facet name we are scoped in, otherwise null
@param ctx
@return | [
"Return",
"the",
"Facet",
"name",
"we",
"are",
"scoped",
"in",
"otherwise",
"null"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/ComponentHandler.java#L198-L203 |
68,522 | OpenLiberty/open-liberty | dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTranManagerImpl.java | EmbeddableTranManagerImpl.completeTxTimeout | public void completeTxTimeout() throws TransactionRolledbackException
{
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "completeTxTimeout");
if (tx != null && tx.isTimedOut())
{
if (traceOn && t... | java | public void completeTxTimeout() throws TransactionRolledbackException
{
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "completeTxTimeout");
if (tx != null && tx.isTimedOut())
{
if (traceOn && t... | [
"public",
"void",
"completeTxTimeout",
"(",
")",
"throws",
"TransactionRolledbackException",
"{",
"final",
"boolean",
"traceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"traceOn",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
... | Complete processing of passive transaction timeout. | [
"Complete",
"processing",
"of",
"passive",
"transaction",
"timeout",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTranManagerImpl.java#L91-L115 |
68,523 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java | JSConsumerSet.addConsumer | public void addConsumer(DispatchableConsumerPoint lcp)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "addConsumer", lcp);
// WARNING: We mustn't hold the LCP lock of the consumer at this point
synchronized(consumerList)
{
consumerList.add(lcp);
}
... | java | public void addConsumer(DispatchableConsumerPoint lcp)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "addConsumer", lcp);
// WARNING: We mustn't hold the LCP lock of the consumer at this point
synchronized(consumerList)
{
consumerList.add(lcp);
}
... | [
"public",
"void",
"addConsumer",
"(",
"DispatchableConsumerPoint",
"lcp",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"addConsumer\"",
... | Add a new consumer to this set.
@param lcp | [
"Add",
"a",
"new",
"consumer",
"to",
"this",
"set",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java#L158-L172 |
68,524 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java | JSConsumerSet.removeConsumer | public void removeConsumer(DispatchableConsumerPoint lcp)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeConsumer", lcp);
// WARNING: We mustn't hold the LCP lock of the consumer at this point
synchronized(consumerList)
{
consumerList.remove(lcp)... | java | public void removeConsumer(DispatchableConsumerPoint lcp)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeConsumer", lcp);
// WARNING: We mustn't hold the LCP lock of the consumer at this point
synchronized(consumerList)
{
consumerList.remove(lcp)... | [
"public",
"void",
"removeConsumer",
"(",
"DispatchableConsumerPoint",
"lcp",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"removeConsumer... | Remove a consumer from the set.
@param lcp | [
"Remove",
"a",
"consumer",
"from",
"the",
"set",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java#L178-L192 |
68,525 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java | JSConsumerSet.getGetCursorIndex | public int getGetCursorIndex(SIMPMessage msg)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getGetCursorIndex");
// The zeroth index is reserved for non-classified messages
int classPos = 0;
synchronized(classifications)
{
if(classifications.g... | java | public int getGetCursorIndex(SIMPMessage msg)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getGetCursorIndex");
// The zeroth index is reserved for non-classified messages
int classPos = 0;
synchronized(classifications)
{
if(classifications.g... | [
"public",
"int",
"getGetCursorIndex",
"(",
"SIMPMessage",
"msg",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getGetCursorIndex\"",
")... | Determine the index of the getCursor to use based on the classification of a
message.
@param msg
@return | [
"Determine",
"the",
"index",
"of",
"the",
"getCursor",
"to",
"use",
"based",
"on",
"the",
"classification",
"of",
"a",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java#L201-L227 |
68,526 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java | JSConsumerSet.chooseGetCursorIndex | public synchronized int chooseGetCursorIndex(int previous)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "chooseGetCursorIndex", new Object[] {Integer.valueOf(previous)});
// The zeroth index represents the default cursor for non-classified messages.
int cla... | java | public synchronized int chooseGetCursorIndex(int previous)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "chooseGetCursorIndex", new Object[] {Integer.valueOf(previous)});
// The zeroth index represents the default cursor for non-classified messages.
int cla... | [
"public",
"synchronized",
"int",
"chooseGetCursorIndex",
"(",
"int",
"previous",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"chooseGe... | Determine the index of the getCursor to use based on the classifications defined
for the ConsumerSet that this consumer belongs to.
@param msg
@return | [
"Determine",
"the",
"index",
"of",
"the",
"getCursor",
"to",
"use",
"based",
"on",
"the",
"classifications",
"defined",
"for",
"the",
"ConsumerSet",
"that",
"this",
"consumer",
"belongs",
"to",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java#L236-L278 |
68,527 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java | JSConsumerSet.getClassifications | public JSConsumerClassifications getClassifications()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getClassifications");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getClassifications", classifications);
// T... | java | public JSConsumerClassifications getClassifications()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getClassifications");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getClassifications", classifications);
// T... | [
"public",
"JSConsumerClassifications",
"getClassifications",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getClassifications\"",
")",... | Returns a reference to the Classifications object that wraps the
classifications specified by XD.
@return | [
"Returns",
"a",
"reference",
"to",
"the",
"Classifications",
"object",
"that",
"wraps",
"the",
"classifications",
"specified",
"by",
"XD",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java#L286-L296 |
68,528 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java | JSConsumerSet.prepareAddActiveMessage | public boolean prepareAddActiveMessage()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this,tc, "prepareAddActiveMessage");
boolean messageAccepted = false;
boolean limitReached = false;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
... | java | public boolean prepareAddActiveMessage()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this,tc, "prepareAddActiveMessage");
boolean messageAccepted = false;
boolean limitReached = false;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
... | [
"public",
"boolean",
"prepareAddActiveMessage",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"prepareAddActiveMessage\"... | Because there may be multiple members or the ConsumerSet, if we're managing
the active mesage count we must 'reserve' a space for any message that a consumer
may lock, rather than lock it first then realise that the ConsumerSet has reached
its maximum active message limit and have to unlock it.
Preparing the add of a ... | [
"Because",
"there",
"may",
"be",
"multiple",
"members",
"or",
"the",
"ConsumerSet",
"if",
"we",
"re",
"managing",
"the",
"active",
"mesage",
"count",
"we",
"must",
"reserve",
"a",
"space",
"for",
"any",
"message",
"that",
"a",
"consumer",
"may",
"lock",
"r... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java#L312-L437 |
68,529 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java | JSConsumerSet.takeClassificationReadLock | public void takeClassificationReadLock()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "takeClassificationReadLock");
classificationReadLock.lock();
if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "takeClassification... | java | public void takeClassificationReadLock()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "takeClassificationReadLock");
classificationReadLock.lock();
if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "takeClassification... | [
"public",
"void",
"takeClassificationReadLock",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"takeClassificationReadLock\"",
")",
";... | Take a classification readlock | [
"Take",
"a",
"classification",
"readlock"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java#L997-L1006 |
68,530 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java | JSConsumerSet.freeClassificationReadLock | public void freeClassificationReadLock()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "freeClassificationReadLock");
classificationReadLock.unlock();
if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "freeClassificati... | java | public void freeClassificationReadLock()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "freeClassificationReadLock");
classificationReadLock.unlock();
if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "freeClassificati... | [
"public",
"void",
"freeClassificationReadLock",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"freeClassificationReadLock\"",
")",
";... | Free a classification readlock
TODO Put all calls to this in a finally | [
"Free",
"a",
"classification",
"readlock"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java#L1013-L1022 |
68,531 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ContainerAS.java | ContainerAS.registerSynchronization | public void registerSynchronization(Synchronization s) throws CPIException
{
try {
ivContainer.uowCtrl.enlistWithSession(s);
// enlistSession(s)
} catch (CSIException e) {
throw new CPIException(e.toString());
}
} | java | public void registerSynchronization(Synchronization s) throws CPIException
{
try {
ivContainer.uowCtrl.enlistWithSession(s);
// enlistSession(s)
} catch (CSIException e) {
throw new CPIException(e.toString());
}
} | [
"public",
"void",
"registerSynchronization",
"(",
"Synchronization",
"s",
")",
"throws",
"CPIException",
"{",
"try",
"{",
"ivContainer",
".",
"uowCtrl",
".",
"enlistWithSession",
"(",
"s",
")",
";",
"// enlistSession(s)",
"}",
"catch",
"(",
"CSIException",
"e",
... | Register the synchronization object with this activity session | [
"Register",
"the",
"synchronization",
"object",
"with",
"this",
"activity",
"session"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ContainerAS.java#L308-L316 |
68,532 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ContainerAS.java | ContainerAS.getEJBKeys | private EJBKey[] getEJBKeys(BeanO[] beans)
{
EJBKey result[] = null;
if (beans != null) {
result = new EJBKey[beans.length];
for (int i = 0; i < beans.length; ++i) {
result[i] = beans[i].getId();
}
}
return result;
} | java | private EJBKey[] getEJBKeys(BeanO[] beans)
{
EJBKey result[] = null;
if (beans != null) {
result = new EJBKey[beans.length];
for (int i = 0; i < beans.length; ++i) {
result[i] = beans[i].getId();
}
}
return result;
} | [
"private",
"EJBKey",
"[",
"]",
"getEJBKeys",
"(",
"BeanO",
"[",
"]",
"beans",
")",
"{",
"EJBKey",
"result",
"[",
"]",
"=",
"null",
";",
"if",
"(",
"beans",
"!=",
"null",
")",
"{",
"result",
"=",
"new",
"EJBKey",
"[",
"beans",
".",
"length",
"]",
... | Get snapshot of all EJBKeys associated with the beans involved in current
activity session | [
"Get",
"snapshot",
"of",
"all",
"EJBKeys",
"associated",
"with",
"the",
"beans",
"involved",
"in",
"current",
"activity",
"session"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ContainerAS.java#L322-L332 |
68,533 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ContainerAS.java | ContainerAS.getBeanOs | private BeanO[] getBeanOs()
{
BeanO result[];
result = new BeanO[ivBeanOs.size()];
Iterator<BeanO> iter = ivBeanOs.values().iterator();
int i = 0;
while (iter.hasNext()) {
result[i++] = iter.next();
}
return result;
} | java | private BeanO[] getBeanOs()
{
BeanO result[];
result = new BeanO[ivBeanOs.size()];
Iterator<BeanO> iter = ivBeanOs.values().iterator();
int i = 0;
while (iter.hasNext()) {
result[i++] = iter.next();
}
return result;
} | [
"private",
"BeanO",
"[",
"]",
"getBeanOs",
"(",
")",
"{",
"BeanO",
"result",
"[",
"]",
";",
"result",
"=",
"new",
"BeanO",
"[",
"ivBeanOs",
".",
"size",
"(",
")",
"]",
";",
"Iterator",
"<",
"BeanO",
">",
"iter",
"=",
"ivBeanOs",
".",
"values",
"(",... | Get snapshot of all beans involved in current activity session | [
"Get",
"snapshot",
"of",
"all",
"beans",
"involved",
"in",
"current",
"activity",
"session"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ContainerAS.java#L337-L347 |
68,534 | OpenLiberty/open-liberty | dev/com.ibm.ws.anno/src/com/ibm/ws/anno/classsource/internal/ClassSourceImpl_ClassLoader.java | ClassSourceImpl_ClassLoader.scanClasses | @Override
public void scanClasses(
ClassSource_Streamer streamer,
Set<String> i_seedClassNamesSet,
ScanPolicy scanPolicy) {
throw new UnsupportedOperationException();
} | java | @Override
public void scanClasses(
ClassSource_Streamer streamer,
Set<String> i_seedClassNamesSet,
ScanPolicy scanPolicy) {
throw new UnsupportedOperationException();
} | [
"@",
"Override",
"public",
"void",
"scanClasses",
"(",
"ClassSource_Streamer",
"streamer",
",",
"Set",
"<",
"String",
">",
"i_seedClassNamesSet",
",",
"ScanPolicy",
"scanPolicy",
")",
"{",
"throw",
"new",
"UnsupportedOperationException",
"(",
")",
";",
"}"
] | scan policy, and external regions are never scanned iteratively. | [
"scan",
"policy",
"and",
"external",
"regions",
"are",
"never",
"scanned",
"iteratively",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/classsource/internal/ClassSourceImpl_ClassLoader.java#L95-L102 |
68,535 | OpenLiberty/open-liberty | dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/RolePlayer.java | RolePlayer.getPartyRoles | public List<com.ibm.wsspi.security.wim.model.PartyRole> getPartyRoles() {
if (partyRoles == null) {
partyRoles = new ArrayList<com.ibm.wsspi.security.wim.model.PartyRole>();
}
return this.partyRoles;
} | java | public List<com.ibm.wsspi.security.wim.model.PartyRole> getPartyRoles() {
if (partyRoles == null) {
partyRoles = new ArrayList<com.ibm.wsspi.security.wim.model.PartyRole>();
}
return this.partyRoles;
} | [
"public",
"List",
"<",
"com",
".",
"ibm",
".",
"wsspi",
".",
"security",
".",
"wim",
".",
"model",
".",
"PartyRole",
">",
"getPartyRoles",
"(",
")",
"{",
"if",
"(",
"partyRoles",
"==",
"null",
")",
"{",
"partyRoles",
"=",
"new",
"ArrayList",
"<",
"co... | Gets the value of the partyRoles property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the partyRoles property.
<p>
For example, to... | [
"Gets",
"the",
"value",
"of",
"the",
"partyRoles",
"property",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/RolePlayer.java#L107-L112 |
68,536 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSDynamic.java | JSDynamic.getExpectedSchema | public JSchema getExpectedSchema(Map context) {
if (expectedSchema != null)
return expectedSchema;
if (expectedType == null)
return null;
expectedSchema = (JSchema)context.get(expectedType);
if (expectedSchema != null)
return expectedSchema;
expectedSchema = new JSchema(expectedTyp... | java | public JSchema getExpectedSchema(Map context) {
if (expectedSchema != null)
return expectedSchema;
if (expectedType == null)
return null;
expectedSchema = (JSchema)context.get(expectedType);
if (expectedSchema != null)
return expectedSchema;
expectedSchema = new JSchema(expectedTyp... | [
"public",
"JSchema",
"getExpectedSchema",
"(",
"Map",
"context",
")",
"{",
"if",
"(",
"expectedSchema",
"!=",
"null",
")",
"return",
"expectedSchema",
";",
"if",
"(",
"expectedType",
"==",
"null",
")",
"return",
"null",
";",
"expectedSchema",
"=",
"(",
"JSch... | Retrieve the subschema corresponding to the expected type (will be null iff expected
type is null. Constructs the subschema if it doesn't already exist. The context
argument guards against duplicate construction of schemas in the event that the
definition is recursive. | [
"Retrieve",
"the",
"subschema",
"corresponding",
"to",
"the",
"expected",
"type",
"(",
"will",
"be",
"null",
"iff",
"expected",
"type",
"is",
"null",
".",
"Constructs",
"the",
"subschema",
"if",
"it",
"doesn",
"t",
"already",
"exist",
".",
"The",
"context",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSDynamic.java#L67-L77 |
68,537 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java | SecurityContextImpl.taskStarting | @Override
public void taskStarting() {
final boolean trace = TraceComponent.isAnyTracingEnabled();
prevInvocationSubject = subjectManager.getInvocationSubject();
prevCallerSubject = subjectManager.getCallerSubject();
if (trace && tc.isEntryEnabled())
Tr.entry(this, tc, ... | java | @Override
public void taskStarting() {
final boolean trace = TraceComponent.isAnyTracingEnabled();
prevInvocationSubject = subjectManager.getInvocationSubject();
prevCallerSubject = subjectManager.getCallerSubject();
if (trace && tc.isEntryEnabled())
Tr.entry(this, tc, ... | [
"@",
"Override",
"public",
"void",
"taskStarting",
"(",
")",
"{",
"final",
"boolean",
"trace",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"prevInvocationSubject",
"=",
"subjectManager",
".",
"getInvocationSubject",
"(",
")",
";",
"prevCaller... | Push the subjects associated with this security context onto the thread. | [
"Push",
"the",
"subjects",
"associated",
"with",
"this",
"security",
"context",
"onto",
"the",
"thread",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java#L211-L226 |
68,538 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java | SecurityContextImpl.taskStopping | @Override
public void taskStopping() {
final boolean trace = TraceComponent.isAnyTracingEnabled();
if (trace && tc.isEntryEnabled())
Tr.entry(this, tc, "taskStopping", "restore caller/invocation subjects", prevCallerSubject, prevInvocationSubject);
subjectManager.setCallerSubjec... | java | @Override
public void taskStopping() {
final boolean trace = TraceComponent.isAnyTracingEnabled();
if (trace && tc.isEntryEnabled())
Tr.entry(this, tc, "taskStopping", "restore caller/invocation subjects", prevCallerSubject, prevInvocationSubject);
subjectManager.setCallerSubjec... | [
"@",
"Override",
"public",
"void",
"taskStopping",
"(",
")",
"{",
"final",
"boolean",
"trace",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"trace",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"("... | Restore the subjects that were previously on the thread prior to applying this
security context. | [
"Restore",
"the",
"subjects",
"that",
"were",
"previously",
"on",
"the",
"thread",
"prior",
"to",
"applying",
"this",
"security",
"context",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java#L232-L243 |
68,539 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java | SecurityContextImpl.readState | private void readState(GetField fields) throws IOException {
//get caller principal
callerPrincipal = (WSPrincipal) fields.get(CALLER_PRINCIPAL, null);
//get boolean marking if subjects are equal
subjectsAreEqual = fields.get(SUBJECTS_ARE_EQUAL, false);
//only deserialize invoc... | java | private void readState(GetField fields) throws IOException {
//get caller principal
callerPrincipal = (WSPrincipal) fields.get(CALLER_PRINCIPAL, null);
//get boolean marking if subjects are equal
subjectsAreEqual = fields.get(SUBJECTS_ARE_EQUAL, false);
//only deserialize invoc... | [
"private",
"void",
"readState",
"(",
"GetField",
"fields",
")",
"throws",
"IOException",
"{",
"//get caller principal",
"callerPrincipal",
"=",
"(",
"WSPrincipal",
")",
"fields",
".",
"get",
"(",
"CALLER_PRINCIPAL",
",",
"null",
")",
";",
"//get boolean marking if s... | Read the security context
@param fields
@throws IOException if there are I/O errors while reading from the underlying InputStream | [
"Read",
"the",
"security",
"context"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java#L333-L351 |
68,540 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java | SecurityContextImpl.recreateFullSubject | @FFDCIgnore(AuthenticationException.class)
protected Subject recreateFullSubject(WSPrincipal wsPrincipal, SecurityService securityService,
AtomicServiceReference<UnauthenticatedSubjectService> unauthenticatedSubjectServiceRef, String customCacheKey) {
Subject subjec... | java | @FFDCIgnore(AuthenticationException.class)
protected Subject recreateFullSubject(WSPrincipal wsPrincipal, SecurityService securityService,
AtomicServiceReference<UnauthenticatedSubjectService> unauthenticatedSubjectServiceRef, String customCacheKey) {
Subject subjec... | [
"@",
"FFDCIgnore",
"(",
"AuthenticationException",
".",
"class",
")",
"protected",
"Subject",
"recreateFullSubject",
"(",
"WSPrincipal",
"wsPrincipal",
",",
"SecurityService",
"securityService",
",",
"AtomicServiceReference",
"<",
"UnauthenticatedSubjectService",
">",
"unau... | Perform a login to recreate the full subject, given a WSPrincipal
@param wsPrincipal the deserialized WSPrincipal that will be used for creating the new subject
@param securityService the security service to use for authenticating the user
@param AtomicServiceReference<UnauthenticatedSubjectService> reference to the u... | [
"Perform",
"a",
"login",
"to",
"recreate",
"the",
"full",
"subject",
"given",
"a",
"WSPrincipal"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java#L362-L382 |
68,541 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java | SecurityContextImpl.getWSPrincipal | protected WSPrincipal getWSPrincipal(Subject subject) throws IOException {
WSPrincipal wsPrincipal = null;
Set<WSPrincipal> principals = (subject != null) ? subject.getPrincipals(WSPrincipal.class) : null;
if (principals != null && !principals.isEmpty()) {
if (principals.size() > 1) ... | java | protected WSPrincipal getWSPrincipal(Subject subject) throws IOException {
WSPrincipal wsPrincipal = null;
Set<WSPrincipal> principals = (subject != null) ? subject.getPrincipals(WSPrincipal.class) : null;
if (principals != null && !principals.isEmpty()) {
if (principals.size() > 1) ... | [
"protected",
"WSPrincipal",
"getWSPrincipal",
"(",
"Subject",
"subject",
")",
"throws",
"IOException",
"{",
"WSPrincipal",
"wsPrincipal",
"=",
"null",
";",
"Set",
"<",
"WSPrincipal",
">",
"principals",
"=",
"(",
"subject",
"!=",
"null",
")",
"?",
"subject",
".... | Get the WSPrincipal from the subject
@param subject
@return the WSPrincipal of the subject
@throws IOException if there is more than one WSPrincipal in the subject | [
"Get",
"the",
"WSPrincipal",
"from",
"the",
"subject"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java#L391-L410 |
68,542 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java | SecurityContextImpl.serializeSubjectCacheKey | private void serializeSubjectCacheKey(PutField fields) throws Exception {
if (callerSubject != null) {
Hashtable<String, ?> hashtable =
subjectHelper.getHashtableFromSubject(callerSubject, new String[] { AttributeNameConstants.WSCREDENTIAL_CACHE_KEY });
if (h... | java | private void serializeSubjectCacheKey(PutField fields) throws Exception {
if (callerSubject != null) {
Hashtable<String, ?> hashtable =
subjectHelper.getHashtableFromSubject(callerSubject, new String[] { AttributeNameConstants.WSCREDENTIAL_CACHE_KEY });
if (h... | [
"private",
"void",
"serializeSubjectCacheKey",
"(",
"PutField",
"fields",
")",
"throws",
"Exception",
"{",
"if",
"(",
"callerSubject",
"!=",
"null",
")",
"{",
"Hashtable",
"<",
"String",
",",
"?",
">",
"hashtable",
"=",
"subjectHelper",
".",
"getHashtableFromSub... | Serialize the cache lookup keys for the caller and invocation subjects | [
"Serialize",
"the",
"cache",
"lookup",
"keys",
"for",
"the",
"caller",
"and",
"invocation",
"subjects"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java#L430-L506 |
68,543 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp.2.3/src/org/apache/jasper/runtime/BodyContentImpl.java | BodyContentImpl.clear | public void clear() throws IOException {
if (writer != null) {
throw new IOException();
} else {
nextChar = 0;
if (limitBuffer && (strBuffer.length() > this.bodyContentBuffSize)){ //PK95332 - starts
if(com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable... | java | public void clear() throws IOException {
if (writer != null) {
throw new IOException();
} else {
nextChar = 0;
if (limitBuffer && (strBuffer.length() > this.bodyContentBuffSize)){ //PK95332 - starts
if(com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable... | [
"public",
"void",
"clear",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"writer",
"!=",
"null",
")",
"{",
"throw",
"new",
"IOException",
"(",
")",
";",
"}",
"else",
"{",
"nextChar",
"=",
"0",
";",
"if",
"(",
"limitBuffer",
"&&",
"(",
"strBuffer... | Clear the contents of the buffer. If the buffer has been already
been flushed then the clear operation shall throw an IOException
to signal the fact that some data has already been irrevocably
written to the client response stream.
@throws IOException If an I/O error occurs | [
"Clear",
"the",
"contents",
"of",
"the",
"buffer",
".",
"If",
"the",
"buffer",
"has",
"been",
"already",
"been",
"flushed",
"then",
"the",
"clear",
"operation",
"shall",
"throw",
"an",
"IOException",
"to",
"signal",
"the",
"fact",
"that",
"some",
"data",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp.2.3/src/org/apache/jasper/runtime/BodyContentImpl.java#L537-L551 |
68,544 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp.2.3/src/org/apache/jasper/runtime/BodyContentImpl.java | BodyContentImpl.writeOut | public void writeOut(Writer out) throws IOException {
if (writer == null) {
out.write(strBuffer.toString()); // PK33136
// Flush not called as the writer passed could be a BodyContent and
// it doesn't allow to flush.
}
} | java | public void writeOut(Writer out) throws IOException {
if (writer == null) {
out.write(strBuffer.toString()); // PK33136
// Flush not called as the writer passed could be a BodyContent and
// it doesn't allow to flush.
}
} | [
"public",
"void",
"writeOut",
"(",
"Writer",
"out",
")",
"throws",
"IOException",
"{",
"if",
"(",
"writer",
"==",
"null",
")",
"{",
"out",
".",
"write",
"(",
"strBuffer",
".",
"toString",
"(",
")",
")",
";",
"// PK33136",
"// Flush not called as the writer p... | Write the contents of this BodyJspWriter into a Writer.
Subclasses are likely to do interesting things with the
implementation so some things are extra efficient.
@param out The writer into which to place the contents of this body
evaluation | [
"Write",
"the",
"contents",
"of",
"this",
"BodyJspWriter",
"into",
"a",
"Writer",
".",
"Subclasses",
"are",
"likely",
"to",
"do",
"interesting",
"things",
"with",
"the",
"implementation",
"so",
"some",
"things",
"are",
"extra",
"efficient",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp.2.3/src/org/apache/jasper/runtime/BodyContentImpl.java#L630-L636 |
68,545 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp.2.3/src/org/apache/jasper/runtime/BodyContentImpl.java | BodyContentImpl.setWriter | void setWriter(Writer writer) {
// PM12137 - starts
if (closed) {
if(com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable(Level.FINE)){
logger.logp(Level.FINE, CLASS_NAME, "setWriter", "resetting closed to false for this=["+this+"]");
}
closed = false... | java | void setWriter(Writer writer) {
// PM12137 - starts
if (closed) {
if(com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable(Level.FINE)){
logger.logp(Level.FINE, CLASS_NAME, "setWriter", "resetting closed to false for this=["+this+"]");
}
closed = false... | [
"void",
"setWriter",
"(",
"Writer",
"writer",
")",
"{",
"// PM12137 - starts",
"if",
"(",
"closed",
")",
"{",
"if",
"(",
"com",
".",
"ibm",
".",
"ejs",
".",
"ras",
".",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"logger",
".",
"isLogga... | Sets the writer to which all output is written. | [
"Sets",
"the",
"writer",
"to",
"which",
"all",
"output",
"is",
"written",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp.2.3/src/org/apache/jasper/runtime/BodyContentImpl.java#L650-L685 |
68,546 | OpenLiberty/open-liberty | dev/com.ibm.ws.context/src/com/ibm/ws/context/service/serializable/ContextualObject.java | ContextualObject.getExecutionProperties | @Trivial
public final Map<String, String> getExecutionProperties() {
TreeMap<String, String> copy = null;
if (internalPropNames != null) {
copy = new TreeMap<String, String>(threadContextDescriptor.getExecutionProperties());
for (String name : internalPropNames)
... | java | @Trivial
public final Map<String, String> getExecutionProperties() {
TreeMap<String, String> copy = null;
if (internalPropNames != null) {
copy = new TreeMap<String, String>(threadContextDescriptor.getExecutionProperties());
for (String name : internalPropNames)
... | [
"@",
"Trivial",
"public",
"final",
"Map",
"<",
"String",
",",
"String",
">",
"getExecutionProperties",
"(",
")",
"{",
"TreeMap",
"<",
"String",
",",
"String",
">",
"copy",
"=",
"null",
";",
"if",
"(",
"internalPropNames",
"!=",
"null",
")",
"{",
"copy",
... | Returns a copy of execution properties.
@return a copy of execution properties. Null if execution properties were not specified. | [
"Returns",
"a",
"copy",
"of",
"execution",
"properties",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.context/src/com/ibm/ws/context/service/serializable/ContextualObject.java#L112-L121 |
68,547 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java | Timer.createTimeoutRequest | public TimerWorkItem createTimeoutRequest(long timeoutTime, TimerCallback _callback, IAbstractAsyncFuture _future) {
TimerWorkItem wi = new TimerWorkItem(timeoutTime, _callback, _future, _future.getReuseCount());
_future.setTimeoutWorkItem(wi);
// put this to the Timer's work queue. Use the q... | java | public TimerWorkItem createTimeoutRequest(long timeoutTime, TimerCallback _callback, IAbstractAsyncFuture _future) {
TimerWorkItem wi = new TimerWorkItem(timeoutTime, _callback, _future, _future.getReuseCount());
_future.setTimeoutWorkItem(wi);
// put this to the Timer's work queue. Use the q... | [
"public",
"TimerWorkItem",
"createTimeoutRequest",
"(",
"long",
"timeoutTime",
",",
"TimerCallback",
"_callback",
",",
"IAbstractAsyncFuture",
"_future",
")",
"{",
"TimerWorkItem",
"wi",
"=",
"new",
"TimerWorkItem",
"(",
"timeoutTime",
",",
"_callback",
",",
"_future"... | Creates a work item and puts it on the work queue for requesting a
timeout to be started.
@param timeoutTime
how long this timeout is for in milliseconds.
@param _callback
the routine to be called when/if the timeout triggers
@param _future
attachment to be passed to the callback routine
@return the work item that was... | [
"Creates",
"a",
"work",
"item",
"and",
"puts",
"it",
"on",
"the",
"work",
"queue",
"for",
"requesting",
"a",
"timeout",
"to",
"be",
"started",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java#L108-L129 |
68,548 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java | Timer.timeSlotPruning | public void timeSlotPruning(long curTime) {
// if a bucket has not been accessed in a while, and it only has
// dead entries then get rid of it
TimeSlot slotEntry = this.firstSlot;
TimeSlot nextSlot = null;
int endIndex = 0;
int i;
while (slotEntry != null) {
... | java | public void timeSlotPruning(long curTime) {
// if a bucket has not been accessed in a while, and it only has
// dead entries then get rid of it
TimeSlot slotEntry = this.firstSlot;
TimeSlot nextSlot = null;
int endIndex = 0;
int i;
while (slotEntry != null) {
... | [
"public",
"void",
"timeSlotPruning",
"(",
"long",
"curTime",
")",
"{",
"// if a bucket has not been accessed in a while, and it only has",
"// dead entries then get rid of it",
"TimeSlot",
"slotEntry",
"=",
"this",
".",
"firstSlot",
";",
"TimeSlot",
"nextSlot",
"=",
"null",
... | Remove slots which have no active requests, and no new requests
have been added in a set amount of time.
@param curTime
the current time in msec. | [
"Remove",
"slots",
"which",
"have",
"no",
"active",
"requests",
"and",
"no",
"new",
"requests",
"have",
"been",
"added",
"in",
"a",
"set",
"amount",
"of",
"time",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java#L241-L271 |
68,549 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java | Timer.insertWorkItem | public void insertWorkItem(TimerWorkItem work, long curTime) {
// find the time slot, or create a new one
long insertTime = work.timeoutTime;
TimeSlot nextSlot = this.firstSlot;
while (nextSlot != null) {
if ((insertTime == nextSlot.timeoutTime) && (nextSlot.lastEntryIndex !... | java | public void insertWorkItem(TimerWorkItem work, long curTime) {
// find the time slot, or create a new one
long insertTime = work.timeoutTime;
TimeSlot nextSlot = this.firstSlot;
while (nextSlot != null) {
if ((insertTime == nextSlot.timeoutTime) && (nextSlot.lastEntryIndex !... | [
"public",
"void",
"insertWorkItem",
"(",
"TimerWorkItem",
"work",
",",
"long",
"curTime",
")",
"{",
"// find the time slot, or create a new one",
"long",
"insertTime",
"=",
"work",
".",
"timeoutTime",
";",
"TimeSlot",
"nextSlot",
"=",
"this",
".",
"firstSlot",
";",
... | Put a work item into an existing time slot, or create a new time
slot and put the work item into that time slot.
@param work
@param curTime | [
"Put",
"a",
"work",
"item",
"into",
"an",
"existing",
"time",
"slot",
"or",
"create",
"a",
"new",
"time",
"slot",
"and",
"put",
"the",
"work",
"item",
"into",
"that",
"time",
"slot",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java#L280-L302 |
68,550 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java | Timer.insertSlot | public TimeSlot insertSlot(long newSlotTimeout, TimeSlot slot) {
// this routine assumes the list is not empty
TimeSlot retSlot = new TimeSlot(newSlotTimeout);
retSlot.nextEntry = slot;
retSlot.prevEntry = slot.prevEntry;
if (retSlot.prevEntry != null) {
retSlot.pre... | java | public TimeSlot insertSlot(long newSlotTimeout, TimeSlot slot) {
// this routine assumes the list is not empty
TimeSlot retSlot = new TimeSlot(newSlotTimeout);
retSlot.nextEntry = slot;
retSlot.prevEntry = slot.prevEntry;
if (retSlot.prevEntry != null) {
retSlot.pre... | [
"public",
"TimeSlot",
"insertSlot",
"(",
"long",
"newSlotTimeout",
",",
"TimeSlot",
"slot",
")",
"{",
"// this routine assumes the list is not empty",
"TimeSlot",
"retSlot",
"=",
"new",
"TimeSlot",
"(",
"newSlotTimeout",
")",
";",
"retSlot",
".",
"nextEntry",
"=",
"... | Create a new time slot with a given timeout time, and add this new
time slot in front of an existing time slot in the list.
@param newSlotTimeout
- timeout time for the new time slot
@param slot
- existing time slot
@return TimeSlot - time slot that was created and added | [
"Create",
"a",
"new",
"time",
"slot",
"with",
"a",
"given",
"timeout",
"time",
"and",
"add",
"this",
"new",
"time",
"slot",
"in",
"front",
"of",
"an",
"existing",
"time",
"slot",
"in",
"the",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java#L314-L330 |
68,551 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java | Timer.insertSlotAtEnd | public TimeSlot insertSlotAtEnd(long newSlotTimeout) {
// this routine assumes that list could be empty
TimeSlot retSlot = new TimeSlot(newSlotTimeout);
if (this.lastSlot == null) {
// list was empty
this.lastSlot = retSlot;
this.firstSlot = retSlot;
}... | java | public TimeSlot insertSlotAtEnd(long newSlotTimeout) {
// this routine assumes that list could be empty
TimeSlot retSlot = new TimeSlot(newSlotTimeout);
if (this.lastSlot == null) {
// list was empty
this.lastSlot = retSlot;
this.firstSlot = retSlot;
}... | [
"public",
"TimeSlot",
"insertSlotAtEnd",
"(",
"long",
"newSlotTimeout",
")",
"{",
"// this routine assumes that list could be empty",
"TimeSlot",
"retSlot",
"=",
"new",
"TimeSlot",
"(",
"newSlotTimeout",
")",
";",
"if",
"(",
"this",
".",
"lastSlot",
"==",
"null",
")... | Create a new time slot with a given timeout time, and add this new
time slot at the end of the time slot list.
@param newSlotTimeout
- timeout time for the new slot
@return time slot that was created and added | [
"Create",
"a",
"new",
"time",
"slot",
"with",
"a",
"given",
"timeout",
"time",
"and",
"add",
"this",
"new",
"time",
"slot",
"at",
"the",
"end",
"of",
"the",
"time",
"slot",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java#L340-L353 |
68,552 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java | Timer.removeSlot | public void removeSlot(TimeSlot oldSlot) {
if (oldSlot.nextEntry != null) {
oldSlot.nextEntry.prevEntry = oldSlot.prevEntry;
} else {
// old slot was tail.
this.lastSlot = oldSlot.prevEntry;
}
if (oldSlot.prevEntry != null) {
oldSlot.prev... | java | public void removeSlot(TimeSlot oldSlot) {
if (oldSlot.nextEntry != null) {
oldSlot.nextEntry.prevEntry = oldSlot.prevEntry;
} else {
// old slot was tail.
this.lastSlot = oldSlot.prevEntry;
}
if (oldSlot.prevEntry != null) {
oldSlot.prev... | [
"public",
"void",
"removeSlot",
"(",
"TimeSlot",
"oldSlot",
")",
"{",
"if",
"(",
"oldSlot",
".",
"nextEntry",
"!=",
"null",
")",
"{",
"oldSlot",
".",
"nextEntry",
".",
"prevEntry",
"=",
"oldSlot",
".",
"prevEntry",
";",
"}",
"else",
"{",
"// old slot was t... | Remove a time slot from the list.
@param oldSlot | [
"Remove",
"a",
"time",
"slot",
"from",
"the",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java#L360-L376 |
68,553 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java | Timer.checkForTimeouts | public void checkForTimeouts(long checkTime) {
TimeSlot nextSlot = this.firstSlot;
TimerWorkItem entry = null;
TimeSlot oldSlot = null;
while (nextSlot != null && checkTime >= nextSlot.timeoutTime) {
// Timeout all entries here
int endIndex = nextSlot.lastEntryIn... | java | public void checkForTimeouts(long checkTime) {
TimeSlot nextSlot = this.firstSlot;
TimerWorkItem entry = null;
TimeSlot oldSlot = null;
while (nextSlot != null && checkTime >= nextSlot.timeoutTime) {
// Timeout all entries here
int endIndex = nextSlot.lastEntryIn... | [
"public",
"void",
"checkForTimeouts",
"(",
"long",
"checkTime",
")",
"{",
"TimeSlot",
"nextSlot",
"=",
"this",
".",
"firstSlot",
";",
"TimerWorkItem",
"entry",
"=",
"null",
";",
"TimeSlot",
"oldSlot",
"=",
"null",
";",
"while",
"(",
"nextSlot",
"!=",
"null",... | Check for timeouts in the time slot list.
@param checkTime
to use for calculation if time outs have occurred. | [
"Check",
"for",
"timeouts",
"in",
"the",
"time",
"slot",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java#L384-L410 |
68,554 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.service.location/src/com/ibm/ws/kernel/service/location/internal/FileLocator.java | FileLocator.getMatchingFileNames | public static List<String> getMatchingFileNames(String root, String filterExpr, boolean fullPath) {
List<File> fileList = getMatchingFiles(root, filterExpr);
List<String> list = new ArrayList<String>(fileList.size());
for (File f : fileList) {
if (fullPath)
list.add(... | java | public static List<String> getMatchingFileNames(String root, String filterExpr, boolean fullPath) {
List<File> fileList = getMatchingFiles(root, filterExpr);
List<String> list = new ArrayList<String>(fileList.size());
for (File f : fileList) {
if (fullPath)
list.add(... | [
"public",
"static",
"List",
"<",
"String",
">",
"getMatchingFileNames",
"(",
"String",
"root",
",",
"String",
"filterExpr",
",",
"boolean",
"fullPath",
")",
"{",
"List",
"<",
"File",
">",
"fileList",
"=",
"getMatchingFiles",
"(",
"root",
",",
"filterExpr",
"... | Get a list of file names from the given path that match the provided
filter; not recursive.
@param root
base directory to look for files
@param filterExpr
the regular expression to match, may be null
@return List of File objects; List will be empty if root is null | [
"Get",
"a",
"list",
"of",
"file",
"names",
"from",
"the",
"given",
"path",
"that",
"match",
"the",
"provided",
"filter",
";",
"not",
"recursive",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.service.location/src/com/ibm/ws/kernel/service/location/internal/FileLocator.java#L275-L287 |
68,555 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogTable.java | PartnerLogTable.getEntry | public PartnerLogData getEntry(int index) {
if (tc.isEntryEnabled())
Tr.entry(tc, "getEntry", index);
_pltReadLock.lock();
try {
final PartnerLogData entry = _partnerLogTable.get(index - 1);
if (tc.isEntryEnabled())
Tr.exit(tc, "getEntry", en... | java | public PartnerLogData getEntry(int index) {
if (tc.isEntryEnabled())
Tr.entry(tc, "getEntry", index);
_pltReadLock.lock();
try {
final PartnerLogData entry = _partnerLogTable.get(index - 1);
if (tc.isEntryEnabled())
Tr.exit(tc, "getEntry", en... | [
"public",
"PartnerLogData",
"getEntry",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"getEntry\"",
",",
"index",
")",
";",
"_pltReadLock",
".",
"lock",
"(",
")",
";",
"try... | Return the entry in the recovery table at the given
index, or null if the index is out of the table's bounds
The supplied index is actually one greater than the index into the table.
@param index the index in the table of the PartnerLogData object
@return the entry in the recovery table at the given
index, or null i... | [
"Return",
"the",
"entry",
"in",
"the",
"recovery",
"table",
"at",
"the",
"given",
"index",
"or",
"null",
"if",
"the",
"index",
"is",
"out",
"of",
"the",
"table",
"s",
"bounds"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogTable.java#L91-L112 |
68,556 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogTable.java | PartnerLogTable.addEntry | public void addEntry(PartnerLogData logData) {
if (tc.isEntryEnabled())
Tr.entry(tc, "addEntry", logData);
_pltWriteLock.lock();
try {
addPartnerEntry(logData);
} finally {
_pltWriteLock.unlock();
}
if (tc.isEntryEnabled())
... | java | public void addEntry(PartnerLogData logData) {
if (tc.isEntryEnabled())
Tr.entry(tc, "addEntry", logData);
_pltWriteLock.lock();
try {
addPartnerEntry(logData);
} finally {
_pltWriteLock.unlock();
}
if (tc.isEntryEnabled())
... | [
"public",
"void",
"addEntry",
"(",
"PartnerLogData",
"logData",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"addEntry\"",
",",
"logData",
")",
";",
"_pltWriteLock",
".",
"lock",
"(",
")",
";",
... | Add an entry at the end of the recovery table.
@param logData the PartnerLogData object to add to the table
@return result the entry index into the table | [
"Add",
"an",
"entry",
"at",
"the",
"end",
"of",
"the",
"recovery",
"table",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogTable.java#L121-L135 |
68,557 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogTable.java | PartnerLogTable.findEntry | public PartnerLogData findEntry(RecoveryWrapper rw) {
if (tc.isEntryEnabled())
Tr.entry(tc, "findEntry", rw);
PartnerLogData entry;
_pltWriteLock.lock();
try {
// Search the partner log table...
for (PartnerLogData pld : _partnerLogTable) {
... | java | public PartnerLogData findEntry(RecoveryWrapper rw) {
if (tc.isEntryEnabled())
Tr.entry(tc, "findEntry", rw);
PartnerLogData entry;
_pltWriteLock.lock();
try {
// Search the partner log table...
for (PartnerLogData pld : _partnerLogTable) {
... | [
"public",
"PartnerLogData",
"findEntry",
"(",
"RecoveryWrapper",
"rw",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"findEntry\"",
",",
"rw",
")",
";",
"PartnerLogData",
"entry",
";",
"_pltWriteLock... | This method searches the partner log table for an entry with matching wrapper.
If an entry does not exist, one is created and added to the table. It should
only be accessing the "runtime" table.
Called from: TranManagerSet.registerResourceInfo
TranManagerSet.registerJCAProvider
TransactionState.setState when logging a... | [
"This",
"method",
"searches",
"the",
"partner",
"log",
"table",
"for",
"an",
"entry",
"with",
"matching",
"wrapper",
".",
"If",
"an",
"entry",
"does",
"not",
"exist",
"one",
"is",
"created",
"and",
"added",
"to",
"the",
"table",
".",
"It",
"should",
"onl... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogTable.java#L197-L231 |
68,558 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogTable.java | PartnerLogTable.clearUnused | public void clearUnused() {
if (tc.isEntryEnabled())
Tr.entry(tc, "clearUnused");
final RecoveryLog partnerLog = _failureScopeController.getPartnerLog();
_pltWriteLock.lock();
try {
boolean cleared = false;
for (PartnerLogData pld : _partnerLogTabl... | java | public void clearUnused() {
if (tc.isEntryEnabled())
Tr.entry(tc, "clearUnused");
final RecoveryLog partnerLog = _failureScopeController.getPartnerLog();
_pltWriteLock.lock();
try {
boolean cleared = false;
for (PartnerLogData pld : _partnerLogTabl... | [
"public",
"void",
"clearUnused",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"clearUnused\"",
")",
";",
"final",
"RecoveryLog",
"partnerLog",
"=",
"_failureScopeController",
".",
"getPartnerLog"... | Scans through the partners listed in this table and instructs each of them to clear themselves from
the recovery log if they are not associated with current transactions. Entries remain in the table
an can be re-logged during if they are used again. | [
"Scans",
"through",
"the",
"partners",
"listed",
"in",
"this",
"table",
"and",
"instructs",
"each",
"of",
"them",
"to",
"clear",
"themselves",
"from",
"the",
"recovery",
"log",
"if",
"they",
"are",
"not",
"associated",
"with",
"current",
"transactions",
".",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogTable.java#L306-L337 |
68,559 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogTable.java | PartnerLogTable.recover | public boolean recover(RecoveryManager recoveryManager, ClassLoader cl, Xid[] xids) {
boolean success = true; // flag to indicate that we recovered all RMs
if (tc.isEntryEnabled())
Tr.entry(tc, "recover", new Object[] { this, _failureScopeController.serverName() });
final int resta... | java | public boolean recover(RecoveryManager recoveryManager, ClassLoader cl, Xid[] xids) {
boolean success = true; // flag to indicate that we recovered all RMs
if (tc.isEntryEnabled())
Tr.entry(tc, "recover", new Object[] { this, _failureScopeController.serverName() });
final int resta... | [
"public",
"boolean",
"recover",
"(",
"RecoveryManager",
"recoveryManager",
",",
"ClassLoader",
"cl",
",",
"Xid",
"[",
"]",
"xids",
")",
"{",
"boolean",
"success",
"=",
"true",
";",
"// flag to indicate that we recovered all RMs",
"if",
"(",
"tc",
".",
"isEntryEnab... | Determine XA RMs needing recovery.
<p>
For each resource manager known to the transaction service all
indoubt transactions are located.
@param cl A class loader for contacting XA RMs | [
"Determine",
"XA",
"RMs",
"needing",
"recovery",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogTable.java#L348-L373 |
68,560 | OpenLiberty/open-liberty | dev/com.ibm.ws.jndi.management.j2ee/src/com/ibm/ws/jndi/management/j2ee/internal/JNDIMBeanRuntime.java | JNDIMBeanRuntime.registerMBean | private <T> ServiceRegistration<T> registerMBean(ObjectName on, Class<T> type, T o) {
Dictionary<String, Object> props = new Hashtable<String, Object>();
props.put("jmx.objectname", on.toString());
return context.registerService(type, o, props);
} | java | private <T> ServiceRegistration<T> registerMBean(ObjectName on, Class<T> type, T o) {
Dictionary<String, Object> props = new Hashtable<String, Object>();
props.put("jmx.objectname", on.toString());
return context.registerService(type, o, props);
} | [
"private",
"<",
"T",
">",
"ServiceRegistration",
"<",
"T",
">",
"registerMBean",
"(",
"ObjectName",
"on",
",",
"Class",
"<",
"T",
">",
"type",
",",
"T",
"o",
")",
"{",
"Dictionary",
"<",
"String",
",",
"Object",
">",
"props",
"=",
"new",
"Hashtable",
... | Used to Register an MBean
@param on : The ObjectName registration for the MBean
@param type : The class type of the MBean being register
@param o: The MBean
@return : A service registration that provides access to manage the MBean | [
"Used",
"to",
"Register",
"an",
"MBean"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jndi.management.j2ee/src/com/ibm/ws/jndi/management/j2ee/internal/JNDIMBeanRuntime.java#L104-L108 |
68,561 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/async/AsyncContext31Impl.java | AsyncContext31Impl.startReadListener | public void startReadListener(ThreadContextManager tcm, SRTInputStream31 inputStream) throws Exception{
try {
ReadListenerRunnable rlRunnable = new ReadListenerRunnable(tcm, inputStream, this);
this.setReadListenerRunning(true);
com.ibm.ws.webcontainer.osgi.WebContainer.getEx... | java | public void startReadListener(ThreadContextManager tcm, SRTInputStream31 inputStream) throws Exception{
try {
ReadListenerRunnable rlRunnable = new ReadListenerRunnable(tcm, inputStream, this);
this.setReadListenerRunning(true);
com.ibm.ws.webcontainer.osgi.WebContainer.getEx... | [
"public",
"void",
"startReadListener",
"(",
"ThreadContextManager",
"tcm",
",",
"SRTInputStream31",
"inputStream",
")",
"throws",
"Exception",
"{",
"try",
"{",
"ReadListenerRunnable",
"rlRunnable",
"=",
"new",
"ReadListenerRunnable",
"(",
"tcm",
",",
"inputStream",
",... | A read listener has been set on the SRTInputStream and we will set it up to do its
first read on another thread. | [
"A",
"read",
"listener",
"has",
"been",
"set",
"on",
"the",
"SRTInputStream",
"and",
"we",
"will",
"set",
"it",
"up",
"to",
"do",
"its",
"first",
"read",
"on",
"another",
"thread",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/async/AsyncContext31Impl.java#L193-L208 |
68,562 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/framework/Framework.java | Framework.getThreadPool | public ThreadPool getThreadPool(String threadPoolName, int minSize, int maxSize)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getThreadPool",
new Object[]{threadPoolName, minSize, maxSize});
ThreadPool threadPool = n... | java | public ThreadPool getThreadPool(String threadPoolName, int minSize, int maxSize)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getThreadPool",
new Object[]{threadPoolName, minSize, maxSize});
ThreadPool threadPool = n... | [
"public",
"ThreadPool",
"getThreadPool",
"(",
"String",
"threadPoolName",
",",
"int",
"minSize",
",",
"int",
"maxSize",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".... | Retrieves a thread pool that is backed by the appropriate framework implementation.
@param threadPoolName The name for the new thread pool.
@param minSize The minimum size for the new pool.
@param maxSize The maximum size for the new pool.
@return Returns a thread pool of the correct type (this is different depending... | [
"Retrieves",
"a",
"thread",
"pool",
"that",
"is",
"backed",
"by",
"the",
"appropriate",
"framework",
"implementation",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/framework/Framework.java#L182-L232 |
68,563 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/websphere/monitor/meters/StatisticsMeter.java | StatisticsMeter.cleanup | private void cleanup() {
StatsDataReference ref = null;
while ((ref = (StatsDataReference) statisticsReferenceQueue.poll()) != null) {
StatsData oldStats = null;
StatsData updatedStats = null;
do {
oldStats = terminatedThreadStats.get();
... | java | private void cleanup() {
StatsDataReference ref = null;
while ((ref = (StatsDataReference) statisticsReferenceQueue.poll()) != null) {
StatsData oldStats = null;
StatsData updatedStats = null;
do {
oldStats = terminatedThreadStats.get();
... | [
"private",
"void",
"cleanup",
"(",
")",
"{",
"StatsDataReference",
"ref",
"=",
"null",
";",
"while",
"(",
"(",
"ref",
"=",
"(",
"StatsDataReference",
")",
"statisticsReferenceQueue",
".",
"poll",
"(",
")",
")",
"!=",
"null",
")",
"{",
"StatsData",
"oldStat... | Poll the reference queue looking for statistics data associated with
a thread that is no longer reachable. If one is found, update the
terminated thread statistics. | [
"Poll",
"the",
"reference",
"queue",
"looking",
"for",
"statistics",
"data",
"associated",
"with",
"a",
"thread",
"that",
"is",
"no",
"longer",
"reachable",
".",
"If",
"one",
"is",
"found",
"update",
"the",
"terminated",
"thread",
"statistics",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/websphere/monitor/meters/StatisticsMeter.java#L329-L340 |
68,564 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/CommonMpJwtFat.java | CommonMpJwtFat.goodAppExpectations | public Expectations goodAppExpectations(String theUrl, String appClass) throws Exception {
Expectations expectations = new Expectations();
expectations.addExpectations(CommonExpectations.successfullyReachedUrl(theUrl));
expectations.addExpectation(new ResponseFullExpectation(MpJwtFatConstants.S... | java | public Expectations goodAppExpectations(String theUrl, String appClass) throws Exception {
Expectations expectations = new Expectations();
expectations.addExpectations(CommonExpectations.successfullyReachedUrl(theUrl));
expectations.addExpectation(new ResponseFullExpectation(MpJwtFatConstants.S... | [
"public",
"Expectations",
"goodAppExpectations",
"(",
"String",
"theUrl",
",",
"String",
"appClass",
")",
"throws",
"Exception",
"{",
"Expectations",
"expectations",
"=",
"new",
"Expectations",
"(",
")",
";",
"expectations",
".",
"addExpectations",
"(",
"CommonExpec... | Set good app check expectations - sets checks for good status code and for a message indicating what if any app class was invoked successfully
@param theUrl - the url that the test invoked
@param appClass - the app class that should have been invoked
@return - newly created Expectations
@throws Exception | [
"Set",
"good",
"app",
"check",
"expectations",
"-",
"sets",
"checks",
"for",
"good",
"status",
"code",
"and",
"for",
"a",
"message",
"indicating",
"what",
"if",
"any",
"app",
"class",
"was",
"invoked",
"successfully"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/CommonMpJwtFat.java#L95-L102 |
68,565 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/CommonMpJwtFat.java | CommonMpJwtFat.badAppExpectations | public Expectations badAppExpectations(String errorMessage) throws Exception {
Expectations expectations = new Expectations();
expectations.addExpectation(new ResponseStatusExpectation(HttpServletResponse.SC_UNAUTHORIZED));
expectations.addExpectation(new ResponseMessageExpectation(MpJwtFatCons... | java | public Expectations badAppExpectations(String errorMessage) throws Exception {
Expectations expectations = new Expectations();
expectations.addExpectation(new ResponseStatusExpectation(HttpServletResponse.SC_UNAUTHORIZED));
expectations.addExpectation(new ResponseMessageExpectation(MpJwtFatCons... | [
"public",
"Expectations",
"badAppExpectations",
"(",
"String",
"errorMessage",
")",
"throws",
"Exception",
"{",
"Expectations",
"expectations",
"=",
"new",
"Expectations",
"(",
")",
";",
"expectations",
".",
"addExpectation",
"(",
"new",
"ResponseStatusExpectation",
"... | Set bad app check expectations - sets checks for a 401 status code and the expected error message in the server's messages.log
@param errorMessage - the error message to search for in the server's messages.log file
@return - newly created Expectations
@throws Exception | [
"Set",
"bad",
"app",
"check",
"expectations",
"-",
"sets",
"checks",
"for",
"a",
"401",
"status",
"code",
"and",
"the",
"expected",
"error",
"message",
"in",
"the",
"server",
"s",
"messages",
".",
"log"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/CommonMpJwtFat.java#L111-L118 |
68,566 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/CommonMpJwtFat.java | CommonMpJwtFat.buildAppUrl | public String buildAppUrl(LibertyServer theServer, String root, String app) throws Exception {
return SecurityFatHttpUtils.getServerUrlBase(theServer) + root + "/rest/" + app + "/" + MpJwtFatConstants.MPJWT_GENERIC_APP_NAME;
} | java | public String buildAppUrl(LibertyServer theServer, String root, String app) throws Exception {
return SecurityFatHttpUtils.getServerUrlBase(theServer) + root + "/rest/" + app + "/" + MpJwtFatConstants.MPJWT_GENERIC_APP_NAME;
} | [
"public",
"String",
"buildAppUrl",
"(",
"LibertyServer",
"theServer",
",",
"String",
"root",
",",
"String",
"app",
")",
"throws",
"Exception",
"{",
"return",
"SecurityFatHttpUtils",
".",
"getServerUrlBase",
"(",
"theServer",
")",
"+",
"root",
"+",
"\"/rest/\"",
... | Build the http app url
@param theServer - The server where the app is running (used to get the port)
@param root - the root context of the app
@param app - the specific app to run
@return - returns the full url to invoke
@throws Exception | [
"Build",
"the",
"http",
"app",
"url"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/CommonMpJwtFat.java#L129-L133 |
68,567 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/CommonMpJwtFat.java | CommonMpJwtFat.buildAppSecureUrl | public String buildAppSecureUrl(LibertyServer theServer, String root, String app) throws Exception {
return SecurityFatHttpUtils.getServerSecureUrlBase(theServer) + root + "/rest/" + app + "/" + MpJwtFatConstants.MPJWT_GENERIC_APP_NAME;
} | java | public String buildAppSecureUrl(LibertyServer theServer, String root, String app) throws Exception {
return SecurityFatHttpUtils.getServerSecureUrlBase(theServer) + root + "/rest/" + app + "/" + MpJwtFatConstants.MPJWT_GENERIC_APP_NAME;
} | [
"public",
"String",
"buildAppSecureUrl",
"(",
"LibertyServer",
"theServer",
",",
"String",
"root",
",",
"String",
"app",
")",
"throws",
"Exception",
"{",
"return",
"SecurityFatHttpUtils",
".",
"getServerSecureUrlBase",
"(",
"theServer",
")",
"+",
"root",
"+",
"\"/... | Build the https app url
@param theServer - The server where the app is running (used to get the port)
@param root - the root context of the app
@param app - the specific app to run
@return - returns the full url to invoke
@throws Exception | [
"Build",
"the",
"https",
"app",
"url"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/CommonMpJwtFat.java#L144-L148 |
68,568 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/CommonMpJwtFat.java | CommonMpJwtFat.setBadIssuerExpectations | public Expectations setBadIssuerExpectations(LibertyServer server) throws Exception {
Expectations expectations = new Expectations();
expectations.addExpectation(new ResponseStatusExpectation(HttpServletResponse.SC_UNAUTHORIZED));
expectations.addExpectation(new ServerMessageExpectation(server... | java | public Expectations setBadIssuerExpectations(LibertyServer server) throws Exception {
Expectations expectations = new Expectations();
expectations.addExpectation(new ResponseStatusExpectation(HttpServletResponse.SC_UNAUTHORIZED));
expectations.addExpectation(new ServerMessageExpectation(server... | [
"public",
"Expectations",
"setBadIssuerExpectations",
"(",
"LibertyServer",
"server",
")",
"throws",
"Exception",
"{",
"Expectations",
"expectations",
"=",
"new",
"Expectations",
"(",
")",
";",
"expectations",
".",
"addExpectation",
"(",
"new",
"ResponseStatusExpectatio... | Set expectations for tests that have bad issuers
@return Expectations
@throws Exception | [
"Set",
"expectations",
"for",
"tests",
"that",
"have",
"bad",
"issuers"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/CommonMpJwtFat.java#L300-L310 |
68,569 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/logging/internal/HTTPLoggingServiceImpl.java | HTTPLoggingServiceImpl.parseAccessLog | private void parseAccessLog(Map<String, Object> config) {
String filename = (String) config.get("access.filePath");
if (null == filename || 0 == filename.trim().length()) {
return;
}
try {
this.ncsaLog = new AccessLogger(filename.trim());
} catch (Throwabl... | java | private void parseAccessLog(Map<String, Object> config) {
String filename = (String) config.get("access.filePath");
if (null == filename || 0 == filename.trim().length()) {
return;
}
try {
this.ncsaLog = new AccessLogger(filename.trim());
} catch (Throwabl... | [
"private",
"void",
"parseAccessLog",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"config",
")",
"{",
"String",
"filename",
"=",
"(",
"String",
")",
"config",
".",
"get",
"(",
"\"access.filePath\"",
")",
";",
"if",
"(",
"null",
"==",
"filename",
"||",
... | Parse the access log related information from the config.
@param config | [
"Parse",
"the",
"access",
"log",
"related",
"information",
"from",
"the",
"config",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/logging/internal/HTTPLoggingServiceImpl.java#L87-L123 |
68,570 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/logging/internal/HTTPLoggingServiceImpl.java | HTTPLoggingServiceImpl.parseErrorLog | private void parseErrorLog(Map<String, Object> config) {
String filename = (String) config.get("error.filePath");
if (null == filename || 0 == filename.trim().length()) {
return;
}
try {
this.debugLog = new DebugLogger(filename);
} catch (Throwable t) {
... | java | private void parseErrorLog(Map<String, Object> config) {
String filename = (String) config.get("error.filePath");
if (null == filename || 0 == filename.trim().length()) {
return;
}
try {
this.debugLog = new DebugLogger(filename);
} catch (Throwable t) {
... | [
"private",
"void",
"parseErrorLog",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"config",
")",
"{",
"String",
"filename",
"=",
"(",
"String",
")",
"config",
".",
"get",
"(",
"\"error.filePath\"",
")",
";",
"if",
"(",
"null",
"==",
"filename",
"||",
... | Parse the error log related information from the config.
@param config | [
"Parse",
"the",
"error",
"log",
"related",
"information",
"from",
"the",
"config",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/logging/internal/HTTPLoggingServiceImpl.java#L130-L165 |
68,571 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/logging/internal/HTTPLoggingServiceImpl.java | HTTPLoggingServiceImpl.stop | public void stop() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "stop");
}
if (this.bRunning) {
this.bRunning = false;
this.ncsaLog.stop();
this.frcaLog.stop();
this.debugLog.stop();
}
... | java | public void stop() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "stop");
}
if (this.bRunning) {
this.bRunning = false;
this.ncsaLog.stop();
this.frcaLog.stop();
this.debugLog.stop();
}
... | [
"public",
"void",
"stop",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"stop\"",
")",
";",
"}",
"if",
"(",
"this",
"."... | Stop this service. It can be restarted after this method call. | [
"Stop",
"this",
"service",
".",
"It",
"can",
"be",
"restarted",
"after",
"this",
"method",
"call",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/logging/internal/HTTPLoggingServiceImpl.java#L233-L247 |
68,572 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/logging/internal/HTTPLoggingServiceImpl.java | HTTPLoggingServiceImpl.destroy | public void destroy() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "destroy");
}
this.bRunning = false;
this.ncsaLog.disable();
this.frcaLog.disable();
this.debugLog.disable();
if (TraceComponent.isAnyTracingEnable... | java | public void destroy() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "destroy");
}
this.bRunning = false;
this.ncsaLog.disable();
this.frcaLog.disable();
this.debugLog.disable();
if (TraceComponent.isAnyTracingEnable... | [
"public",
"void",
"destroy",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"destroy\"",
")",
";",
"}",
"this",
".",
"bRun... | Final call when the service is being destroyed. The service cannot be
restarted once this is used. | [
"Final",
"call",
"when",
"the",
"service",
"is",
"being",
"destroyed",
".",
"The",
"service",
"cannot",
"be",
"restarted",
"once",
"this",
"is",
"used",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/logging/internal/HTTPLoggingServiceImpl.java#L254-L266 |
68,573 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/logging/internal/HTTPLoggingServiceImpl.java | HTTPLoggingServiceImpl.convertInt | private int convertInt(String input, int defaultValue) {
try {
return Integer.parseInt(input.trim());
} catch (NumberFormatException nfe) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Malformed input: " + input);
}
... | java | private int convertInt(String input, int defaultValue) {
try {
return Integer.parseInt(input.trim());
} catch (NumberFormatException nfe) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Malformed input: " + input);
}
... | [
"private",
"int",
"convertInt",
"(",
"String",
"input",
",",
"int",
"defaultValue",
")",
"{",
"try",
"{",
"return",
"Integer",
".",
"parseInt",
"(",
"input",
".",
"trim",
"(",
")",
")",
";",
"}",
"catch",
"(",
"NumberFormatException",
"nfe",
")",
"{",
... | Convert the input string to an int value.
@param input
@param defaultValue
- if malformed, then return this instead
@return int | [
"Convert",
"the",
"input",
"string",
"to",
"an",
"int",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/logging/internal/HTTPLoggingServiceImpl.java#L297-L306 |
68,574 | OpenLiberty/open-liberty | dev/com.ibm.ws.org.apache.cxf.cxf.rt.rs.mp.client.3.3/src/org/apache/cxf/microprofile/client/cdi/RestClientExtension.java | RestClientExtension.findClients | public void findClients(@Observes @WithAnnotations({RegisterRestClient.class}) ProcessAnnotatedType<?> pat) {
Class<?> restClient = pat.getAnnotatedType().getJavaClass();
if (restClient.isInterface()) {
restClientClasses.add(restClient);
pat.veto();
} else {
e... | java | public void findClients(@Observes @WithAnnotations({RegisterRestClient.class}) ProcessAnnotatedType<?> pat) {
Class<?> restClient = pat.getAnnotatedType().getJavaClass();
if (restClient.isInterface()) {
restClientClasses.add(restClient);
pat.veto();
} else {
e... | [
"public",
"void",
"findClients",
"(",
"@",
"Observes",
"@",
"WithAnnotations",
"(",
"{",
"RegisterRestClient",
".",
"class",
"}",
")",
"ProcessAnnotatedType",
"<",
"?",
">",
"pat",
")",
"{",
"Class",
"<",
"?",
">",
"restClient",
"=",
"pat",
".",
"getAnnota... | Liberty change - removed static | [
"Liberty",
"change",
"-",
"removed",
"static"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.rt.rs.mp.client.3.3/src/org/apache/cxf/microprofile/client/cdi/RestClientExtension.java#L37-L46 |
68,575 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/Proxy.java | Proxy.setOpen | protected void setOpen () {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setOpen");
closed = false;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setOpen");
} | java | protected void setOpen () {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setOpen");
closed = false;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setOpen");
} | [
"protected",
"void",
"setOpen",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"setOpen\"",
")",
";",
"closed",
"... | Marks this proxy object as being open. | [
"Marks",
"this",
"proxy",
"object",
"as",
"being",
"open",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/Proxy.java#L89-L93 |
68,576 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/Proxy.java | Proxy.isClosed | public boolean isClosed()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isClosed");
boolean retValue = false;
if (connectionProxy == null)
{
retValue = closed;
}
else
{
retValue = closed || connectionProxy.isClos... | java | public boolean isClosed()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isClosed");
boolean retValue = false;
if (connectionProxy == null)
{
retValue = closed;
}
else
{
retValue = closed || connectionProxy.isClos... | [
"public",
"boolean",
"isClosed",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"isClosed\"",
")",
";",
"boolean",
... | This method identifies whether we are able to close this proxy
object. If this object represents a session object, then this
can only be closed if we have not been closed and if the connection
has not been closed. If it represents a connection, then we
can only close if we have not already been closed.
@return Returns... | [
"This",
"method",
"identifies",
"whether",
"we",
"are",
"able",
"to",
"close",
"this",
"proxy",
"object",
".",
"If",
"this",
"object",
"represents",
"a",
"session",
"object",
"then",
"this",
"can",
"only",
"be",
"closed",
"if",
"we",
"have",
"not",
"been",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/Proxy.java#L105-L121 |
68,577 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/Proxy.java | Proxy.setClosed | protected void setClosed()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setClosed");
closed = true;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setClosed");
} | java | protected void setClosed()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setClosed");
closed = true;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setClosed");
} | [
"protected",
"void",
"setClosed",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"setClosed\"",
")",
";",
"closed",... | Marks this proxy object as being closed. | [
"Marks",
"this",
"proxy",
"object",
"as",
"being",
"closed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/Proxy.java#L127-L132 |
68,578 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/Proxy.java | Proxy.getProxyID | public short getProxyID()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getProxyID");
if (!proxyIDSet)
{
// Someone is trying to use the ID of this proxy object but it has not been set yet. This
// is an error as the ID will be invalid ... | java | public short getProxyID()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getProxyID");
if (!proxyIDSet)
{
// Someone is trying to use the ID of this proxy object but it has not been set yet. This
// is an error as the ID will be invalid ... | [
"public",
"short",
"getProxyID",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getProxyID\"",
")",
";",
"if",
"... | Returns the proxy's Id correspondoing to the real object on the server
@return ID The ID of the proxy object | [
"Returns",
"the",
"proxy",
"s",
"Id",
"correspondoing",
"to",
"the",
"real",
"object",
"on",
"the",
"server"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/Proxy.java#L138-L158 |
68,579 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/Proxy.java | Proxy.getConnectionProxy | protected ConnectionProxy getConnectionProxy()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getConnectionProxy");
if (connectionProxy == null)
{
// Someone is trying to use the connection proxy associated with this proxy object but it
... | java | protected ConnectionProxy getConnectionProxy()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getConnectionProxy");
if (connectionProxy == null)
{
// Someone is trying to use the connection proxy associated with this proxy object but it
... | [
"protected",
"ConnectionProxy",
"getConnectionProxy",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getConnectionProxy\... | Returns a reference to the Connection Proxy
@return ConnectionProxy The Connection proxy | [
"Returns",
"a",
"reference",
"to",
"the",
"Connection",
"Proxy"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/Proxy.java#L164-L184 |
68,580 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/Proxy.java | Proxy.setProxyID | protected void setProxyID(short s)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setProxyID", ""+s);
proxyID = s;
proxyIDSet = true;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setProxyID");
} | java | protected void setProxyID(short s)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setProxyID", ""+s);
proxyID = s;
proxyIDSet = true;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setProxyID");
} | [
"protected",
"void",
"setProxyID",
"(",
"short",
"s",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"setProxyID\"",
","... | Sets the ID corresponding to the real object on the server
@param s | [
"Sets",
"the",
"ID",
"corresponding",
"to",
"the",
"real",
"object",
"on",
"the",
"server"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/Proxy.java#L190-L196 |
68,581 | OpenLiberty/open-liberty | dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/ZipClient.java | ZipClient.getAttachment | @Override
public InputStream getAttachment(final Asset asset, final Attachment attachment) throws IOException, BadVersionException, RequestFailureException {
final ZipFile repoZip = createZipFile();
if (null == repoZip) {
return null;
}
InputStream retInputStream = null... | java | @Override
public InputStream getAttachment(final Asset asset, final Attachment attachment) throws IOException, BadVersionException, RequestFailureException {
final ZipFile repoZip = createZipFile();
if (null == repoZip) {
return null;
}
InputStream retInputStream = null... | [
"@",
"Override",
"public",
"InputStream",
"getAttachment",
"(",
"final",
"Asset",
"asset",
",",
"final",
"Attachment",
"attachment",
")",
"throws",
"IOException",
",",
"BadVersionException",
",",
"RequestFailureException",
"{",
"final",
"ZipFile",
"repoZip",
"=",
"c... | This gets an input stream to the specified attachment in the zip. | [
"This",
"gets",
"an",
"input",
"stream",
"to",
"the",
"specified",
"attachment",
"in",
"the",
"zip",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/ZipClient.java#L78-L185 |
68,582 | OpenLiberty/open-liberty | dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/ZipClient.java | ZipClient.hasChildren | @Override
protected boolean hasChildren(final String relative) throws IOException {
ZipFile zip = createZipFile();
if (null == zip) {
return false;
}
Enumeration<? extends ZipEntry> entries = zip.entries();
while (entries.hasMoreElements()) {
ZipEntry ... | java | @Override
protected boolean hasChildren(final String relative) throws IOException {
ZipFile zip = createZipFile();
if (null == zip) {
return false;
}
Enumeration<? extends ZipEntry> entries = zip.entries();
while (entries.hasMoreElements()) {
ZipEntry ... | [
"@",
"Override",
"protected",
"boolean",
"hasChildren",
"(",
"final",
"String",
"relative",
")",
"throws",
"IOException",
"{",
"ZipFile",
"zip",
"=",
"createZipFile",
"(",
")",
";",
"if",
"(",
"null",
"==",
"zip",
")",
"{",
"return",
"false",
";",
"}",
"... | See if there are any assets under the specified directory in the zip | [
"See",
"if",
"there",
"are",
"any",
"assets",
"under",
"the",
"specified",
"directory",
"in",
"the",
"zip"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/ZipClient.java#L204-L220 |
68,583 | OpenLiberty/open-liberty | dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/ZipClient.java | ZipClient.getChildren | @Override
protected Collection<String> getChildren(final String relative) throws IOException {
ZipFile zip = createZipFile();
if (null == zip) {
return Collections.emptyList();
}
Collection<String> children = new ArrayList<String>();
Enumeration<? extends ZipEnt... | java | @Override
protected Collection<String> getChildren(final String relative) throws IOException {
ZipFile zip = createZipFile();
if (null == zip) {
return Collections.emptyList();
}
Collection<String> children = new ArrayList<String>();
Enumeration<? extends ZipEnt... | [
"@",
"Override",
"protected",
"Collection",
"<",
"String",
">",
"getChildren",
"(",
"final",
"String",
"relative",
")",
"throws",
"IOException",
"{",
"ZipFile",
"zip",
"=",
"createZipFile",
"(",
")",
";",
"if",
"(",
"null",
"==",
"zip",
")",
"{",
"return",... | Gets the entries under the specified directory in the zip file. This currently gets all entries
in all sub directories too but does not return other directories as I think this will be more
efficient than trying to recursively go through sub directories and we only call this method when
we want all entries under the sp... | [
"Gets",
"the",
"entries",
"under",
"the",
"specified",
"directory",
"in",
"the",
"zip",
"file",
".",
"This",
"currently",
"gets",
"all",
"entries",
"in",
"all",
"sub",
"directories",
"too",
"but",
"does",
"not",
"return",
"other",
"directories",
"as",
"I",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/ZipClient.java#L228-L250 |
68,584 | OpenLiberty/open-liberty | dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/ZipClient.java | ZipClient.getSize | @Override
protected long getSize(final String relative) {
ZipEntry entry = createFromRelative(relative);
return (entry == null ? 0 : entry.getSize());
} | java | @Override
protected long getSize(final String relative) {
ZipEntry entry = createFromRelative(relative);
return (entry == null ? 0 : entry.getSize());
} | [
"@",
"Override",
"protected",
"long",
"getSize",
"(",
"final",
"String",
"relative",
")",
"{",
"ZipEntry",
"entry",
"=",
"createFromRelative",
"(",
"relative",
")",
";",
"return",
"(",
"entry",
"==",
"null",
"?",
"0",
":",
"entry",
".",
"getSize",
"(",
"... | Gets the uncompressed size of the file specified, will return 0 if the entry was not found | [
"Gets",
"the",
"uncompressed",
"size",
"of",
"the",
"file",
"specified",
"will",
"return",
"0",
"if",
"the",
"entry",
"was",
"not",
"found"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/ZipClient.java#L255-L259 |
68,585 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSCompatibleMessageImpl.java | JSCompatibleMessageImpl.getEncodingMessage | final JMFNativePart getEncodingMessage() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) JmfTr.entry(this, tc, "getEncodingMessage");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) JmfTr.exit(this, tc, "getEncodingMessage", encoding);
return encoding;
} | java | final JMFNativePart getEncodingMessage() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) JmfTr.entry(this, tc, "getEncodingMessage");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) JmfTr.exit(this, tc, "getEncodingMessage", encoding);
return encoding;
} | [
"final",
"JMFNativePart",
"getEncodingMessage",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"JmfTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getEncodingMessage\"",
... | Return the underlying encoding | [
"Return",
"the",
"underlying",
"encoding"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSCompatibleMessageImpl.java#L123-L127 |
68,586 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsUtils.java | CommsUtils.getRuntimeProperty | public static String getRuntimeProperty(String property, String defaultValue)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getRuntimeProperty", new Object[] {property, defaultValue});
String runtimeProp = RuntimeInfo.getPr... | java | public static String getRuntimeProperty(String property, String defaultValue)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getRuntimeProperty", new Object[] {property, defaultValue});
String runtimeProp = RuntimeInfo.getPr... | [
"public",
"static",
"String",
"getRuntimeProperty",
"(",
"String",
"property",
",",
"String",
"defaultValue",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
... | This method will get a runtime property from the sib.properties file.
@param property The property key used to look up in the file.
@param defaultValue The default value if the property is not in the file.
@return Returns the property value. | [
"This",
"method",
"will",
"get",
"a",
"runtime",
"property",
"from",
"the",
"sib",
".",
"properties",
"file",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsUtils.java#L59-L68 |
68,587 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsUtils.java | CommsUtils.getRuntimeBooleanProperty | public static boolean getRuntimeBooleanProperty(String property, String defaultValue)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getRuntimeBooleanProperty", new Object[] {property, defaultValue});
boolean runtimeProp = B... | java | public static boolean getRuntimeBooleanProperty(String property, String defaultValue)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getRuntimeBooleanProperty", new Object[] {property, defaultValue});
boolean runtimeProp = B... | [
"public",
"static",
"boolean",
"getRuntimeBooleanProperty",
"(",
"String",
"property",
",",
"String",
"defaultValue",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"... | This method will get a runtime property from the sib.properties file as a boolean.
@param property The property key used to look up in the file.
@param defaultValue The default value if the property is not in the file.
@return Returns the property value. | [
"This",
"method",
"will",
"get",
"a",
"runtime",
"property",
"from",
"the",
"sib",
".",
"properties",
"file",
"as",
"a",
"boolean",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsUtils.java#L77-L86 |
68,588 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsUtils.java | CommsUtils.checkFapLevel | public static void checkFapLevel(HandshakeProperties handShakeProps, short fapLevel)
throws SIIncorrectCallException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkFapLevel", ""+fapLevel);
short actualFapVersion = handShakeProps.getFapLevel();
... | java | public static void checkFapLevel(HandshakeProperties handShakeProps, short fapLevel)
throws SIIncorrectCallException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkFapLevel", ""+fapLevel);
short actualFapVersion = handShakeProps.getFapLevel();
... | [
"public",
"static",
"void",
"checkFapLevel",
"(",
"HandshakeProperties",
"handShakeProps",
",",
"short",
"fapLevel",
")",
"throws",
"SIIncorrectCallException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
... | This method is used on API calls when checking to see if the call is supported for the current
FAP level. Before making a call in a method that is only supported in a particular FAP version
call this method passing in the lowest FAP version this method is supported in. If the current
negotiated FAP version is lower tha... | [
"This",
"method",
"is",
"used",
"on",
"API",
"calls",
"when",
"checking",
"to",
"see",
"if",
"the",
"call",
"is",
"supported",
"for",
"the",
"current",
"FAP",
"level",
".",
"Before",
"making",
"a",
"call",
"in",
"a",
"method",
"that",
"is",
"only",
"su... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsUtils.java#L168-L186 |
68,589 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsUtils.java | CommsUtils.isRecoverable | public static boolean isRecoverable(final SIBusMessage mess, final Reliability maxUnrecoverableReliability)
{
if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "isRecoverable", new Object[] {mess, maxUnrecoverableReliability});
final Reliability messageReliability = mess.ge... | java | public static boolean isRecoverable(final SIBusMessage mess, final Reliability maxUnrecoverableReliability)
{
if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "isRecoverable", new Object[] {mess, maxUnrecoverableReliability});
final Reliability messageReliability = mess.ge... | [
"public",
"static",
"boolean",
"isRecoverable",
"(",
"final",
"SIBusMessage",
"mess",
",",
"final",
"Reliability",
"maxUnrecoverableReliability",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
"... | Determines whether a message is recoverable compared to the supplied maxUnrecoverableReliability.
@param mess the message to check.
@para maxUnrecoverableReliability the most reliable reliability that is considered unrecoverable in the context in which this method is executed.
@return true for any message which is m... | [
"Determines",
"whether",
"a",
"message",
"is",
"recoverable",
"compared",
"to",
"the",
"supplied",
"maxUnrecoverableReliability",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsUtils.java#L220-L232 |
68,590 | OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLAlpnNegotiator.java | SSLAlpnNegotiator.tryToRegisterAlpnNegotiator | protected ThirdPartyAlpnNegotiator tryToRegisterAlpnNegotiator(SSLEngine engine, SSLConnectionLink link, boolean useAlpn) {
if (isNativeAlpnActive()) {
if (useAlpn) {
registerNativeAlpn(engine);
}
} else if (isIbmAlpnActive()) {
registerIbmAlpn(engine,... | java | protected ThirdPartyAlpnNegotiator tryToRegisterAlpnNegotiator(SSLEngine engine, SSLConnectionLink link, boolean useAlpn) {
if (isNativeAlpnActive()) {
if (useAlpn) {
registerNativeAlpn(engine);
}
} else if (isIbmAlpnActive()) {
registerIbmAlpn(engine,... | [
"protected",
"ThirdPartyAlpnNegotiator",
"tryToRegisterAlpnNegotiator",
"(",
"SSLEngine",
"engine",
",",
"SSLConnectionLink",
"link",
",",
"boolean",
"useAlpn",
")",
"{",
"if",
"(",
"isNativeAlpnActive",
"(",
")",
")",
"{",
"if",
"(",
"useAlpn",
")",
"{",
"registe... | Check for the Java 9 ALPN API, IBM's ALPNJSSEExt, jetty-alpn, and grizzly-npn; if any are present, set up the connection for ALPN.
Order of preference is Java 9 ALPN API, IBM's ALPNJSSEExt, jetty-alpn, then grizzly-npn.
@param SSLEngine
@param SSLConnectionLink
@param useAlpn true if alpn should be used
@return ThirdP... | [
"Check",
"for",
"the",
"Java",
"9",
"ALPN",
"API",
"IBM",
"s",
"ALPNJSSEExt",
"jetty",
"-",
"alpn",
"and",
"grizzly",
"-",
"npn",
";",
"if",
"any",
"are",
"present",
"set",
"up",
"the",
"connection",
"for",
"ALPN",
".",
"Order",
"of",
"preference",
"is... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLAlpnNegotiator.java#L202-L215 |
68,591 | OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLAlpnNegotiator.java | SSLAlpnNegotiator.tryToRemoveAlpnNegotiator | protected void tryToRemoveAlpnNegotiator(ThirdPartyAlpnNegotiator negotiator, SSLEngine engine, SSLConnectionLink link) {
// the Java 9 and IBM JSSE ALPN implementations don't use a negotiator object
if (negotiator == null && isNativeAlpnActive()) {
getNativeAlpnChoice(engine, link);
... | java | protected void tryToRemoveAlpnNegotiator(ThirdPartyAlpnNegotiator negotiator, SSLEngine engine, SSLConnectionLink link) {
// the Java 9 and IBM JSSE ALPN implementations don't use a negotiator object
if (negotiator == null && isNativeAlpnActive()) {
getNativeAlpnChoice(engine, link);
... | [
"protected",
"void",
"tryToRemoveAlpnNegotiator",
"(",
"ThirdPartyAlpnNegotiator",
"negotiator",
",",
"SSLEngine",
"engine",
",",
"SSLConnectionLink",
"link",
")",
"{",
"// the Java 9 and IBM JSSE ALPN implementations don't use a negotiator object",
"if",
"(",
"negotiator",
"==",... | If ALPN is active, try to remove the ThirdPartyAlpnNegotiator from the map of active negotiators
@param ThirdPartyAlpnNegotiator
@param SSLEngine
@param SSLConnectionLink | [
"If",
"ALPN",
"is",
"active",
"try",
"to",
"remove",
"the",
"ThirdPartyAlpnNegotiator",
"from",
"the",
"map",
"of",
"active",
"negotiators"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLAlpnNegotiator.java#L224-L235 |
68,592 | OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLAlpnNegotiator.java | SSLAlpnNegotiator.getAndRemoveIbmAlpnChoice | protected void getAndRemoveIbmAlpnChoice(SSLEngine engine, SSLConnectionLink link) {
if (this.isIbmAlpnActive()) {
try {
// invoke ALPNJSSEExt.get(engine)
String[] alpnResult = (String[]) ibmAlpnGet.invoke(null, engine);
// invoke ALPNJSSEExt.delete(e... | java | protected void getAndRemoveIbmAlpnChoice(SSLEngine engine, SSLConnectionLink link) {
if (this.isIbmAlpnActive()) {
try {
// invoke ALPNJSSEExt.get(engine)
String[] alpnResult = (String[]) ibmAlpnGet.invoke(null, engine);
// invoke ALPNJSSEExt.delete(e... | [
"protected",
"void",
"getAndRemoveIbmAlpnChoice",
"(",
"SSLEngine",
"engine",
",",
"SSLConnectionLink",
"link",
")",
"{",
"if",
"(",
"this",
".",
"isIbmAlpnActive",
"(",
")",
")",
"{",
"try",
"{",
"// invoke ALPNJSSEExt.get(engine)",
"String",
"[",
"]",
"alpnResul... | Ask the JSSE ALPN provider for the protocol selected for the given SSLEngine, then delete the engine from
the ALPN provider's map. If the selected protocol was "h2", set that as the protocol to use on the given link.
@param SSLEngine
@param SSLConnectionLink | [
"Ask",
"the",
"JSSE",
"ALPN",
"provider",
"for",
"the",
"protocol",
"selected",
"for",
"the",
"given",
"SSLEngine",
"then",
"delete",
"the",
"engine",
"from",
"the",
"ALPN",
"provider",
"s",
"map",
".",
"If",
"the",
"selected",
"protocol",
"was",
"h2",
"se... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLAlpnNegotiator.java#L344-L384 |
68,593 | OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLAlpnNegotiator.java | SSLAlpnNegotiator.registerGrizzlyAlpn | protected GrizzlyAlpnNegotiator registerGrizzlyAlpn(SSLEngine engine, SSLConnectionLink link) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "registerGrizzlyAlpn entry " + engine);
}
if (grizzlyNegotiationSupport != null && grizzlyAlpnClientNegoti... | java | protected GrizzlyAlpnNegotiator registerGrizzlyAlpn(SSLEngine engine, SSLConnectionLink link) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "registerGrizzlyAlpn entry " + engine);
}
if (grizzlyNegotiationSupport != null && grizzlyAlpnClientNegoti... | [
"protected",
"GrizzlyAlpnNegotiator",
"registerGrizzlyAlpn",
"(",
"SSLEngine",
"engine",
",",
"SSLConnectionLink",
"link",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
"... | Using grizzly-npn, set up a new GrizzlyAlpnNegotiator to handle ALPN for a given SSLEngine and link
@param SSLEngine
@param SSLConnectionLink
@return GrizzlyAlpnNegotiator or null if ALPN was not set up | [
"Using",
"grizzly",
"-",
"npn",
"set",
"up",
"a",
"new",
"GrizzlyAlpnNegotiator",
"to",
"handle",
"ALPN",
"for",
"a",
"given",
"SSLEngine",
"and",
"link"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLAlpnNegotiator.java#L393-L436 |
68,594 | OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLAlpnNegotiator.java | SSLAlpnNegotiator.registerJettyAlpn | protected JettyServerNegotiator registerJettyAlpn(final SSLEngine engine, SSLConnectionLink link) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "registerJettyAlpn entry " + engine);
}
try {
JettyServerNegotiator negotiator = new JettyS... | java | protected JettyServerNegotiator registerJettyAlpn(final SSLEngine engine, SSLConnectionLink link) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "registerJettyAlpn entry " + engine);
}
try {
JettyServerNegotiator negotiator = new JettyS... | [
"protected",
"JettyServerNegotiator",
"registerJettyAlpn",
"(",
"final",
"SSLEngine",
"engine",
",",
"SSLConnectionLink",
"link",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
... | Using jetty-alpn, set up a new JettyServerNotiator to handle ALPN for a given SSLEngine and link
@param SSLEngine
@param SSLConnectionLink
@return JettyServerNegotiator or null if ALPN was not set up | [
"Using",
"jetty",
"-",
"alpn",
"set",
"up",
"a",
"new",
"JettyServerNotiator",
"to",
"handle",
"ALPN",
"for",
"a",
"given",
"SSLEngine",
"and",
"link"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLAlpnNegotiator.java#L445-L469 |
68,595 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSVariant.java | JSVariant.addCase | public void addCase(JMFType theCase) {
if (theCase == null)
throw new NullPointerException("Variant case cannot be null");
JSType newCase = (JSType)theCase;
if (cases == null)
cases = new JSType[1];
else {
JSType[] oldCases = cases;
cases = new JSType[oldCases.length + 1];
... | java | public void addCase(JMFType theCase) {
if (theCase == null)
throw new NullPointerException("Variant case cannot be null");
JSType newCase = (JSType)theCase;
if (cases == null)
cases = new JSType[1];
else {
JSType[] oldCases = cases;
cases = new JSType[oldCases.length + 1];
... | [
"public",
"void",
"addCase",
"(",
"JMFType",
"theCase",
")",
"{",
"if",
"(",
"theCase",
"==",
"null",
")",
"throw",
"new",
"NullPointerException",
"(",
"\"Variant case cannot be null\"",
")",
";",
"JSType",
"newCase",
"=",
"(",
"JSType",
")",
"theCase",
";",
... | Add a case to the variant. Note that every variant must have at least one case. | [
"Add",
"a",
"case",
"to",
"the",
"variant",
".",
"Note",
"that",
"every",
"variant",
"must",
"have",
"at",
"least",
"one",
"case",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSVariant.java#L115-L129 |
68,596 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSVariant.java | JSVariant.setMultiChoiceCount | BigInteger setMultiChoiceCount() {
if (boxed == null) {
multiChoiceCount = BigInteger.ZERO;
for (int i = 0; i < cases.length; i++)
multiChoiceCount = multiChoiceCount.add(cases[i].setMultiChoiceCount());
}
return multiChoiceCount;
} | java | BigInteger setMultiChoiceCount() {
if (boxed == null) {
multiChoiceCount = BigInteger.ZERO;
for (int i = 0; i < cases.length; i++)
multiChoiceCount = multiChoiceCount.add(cases[i].setMultiChoiceCount());
}
return multiChoiceCount;
} | [
"BigInteger",
"setMultiChoiceCount",
"(",
")",
"{",
"if",
"(",
"boxed",
"==",
"null",
")",
"{",
"multiChoiceCount",
"=",
"BigInteger",
".",
"ZERO",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"cases",
".",
"length",
";",
"i",
"++",
")",
"... | otherwise, it's the sum of the multiChoice counts for the cases. | [
"otherwise",
"it",
"s",
"the",
"sum",
"of",
"the",
"multiChoice",
"counts",
"for",
"the",
"cases",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSVariant.java#L134-L141 |
68,597 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSVariant.java | JSVariant.getDominatedVariants | public JSVariant[] getDominatedVariants(int i) {
if (dominated == null)
dominated = new JSVariant[cases.length][];
if (dominated[i] == null) {
JSType acase = cases[i];
if (acase instanceof JSVariant)
dominated[i] = new JSVariant[] {(JSVariant)acase };
else if (acase instanceof JS... | java | public JSVariant[] getDominatedVariants(int i) {
if (dominated == null)
dominated = new JSVariant[cases.length][];
if (dominated[i] == null) {
JSType acase = cases[i];
if (acase instanceof JSVariant)
dominated[i] = new JSVariant[] {(JSVariant)acase };
else if (acase instanceof JS... | [
"public",
"JSVariant",
"[",
"]",
"getDominatedVariants",
"(",
"int",
"i",
")",
"{",
"if",
"(",
"dominated",
"==",
"null",
")",
"dominated",
"=",
"new",
"JSVariant",
"[",
"cases",
".",
"length",
"]",
"[",
"",
"]",
";",
"if",
"(",
"dominated",
"[",
"i"... | Get the unboxed variants dominated by a case of this variant | [
"Get",
"the",
"unboxed",
"variants",
"dominated",
"by",
"a",
"case",
"of",
"this",
"variant"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSVariant.java#L146-L161 |
68,598 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSVariant.java | JSVariant.box | JSchema box(Map context) {
if (boxed != null)
return boxed; // only do it once
JSVariant subTop = new JSVariant();
subTop.cases = cases;
subTop.boxedBy = this;
boxed = (JSchema)context.get(subTop);
if (boxed == null) {
boxed = new JSchema(subTop, context);
for (int i = 0; i < c... | java | JSchema box(Map context) {
if (boxed != null)
return boxed; // only do it once
JSVariant subTop = new JSVariant();
subTop.cases = cases;
subTop.boxedBy = this;
boxed = (JSchema)context.get(subTop);
if (boxed == null) {
boxed = new JSchema(subTop, context);
for (int i = 0; i < c... | [
"JSchema",
"box",
"(",
"Map",
"context",
")",
"{",
"if",
"(",
"boxed",
"!=",
"null",
")",
"return",
"boxed",
";",
"// only do it once",
"JSVariant",
"subTop",
"=",
"new",
"JSVariant",
"(",
")",
";",
"subTop",
".",
"cases",
"=",
"cases",
";",
"subTop",
... | includes a cyclic reference to a JSchema already under construction. | [
"includes",
"a",
"cyclic",
"reference",
"to",
"a",
"JSchema",
"already",
"under",
"construction",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSVariant.java#L195-L209 |
68,599 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSVariant.java | JSVariant.getBoxAccessor | public int getBoxAccessor(JMFSchema schema) {
for (Accessor acc = boxAccessor; acc != null; acc = acc.next)
if (schema == acc.schema)
return acc.accessor;
return -1;
} | java | public int getBoxAccessor(JMFSchema schema) {
for (Accessor acc = boxAccessor; acc != null; acc = acc.next)
if (schema == acc.schema)
return acc.accessor;
return -1;
} | [
"public",
"int",
"getBoxAccessor",
"(",
"JMFSchema",
"schema",
")",
"{",
"for",
"(",
"Accessor",
"acc",
"=",
"boxAccessor",
";",
"acc",
"!=",
"null",
";",
"acc",
"=",
"acc",
".",
"next",
")",
"if",
"(",
"schema",
"==",
"acc",
".",
"schema",
")",
"ret... | Implement the general form of getBoxAccessor | [
"Implement",
"the",
"general",
"form",
"of",
"getBoxAccessor"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSVariant.java#L224-L229 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.