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
67,600
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java
ManifestFileProcessor.getCoreProductFeatureDefinitions
private Map<String, ProvisioningFeatureDefinition> getCoreProductFeatureDefinitions() { Map<String, ProvisioningFeatureDefinition> features = new TreeMap<String, ProvisioningFeatureDefinition>(); File featureDir = getCoreFeatureDir(); //the feature directory may not exist if the packaged server ...
java
private Map<String, ProvisioningFeatureDefinition> getCoreProductFeatureDefinitions() { Map<String, ProvisioningFeatureDefinition> features = new TreeMap<String, ProvisioningFeatureDefinition>(); File featureDir = getCoreFeatureDir(); //the feature directory may not exist if the packaged server ...
[ "private", "Map", "<", "String", ",", "ProvisioningFeatureDefinition", ">", "getCoreProductFeatureDefinitions", "(", ")", "{", "Map", "<", "String", ",", "ProvisioningFeatureDefinition", ">", "features", "=", "new", "TreeMap", "<", "String", ",", "ProvisioningFeatureD...
Retrieves a Map of Liberty core features. @return A Map of LIberty core features.
[ "Retrieves", "a", "Map", "of", "Liberty", "core", "features", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java#L231-L279
67,601
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java
ManifestFileProcessor.getUsrProductFeatureDefinitions
private Map<String, ProvisioningFeatureDefinition> getUsrProductFeatureDefinitions() { Map<String, ProvisioningFeatureDefinition> features = null; File userDir = Utils.getUserDir(); if (userDir != null && userDir.exists()) { File userFeatureDir = new File(userDir, USER_FEATURE_DIR); ...
java
private Map<String, ProvisioningFeatureDefinition> getUsrProductFeatureDefinitions() { Map<String, ProvisioningFeatureDefinition> features = null; File userDir = Utils.getUserDir(); if (userDir != null && userDir.exists()) { File userFeatureDir = new File(userDir, USER_FEATURE_DIR); ...
[ "private", "Map", "<", "String", ",", "ProvisioningFeatureDefinition", ">", "getUsrProductFeatureDefinitions", "(", ")", "{", "Map", "<", "String", ",", "ProvisioningFeatureDefinition", ">", "features", "=", "null", ";", "File", "userDir", "=", "Utils", ".", "getU...
Retrieves a Map of feature definitions in default usr product extension location @return Null if the user directory cannot be found. An empty map if the features manifests cannot be found. A Map of product extension features if all goes well.
[ "Retrieves", "a", "Map", "of", "feature", "definitions", "in", "default", "usr", "product", "extension", "location" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java#L287-L313
67,602
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java
ManifestFileProcessor.getProdFeatureLocation
public String getProdFeatureLocation(String productName) { String location = null; if (productName.equals(CORE_PRODUCT_NAME)) { location = Utils.getInstallDir().getAbsolutePath(); } else if (productName.equals(USR_PRODUCT_EXT_NAME)) { location = Utils.getUserDir().getAbso...
java
public String getProdFeatureLocation(String productName) { String location = null; if (productName.equals(CORE_PRODUCT_NAME)) { location = Utils.getInstallDir().getAbsolutePath(); } else if (productName.equals(USR_PRODUCT_EXT_NAME)) { location = Utils.getUserDir().getAbso...
[ "public", "String", "getProdFeatureLocation", "(", "String", "productName", ")", "{", "String", "location", "=", "null", ";", "if", "(", "productName", ".", "equals", "(", "CORE_PRODUCT_NAME", ")", ")", "{", "location", "=", "Utils", ".", "getInstallDir", "(",...
Retrieves the location of the specified product name. @param productName The product name. @return The location of the specified product installation.
[ "Retrieves", "the", "location", "of", "the", "specified", "product", "name", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java#L400-L414
67,603
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java
ManifestFileProcessor.getProdFeatureId
public String getProdFeatureId(String productName) { String productId = null; if (!productName.equals(CORE_PRODUCT_NAME) && !productName.equals(USR_PRODUCT_EXT_NAME)) { readProductExtFeatureLocations(); if (productExtNameInfoMap.containsKey(productName)) { product...
java
public String getProdFeatureId(String productName) { String productId = null; if (!productName.equals(CORE_PRODUCT_NAME) && !productName.equals(USR_PRODUCT_EXT_NAME)) { readProductExtFeatureLocations(); if (productExtNameInfoMap.containsKey(productName)) { product...
[ "public", "String", "getProdFeatureId", "(", "String", "productName", ")", "{", "String", "productId", "=", "null", ";", "if", "(", "!", "productName", ".", "equals", "(", "CORE_PRODUCT_NAME", ")", "&&", "!", "productName", ".", "equals", "(", "USR_PRODUCT_EXT...
Retrieves the ID of the specified product name. @param productName The product name. @return The Id of the specified product installation.
[ "Retrieves", "the", "ID", "of", "the", "specified", "product", "name", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java#L422-L432
67,604
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java
ManifestFileProcessor.getCoreFeatureDir
public File getCoreFeatureDir() { File featureDir = null; File installDir = Utils.getInstallDir(); if (installDir != null) { featureDir = new File(installDir, FEATURE_DIR); } if (featureDir == null) { throw new RuntimeException("Feature Directory not fou...
java
public File getCoreFeatureDir() { File featureDir = null; File installDir = Utils.getInstallDir(); if (installDir != null) { featureDir = new File(installDir, FEATURE_DIR); } if (featureDir == null) { throw new RuntimeException("Feature Directory not fou...
[ "public", "File", "getCoreFeatureDir", "(", ")", "{", "File", "featureDir", "=", "null", ";", "File", "installDir", "=", "Utils", ".", "getInstallDir", "(", ")", ";", "if", "(", "installDir", "!=", "null", ")", "{", "featureDir", "=", "new", "File", "(",...
Retrieves the Liberty core features directory. @return The Liberty core features directory
[ "Retrieves", "the", "Liberty", "core", "features", "directory", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java#L439-L452
67,605
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java
ManifestFileProcessor.getCorePlatformDir
public File getCorePlatformDir() { File platformDir = null; File installDir = Utils.getInstallDir(); if (installDir != null) { platformDir = new File(installDir, PLATFORM_DIR); } if (platformDir == null) { throw new RuntimeException("Platform Directory n...
java
public File getCorePlatformDir() { File platformDir = null; File installDir = Utils.getInstallDir(); if (installDir != null) { platformDir = new File(installDir, PLATFORM_DIR); } if (platformDir == null) { throw new RuntimeException("Platform Directory n...
[ "public", "File", "getCorePlatformDir", "(", ")", "{", "File", "platformDir", "=", "null", ";", "File", "installDir", "=", "Utils", ".", "getInstallDir", "(", ")", ";", "if", "(", "installDir", "!=", "null", ")", "{", "platformDir", "=", "new", "File", "...
Retrieves the Liberty core platform directory. @return The Liberty core platform directory
[ "Retrieves", "the", "Liberty", "core", "platform", "directory", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java#L459-L472
67,606
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java
ManifestFileProcessor.getCoreAssetDir
public File getCoreAssetDir() { File assetDir = null; File installDir = Utils.getInstallDir(); if (installDir != null) { assetDir = new File(installDir, ASSET_DIR); } if (assetDir == null) { throw new RuntimeException("Asset Directory not found"); ...
java
public File getCoreAssetDir() { File assetDir = null; File installDir = Utils.getInstallDir(); if (installDir != null) { assetDir = new File(installDir, ASSET_DIR); } if (assetDir == null) { throw new RuntimeException("Asset Directory not found"); ...
[ "public", "File", "getCoreAssetDir", "(", ")", "{", "File", "assetDir", "=", "null", ";", "File", "installDir", "=", "Utils", ".", "getInstallDir", "(", ")", ";", "if", "(", "installDir", "!=", "null", ")", "{", "assetDir", "=", "new", "File", "(", "in...
Retrieves the Liberty core assets directory. @return The Liberty core assets directory
[ "Retrieves", "the", "Liberty", "core", "assets", "directory", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java#L479-L489
67,607
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java
ManifestFileProcessor.getBundleRepository
public ContentBasedLocalBundleRepository getBundleRepository(String featureName, WsLocationAdmin locService) { return BundleRepositoryRegistry.getRepositoryHolder(featureName).getBundleRepository(); }
java
public ContentBasedLocalBundleRepository getBundleRepository(String featureName, WsLocationAdmin locService) { return BundleRepositoryRegistry.getRepositoryHolder(featureName).getBundleRepository(); }
[ "public", "ContentBasedLocalBundleRepository", "getBundleRepository", "(", "String", "featureName", ",", "WsLocationAdmin", "locService", ")", "{", "return", "BundleRepositoryRegistry", ".", "getRepositoryHolder", "(", "featureName", ")", ".", "getBundleRepository", "(", ")...
Get bundle repository @param locService a location service @param msgs true if messages should be output to the log, false otherwise. @return a bundle repository
[ "Get", "bundle", "repository" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/generator/ManifestFileProcessor.java#L502-L504
67,608
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/helpers/HttpHeaderHelper.java
HttpHeaderHelper.mapCharset
@FFDCIgnore({IllegalCharsetNameException.class, UnsupportedCharsetException.class}) public static String mapCharset(String enc, String deflt) { if (enc == null) { return deflt; } //older versions of tomcat don't properly parse ContentType headers with stuff //after charse...
java
@FFDCIgnore({IllegalCharsetNameException.class, UnsupportedCharsetException.class}) public static String mapCharset(String enc, String deflt) { if (enc == null) { return deflt; } //older versions of tomcat don't properly parse ContentType headers with stuff //after charse...
[ "@", "FFDCIgnore", "(", "{", "IllegalCharsetNameException", ".", "class", ",", "UnsupportedCharsetException", ".", "class", "}", ")", "public", "static", "String", "mapCharset", "(", "String", "enc", ",", "String", "deflt", ")", "{", "if", "(", "enc", "==", ...
into something that is actually supported by Java and the Stax parsers and such.
[ "into", "something", "that", "is", "actually", "supported", "by", "Java", "and", "the", "Stax", "parsers", "and", "such", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/helpers/HttpHeaderHelper.java#L108-L140
67,609
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap_fat/fat/src/com/ibm/ws/security/wim/adapter/ldap/fat/GetUserSecurityCustomLDAP.java
GetUserSecurityCustomLDAP.setUp
@BeforeClass public static void setUp() throws Exception { // Add LDAP variables to bootstrap properties file LDAPUtils.addLDAPVariables(server); Log.info(c, "setUp", "Starting the server... (will wait for userRegistry servlet to start)"); server.copyFileToLibertyInstallRoot("lib/fea...
java
@BeforeClass public static void setUp() throws Exception { // Add LDAP variables to bootstrap properties file LDAPUtils.addLDAPVariables(server); Log.info(c, "setUp", "Starting the server... (will wait for userRegistry servlet to start)"); server.copyFileToLibertyInstallRoot("lib/fea...
[ "@", "BeforeClass", "public", "static", "void", "setUp", "(", ")", "throws", "Exception", "{", "// Add LDAP variables to bootstrap properties file", "LDAPUtils", ".", "addLDAPVariables", "(", "server", ")", ";", "Log", ".", "info", "(", "c", ",", "\"setUp\"", ",",...
Updates the sample, which is expected to be at the hard-coded path. If this test is failing, check this path is correct.
[ "Updates", "the", "sample", "which", "is", "expected", "to", "be", "at", "the", "hard", "-", "coded", "path", ".", "If", "this", "test", "is", "failing", "check", "this", "path", "is", "correct", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap_fat/fat/src/com/ibm/ws/security/wim/adapter/ldap/fat/GetUserSecurityCustomLDAP.java#L46-L70
67,610
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap_fat/fat/src/com/ibm/ws/security/wim/adapter/ldap/fat/GetUserSecurityCustomLDAP.java
GetUserSecurityCustomLDAP.getUserSecurityName
@Test public void getUserSecurityName() throws Exception { String user = "vmmtestuser"; String securityName = "cn=vmmtestuser,cn=users,dc=secfvt2,dc=austin,dc=ibm,dc=com"; Log.info(c, "getUserSecurityName", "Checking with a valid user."); LDAPFatUtils.assertDNsEqual("User security n...
java
@Test public void getUserSecurityName() throws Exception { String user = "vmmtestuser"; String securityName = "cn=vmmtestuser,cn=users,dc=secfvt2,dc=austin,dc=ibm,dc=com"; Log.info(c, "getUserSecurityName", "Checking with a valid user."); LDAPFatUtils.assertDNsEqual("User security n...
[ "@", "Test", "public", "void", "getUserSecurityName", "(", ")", "throws", "Exception", "{", "String", "user", "=", "\"vmmtestuser\"", ";", "String", "securityName", "=", "\"cn=vmmtestuser,cn=users,dc=secfvt2,dc=austin,dc=ibm,dc=com\"", ";", "Log", ".", "info", "(", "c...
Hit the test servlet to see if getUserSecurityName works when supplied with a valid user With the configured server.xml, make sure we don't get a ClassCastException. See Issue 981.
[ "Hit", "the", "test", "servlet", "to", "see", "if", "getUserSecurityName", "works", "when", "supplied", "with", "a", "valid", "user" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap_fat/fat/src/com/ibm/ws/security/wim/adapter/ldap/fat/GetUserSecurityCustomLDAP.java#L98-L105
67,611
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/ee7/HttpInputStreamEE7.java
HttpInputStreamEE7.initialRead
public void initialRead() { try { this.buffer = this.isc.getRequestBodyBuffer(); if (null != this.buffer) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Buffer returned from getRequestBodyBuffer : " + this.buffer); ...
java
public void initialRead() { try { this.buffer = this.isc.getRequestBodyBuffer(); if (null != this.buffer) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Buffer returned from getRequestBodyBuffer : " + this.buffer); ...
[ "public", "void", "initialRead", "(", ")", "{", "try", "{", "this", ".", "buffer", "=", "this", ".", "isc", ".", "getRequestBodyBuffer", "(", ")", ";", "if", "(", "null", "!=", "this", ".", "buffer", ")", "{", "if", "(", "TraceComponent", ".", "isAny...
with the current set of data
[ "with", "the", "current", "set", "of", "data" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/ee7/HttpInputStreamEE7.java#L57-L72
67,612
OpenLiberty/open-liberty
dev/com.ibm.ws.security.utility/src/com/ibm/ws/security/utility/tasks/EncodeTask.java
EncodeTask.encode
private String encode(PrintStream stderr, String plaintext, String encodingType, Map<String, String> properties) throws InvalidPasswordEncodingException, UnsupportedCryptoAlgorithmException { String ret = null; try { ret = PasswordUtil.encode(plaintext, encodingType...
java
private String encode(PrintStream stderr, String plaintext, String encodingType, Map<String, String> properties) throws InvalidPasswordEncodingException, UnsupportedCryptoAlgorithmException { String ret = null; try { ret = PasswordUtil.encode(plaintext, encodingType...
[ "private", "String", "encode", "(", "PrintStream", "stderr", ",", "String", "plaintext", ",", "String", "encodingType", ",", "Map", "<", "String", ",", "String", ">", "properties", ")", "throws", "InvalidPasswordEncodingException", ",", "UnsupportedCryptoAlgorithmExce...
Handle encoding of the plaintext provided. Capture any Exceptions and print the stack trace. @param plaintext @param encodingType @param encodingKey @return ciphertext @throws InvalidPasswordEncodingException @throws UnsupportedCryptoAlgorithmException
[ "Handle", "encoding", "of", "the", "plaintext", "provided", ".", "Capture", "any", "Exceptions", "and", "print", "the", "stack", "trace", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.utility/src/com/ibm/ws/security/utility/tasks/EncodeTask.java#L100-L113
67,613
OpenLiberty/open-liberty
dev/com.ibm.ws.security.utility/src/com/ibm/ws/security/utility/tasks/EncodeTask.java
EncodeTask.getDescription
protected String getDescription(JSONArray customInfoArray) { StringBuffer sb = new StringBuffer(); sb.append(getMessage("encode.option-custom.encryption")); for (int i = 0; i < customInfoArray.size(); i++) { JSONObject customInfo = (JSONObject) customInfoArray.get(i); Str...
java
protected String getDescription(JSONArray customInfoArray) { StringBuffer sb = new StringBuffer(); sb.append(getMessage("encode.option-custom.encryption")); for (int i = 0; i < customInfoArray.size(); i++) { JSONObject customInfo = (JSONObject) customInfoArray.get(i); Str...
[ "protected", "String", "getDescription", "(", "JSONArray", "customInfoArray", ")", "{", "StringBuffer", "sb", "=", "new", "StringBuffer", "(", ")", ";", "sb", ".", "append", "(", "getMessage", "(", "\"encode.option-custom.encryption\"", ")", ")", ";", "for", "("...
Returns the message string of the custom encryption information. @param customInfoArray JSONArray which contains the list of custom encryption information. Null is not expected.
[ "Returns", "the", "message", "string", "of", "the", "custom", "encryption", "information", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.utility/src/com/ibm/ws/security/utility/tasks/EncodeTask.java#L216-L228
67,614
OpenLiberty/open-liberty
dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/IfixParser.java
IfixParser.extractFiles
private void extractFiles(ArtifactMetadata artifactMetadata) throws RepositoryArchiveIOException, RepositoryArchiveEntryNotFoundException, RepositoryArchiveException { _readmePayload = artifactMetadata.getFileWithExtension(".txt"); if (_readmePayload == null) { throw new RepositoryArchiveEn...
java
private void extractFiles(ArtifactMetadata artifactMetadata) throws RepositoryArchiveIOException, RepositoryArchiveEntryNotFoundException, RepositoryArchiveException { _readmePayload = artifactMetadata.getFileWithExtension(".txt"); if (_readmePayload == null) { throw new RepositoryArchiveEn...
[ "private", "void", "extractFiles", "(", "ArtifactMetadata", "artifactMetadata", ")", "throws", "RepositoryArchiveIOException", ",", "RepositoryArchiveEntryNotFoundException", ",", "RepositoryArchiveException", "{", "_readmePayload", "=", "artifactMetadata", ".", "getFileWithExten...
Extract the files from the zip @param zip @throws RepositoryArchiveIOException @throws RepositoryArchiveException @throws RepositoryArchiveEntryNotFoundException
[ "Extract", "the", "files", "from", "the", "zip" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/IfixParser.java#L125-L133
67,615
OpenLiberty/open-liberty
dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/IfixParser.java
IfixParser.getFixId
private String getFixId(IFixInfo iFixInfo, ExtractedFileInformation xmlInfo) throws RepositoryArchiveInvalidEntryException { // check for null input if (null == iFixInfo) { throw new RepositoryArchiveInvalidEntryException("Null XML object provided", xmlInfo.getSourceArchive(), xmlInfo.getSe...
java
private String getFixId(IFixInfo iFixInfo, ExtractedFileInformation xmlInfo) throws RepositoryArchiveInvalidEntryException { // check for null input if (null == iFixInfo) { throw new RepositoryArchiveInvalidEntryException("Null XML object provided", xmlInfo.getSourceArchive(), xmlInfo.getSe...
[ "private", "String", "getFixId", "(", "IFixInfo", "iFixInfo", ",", "ExtractedFileInformation", "xmlInfo", ")", "throws", "RepositoryArchiveInvalidEntryException", "{", "// check for null input", "if", "(", "null", "==", "iFixInfo", ")", "{", "throw", "new", "RepositoryA...
Get the ID of the iFix from the Java representation of the iFix XML @param iFixInfo @param xmlInfo @return A String containing the iFix ID @throws RepositoryArchiveInvalidEntryException
[ "Get", "the", "ID", "of", "the", "iFix", "from", "the", "Java", "representation", "of", "the", "iFix", "XML" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/IfixParser.java#L143-L152
67,616
OpenLiberty/open-liberty
dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/IfixParser.java
IfixParser.getProvides
private List<String> getProvides(IFixInfo iFixInfo, ParserBase.ExtractedFileInformation xmlInfo) throws RepositoryArchiveInvalidEntryException { // check for null input if (null == iFixInfo) { throw new RepositoryArchiveInvalidEntryException("Null document provided", xmlInfo.getSourceArchiv...
java
private List<String> getProvides(IFixInfo iFixInfo, ParserBase.ExtractedFileInformation xmlInfo) throws RepositoryArchiveInvalidEntryException { // check for null input if (null == iFixInfo) { throw new RepositoryArchiveInvalidEntryException("Null document provided", xmlInfo.getSourceArchiv...
[ "private", "List", "<", "String", ">", "getProvides", "(", "IFixInfo", "iFixInfo", ",", "ParserBase", ".", "ExtractedFileInformation", "xmlInfo", ")", "throws", "RepositoryArchiveInvalidEntryException", "{", "// check for null input", "if", "(", "null", "==", "iFixInfo"...
Get a list of the APARs fixed by this iFix @param iFixInfo @return The list of fixed APARs @throws MassiveInvalidXmlException
[ "Get", "a", "list", "of", "the", "APARs", "fixed", "by", "this", "iFix" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/IfixParser.java#L161-L187
67,617
OpenLiberty/open-liberty
dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/IfixParser.java
IfixParser.parseManifestForAppliesTo
private String parseManifestForAppliesTo(File file) throws RepositoryArchiveIOException { Manifest mf = null; try (JarFile jar = new JarFile(file)) { try { mf = jar.getManifest(); } catch (IOException ioe) { throw new RepositoryArchiveIOException(...
java
private String parseManifestForAppliesTo(File file) throws RepositoryArchiveIOException { Manifest mf = null; try (JarFile jar = new JarFile(file)) { try { mf = jar.getManifest(); } catch (IOException ioe) { throw new RepositoryArchiveIOException(...
[ "private", "String", "parseManifestForAppliesTo", "(", "File", "file", ")", "throws", "RepositoryArchiveIOException", "{", "Manifest", "mf", "=", "null", ";", "try", "(", "JarFile", "jar", "=", "new", "JarFile", "(", "file", ")", ")", "{", "try", "{", "mf", ...
Looks at the manifest file, extracting info and putting the info into the supplied asset @param jar The jar file containing the manifest @param ass The asset to put meta data into @return ManifestInfo @throws RepositoryArchiveIOException
[ "Looks", "at", "the", "manifest", "file", "extracting", "info", "and", "putting", "the", "info", "into", "the", "supplied", "asset" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/IfixParser.java#L197-L226
67,618
OpenLiberty/open-liberty
dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java
TypeConversion.bytesToInt
public static int bytesToInt(byte[] bytes, int offset) { return ((bytes[offset + 3] & 0xFF) << 0) + ((bytes[offset + 2] & 0xFF) << 8) + ((bytes[offset + 1] & 0xFF) << 16) + ((bytes[offset + 0] & 0xFF) << 24); }
java
public static int bytesToInt(byte[] bytes, int offset) { return ((bytes[offset + 3] & 0xFF) << 0) + ((bytes[offset + 2] & 0xFF) << 8) + ((bytes[offset + 1] & 0xFF) << 16) + ((bytes[offset + 0] & 0xFF) << 24); }
[ "public", "static", "int", "bytesToInt", "(", "byte", "[", "]", "bytes", ",", "int", "offset", ")", "{", "return", "(", "(", "bytes", "[", "offset", "+", "3", "]", "&", "0xFF", ")", "<<", "0", ")", "+", "(", "(", "bytes", "[", "offset", "+", "2...
A utility method to convert the int from the byte array to an int. @param bytes The byte array containing the int. @param offset The index at which the int is located. @return The int value.
[ "A", "utility", "method", "to", "convert", "the", "int", "from", "the", "byte", "array", "to", "an", "int", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L33-L36
67,619
OpenLiberty/open-liberty
dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java
TypeConversion.bytesToShort
public static short bytesToShort(byte[] bytes, int offset) { short result = 0x0; for (int i = offset; i < offset + 2; ++i) { result = (short) ((result) << 8); result |= (bytes[i] & 0x00FF); } return result; }
java
public static short bytesToShort(byte[] bytes, int offset) { short result = 0x0; for (int i = offset; i < offset + 2; ++i) { result = (short) ((result) << 8); result |= (bytes[i] & 0x00FF); } return result; }
[ "public", "static", "short", "bytesToShort", "(", "byte", "[", "]", "bytes", ",", "int", "offset", ")", "{", "short", "result", "=", "0x0", ";", "for", "(", "int", "i", "=", "offset", ";", "i", "<", "offset", "+", "2", ";", "++", "i", ")", "{", ...
A utility method to convert the short from the byte array to a short. @param bytes The byte array containing the short. @param offset The index at which the short is located. @return The short value.
[ "A", "utility", "method", "to", "convert", "the", "short", "from", "the", "byte", "array", "to", "a", "short", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L47-L54
67,620
OpenLiberty/open-liberty
dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java
TypeConversion.bytesToLong
public static long bytesToLong(byte[] bytes, int offset) { long result = 0x0; for (int i = offset; i < offset + 8; ++i) { result = result << 8; result |= (bytes[i] & 0x00000000000000FFl); } return result; }
java
public static long bytesToLong(byte[] bytes, int offset) { long result = 0x0; for (int i = offset; i < offset + 8; ++i) { result = result << 8; result |= (bytes[i] & 0x00000000000000FFl); } return result; }
[ "public", "static", "long", "bytesToLong", "(", "byte", "[", "]", "bytes", ",", "int", "offset", ")", "{", "long", "result", "=", "0x0", ";", "for", "(", "int", "i", "=", "offset", ";", "i", "<", "offset", "+", "8", ";", "++", "i", ")", "{", "r...
A utility method to convert the long from the byte array to a long. @param bytes The byte array containing the long. @param offset The index at which the long is located. @return The long value.
[ "A", "utility", "method", "to", "convert", "the", "long", "from", "the", "byte", "array", "to", "a", "long", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L65-L72
67,621
OpenLiberty/open-liberty
dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java
TypeConversion.bytesToChar
public static char bytesToChar(byte[] bytes, int offset) { char result = 0x0; for (int i = offset; i < offset + 2; ++i) { result = (char) ((result) << 8); result |= (bytes[i] & 0x00FF); } return result; }
java
public static char bytesToChar(byte[] bytes, int offset) { char result = 0x0; for (int i = offset; i < offset + 2; ++i) { result = (char) ((result) << 8); result |= (bytes[i] & 0x00FF); } return result; }
[ "public", "static", "char", "bytesToChar", "(", "byte", "[", "]", "bytes", ",", "int", "offset", ")", "{", "char", "result", "=", "0x0", ";", "for", "(", "int", "i", "=", "offset", ";", "i", "<", "offset", "+", "2", ";", "++", "i", ")", "{", "r...
A utility method to convert the char from the byte array to a char. @param bytes The byte array containing the char. @param offset The index at which the char is located. @return The char value.
[ "A", "utility", "method", "to", "convert", "the", "char", "from", "the", "byte", "array", "to", "a", "char", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L83-L90
67,622
OpenLiberty/open-liberty
dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java
TypeConversion.intToBytes
public static void intToBytes(int value, byte[] bytes, int offset) { bytes[offset + 3] = (byte) (value >>> 0); bytes[offset + 2] = (byte) (value >>> 8); bytes[offset + 1] = (byte) (value >>> 16); bytes[offset + 0] = (byte) (value >>> 24); }
java
public static void intToBytes(int value, byte[] bytes, int offset) { bytes[offset + 3] = (byte) (value >>> 0); bytes[offset + 2] = (byte) (value >>> 8); bytes[offset + 1] = (byte) (value >>> 16); bytes[offset + 0] = (byte) (value >>> 24); }
[ "public", "static", "void", "intToBytes", "(", "int", "value", ",", "byte", "[", "]", "bytes", ",", "int", "offset", ")", "{", "bytes", "[", "offset", "+", "3", "]", "=", "(", "byte", ")", "(", "value", ">>>", "0", ")", ";", "bytes", "[", "offset...
A utility method to convert an int into bytes in an array. @param value An int. @param bytes The byte array to which the int should be copied. @param offset The index where the int should start.
[ "A", "utility", "method", "to", "convert", "an", "int", "into", "bytes", "in", "an", "array", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L109-L114
67,623
OpenLiberty/open-liberty
dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java
TypeConversion.shortToBytes
public static void shortToBytes(short value, byte[] bytes, int offset) { for (int i = offset + 1; i >= offset; --i) { bytes[i] = (byte) value; value = (short) ((value) >> 8); } }
java
public static void shortToBytes(short value, byte[] bytes, int offset) { for (int i = offset + 1; i >= offset; --i) { bytes[i] = (byte) value; value = (short) ((value) >> 8); } }
[ "public", "static", "void", "shortToBytes", "(", "short", "value", ",", "byte", "[", "]", "bytes", ",", "int", "offset", ")", "{", "for", "(", "int", "i", "=", "offset", "+", "1", ";", "i", ">=", "offset", ";", "--", "i", ")", "{", "bytes", "[", ...
A utility method to convert a short into bytes in an array. @param value A short. @param bytes The byte array to which the short should be copied. @param offset The index where the short should start.
[ "A", "utility", "method", "to", "convert", "a", "short", "into", "bytes", "in", "an", "array", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L126-L131
67,624
OpenLiberty/open-liberty
dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java
TypeConversion.longToBytes
public static void longToBytes(long value, byte[] bytes, int offset) { for (int i = offset + 7; i >= offset; --i) { bytes[i] = (byte) value; value = value >> 8; } }
java
public static void longToBytes(long value, byte[] bytes, int offset) { for (int i = offset + 7; i >= offset; --i) { bytes[i] = (byte) value; value = value >> 8; } }
[ "public", "static", "void", "longToBytes", "(", "long", "value", ",", "byte", "[", "]", "bytes", ",", "int", "offset", ")", "{", "for", "(", "int", "i", "=", "offset", "+", "7", ";", "i", ">=", "offset", ";", "--", "i", ")", "{", "bytes", "[", ...
A utility method to convert the long into bytes in an array. @param value The long. @param bytes The byte array to which the long should be copied. @param offset The index where the long should start.
[ "A", "utility", "method", "to", "convert", "the", "long", "into", "bytes", "in", "an", "array", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L143-L148
67,625
OpenLiberty/open-liberty
dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java
TypeConversion.varIntBytesToLong
public static long varIntBytesToLong(byte[] bytes, int offset) { int shift = 0; long result = 0; while (shift < 64) { final byte b = bytes[offset++]; result |= (long)(b & 0x7F) << shift; if ((b & 0x80) == 0) { return result; } ...
java
public static long varIntBytesToLong(byte[] bytes, int offset) { int shift = 0; long result = 0; while (shift < 64) { final byte b = bytes[offset++]; result |= (long)(b & 0x7F) << shift; if ((b & 0x80) == 0) { return result; } ...
[ "public", "static", "long", "varIntBytesToLong", "(", "byte", "[", "]", "bytes", ",", "int", "offset", ")", "{", "int", "shift", "=", "0", ";", "long", "result", "=", "0", ";", "while", "(", "shift", "<", "64", ")", "{", "final", "byte", "b", "=", ...
Reads a long from the byte array in the Varint format. @param bytes - byte buffer to read @param offset - the offset within the bytes buffer to start reading @return - returns the long value
[ "Reads", "a", "long", "from", "the", "byte", "array", "in", "the", "Varint", "format", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L156-L168
67,626
OpenLiberty/open-liberty
dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java
TypeConversion.varIntBytesToInt
public static int varIntBytesToInt(byte[] bytes, int offset) { byte tmp = bytes[offset++]; if (tmp >= 0) { return tmp; } int result = tmp & 0x7f; if ((tmp = bytes[offset++]) >= 0) { result |= tmp << 7; } else { result |= (tmp & 0x7f) <...
java
public static int varIntBytesToInt(byte[] bytes, int offset) { byte tmp = bytes[offset++]; if (tmp >= 0) { return tmp; } int result = tmp & 0x7f; if ((tmp = bytes[offset++]) >= 0) { result |= tmp << 7; } else { result |= (tmp & 0x7f) <...
[ "public", "static", "int", "varIntBytesToInt", "(", "byte", "[", "]", "bytes", ",", "int", "offset", ")", "{", "byte", "tmp", "=", "bytes", "[", "offset", "++", "]", ";", "if", "(", "tmp", ">=", "0", ")", "{", "return", "tmp", ";", "}", "int", "r...
Reads an int from the byte array in the Varint format. @param bytes - byte buffer to read @param offset - the offset within the bytes buffer to start reading @return - returns the int value
[ "Reads", "an", "int", "from", "the", "byte", "array", "in", "the", "Varint", "format", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L176-L211
67,627
OpenLiberty/open-liberty
dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java
TypeConversion.writeLongAsVarIntBytes
public static int writeLongAsVarIntBytes(long v, byte[] bytes, int offest) { int pos = offest; while (true) { if ((v & ~0x7FL) == 0) { bytes[pos++] = ((byte)v); return pos; } else { bytes[pos++] = (byte)((v & 0x7F) | 0x80); ...
java
public static int writeLongAsVarIntBytes(long v, byte[] bytes, int offest) { int pos = offest; while (true) { if ((v & ~0x7FL) == 0) { bytes[pos++] = ((byte)v); return pos; } else { bytes[pos++] = (byte)((v & 0x7F) | 0x80); ...
[ "public", "static", "int", "writeLongAsVarIntBytes", "(", "long", "v", ",", "byte", "[", "]", "bytes", ",", "int", "offest", ")", "{", "int", "pos", "=", "offest", ";", "while", "(", "true", ")", "{", "if", "(", "(", "v", "&", "~", "0x7F", "L", "...
Writes a long to the byte array in the Varint format. @param v - long value to write to the bytes buffer in the Varint format @param bytes - byte buffer to write to - must contain enough space for maximum length which is 10 bytes. @param offset - the offset within the bytes buffer to start writing @return - returns the...
[ "Writes", "a", "long", "to", "the", "byte", "array", "in", "the", "Varint", "format", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L221-L233
67,628
OpenLiberty/open-liberty
dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java
TypeConversion.writeIntAsVarIntBytes
public static int writeIntAsVarIntBytes(int intVal, byte[] bytes, int offset) { int pos = offset; int v = intVal; if ((v & ~0x7F) == 0) { bytes[pos++] = ((byte) v); return 1 + offset; } while (true) { if ((v & ~0x7F) == 0) { b...
java
public static int writeIntAsVarIntBytes(int intVal, byte[] bytes, int offset) { int pos = offset; int v = intVal; if ((v & ~0x7F) == 0) { bytes[pos++] = ((byte) v); return 1 + offset; } while (true) { if ((v & ~0x7F) == 0) { b...
[ "public", "static", "int", "writeIntAsVarIntBytes", "(", "int", "intVal", ",", "byte", "[", "]", "bytes", ",", "int", "offset", ")", "{", "int", "pos", "=", "offset", ";", "int", "v", "=", "intVal", ";", "if", "(", "(", "v", "&", "~", "0x7F", ")", ...
Writes an integer to the byte array in the Varint format. @param intVal - integer value to write to the bytes buffer in the Varint format @param bytes - byte buffer to write to - must contain enough space for maximum length which is 5 bytes. @param offset - the offset within the bytes buffer to start writing @return - ...
[ "Writes", "an", "integer", "to", "the", "byte", "array", "in", "the", "Varint", "format", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L244-L262
67,629
OpenLiberty/open-liberty
dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java
TypeConversion.limitedBytesToString
public static String limitedBytesToString(byte[] bytes) { if(bytes.length <= 1000) { return Arrays.toString(bytes); } else { byte[] firstBytes = new byte[1000]; System.arraycopy(bytes, 0, firstBytes, 0, 1000); return Arrays.toString(firstBytes); } ...
java
public static String limitedBytesToString(byte[] bytes) { if(bytes.length <= 1000) { return Arrays.toString(bytes); } else { byte[] firstBytes = new byte[1000]; System.arraycopy(bytes, 0, firstBytes, 0, 1000); return Arrays.toString(firstBytes); } ...
[ "public", "static", "String", "limitedBytesToString", "(", "byte", "[", "]", "bytes", ")", "{", "if", "(", "bytes", ".", "length", "<=", "1000", ")", "{", "return", "Arrays", ".", "toString", "(", "bytes", ")", ";", "}", "else", "{", "byte", "[", "]"...
If the byte array length is less than 1000, returns the result of calling Arrays.toString on the supplied byte array. Otherwise returns the result of calling Arrays.toString on a byte array containing the first 1000 bytes in the supplied byte array.
[ "If", "the", "byte", "array", "length", "is", "less", "than", "1000", "returns", "the", "result", "of", "calling", "Arrays", ".", "toString", "on", "the", "supplied", "byte", "array", ".", "Otherwise", "returns", "the", "result", "of", "calling", "Arrays", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/TypeConversion.java#L269-L277
67,630
OpenLiberty/open-liberty
dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/ErrorHelper.java
ErrorHelper.createRESTHandlerJsonException
public static RESTHandlerJsonException createRESTHandlerJsonException(Throwable e, JSONConverter converter, int status) { try { //See if we need to fetch a converter if (converter == null) { converter = JSONConverter.getConverter(); } //Create a ne...
java
public static RESTHandlerJsonException createRESTHandlerJsonException(Throwable e, JSONConverter converter, int status) { try { //See if we need to fetch a converter if (converter == null) { converter = JSONConverter.getConverter(); } //Create a ne...
[ "public", "static", "RESTHandlerJsonException", "createRESTHandlerJsonException", "(", "Throwable", "e", ",", "JSONConverter", "converter", ",", "int", "status", ")", "{", "try", "{", "//See if we need to fetch a converter", "if", "(", "converter", "==", "null", ")", ...
This method will recycle the given converter.
[ "This", "method", "will", "recycle", "the", "given", "converter", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/ErrorHelper.java#L26-L52
67,631
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/VirtualHostMap.java
VirtualHostMap.notifyStarted
public static synchronized void notifyStarted(HttpEndpointImpl endpoint, String resolvedHostName, int port, boolean isHttps) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Notify endpoint started: " + endpoint, resolvedHostName, port, isHttps, defaultHost.get(), a...
java
public static synchronized void notifyStarted(HttpEndpointImpl endpoint, String resolvedHostName, int port, boolean isHttps) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Notify endpoint started: " + endpoint, resolvedHostName, port, isHttps, defaultHost.get(), a...
[ "public", "static", "synchronized", "void", "notifyStarted", "(", "HttpEndpointImpl", "endpoint", ",", "String", "resolvedHostName", ",", "int", "port", ",", "boolean", "isHttps", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", ...
Add an endpoint that has started listening, and notify associated virtual hosts @param endpoint The HttpEndpointImpl that owns the started chain/listener @param resolvedHostName A hostname that can be used in messages (based on endpoint configuration, something other than *) @param port The port the endpoint is listen...
[ "Add", "an", "endpoint", "that", "has", "started", "listening", "and", "notify", "associated", "virtual", "hosts" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/VirtualHostMap.java#L198-L210
67,632
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/VirtualHostMap.java
VirtualHostMap.notifyStopped
public static synchronized void notifyStopped(HttpEndpointImpl endpoint, String resolvedHostName, int port, boolean isHttps) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Notify endpoint stopped: " + endpoint, resolvedHostName, port, isHttps, defaultHost.get(), a...
java
public static synchronized void notifyStopped(HttpEndpointImpl endpoint, String resolvedHostName, int port, boolean isHttps) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Notify endpoint stopped: " + endpoint, resolvedHostName, port, isHttps, defaultHost.get(), a...
[ "public", "static", "synchronized", "void", "notifyStopped", "(", "HttpEndpointImpl", "endpoint", ",", "String", "resolvedHostName", ",", "int", "port", ",", "boolean", "isHttps", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", ...
Remove a port associated with an endpoint that has stopped listening, and notify associated virtual hosts. @param endpoint The HttpEndpointImpl that owns the stopped chain/listener @param resolvedHostName A hostname that can be used in messages (based on endpoint configuration, something other than *) @param port The ...
[ "Remove", "a", "port", "associated", "with", "an", "endpoint", "that", "has", "stopped", "listening", "and", "notify", "associated", "virtual", "hosts", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/VirtualHostMap.java#L223-L235
67,633
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/PooledWsByteBufferImpl.java
PooledWsByteBufferImpl.addWsByteBuffer
public void addWsByteBuffer(WsByteBuffer buffer) { if (this.allWsByteBuffers == null) { this.allWsByteBuffers = new Hashtable<WsByteBuffer, WsByteBuffer>(); } this.allWsByteBuffers.put(buffer, buffer); }
java
public void addWsByteBuffer(WsByteBuffer buffer) { if (this.allWsByteBuffers == null) { this.allWsByteBuffers = new Hashtable<WsByteBuffer, WsByteBuffer>(); } this.allWsByteBuffers.put(buffer, buffer); }
[ "public", "void", "addWsByteBuffer", "(", "WsByteBuffer", "buffer", ")", "{", "if", "(", "this", ".", "allWsByteBuffers", "==", "null", ")", "{", "this", ".", "allWsByteBuffers", "=", "new", "Hashtable", "<", "WsByteBuffer", ",", "WsByteBuffer", ">", "(", ")...
Add a related buffer to the stored list for this instance. @param buffer
[ "Add", "a", "related", "buffer", "to", "the", "stored", "list", "for", "this", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/PooledWsByteBufferImpl.java#L106-L111
67,634
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/PooledWsByteBufferImpl.java
PooledWsByteBufferImpl.addOwner
public void addOwner(String owner) { if (this.owners == null) { this.owners = new Hashtable<String, String>(); } this.owners.put(owner, owner); }
java
public void addOwner(String owner) { if (this.owners == null) { this.owners = new Hashtable<String, String>(); } this.owners.put(owner, owner); }
[ "public", "void", "addOwner", "(", "String", "owner", ")", "{", "if", "(", "this", ".", "owners", "==", "null", ")", "{", "this", ".", "owners", "=", "new", "Hashtable", "<", "String", ",", "String", ">", "(", ")", ";", "}", "this", ".", "owners", ...
Add the following owner to the list for this buffer. @param owner
[ "Add", "the", "following", "owner", "to", "the", "list", "for", "this", "buffer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/PooledWsByteBufferImpl.java#L127-L132
67,635
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java
TypeMappings.getInputUniqueUserId
public String getInputUniqueUserId(String inputVirtualRealm) { // initialize the return value String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_UNIQUE_USER_ID_MAPPING, UNIQUE_USER_ID_DEFAULT); return returnValue; }
java
public String getInputUniqueUserId(String inputVirtualRealm) { // initialize the return value String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_UNIQUE_USER_ID_MAPPING, UNIQUE_USER_ID_DEFAULT); return returnValue; }
[ "public", "String", "getInputUniqueUserId", "(", "String", "inputVirtualRealm", ")", "{", "// initialize the return value", "String", "returnValue", "=", "getInputMapping", "(", "inputVirtualRealm", ",", "Service", ".", "CONFIG_DO_UNIQUE_USER_ID_MAPPING", ",", "UNIQUE_USER_ID...
Get the input unique user ID mapping for the UserRegistry. @param inputVirtualRealm Virtual realm to find the mappings. @return The input unique user ID property. @pre inputVirtualRealm != null @pre inputVirtualRealm != "" @post $return != "" @post $return != null
[ "Get", "the", "input", "unique", "user", "ID", "mapping", "for", "the", "UserRegistry", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L53-L58
67,636
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java
TypeMappings.getOutputUniqueUserId
public String getOutputUniqueUserId(String inputVirtualRealm) { // initialize the return value String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_UNIQUE_USER_ID_MAPPING, UNIQUE_USER_ID_DEFAULT); return returnValue; }
java
public String getOutputUniqueUserId(String inputVirtualRealm) { // initialize the return value String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_UNIQUE_USER_ID_MAPPING, UNIQUE_USER_ID_DEFAULT); return returnValue; }
[ "public", "String", "getOutputUniqueUserId", "(", "String", "inputVirtualRealm", ")", "{", "// initialize the return value", "String", "returnValue", "=", "getOutputMapping", "(", "inputVirtualRealm", ",", "Service", ".", "CONFIG_DO_UNIQUE_USER_ID_MAPPING", ",", "UNIQUE_USER_...
Get the output unique user ID mapping for the UserRegistry. @param inputVirtualRealm Virtual realm to find the mappings. @return The output unique user ID property. @pre inputVirtualRealm != null @pre inputVirtualRealm != "" @post $return != "" @post $return != null
[ "Get", "the", "output", "unique", "user", "ID", "mapping", "for", "the", "UserRegistry", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L72-L77
67,637
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java
TypeMappings.getInputUserSecurityName
public String getInputUserSecurityName(String inputVirtualRealm) { // initialize the return value String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_USER_SECURITY_NAME_MAPPING, INPUT_USER_SECURITY_NAME_DEFAULT); return returnVal...
java
public String getInputUserSecurityName(String inputVirtualRealm) { // initialize the return value String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_USER_SECURITY_NAME_MAPPING, INPUT_USER_SECURITY_NAME_DEFAULT); return returnVal...
[ "public", "String", "getInputUserSecurityName", "(", "String", "inputVirtualRealm", ")", "{", "// initialize the return value", "String", "returnValue", "=", "getInputMapping", "(", "inputVirtualRealm", ",", "Service", ".", "CONFIG_DO_USER_SECURITY_NAME_MAPPING", ",", "INPUT_...
Get the input user security name mapping for the UserRegistry. @param inputVirtualRealm Virtual realm to find the mappings. @return The input user security name property. @pre inputVirtualRealm != null @pre inputVirtualRealm != "" @post $return != "" @post $return != null
[ "Get", "the", "input", "user", "security", "name", "mapping", "for", "the", "UserRegistry", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L91-L96
67,638
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java
TypeMappings.getInputUserDisplayName
public String getInputUserDisplayName(String inputVirtualRealm) { // initialize the return value String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_USER_DISPLAY_NAME_MAPPING, USER_DISPLAY_NAME_DEFAULT); return returnValue; }
java
public String getInputUserDisplayName(String inputVirtualRealm) { // initialize the return value String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_USER_DISPLAY_NAME_MAPPING, USER_DISPLAY_NAME_DEFAULT); return returnValue; }
[ "public", "String", "getInputUserDisplayName", "(", "String", "inputVirtualRealm", ")", "{", "// initialize the return value", "String", "returnValue", "=", "getInputMapping", "(", "inputVirtualRealm", ",", "Service", ".", "CONFIG_DO_USER_DISPLAY_NAME_MAPPING", ",", "USER_DIS...
Get the input user display name mapping for the UserRegistry. @param inputVirtualRealm Virtual realm to find the mappings. @return The input user display name property. @pre inputVirtualRealm != null @pre inputVirtualRealm != "" @post $return != "" @post $return != null
[ "Get", "the", "input", "user", "display", "name", "mapping", "for", "the", "UserRegistry", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L148-L153
67,639
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java
TypeMappings.getOutputUserDisplayName
public String getOutputUserDisplayName(String inputVirtualRealm) { // initialize the return value String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_USER_DISPLAY_NAME_MAPPING, USER_DISPLAY_NAME_DEFAULT); return returnValue; ...
java
public String getOutputUserDisplayName(String inputVirtualRealm) { // initialize the return value String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_USER_DISPLAY_NAME_MAPPING, USER_DISPLAY_NAME_DEFAULT); return returnValue; ...
[ "public", "String", "getOutputUserDisplayName", "(", "String", "inputVirtualRealm", ")", "{", "// initialize the return value", "String", "returnValue", "=", "getOutputMapping", "(", "inputVirtualRealm", ",", "Service", ".", "CONFIG_DO_USER_DISPLAY_NAME_MAPPING", ",", "USER_D...
Get the output user display name mapping for the UserRegistry. @param inputVirtualRealm Virtual realm to find the mappings. @return The output user display name property. @pre inputVirtualRealm != null @pre inputVirtualRealm != "" @post $return != "" @post $return != null
[ "Get", "the", "output", "user", "display", "name", "mapping", "for", "the", "UserRegistry", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L167-L172
67,640
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java
TypeMappings.getInputUniqueGroupId
public String getInputUniqueGroupId(String inputVirtualRealm) { // initialize the return value String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_UNIQUE_GROUP_ID_MAPPING, INPUT_UNIQUE_GROUP_ID_DEFAULT); return returnValue; }
java
public String getInputUniqueGroupId(String inputVirtualRealm) { // initialize the return value String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_UNIQUE_GROUP_ID_MAPPING, INPUT_UNIQUE_GROUP_ID_DEFAULT); return returnValue; }
[ "public", "String", "getInputUniqueGroupId", "(", "String", "inputVirtualRealm", ")", "{", "// initialize the return value", "String", "returnValue", "=", "getInputMapping", "(", "inputVirtualRealm", ",", "Service", ".", "CONFIG_DO_UNIQUE_GROUP_ID_MAPPING", ",", "INPUT_UNIQUE...
Get the input unique group ID mapping for the UserRegistry. @param inputVirtualRealm Virtual realm to find the mappings. @return The input unique group ID property. @pre inputVirtualRealm != null @pre inputVirtualRealm != "" @post $return != "" @post $return != null
[ "Get", "the", "input", "unique", "group", "ID", "mapping", "for", "the", "UserRegistry", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L186-L191
67,641
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java
TypeMappings.getOutputUniqueGroupId
public String getOutputUniqueGroupId(String inputVirtualRealm) { // initialize the return value String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_UNIQUE_GROUP_ID_MAPPING, OUTPUT_UNIQUE_GROUP_ID_DEFAULT); return returnValue; ...
java
public String getOutputUniqueGroupId(String inputVirtualRealm) { // initialize the return value String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_UNIQUE_GROUP_ID_MAPPING, OUTPUT_UNIQUE_GROUP_ID_DEFAULT); return returnValue; ...
[ "public", "String", "getOutputUniqueGroupId", "(", "String", "inputVirtualRealm", ")", "{", "// initialize the return value", "String", "returnValue", "=", "getOutputMapping", "(", "inputVirtualRealm", ",", "Service", ".", "CONFIG_DO_UNIQUE_GROUP_ID_MAPPING", ",", "OUTPUT_UNI...
Get the output unique group ID mapping for the UserRegistry. @param inputVirtualRealm Virtual realm to find the mappings. @return The output unique group ID property. @pre inputVirtualRealm != null @pre inputVirtualRealm != "" @post $return != "" @post $return != null
[ "Get", "the", "output", "unique", "group", "ID", "mapping", "for", "the", "UserRegistry", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L205-L210
67,642
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java
TypeMappings.getInputGroupSecurityName
public String getInputGroupSecurityName(String inputVirtualRealm) { // initialize the return value String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_GROUP_SECURITY_NAME_MAPPING, INPUT_GROUP_SECURITY_NAME_DEFAULT); return return...
java
public String getInputGroupSecurityName(String inputVirtualRealm) { // initialize the return value String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_GROUP_SECURITY_NAME_MAPPING, INPUT_GROUP_SECURITY_NAME_DEFAULT); return return...
[ "public", "String", "getInputGroupSecurityName", "(", "String", "inputVirtualRealm", ")", "{", "// initialize the return value", "String", "returnValue", "=", "getInputMapping", "(", "inputVirtualRealm", ",", "Service", ".", "CONFIG_DO_GROUP_SECURITY_NAME_MAPPING", ",", "INPU...
Get the input group security name mapping for the UserRegistry. @param inputVirtualRealm Virtual realm to find the mappings. @return The input group security name property. @pre inputVirtualRealm != null @pre inputVirtualRealm != "" @post $return != "" @post $return != null
[ "Get", "the", "input", "group", "security", "name", "mapping", "for", "the", "UserRegistry", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L224-L229
67,643
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java
TypeMappings.getOutputGroupSecurityName
public String getOutputGroupSecurityName(String inputVirtualRealm) { // initialize the return value String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_GROUP_SECURITY_NAME_MAPPING, OUTPUT_GROUP_SECURITY_NAME_DEFAULT); return re...
java
public String getOutputGroupSecurityName(String inputVirtualRealm) { // initialize the return value String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_GROUP_SECURITY_NAME_MAPPING, OUTPUT_GROUP_SECURITY_NAME_DEFAULT); return re...
[ "public", "String", "getOutputGroupSecurityName", "(", "String", "inputVirtualRealm", ")", "{", "// initialize the return value", "String", "returnValue", "=", "getOutputMapping", "(", "inputVirtualRealm", ",", "Service", ".", "CONFIG_DO_GROUP_SECURITY_NAME_MAPPING", ",", "OU...
Get the output group security name mapping for the UserRegistry. @param inputVirtualRealm Virtual realm to find the mappings. @return The output group security name property. @pre inputVirtualRealm != null @pre inputVirtualRealm != "" @post $return != "" @post $return != null
[ "Get", "the", "output", "group", "security", "name", "mapping", "for", "the", "UserRegistry", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L243-L248
67,644
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java
TypeMappings.getInputGroupDisplayName
public String getInputGroupDisplayName(String inputVirtualRealm) { // initialize the return value String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_GROUP_DISPLAY_NAME_MAPPING, GROUP_DISPLAY_NAME_DEFAULT); return returnValue; ...
java
public String getInputGroupDisplayName(String inputVirtualRealm) { // initialize the return value String returnValue = getInputMapping(inputVirtualRealm, Service.CONFIG_DO_GROUP_DISPLAY_NAME_MAPPING, GROUP_DISPLAY_NAME_DEFAULT); return returnValue; ...
[ "public", "String", "getInputGroupDisplayName", "(", "String", "inputVirtualRealm", ")", "{", "// initialize the return value", "String", "returnValue", "=", "getInputMapping", "(", "inputVirtualRealm", ",", "Service", ".", "CONFIG_DO_GROUP_DISPLAY_NAME_MAPPING", ",", "GROUP_...
Get the input group display name mapping for the UserRegistry. @param inputVirtualRealm Virtual realm to find the mappings. @return The input group display name property. @pre inputVirtualRealm != null @pre inputVirtualRealm != "" @post $return != "" @post $return != null
[ "Get", "the", "input", "group", "display", "name", "mapping", "for", "the", "UserRegistry", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L262-L267
67,645
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java
TypeMappings.getOutputGroupDisplayName
public String getOutputGroupDisplayName(String inputVirtualRealm) { // initialize the return value String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_GROUP_DISPLAY_NAME_MAPPING, GROUP_DISPLAY_NAME_DEFAULT); return returnValue;...
java
public String getOutputGroupDisplayName(String inputVirtualRealm) { // initialize the return value String returnValue = getOutputMapping(inputVirtualRealm, Service.CONFIG_DO_GROUP_DISPLAY_NAME_MAPPING, GROUP_DISPLAY_NAME_DEFAULT); return returnValue;...
[ "public", "String", "getOutputGroupDisplayName", "(", "String", "inputVirtualRealm", ")", "{", "// initialize the return value", "String", "returnValue", "=", "getOutputMapping", "(", "inputVirtualRealm", ",", "Service", ".", "CONFIG_DO_GROUP_DISPLAY_NAME_MAPPING", ",", "GROU...
Get the output group display name mapping for the UserRegistry. @param inputVirtualRealm Virtual realm to find the mappings. @return The output group display name property. @pre inputVirtualRealm != null @pre inputVirtualRealm != "" @post $return != "" @post $return != null
[ "Get", "the", "output", "group", "display", "name", "mapping", "for", "the", "UserRegistry", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L281-L286
67,646
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java
TypeMappings.getInputMapping
@FFDCIgnore(Exception.class) private String getInputMapping(String inputVirtualRealm, String inputProperty, String inputDefaultProperty) { String methodName = "getInputMapping"; // initialize the return value String returnValue = null; RealmConfig realmConfig = mappingUtils.getCoreC...
java
@FFDCIgnore(Exception.class) private String getInputMapping(String inputVirtualRealm, String inputProperty, String inputDefaultProperty) { String methodName = "getInputMapping"; // initialize the return value String returnValue = null; RealmConfig realmConfig = mappingUtils.getCoreC...
[ "@", "FFDCIgnore", "(", "Exception", ".", "class", ")", "private", "String", "getInputMapping", "(", "String", "inputVirtualRealm", ",", "String", "inputProperty", ",", "String", "inputDefaultProperty", ")", "{", "String", "methodName", "=", "\"getInputMapping\"", "...
Get the WIM input property that maps to the UserRegistry input property. @param inputVirtualRealm Virtual realm to find the mappings. @param inputProperty String representing the input UserRegistry property. @return String representing the input WIM property. @pre inputVirtualRealm != null @pre inputVirtualRealm != e...
[ "Get", "the", "WIM", "input", "property", "that", "maps", "to", "the", "UserRegistry", "input", "property", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/util/TypeMappings.java#L304-L327
67,647
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_SelectItemsUtil.java
_SelectItemsUtil._convertOrCoerceValue
private static Object _convertOrCoerceValue(FacesContext facesContext, UIComponent uiComponent, Object value, SelectItem selectItem, Converter converter) { Object itemValue = selectItem.getValue(); if (converter != null && itemValue instanceof String) { it...
java
private static Object _convertOrCoerceValue(FacesContext facesContext, UIComponent uiComponent, Object value, SelectItem selectItem, Converter converter) { Object itemValue = selectItem.getValue(); if (converter != null && itemValue instanceof String) { it...
[ "private", "static", "Object", "_convertOrCoerceValue", "(", "FacesContext", "facesContext", ",", "UIComponent", "uiComponent", ",", "Object", "value", ",", "SelectItem", "selectItem", ",", "Converter", "converter", ")", "{", "Object", "itemValue", "=", "selectItem", ...
If converter is available and selectItem.value is String uses getAsObject, otherwise uses EL type coertion and return result.
[ "If", "converter", "is", "available", "and", "selectItem", ".", "value", "is", "String", "uses", "getAsObject", "otherwise", "uses", "EL", "type", "coertion", "and", "return", "result", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_SelectItemsUtil.java#L117-L168
67,648
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/MessageType.java
MessageType.getMessageType
public final static MessageType getMessageType(Byte aValue) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc,"Value = " + aValue); return set[aValue.intValue()]; }
java
public final static MessageType getMessageType(Byte aValue) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc,"Value = " + aValue); return set[aValue.intValue()]; }
[ "public", "final", "static", "MessageType", "getMessageType", "(", "Byte", "aValue", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "SibTr", ".", "debug", "(", "tc", ",", "\"Va...
Returns the corresponding MessageType for a given Byte. This method should NOT be called by any code outside the MFP component. It is only public so that it can be accessed by sub-packages. @param aValue The Byte for which an MessageType is required. @return The corresponding MessageType
[ "Returns", "the", "corresponding", "MessageType", "for", "a", "given", "Byte", ".", "This", "method", "should", "NOT", "be", "called", "by", "any", "code", "outside", "the", "MFP", "component", ".", "It", "is", "only", "public", "so", "that", "it", "can", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/MessageType.java#L88-L91
67,649
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertFringe.java
GBSInsertFringe.balance
void balance( int kFactor, NodeStack stack, GBSNode fpoint, int fpidx, int maxBal) { /* Get parent of balance point */ GBSNode bparent = stack.node(fpidx - 1); switch (kFactor) { case 2: balance2(stack, bparent, fpoin...
java
void balance( int kFactor, NodeStack stack, GBSNode fpoint, int fpidx, int maxBal) { /* Get parent of balance point */ GBSNode bparent = stack.node(fpidx - 1); switch (kFactor) { case 2: balance2(stack, bparent, fpoin...
[ "void", "balance", "(", "int", "kFactor", ",", "NodeStack", "stack", ",", "GBSNode", "fpoint", ",", "int", "fpidx", ",", "int", "maxBal", ")", "{", "/* Get parent of balance point */", "GBSNode", "bparent", "=", "stack", ".", "node", "(", "fpidx", "-...
Balance a fringe following the addition of its final node. @param kFactor The K factor for the tree. @param stack The stack of nodes through which the insert operation passed. @param fpoint The fringe balance point (the top of the fringe). @param fpidx The index within the stack of fpoint @param maxBal Maximum allowed...
[ "Balance", "a", "fringe", "following", "the", "addition", "of", "its", "final", "node", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertFringe.java#L53-L95
67,650
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertFringe.java
GBSInsertFringe.balance2
private void balance2( NodeStack stack, GBSNode bparent, /* Parent of fringe balance point */ GBSNode fpoint, /* Fringe balance point */ int fpidx, /* Index within stack of fpoint */ int maxBal) ...
java
private void balance2( NodeStack stack, GBSNode bparent, /* Parent of fringe balance point */ GBSNode fpoint, /* Fringe balance point */ int fpidx, /* Index within stack of fpoint */ int maxBal) ...
[ "private", "void", "balance2", "(", "NodeStack", "stack", ",", "GBSNode", "bparent", ",", "/* Parent of fringe balance point */", "GBSNode", "fpoint", ",", "/* Fringe balance point */", "int", "fpidx", ",", "/* Index within stack of fpoint */", ...
Balance a fringe with a K factor of two. @param stack The stack of nodes through which the insert operation passed. @param bparent The parent of the fringe balance point. @param fpoint The fringe balance point (the top of the fringe). @param fpidx The index within the stack of fpoint @param maxBal Maximum allowed frin...
[ "Balance", "a", "fringe", "with", "a", "K", "factor", "of", "two", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertFringe.java#L107-L156
67,651
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertFringe.java
GBSInsertFringe.balance4
private void balance4( NodeStack stack, GBSNode bparent, /* Parent of fringe balance point */ GBSNode fpoint, /* Fringe balance point */ int fpidx, /* Index within stack of fpoint */ int maxBal) ...
java
private void balance4( NodeStack stack, GBSNode bparent, /* Parent of fringe balance point */ GBSNode fpoint, /* Fringe balance point */ int fpidx, /* Index within stack of fpoint */ int maxBal) ...
[ "private", "void", "balance4", "(", "NodeStack", "stack", ",", "GBSNode", "bparent", ",", "/* Parent of fringe balance point */", "GBSNode", "fpoint", ",", "/* Fringe balance point */", "int", "fpidx", ",", "/* Index within stack of fpoint */", ...
Balance a fringe with a K factor of four. @param stack The stack of nodes through which the insert operation passed. @param bparent The parent of the fringe balance point. @param fpoint The fringe balance point (the top of the fringe). @param fpidx The index within the stack of fpoint @param maxBal Maximum allowed fri...
[ "Balance", "a", "fringe", "with", "a", "K", "factor", "of", "four", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertFringe.java#L168-L238
67,652
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertFringe.java
GBSInsertFringe.balance6
private void balance6( NodeStack stack, GBSNode bparent, /* Parent of fringe balance point */ GBSNode fpoint, /* Fringe balance point */ int fpidx, /* Index within stack of fpoint */ int maxBal) ...
java
private void balance6( NodeStack stack, GBSNode bparent, /* Parent of fringe balance point */ GBSNode fpoint, /* Fringe balance point */ int fpidx, /* Index within stack of fpoint */ int maxBal) ...
[ "private", "void", "balance6", "(", "NodeStack", "stack", ",", "GBSNode", "bparent", ",", "/* Parent of fringe balance point */", "GBSNode", "fpoint", ",", "/* Fringe balance point */", "int", "fpidx", ",", "/* Index within stack of fpoint */", ...
Balance a fringe with a K factor of six. @param stack The stack of nodes through which the insert operation passed. @param bparent The parent of the fringe balance point. @param fpoint The fringe balance point (the top of the fringe). @param fpidx The index within the stack of fpoint @param maxBal Maximum allowed frin...
[ "Balance", "a", "fringe", "with", "a", "K", "factor", "of", "six", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertFringe.java#L250-L331
67,653
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertFringe.java
GBSInsertFringe.balance8
private void balance8( NodeStack stack, GBSNode bparent, /* Parent of fringe balance point */ GBSNode fpoint, /* Fringe balance point */ int fpidx, /* Index within stack of fpoint */ int maxBal) ...
java
private void balance8( NodeStack stack, GBSNode bparent, /* Parent of fringe balance point */ GBSNode fpoint, /* Fringe balance point */ int fpidx, /* Index within stack of fpoint */ int maxBal) ...
[ "private", "void", "balance8", "(", "NodeStack", "stack", ",", "GBSNode", "bparent", ",", "/* Parent of fringe balance point */", "GBSNode", "fpoint", ",", "/* Fringe balance point */", "int", "fpidx", ",", "/* Index within stack of fpoint */", ...
Balance a fringe with a K factor of eight. @param stack The stack of nodes through which the insert operation passed. @param bparent The parent of the fringe balance point. @param fpoint The fringe balance point (the top of the fringe). @param fpidx The index within the stack of fpoint @param maxBal Maximum allowed fr...
[ "Balance", "a", "fringe", "with", "a", "K", "factor", "of", "eight", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSInsertFringe.java#L343-L440
67,654
OpenLiberty/open-liberty
dev/com.ibm.ws.concurrent/src/com/ibm/ws/concurrent/internal/ContextServiceImpl.java
ContextServiceImpl.setBaseInstance
@Reference(name = BASE_INSTANCE, service = ContextService.class, cardinality = ReferenceCardinality.OPTIONAL, policy = ReferencePolicy.DYNAMIC, policyOption = ReferencePolicyOption.GREEDY, target = "(id=unbound)") protected void setBaseInsta...
java
@Reference(name = BASE_INSTANCE, service = ContextService.class, cardinality = ReferenceCardinality.OPTIONAL, policy = ReferencePolicy.DYNAMIC, policyOption = ReferencePolicyOption.GREEDY, target = "(id=unbound)") protected void setBaseInsta...
[ "@", "Reference", "(", "name", "=", "BASE_INSTANCE", ",", "service", "=", "ContextService", ".", "class", ",", "cardinality", "=", "ReferenceCardinality", ".", "OPTIONAL", ",", "policy", "=", "ReferencePolicy", ".", "DYNAMIC", ",", "policyOption", "=", "Referenc...
Declarative Services method for setting the service reference to the base contextService instance. @param ref reference to the service
[ "Declarative", "Services", "method", "for", "setting", "the", "service", "reference", "to", "the", "base", "contextService", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent/src/com/ibm/ws/concurrent/internal/ContextServiceImpl.java#L637-L650
67,655
OpenLiberty/open-liberty
dev/com.ibm.ws.concurrent/src/com/ibm/ws/concurrent/internal/ContextServiceImpl.java
ContextServiceImpl.setThreadContextManager
@Reference(name = THREAD_CONTEXT_MANAGER, service = WSContextService.class, cardinality = ReferenceCardinality.MANDATORY, policy = ReferencePolicy.STATIC, target = "(component.name=com.ibm.ws.context.manager)") protected void setThreadContextManager(WSCont...
java
@Reference(name = THREAD_CONTEXT_MANAGER, service = WSContextService.class, cardinality = ReferenceCardinality.MANDATORY, policy = ReferencePolicy.STATIC, target = "(component.name=com.ibm.ws.context.manager)") protected void setThreadContextManager(WSCont...
[ "@", "Reference", "(", "name", "=", "THREAD_CONTEXT_MANAGER", ",", "service", "=", "WSContextService", ".", "class", ",", "cardinality", "=", "ReferenceCardinality", ".", "MANDATORY", ",", "policy", "=", "ReferencePolicy", ".", "STATIC", ",", "target", "=", "\"(...
Declarative Services method for setting the thread context manager. @param svc the service
[ "Declarative", "Services", "method", "for", "setting", "the", "thread", "context", "manager", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent/src/com/ibm/ws/concurrent/internal/ContextServiceImpl.java#L657-L664
67,656
OpenLiberty/open-liberty
dev/com.ibm.ws.concurrent/src/com/ibm/ws/concurrent/internal/ContextServiceImpl.java
ContextServiceImpl.unsetBaseInstance
protected void unsetBaseInstance(ServiceReference<ContextService> ref) { lock.writeLock().lock(); try { threadContextConfigurations = null; } finally { lock.writeLock().unlock(); } }
java
protected void unsetBaseInstance(ServiceReference<ContextService> ref) { lock.writeLock().lock(); try { threadContextConfigurations = null; } finally { lock.writeLock().unlock(); } }
[ "protected", "void", "unsetBaseInstance", "(", "ServiceReference", "<", "ContextService", ">", "ref", ")", "{", "lock", ".", "writeLock", "(", ")", ".", "lock", "(", ")", ";", "try", "{", "threadContextConfigurations", "=", "null", ";", "}", "finally", "{", ...
Declarative Services method for unsetting the service reference to the base contextService instance. @param ref reference to the service
[ "Declarative", "Services", "method", "for", "unsetting", "the", "service", "reference", "to", "the", "base", "contextService", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent/src/com/ibm/ws/concurrent/internal/ContextServiceImpl.java#L671-L678
67,657
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/async/AsyncContextImpl.java
AsyncContextImpl.complete
@Override public synchronized void complete() { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINEST)) { logger.entering(CLASS_NAME, "complete",this); } if (!lockHeldByDifferentThread()) { //We can't call this or WebConta...
java
@Override public synchronized void complete() { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINEST)) { logger.entering(CLASS_NAME, "complete",this); } if (!lockHeldByDifferentThread()) { //We can't call this or WebConta...
[ "@", "Override", "public", "synchronized", "void", "complete", "(", ")", "{", "if", "(", "com", ".", "ibm", ".", "ejs", ".", "ras", ".", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "logger", ".", "isLoggable", "(", "Level", ".", "FINEST...
we're okay to sync on the scheduling of the complete
[ "we", "re", "okay", "to", "sync", "on", "the", "scheduling", "of", "the", "complete" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/async/AsyncContextImpl.java#L176-L225
67,658
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/async/AsyncContextImpl.java
AsyncContextImpl.dispatch
@Override public synchronized void dispatch(ServletContext context, String path) throws IllegalStateException { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINEST)) { logger.entering(CLASS_NAME, "dispatch(ctx,path)",new Object [] {this,context,path}); ...
java
@Override public synchronized void dispatch(ServletContext context, String path) throws IllegalStateException { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINEST)) { logger.entering(CLASS_NAME, "dispatch(ctx,path)",new Object [] {this,context,path}); ...
[ "@", "Override", "public", "synchronized", "void", "dispatch", "(", "ServletContext", "context", ",", "String", "path", ")", "throws", "IllegalStateException", "{", "if", "(", "com", ".", "ibm", ".", "ejs", ".", "ras", ".", "TraceComponent", ".", "isAnyTracing...
we're okay to sync on the scheduling of the dispatch
[ "we", "re", "okay", "to", "sync", "on", "the", "scheduling", "of", "the", "dispatch" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/async/AsyncContextImpl.java#L229-L272
67,659
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/OnePhaseResourceImpl.java
OnePhaseResourceImpl.commit_one_phase
public final void commit_one_phase() throws XAException { if (tc.isEntryEnabled()) Tr.entry(tc, "commit_one_phase", _resource); if (tcSummary.isDebugEnabled()) Tr.debug(tcSummary, "commit_one_phase", this); // // Commit the one-phase resource. // try { ...
java
public final void commit_one_phase() throws XAException { if (tc.isEntryEnabled()) Tr.entry(tc, "commit_one_phase", _resource); if (tcSummary.isDebugEnabled()) Tr.debug(tcSummary, "commit_one_phase", this); // // Commit the one-phase resource. // try { ...
[ "public", "final", "void", "commit_one_phase", "(", ")", "throws", "XAException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"commit_one_phase\"", ",", "_resource", ")", ";", "if", "(", "tcSummary", ...
Commit a transaction, using one-phase optimization. @exception SystemException an unindentified error has been reported by the resource manager. @exception RollbackException
[ "Commit", "a", "transaction", "using", "one", "-", "phase", "optimization", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/OnePhaseResourceImpl.java#L103-L132
67,660
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/OnePhaseResourceImpl.java
OnePhaseResourceImpl.rollback
public final void rollback() throws XAException { if (tc.isEntryEnabled()) Tr.entry(tc, "rollback", _resource); if (tcSummary.isDebugEnabled()) Tr.debug(tcSummary, "rollback", this); try { _resource.rollback(_xid); // Record the vote. // _completedCommit defaults ...
java
public final void rollback() throws XAException { if (tc.isEntryEnabled()) Tr.entry(tc, "rollback", _resource); if (tcSummary.isDebugEnabled()) Tr.debug(tcSummary, "rollback", this); try { _resource.rollback(_xid); // Record the vote. // _completedCommit defaults ...
[ "public", "final", "void", "rollback", "(", ")", "throws", "XAException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"rollback\"", ",", "_resource", ")", ";", "if", "(", "tcSummary", ".", "isDebugE...
Rollback a transaction. @exception SystemException an unindentified error has been reported by the resource manager
[ "Rollback", "a", "transaction", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/OnePhaseResourceImpl.java#L141-L167
67,661
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/OnePhaseResourceImpl.java
OnePhaseResourceImpl.forget
public final void forget() throws XAException { if (tc.isEntryEnabled()) { Tr.entry(tc, "forget", _resource); Tr.exit(tc, "forget"); } }
java
public final void forget() throws XAException { if (tc.isEntryEnabled()) { Tr.entry(tc, "forget", _resource); Tr.exit(tc, "forget"); } }
[ "public", "final", "void", "forget", "(", ")", "throws", "XAException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "Tr", ".", "entry", "(", "tc", ",", "\"forget\"", ",", "_resource", ")", ";", "Tr", ".", "exit", "(", "tc", ","...
The resource manager can forget all knowledge of the transaction. Only allowed because commit_one_phase may return heuristic
[ "The", "resource", "manager", "can", "forget", "all", "knowledge", "of", "the", "transaction", ".", "Only", "allowed", "because", "commit_one_phase", "may", "return", "heuristic" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/OnePhaseResourceImpl.java#L174-L181
67,662
OpenLiberty/open-liberty
dev/com.ibm.ws.security.javaeesec.cdi/src/com/ibm/ws/security/javaeesec/cdi/extensions/JavaEESecCDIExtension.java
JavaEESecCDIExtension.verifyConfiguration
private void verifyConfiguration() throws DeploymentException { Map<URL, ModuleMetaData> mmds = getModuleMetaDataMap(); if (mmds != null) { for (Map.Entry<URL, ModuleMetaData> entry : mmds.entrySet()) { ModuleMetaData mmd = entry.getValue(); if (mmd instanceof...
java
private void verifyConfiguration() throws DeploymentException { Map<URL, ModuleMetaData> mmds = getModuleMetaDataMap(); if (mmds != null) { for (Map.Entry<URL, ModuleMetaData> entry : mmds.entrySet()) { ModuleMetaData mmd = entry.getValue(); if (mmd instanceof...
[ "private", "void", "verifyConfiguration", "(", ")", "throws", "DeploymentException", "{", "Map", "<", "URL", ",", "ModuleMetaData", ">", "mmds", "=", "getModuleMetaDataMap", "(", ")", ";", "if", "(", "mmds", "!=", "null", ")", "{", "for", "(", "Map", ".", ...
make sure that there is one HAM for each modules, and if there is a HAM in a module, make sure there is no login configuration in web.xml.
[ "make", "sure", "that", "there", "is", "one", "HAM", "for", "each", "modules", "and", "if", "there", "is", "a", "HAM", "in", "a", "module", "make", "sure", "there", "is", "no", "login", "configuration", "in", "web", ".", "xml", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.javaeesec.cdi/src/com/ibm/ws/security/javaeesec/cdi/extensions/JavaEESecCDIExtension.java#L878-L910
67,663
OpenLiberty/open-liberty
dev/com.ibm.ws.security.javaeesec.cdi/src/com/ibm/ws/security/javaeesec/cdi/extensions/JavaEESecCDIExtension.java
JavaEESecCDIExtension.getModuleFromClass
private String getModuleFromClass(Class<?> klass, Map<String, ModuleProperties> moduleMap) { String file = getClassFileLocation(klass); if (tc.isDebugEnabled()) { Tr.debug(tc, "File name : " + file); } String moduleName = null; for (Map.Entry<String, ModuleProperties>...
java
private String getModuleFromClass(Class<?> klass, Map<String, ModuleProperties> moduleMap) { String file = getClassFileLocation(klass); if (tc.isDebugEnabled()) { Tr.debug(tc, "File name : " + file); } String moduleName = null; for (Map.Entry<String, ModuleProperties>...
[ "private", "String", "getModuleFromClass", "(", "Class", "<", "?", ">", "klass", ",", "Map", "<", "String", ",", "ModuleProperties", ">", "moduleMap", ")", "{", "String", "file", "=", "getClassFileLocation", "(", "klass", ")", ";", "if", "(", "tc", ".", ...
Identify the module name from the class. If the class exists in the jar file, return war file name if it is located under the war file, otherwise returning jar file name.
[ "Identify", "the", "module", "name", "from", "the", "class", ".", "If", "the", "class", "exists", "in", "the", "jar", "file", "return", "war", "file", "name", "if", "it", "is", "located", "under", "the", "war", "file", "otherwise", "returning", "jar", "f...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.javaeesec.cdi/src/com/ibm/ws/security/javaeesec/cdi/extensions/JavaEESecCDIExtension.java#L948-L976
67,664
OpenLiberty/open-liberty
dev/com.ibm.ws.security.javaeesec.cdi/src/com/ibm/ws/security/javaeesec/cdi/extensions/JavaEESecCDIExtension.java
JavaEESecCDIExtension.getGlobalLoginBasicProps
private Properties getGlobalLoginBasicProps() throws Exception { String realm = getWebAppSecurityConfig().getBasicAuthRealmName(); Properties props = new Properties(); if (realm == null) { if (tc.isDebugEnabled()) { Tr.debug(tc, "basicAuthenticationMechanismRealmName ...
java
private Properties getGlobalLoginBasicProps() throws Exception { String realm = getWebAppSecurityConfig().getBasicAuthRealmName(); Properties props = new Properties(); if (realm == null) { if (tc.isDebugEnabled()) { Tr.debug(tc, "basicAuthenticationMechanismRealmName ...
[ "private", "Properties", "getGlobalLoginBasicProps", "(", ")", "throws", "Exception", "{", "String", "realm", "=", "getWebAppSecurityConfig", "(", ")", ".", "getBasicAuthRealmName", "(", ")", ";", "Properties", "props", "=", "new", "Properties", "(", ")", ";", "...
Returns BasicAuth realm name for container override basic login
[ "Returns", "BasicAuth", "realm", "name", "for", "container", "override", "basic", "login" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.javaeesec.cdi/src/com/ibm/ws/security/javaeesec/cdi/extensions/JavaEESecCDIExtension.java#L981-L995
67,665
OpenLiberty/open-liberty
dev/com.ibm.ws.security.javaeesec.cdi/src/com/ibm/ws/security/javaeesec/cdi/extensions/JavaEESecCDIExtension.java
JavaEESecCDIExtension.getGlobalLoginFormProps
private Properties getGlobalLoginFormProps() throws Exception { WebAppSecurityConfig webAppSecConfig = getWebAppSecurityConfig(); String loginURL = webAppSecConfig.getLoginFormURL(); String errorURL = webAppSecConfig.getLoginErrorURL(); if (loginURL == null || loginURL.isEmpty()) { ...
java
private Properties getGlobalLoginFormProps() throws Exception { WebAppSecurityConfig webAppSecConfig = getWebAppSecurityConfig(); String loginURL = webAppSecConfig.getLoginFormURL(); String errorURL = webAppSecConfig.getLoginErrorURL(); if (loginURL == null || loginURL.isEmpty()) { ...
[ "private", "Properties", "getGlobalLoginFormProps", "(", ")", "throws", "Exception", "{", "WebAppSecurityConfig", "webAppSecConfig", "=", "getWebAppSecurityConfig", "(", ")", ";", "String", "loginURL", "=", "webAppSecConfig", ".", "getLoginFormURL", "(", ")", ";", "St...
Returns LoginToContinue properties for container override form login
[ "Returns", "LoginToContinue", "properties", "for", "container", "override", "form", "login" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.javaeesec.cdi/src/com/ibm/ws/security/javaeesec/cdi/extensions/JavaEESecCDIExtension.java#L1000-L1044
67,666
OpenLiberty/open-liberty
dev/com.ibm.ws.jmx.request/src/com/ibm/ws/jmx/request/RequestMetadata.java
RequestMetadata.initialize
private void initialize(Map<String, Object> metadata) { if (metadata == null) { metadata = new HashMap<String, Object>(); } metadata.put(REQUEST_ID, generateRequestID()); this.metadata = metadata; }
java
private void initialize(Map<String, Object> metadata) { if (metadata == null) { metadata = new HashMap<String, Object>(); } metadata.put(REQUEST_ID, generateRequestID()); this.metadata = metadata; }
[ "private", "void", "initialize", "(", "Map", "<", "String", ",", "Object", ">", "metadata", ")", "{", "if", "(", "metadata", "==", "null", ")", "{", "metadata", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "}", "metadata",...
Generates a new metadata Map if none is given. Generates and adds a request ID to the metadata. @param metadata the metadata for a request
[ "Generates", "a", "new", "metadata", "Map", "if", "none", "is", "given", ".", "Generates", "and", "adds", "a", "request", "ID", "to", "the", "metadata", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.request/src/com/ibm/ws/jmx/request/RequestMetadata.java#L55-L61
67,667
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionManagerServiceImpl.java
ConnectionManagerServiceImpl.addObserver
@Override public void addObserver(Observer observer) { super.addObserver(observer); if (countObservers() > 1) { super.deleteObserver(observer); AbstractConnectionFactoryService cfSvc = (AbstractConnectionFactoryService) observer; Object[] params = new Object[] { C...
java
@Override public void addObserver(Observer observer) { super.addObserver(observer); if (countObservers() > 1) { super.deleteObserver(observer); AbstractConnectionFactoryService cfSvc = (AbstractConnectionFactoryService) observer; Object[] params = new Object[] { C...
[ "@", "Override", "public", "void", "addObserver", "(", "Observer", "observer", ")", "{", "super", ".", "addObserver", "(", "observer", ")", ";", "if", "(", "countObservers", "(", ")", ">", "1", ")", "{", "super", ".", "deleteObserver", "(", "observer", "...
Add an observer for this connection manager service. @param observer ConnectionFactoryService that is using this ConnectionManagerService.
[ "Add", "an", "observer", "for", "this", "connection", "manager", "service", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionManagerServiceImpl.java#L163-L174
67,668
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionManagerServiceImpl.java
ConnectionManagerServiceImpl.destroyConnectionFactories
@Override public void destroyConnectionFactories() { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) { final String pmName; if (pm != null) pmName = pm.getUniqueId(); else pmName = "fact...
java
@Override public void destroyConnectionFactories() { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) { final String pmName; if (pm != null) pmName = pm.getUniqueId(); else pmName = "fact...
[ "@", "Override", "public", "void", "destroyConnectionFactories", "(", ")", "{", "final", "boolean", "trace", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "trace", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "final",...
Destroy all connection factories that are using this connection manager service. @param svc the connection factory service. @throws InstanceNotFoundException @throws MBeanRegistrationException
[ "Destroy", "all", "connection", "factories", "that", "are", "using", "this", "connection", "manager", "service", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionManagerServiceImpl.java#L245-L279
67,669
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionManagerServiceImpl.java
ConnectionManagerServiceImpl.getCMConfigData
private final CMConfigData getCMConfigData(AbstractConnectionFactoryService cfSvc, ResourceInfo refInfo) { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) Tr.entry(this, tc, "getCMConfigData"); // Defaults for direct lookup int a...
java
private final CMConfigData getCMConfigData(AbstractConnectionFactoryService cfSvc, ResourceInfo refInfo) { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) Tr.entry(this, tc, "getCMConfigData"); // Defaults for direct lookup int a...
[ "private", "final", "CMConfigData", "getCMConfigData", "(", "AbstractConnectionFactoryService", "cfSvc", ",", "ResourceInfo", "refInfo", ")", "{", "final", "boolean", "trace", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "trace", "&&"...
Construct the CMConfigData, including properties from the resource reference, if applicable. @param cfSvc connection factory service @param ref resource reference. @return com.ibm.ejs.j2c.CMConfigData
[ "Construct", "the", "CMConfigData", "including", "properties", "from", "the", "resource", "reference", "if", "applicable", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionManagerServiceImpl.java#L288-L330
67,670
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionManagerServiceImpl.java
ConnectionManagerServiceImpl.getConnectionManager
@Override public ConnectionManager getConnectionManager(ResourceInfo refInfo, AbstractConnectionFactoryService svc) throws ResourceException { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) Tr.entry(this, tc, "getConnectionManager", refInfo...
java
@Override public ConnectionManager getConnectionManager(ResourceInfo refInfo, AbstractConnectionFactoryService svc) throws ResourceException { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) Tr.entry(this, tc, "getConnectionManager", refInfo...
[ "@", "Override", "public", "ConnectionManager", "getConnectionManager", "(", "ResourceInfo", "refInfo", ",", "AbstractConnectionFactoryService", "svc", ")", "throws", "ResourceException", "{", "final", "boolean", "trace", "=", "TraceComponent", ".", "isAnyTracingEnabled", ...
Returns the connection manager for this configuration. This method lazily initializes the connection manager service if necessary. @param ref reference to the connection factory. @param svc the connection factory service @return the connection manager for this configuration. @throws ResourceException if an error occur...
[ "Returns", "the", "connection", "manager", "for", "this", "configuration", ".", "This", "method", "lazily", "initializes", "the", "connection", "manager", "service", "if", "necessary", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionManagerServiceImpl.java#L341-L387
67,671
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionManagerServiceImpl.java
ConnectionManagerServiceImpl.toHashMap
private final static HashMap<String, String> toHashMap(List<? extends ResourceInfo.Property> propList) { if (propList == null) return null; HashMap<String, String> propMap = new HashMap<String, String>(); for (ResourceInfo.Property prop : propList) propMap.put(prop.getNa...
java
private final static HashMap<String, String> toHashMap(List<? extends ResourceInfo.Property> propList) { if (propList == null) return null; HashMap<String, String> propMap = new HashMap<String, String>(); for (ResourceInfo.Property prop : propList) propMap.put(prop.getNa...
[ "private", "final", "static", "HashMap", "<", "String", ",", "String", ">", "toHashMap", "(", "List", "<", "?", "extends", "ResourceInfo", ".", "Property", ">", "propList", ")", "{", "if", "(", "propList", "==", "null", ")", "return", "null", ";", "HashM...
Utility method that converts a list of properties to HashMap. @param propList list of name/value pairs @return mapping of name/value pairs
[ "Utility", "method", "that", "converts", "a", "list", "of", "properties", "to", "HashMap", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionManagerServiceImpl.java#L666-L675
67,672
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.iiop/src/com/ibm/ws/transport/iiop/internal/WSPortableRemoteObjectImpl.java
WSPortableRemoteObjectImpl.narrow
@Override @FFDCIgnore(BAD_OPERATION.class) public Object narrow(Object narrowFrom, @SuppressWarnings("rawtypes") Class narrowTo) throws ClassCastException { if (narrowFrom == null) { return null; } if (narrowTo.isInstance(narrowFrom)) { if (TraceComponent.isAnyTr...
java
@Override @FFDCIgnore(BAD_OPERATION.class) public Object narrow(Object narrowFrom, @SuppressWarnings("rawtypes") Class narrowTo) throws ClassCastException { if (narrowFrom == null) { return null; } if (narrowTo.isInstance(narrowFrom)) { if (TraceComponent.isAnyTr...
[ "@", "Override", "@", "FFDCIgnore", "(", "BAD_OPERATION", ".", "class", ")", "public", "Object", "narrow", "(", "Object", "narrowFrom", ",", "@", "SuppressWarnings", "(", "\"rawtypes\"", ")", "Class", "narrowTo", ")", "throws", "ClassCastException", "{", "if", ...
An implementation of narrow that always attempts to load stub classes from the class loader before dynamically generating a stub class.
[ "An", "implementation", "of", "narrow", "that", "always", "attempts", "to", "load", "stub", "classes", "from", "the", "class", "loader", "before", "dynamically", "generating", "a", "stub", "class", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.iiop/src/com/ibm/ws/transport/iiop/internal/WSPortableRemoteObjectImpl.java#L36-L89
67,673
OpenLiberty/open-liberty
dev/com.ibm.ws.jpa.container.ormdiagnostics/src/com/ibm/ws/jpa/diagnostics/puscanner/PersistenceUnitScanner.java
PersistenceUnitScanner.scanClasses
private void scanClasses() throws PersistenceUnitScannerException { try { for (URL url : urlSet) { final HashSet<ClassInfoType> citSet = new HashSet<ClassInfoType>(); final String urlProtocol = url.getProtocol(); if ("file".equalsIgnoreCase(urlProtocol...
java
private void scanClasses() throws PersistenceUnitScannerException { try { for (URL url : urlSet) { final HashSet<ClassInfoType> citSet = new HashSet<ClassInfoType>(); final String urlProtocol = url.getProtocol(); if ("file".equalsIgnoreCase(urlProtocol...
[ "private", "void", "scanClasses", "(", ")", "throws", "PersistenceUnitScannerException", "{", "try", "{", "for", "(", "URL", "url", ":", "urlSet", ")", "{", "final", "HashSet", "<", "ClassInfoType", ">", "citSet", "=", "new", "HashSet", "<", "ClassInfoType", ...
Scan classes in persistence unit root and referenced jar-files
[ "Scan", "classes", "in", "persistence", "unit", "root", "and", "referenced", "jar", "-", "files" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.ormdiagnostics/src/com/ibm/ws/jpa/diagnostics/puscanner/PersistenceUnitScanner.java#L92-L121
67,674
OpenLiberty/open-liberty
dev/com.ibm.ws.jpa.container.ormdiagnostics/src/com/ibm/ws/jpa/diagnostics/puscanner/PersistenceUnitScanner.java
PersistenceUnitScanner.scanEntityMappings
private void scanEntityMappings() throws PersistenceUnitScannerException { /* * From the JPA 2.1 Specification: * * 8.2.1.6.2 Object/relational Mapping Files * An object/relational mapping XML file contains mapping information for the classes listed in it. * ...
java
private void scanEntityMappings() throws PersistenceUnitScannerException { /* * From the JPA 2.1 Specification: * * 8.2.1.6.2 Object/relational Mapping Files * An object/relational mapping XML file contains mapping information for the classes listed in it. * ...
[ "private", "void", "scanEntityMappings", "(", ")", "throws", "PersistenceUnitScannerException", "{", "/*\n * From the JPA 2.1 Specification:\n *\n * 8.2.1.6.2 Object/relational Mapping Files\n * An object/relational mapping XML file contains mapping information for th...
Scan Entity Mappings Files
[ "Scan", "Entity", "Mappings", "Files" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.ormdiagnostics/src/com/ibm/ws/jpa/diagnostics/puscanner/PersistenceUnitScanner.java#L401-L461
67,675
OpenLiberty/open-liberty
dev/com.ibm.ws.jpa.container.ormdiagnostics/src/com/ibm/ws/jpa/diagnostics/puscanner/PersistenceUnitScanner.java
PersistenceUnitScanner.findORMResources
private List<URL> findORMResources(PersistenceUnitInfo pui, String ormFileName) throws IOException { final boolean isMetaInfoOrmXML = "META-INF/orm.xml".equals(ormFileName); final ArrayList<URL> retArr = new ArrayList<URL>(); Enumeration<URL> ormEnum = pui.getClassLoader().getResources(ormFileN...
java
private List<URL> findORMResources(PersistenceUnitInfo pui, String ormFileName) throws IOException { final boolean isMetaInfoOrmXML = "META-INF/orm.xml".equals(ormFileName); final ArrayList<URL> retArr = new ArrayList<URL>(); Enumeration<URL> ormEnum = pui.getClassLoader().getResources(ormFileN...
[ "private", "List", "<", "URL", ">", "findORMResources", "(", "PersistenceUnitInfo", "pui", ",", "String", "ormFileName", ")", "throws", "IOException", "{", "final", "boolean", "isMetaInfoOrmXML", "=", "\"META-INF/orm.xml\"", ".", "equals", "(", "ormFileName", ")", ...
Finds all specified ORM files, by name, constrained in location by the persistence unit root and jar files. @param ormFileName The name of the ORM file to search for @return A List of URLs of resources found by the ClassLoader. Will be an empty List if none are found. @throws IOException
[ "Finds", "all", "specified", "ORM", "files", "by", "name", "constrained", "in", "location", "by", "the", "persistence", "unit", "root", "and", "jar", "files", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.ormdiagnostics/src/com/ibm/ws/jpa/diagnostics/puscanner/PersistenceUnitScanner.java#L470-L502
67,676
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/InternalOutputStream.java
InternalOutputStream.writeSilence
public boolean writeSilence(SIMPMessage m) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "writeSilence", new Object[] { m }); JsMessage jsMsg = m.getMessage(); // There may be Completed ticks af...
java
public boolean writeSilence(SIMPMessage m) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "writeSilence", new Object[] { m }); JsMessage jsMsg = m.getMessage(); // There may be Completed ticks af...
[ "public", "boolean", "writeSilence", "(", "SIMPMessage", "m", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",...
This method uses a Value message to write Silence into the stream, either because a message has been filtered out or because it has been rolled back @param m The value message @return boolean true if the message can be sent downstream message is not sent if it has the RequestedOnly flag set and its tick in the stream...
[ "This", "method", "uses", "a", "Value", "message", "to", "write", "Silence", "into", "the", "stream", "either", "because", "a", "message", "has", "been", "filtered", "out", "or", "because", "it", "has", "been", "rolled", "back" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/InternalOutputStream.java#L597-L651
67,677
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/InternalOutputStream.java
InternalOutputStream.writeSilence
public void writeSilence(ControlSilence m) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "writeSilence", new Object[] { m }); boolean sendMessage = false; // to use in messages sent downstream long complete...
java
public void writeSilence(ControlSilence m) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "writeSilence", new Object[] { m }); boolean sendMessage = false; // to use in messages sent downstream long complete...
[ "public", "void", "writeSilence", "(", "ControlSilence", "m", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",...
This method writes the ticks in a Silence message into the stream It is called when a Silence message arrives from another ME If the RequestedOnly flag in the message is set then the message is only sent on to downstream MEs if they have previously requested it. Otherwise it is always sent. @param m The Silence messag...
[ "This", "method", "writes", "the", "ticks", "in", "a", "Silence", "message", "into", "the", "stream", "It", "is", "called", "when", "a", "Silence", "message", "arrives", "from", "another", "ME", "If", "the", "RequestedOnly", "flag", "in", "the", "message", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/InternalOutputStream.java#L663-L745
67,678
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/InternalOutputStream.java
InternalOutputStream.writeAckPrefix
public void writeAckPrefix(long stamp) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "writeAckPrefix", Long.valueOf(stamp)); synchronized (this) { // SIB0105 // Update controllable health sta...
java
public void writeAckPrefix(long stamp) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "writeAckPrefix", Long.valueOf(stamp)); synchronized (this) { // SIB0105 // Update controllable health sta...
[ "public", "void", "writeAckPrefix", "(", "long", "stamp", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", ...
This method is called when an Ack message is recieved from a downstream ME. It updates the ackPrefix of the stream and then passes the message up to the PubSubInputHandler which will aggregate the Acks from all InternalOutputStreams. @param stamp The ackPrefix
[ "This", "method", "is", "called", "when", "an", "Ack", "message", "is", "recieved", "from", "a", "downstream", "ME", ".", "It", "updates", "the", "ackPrefix", "of", "the", "stream", "and", "then", "passes", "the", "message", "up", "to", "the", "PubSubInput...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/InternalOutputStream.java#L793-L837
67,679
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/InternalOutputStream.java
InternalOutputStream.writeSilenceForced
public void writeSilenceForced(TickRange vtr) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "writeSilenceForced", new Object[] { vtr }); long start = vtr.startstamp; long end = vtr.endstamp; if (TraceComponent.isAnyTracingEnabled() &...
java
public void writeSilenceForced(TickRange vtr) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "writeSilenceForced", new Object[] { vtr }); long start = vtr.startstamp; long end = vtr.endstamp; if (TraceComponent.isAnyTracingEnabled() &...
[ "public", "void", "writeSilenceForced", "(", "TickRange", "vtr", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"writeSilenceForced\"", "...
This method uses a Value TickRange to write Silence into the stream, because a message has expired before it was sent and so needs to be removed from the stream It forces the stream to be updated to Silence without checking the existing state It then updates the upstream control with this new completed prefix @param m...
[ "This", "method", "uses", "a", "Value", "TickRange", "to", "write", "Silence", "into", "the", "stream", "because", "a", "message", "has", "expired", "before", "it", "was", "sent", "and", "so", "needs", "to", "be", "removed", "from", "the", "stream", "It", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/InternalOutputStream.java#L1308-L1353
67,680
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/util/SerializationUtility.java
SerializationUtility.serialize
public static final byte[] serialize(Serializable serializable) throws IOException { if (serializable == null) { return null; } ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); ObjectOutputStream objectOutputStream = null; byte[] result = null; if (null != _instance ){ ...
java
public static final byte[] serialize(Serializable serializable) throws IOException { if (serializable == null) { return null; } ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); ObjectOutputStream objectOutputStream = null; byte[] result = null; if (null != _instance ){ ...
[ "public", "static", "final", "byte", "[", "]", "serialize", "(", "Serializable", "serializable", ")", "throws", "IOException", "{", "if", "(", "serializable", "==", "null", ")", "{", "return", "null", ";", "}", "ByteArrayOutputStream", "byteArrayOutputStream", "...
This serializes an object into a byte array. @param serializable The object to be serialized. @return The serialized object.
[ "This", "serializes", "an", "object", "into", "a", "byte", "array", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/util/SerializationUtility.java#L72-L107
67,681
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.remote.portable.core/src/com/ibm/ejs/persistence/PortableFinderEnumerator.java
PortableFinderEnumerator.nextElement
public Object nextElement() { try { return nextElementR(); } catch (NoMoreElementsException e) { // FFDCFilter.processException(e, CLASS_NAME + ".nextElement", "109", this); throw new NoSuchElementException(); } catch (EnumeratorException e) { ...
java
public Object nextElement() { try { return nextElementR(); } catch (NoMoreElementsException e) { // FFDCFilter.processException(e, CLASS_NAME + ".nextElement", "109", this); throw new NoSuchElementException(); } catch (EnumeratorException e) { ...
[ "public", "Object", "nextElement", "(", ")", "{", "try", "{", "return", "nextElementR", "(", ")", ";", "}", "catch", "(", "NoMoreElementsException", "e", ")", "{", "// FFDCFilter.processException(e, CLASS_NAME + \".nextElement\", \"109\", this);", "throw", "new", "NoSuc...
Obtain the next element from the enumeration
[ "Obtain", "the", "next", "element", "from", "the", "enumeration" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.remote.portable.core/src/com/ibm/ejs/persistence/PortableFinderEnumerator.java#L92-L109
67,682
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.remote.portable.core/src/com/ibm/ejs/persistence/PortableFinderEnumerator.java
PortableFinderEnumerator.hasMoreElements
public boolean hasMoreElements() { try { return hasMoreElementsR(); } catch (NoMoreElementsException e) { // FFDCFilter.processException(e, CLASS_NAME + ".hasMoreElements", "131", this); return false; } catch (EnumeratorException e) { // FFDCFi...
java
public boolean hasMoreElements() { try { return hasMoreElementsR(); } catch (NoMoreElementsException e) { // FFDCFilter.processException(e, CLASS_NAME + ".hasMoreElements", "131", this); return false; } catch (EnumeratorException e) { // FFDCFi...
[ "public", "boolean", "hasMoreElements", "(", ")", "{", "try", "{", "return", "hasMoreElementsR", "(", ")", ";", "}", "catch", "(", "NoMoreElementsException", "e", ")", "{", "// FFDCFilter.processException(e, CLASS_NAME + \".hasMoreElements\", \"131\", this);", "return", "...
Find out if there are any more elements available
[ "Find", "out", "if", "there", "are", "any", "more", "elements", "available" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.remote.portable.core/src/com/ibm/ejs/persistence/PortableFinderEnumerator.java#L114-L131
67,683
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.remote.portable.core/src/com/ibm/ejs/persistence/PortableFinderEnumerator.java
PortableFinderEnumerator.hasMoreElementsR
public synchronized boolean hasMoreElementsR() throws RemoteException, EnumeratorException { if (elements != null && index < elements.length) { return true; } else if (!exhausted) { // Reset our local cache and attempt to fetch the next batch ...
java
public synchronized boolean hasMoreElementsR() throws RemoteException, EnumeratorException { if (elements != null && index < elements.length) { return true; } else if (!exhausted) { // Reset our local cache and attempt to fetch the next batch ...
[ "public", "synchronized", "boolean", "hasMoreElementsR", "(", ")", "throws", "RemoteException", ",", "EnumeratorException", "{", "if", "(", "elements", "!=", "null", "&&", "index", "<", "elements", ".", "length", ")", "{", "return", "true", ";", "}", "else", ...
Find out if there are any more elements available; this method will perform prefetching from the remote result set.
[ "Find", "out", "if", "there", "are", "any", "more", "elements", "available", ";", "this", "method", "will", "perform", "prefetching", "from", "the", "remote", "result", "set", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.remote.portable.core/src/com/ibm/ejs/persistence/PortableFinderEnumerator.java#L142-L170
67,684
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.remote.portable.core/src/com/ibm/ejs/persistence/PortableFinderEnumerator.java
PortableFinderEnumerator.nextNElements
public synchronized Object[] nextNElements(int n) throws RemoteException, EnumeratorException { if (!hasMoreElementsR()) { throw new NoMoreElementsException(); } EJBObject[] remainder = null; final int numCached = elements.length - index; if...
java
public synchronized Object[] nextNElements(int n) throws RemoteException, EnumeratorException { if (!hasMoreElementsR()) { throw new NoMoreElementsException(); } EJBObject[] remainder = null; final int numCached = elements.length - index; if...
[ "public", "synchronized", "Object", "[", "]", "nextNElements", "(", "int", "n", ")", "throws", "RemoteException", ",", "EnumeratorException", "{", "if", "(", "!", "hasMoreElementsR", "(", ")", ")", "{", "throw", "new", "NoMoreElementsException", "(", ")", ";",...
Obtain the next n elements from the enumeration; the array may contain fewer than n elements if the enumeration is exhausted.
[ "Obtain", "the", "next", "n", "elements", "from", "the", "enumeration", ";", "the", "array", "may", "contain", "fewer", "than", "n", "elements", "if", "the", "enumeration", "is", "exhausted", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.remote.portable.core/src/com/ibm/ejs/persistence/PortableFinderEnumerator.java#L189-L229
67,685
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.remote.portable.core/src/com/ibm/ejs/persistence/PortableFinderEnumerator.java
PortableFinderEnumerator.loadEntireCollection
public EJBObject[] loadEntireCollection() { EJBObject[] result = null; try { result = (EJBObject[]) allRemainingElements(); } catch (NoMoreElementsException e) { // FFDCFilter.processException(e, CLASS_NAME + ".loadEntireCollection", // ...
java
public EJBObject[] loadEntireCollection() { EJBObject[] result = null; try { result = (EJBObject[]) allRemainingElements(); } catch (NoMoreElementsException e) { // FFDCFilter.processException(e, CLASS_NAME + ".loadEntireCollection", // ...
[ "public", "EJBObject", "[", "]", "loadEntireCollection", "(", ")", "{", "EJBObject", "[", "]", "result", "=", "null", ";", "try", "{", "result", "=", "(", "EJBObject", "[", "]", ")", "allRemainingElements", "(", ")", ";", "}", "catch", "(", "NoMoreElemen...
Load the entire result set in a greedy fashion. This is required to support methods on the Collection interface
[ "Load", "the", "entire", "result", "set", "in", "a", "greedy", "fashion", ".", "This", "is", "required", "to", "support", "methods", "on", "the", "Collection", "interface" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.remote.portable.core/src/com/ibm/ejs/persistence/PortableFinderEnumerator.java#L248-L277
67,686
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.remote.portable.core/src/com/ibm/ejs/persistence/PortableFinderEnumerator.java
PortableFinderEnumerator.allRemainingElements
public synchronized Object[] allRemainingElements() throws RemoteException, EnumeratorException { if (!hasMoreElementsR()) { throw new NoMoreElementsException(); } EJBObject[] remainder = null; if (!exhausted) { // We must fetch the rema...
java
public synchronized Object[] allRemainingElements() throws RemoteException, EnumeratorException { if (!hasMoreElementsR()) { throw new NoMoreElementsException(); } EJBObject[] remainder = null; if (!exhausted) { // We must fetch the rema...
[ "public", "synchronized", "Object", "[", "]", "allRemainingElements", "(", ")", "throws", "RemoteException", ",", "EnumeratorException", "{", "if", "(", "!", "hasMoreElementsR", "(", ")", ")", "{", "throw", "new", "NoMoreElementsException", "(", ")", ";", "}", ...
Obtain all of the remaining elements from the enumeration
[ "Obtain", "all", "of", "the", "remaining", "elements", "from", "the", "enumeration" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.remote.portable.core/src/com/ibm/ejs/persistence/PortableFinderEnumerator.java#L282-L336
67,687
OpenLiberty/open-liberty
dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAPxmlInfo.java
JPAPxmlInfo.extractPersistenceUnits
void extractPersistenceUnits(JPAPXml pxml) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "extractPersistenceUnits : " + pxml); // Determines the correct schema version, and uses the correct version // of ...
java
void extractPersistenceUnits(JPAPXml pxml) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "extractPersistenceUnits : " + pxml); // Determines the correct schema version, and uses the correct version // of ...
[ "void", "extractPersistenceUnits", "(", "JPAPXml", "pxml", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entr...
Populates the list of persistence units defined in this persistence.xml. @param pxml @param looseConfig
[ "Populates", "the", "list", "of", "persistence", "units", "defined", "in", "this", "persistence", ".", "xml", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAPxmlInfo.java#L75-L191
67,688
OpenLiberty/open-liberty
dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAPxmlInfo.java
JPAPxmlInfo.close
void close() { synchronized (ivPuList) { for (JPAPUnitInfo puInfo : ivPuList.values()) { puInfo.close(); } ivPuList.clear(); } }
java
void close() { synchronized (ivPuList) { for (JPAPUnitInfo puInfo : ivPuList.values()) { puInfo.close(); } ivPuList.clear(); } }
[ "void", "close", "(", ")", "{", "synchronized", "(", "ivPuList", ")", "{", "for", "(", "JPAPUnitInfo", "puInfo", ":", "ivPuList", ".", "values", "(", ")", ")", "{", "puInfo", ".", "close", "(", ")", ";", "}", "ivPuList", ".", "clear", "(", ")", ";"...
Close all the active EntityManagers declared in this persistence.xml.
[ "Close", "all", "the", "active", "EntityManagers", "declared", "in", "this", "persistence", ".", "xml", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAPxmlInfo.java#L196-L203
67,689
OpenLiberty/open-liberty
dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAPxmlInfo.java
JPAPxmlInfo.addPU
JPAPUnitInfo addPU(String puName, JPAPUnitInfo puInfo) { synchronized (ivPuList) { return ivPuList.put(puName, puInfo); } }
java
JPAPUnitInfo addPU(String puName, JPAPUnitInfo puInfo) { synchronized (ivPuList) { return ivPuList.put(puName, puInfo); } }
[ "JPAPUnitInfo", "addPU", "(", "String", "puName", ",", "JPAPUnitInfo", "puInfo", ")", "{", "synchronized", "(", "ivPuList", ")", "{", "return", "ivPuList", ".", "put", "(", "puName", ",", "puInfo", ")", ";", "}", "}" ]
Adds the puInfo to the collection maintained in this xml info object. @param puName @param puInfo @return JPAUnitInfo just added.
[ "Adds", "the", "puInfo", "to", "the", "collection", "maintained", "in", "this", "xml", "info", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAPxmlInfo.java#L222-L226
67,690
OpenLiberty/open-liberty
dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAPxmlInfo.java
JPAPxmlInfo.toStringBuilder
StringBuilder toStringBuilder(StringBuilder sbuf) { synchronized (ivPuList) { sbuf.append("\n PxmlInfo: ScopeName=").append(ivScopeInfo.getScopeName()).append("\tRootURL = ").append(ivRootURL).append("\t# PUs = ").append(ivPuList.size()).append("\t["); int index = 0; for (JP...
java
StringBuilder toStringBuilder(StringBuilder sbuf) { synchronized (ivPuList) { sbuf.append("\n PxmlInfo: ScopeName=").append(ivScopeInfo.getScopeName()).append("\tRootURL = ").append(ivRootURL).append("\t# PUs = ").append(ivPuList.size()).append("\t["); int index = 0; for (JP...
[ "StringBuilder", "toStringBuilder", "(", "StringBuilder", "sbuf", ")", "{", "synchronized", "(", "ivPuList", ")", "{", "sbuf", ".", "append", "(", "\"\\n PxmlInfo: ScopeName=\"", ")", ".", "append", "(", "ivScopeInfo", ".", "getScopeName", "(", ")", ")", ".", ...
Dump this persistence.xml data to the input StringBuilder.
[ "Dump", "this", "persistence", ".", "xml", "data", "to", "the", "input", "StringBuilder", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAPxmlInfo.java#L253-L267
67,691
OpenLiberty/open-liberty
dev/com.ibm.websphere.security/src/com/ibm/websphere/security/auth/WSSubject.java
WSSubject.restoreInvocationSubject
private static void restoreInvocationSubject(SubjectCookie cookie) { try { if (cookie.token != null) { // We sync'ed the subject's identity to the thread under setInvocationSubject. // Now restore the previous identity using the token returned when we sync'ed. ...
java
private static void restoreInvocationSubject(SubjectCookie cookie) { try { if (cookie.token != null) { // We sync'ed the subject's identity to the thread under setInvocationSubject. // Now restore the previous identity using the token returned when we sync'ed. ...
[ "private", "static", "void", "restoreInvocationSubject", "(", "SubjectCookie", "cookie", ")", "{", "try", "{", "if", "(", "cookie", ".", "token", "!=", "null", ")", "{", "// We sync'ed the subject's identity to the thread under setInvocationSubject. ", "// Now restore the p...
Restore the invocation subject.
[ "Restore", "the", "invocation", "subject", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security/src/com/ibm/websphere/security/auth/WSSubject.java#L595-L610
67,692
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/state/FaultToleranceStateFactory.java
FaultToleranceStateFactory.createRetryState
public RetryState createRetryState(RetryPolicy policy, MetricRecorder metricRecorder) { if (policy == null) { return new RetryStateNullImpl(); } else { return new RetryStateImpl(policy, metricRecorder); } }
java
public RetryState createRetryState(RetryPolicy policy, MetricRecorder metricRecorder) { if (policy == null) { return new RetryStateNullImpl(); } else { return new RetryStateImpl(policy, metricRecorder); } }
[ "public", "RetryState", "createRetryState", "(", "RetryPolicy", "policy", ",", "MetricRecorder", "metricRecorder", ")", "{", "if", "(", "policy", "==", "null", ")", "{", "return", "new", "RetryStateNullImpl", "(", ")", ";", "}", "else", "{", "return", "new", ...
Create an object implementing Retry @param policy the RetryPolicy, may be {@code null} @return a new RetryState
[ "Create", "an", "object", "implementing", "Retry" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/state/FaultToleranceStateFactory.java#L53-L59
67,693
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/state/FaultToleranceStateFactory.java
FaultToleranceStateFactory.createSyncBulkheadState
public SyncBulkheadState createSyncBulkheadState(BulkheadPolicy policy, MetricRecorder metricRecorder) { if (policy == null) { return new SyncBulkheadStateNullImpl(); } else { return new SyncBulkheadStateImpl(policy, metricRecorder); } }
java
public SyncBulkheadState createSyncBulkheadState(BulkheadPolicy policy, MetricRecorder metricRecorder) { if (policy == null) { return new SyncBulkheadStateNullImpl(); } else { return new SyncBulkheadStateImpl(policy, metricRecorder); } }
[ "public", "SyncBulkheadState", "createSyncBulkheadState", "(", "BulkheadPolicy", "policy", ",", "MetricRecorder", "metricRecorder", ")", "{", "if", "(", "policy", "==", "null", ")", "{", "return", "new", "SyncBulkheadStateNullImpl", "(", ")", ";", "}", "else", "{"...
Create an object implementing a synchronous Bulkhead @param policy the BulkheadPolicy, may be {@code null} @return a new SyncBulkheadState
[ "Create", "an", "object", "implementing", "a", "synchronous", "Bulkhead" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/state/FaultToleranceStateFactory.java#L67-L73
67,694
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/state/FaultToleranceStateFactory.java
FaultToleranceStateFactory.createTimeoutState
public TimeoutState createTimeoutState(ScheduledExecutorService executorService, TimeoutPolicy policy, MetricRecorder metricRecorder) { if (policy == null) { return new TimeoutStateNullImpl(); } else { return new TimeoutStateImpl(executorService, policy, metricRecorder); ...
java
public TimeoutState createTimeoutState(ScheduledExecutorService executorService, TimeoutPolicy policy, MetricRecorder metricRecorder) { if (policy == null) { return new TimeoutStateNullImpl(); } else { return new TimeoutStateImpl(executorService, policy, metricRecorder); ...
[ "public", "TimeoutState", "createTimeoutState", "(", "ScheduledExecutorService", "executorService", ",", "TimeoutPolicy", "policy", ",", "MetricRecorder", "metricRecorder", ")", "{", "if", "(", "policy", "==", "null", ")", "{", "return", "new", "TimeoutStateNullImpl", ...
Create an object implementing Timeout @param executorService the executor to use to schedule the timeout callback @param policy the TimeoutPolicy, may be {@code null} @return a new TimeoutState
[ "Create", "an", "object", "implementing", "Timeout" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/state/FaultToleranceStateFactory.java#L82-L88
67,695
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/state/FaultToleranceStateFactory.java
FaultToleranceStateFactory.createCircuitBreakerState
public CircuitBreakerState createCircuitBreakerState(CircuitBreakerPolicy policy, MetricRecorder metricRecorder) { if (policy == null) { return new CircuitBreakerStateNullImpl(); } else { return new CircuitBreakerStateImpl(policy, metricRecorder); } }
java
public CircuitBreakerState createCircuitBreakerState(CircuitBreakerPolicy policy, MetricRecorder metricRecorder) { if (policy == null) { return new CircuitBreakerStateNullImpl(); } else { return new CircuitBreakerStateImpl(policy, metricRecorder); } }
[ "public", "CircuitBreakerState", "createCircuitBreakerState", "(", "CircuitBreakerPolicy", "policy", ",", "MetricRecorder", "metricRecorder", ")", "{", "if", "(", "policy", "==", "null", ")", "{", "return", "new", "CircuitBreakerStateNullImpl", "(", ")", ";", "}", "...
Create an object implementing CircuitBreaker @param policy the CircuitBreakerPolicy, may be {@code null} @return a new CircuitBreakerState
[ "Create", "an", "object", "implementing", "CircuitBreaker" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/state/FaultToleranceStateFactory.java#L96-L102
67,696
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/matching/MessageProcessorSearchResults.java
MessageProcessorSearchResults.getResults
public Object[] getResults(String topic) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getResults", topic); if (cachedResults != null) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "getResults", cachedResults); re...
java
public Object[] getResults(String topic) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getResults", topic); if (cachedResults != null) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "getResults", cachedResults); re...
[ "public", "Object", "[", "]", "getResults", "(", "String", "topic", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getResults\"", ",...
postProcessMatches methods of the handlers.
[ "postProcessMatches", "methods", "of", "the", "handlers", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/matching/MessageProcessorSearchResults.java#L219-L234
67,697
OpenLiberty/open-liberty
dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/token/JWT.java
JWT.createPlainTextJWT
protected String createPlainTextJWT() { com.google.gson.JsonObject header = createHeader(); com.google.gson.JsonObject payload = createPayload(); String plainTextTokenString = computeBaseString(header, payload); StringBuffer sb = new StringBuffer(plainTextTokenString); sb.append...
java
protected String createPlainTextJWT() { com.google.gson.JsonObject header = createHeader(); com.google.gson.JsonObject payload = createPayload(); String plainTextTokenString = computeBaseString(header, payload); StringBuffer sb = new StringBuffer(plainTextTokenString); sb.append...
[ "protected", "String", "createPlainTextJWT", "(", ")", "{", "com", ".", "google", ".", "gson", ".", "JsonObject", "header", "=", "createHeader", "(", ")", ";", "com", ".", "google", ".", "gson", ".", "JsonObject", "payload", "=", "createPayload", "(", ")",...
Creates the plain text JWT.
[ "Creates", "the", "plain", "text", "JWT", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/token/JWT.java#L157-L165
67,698
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/ConnectionDataGroup.java
ConnectionDataGroup.findConnectionDataToUse
private ConnectionData findConnectionDataToUse() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "findConnectionDataToUse"); // Look through the the connection data in this group to try and find // a connection with the lowest use count. ...
java
private ConnectionData findConnectionDataToUse() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "findConnectionDataToUse"); // Look through the the connection data in this group to try and find // a connection with the lowest use count. ...
[ "private", "ConnectionData", "findConnectionDataToUse", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"findConnectionDat...
Helper method, chooses the connection to use for a new conversation. @return The connection data object relating to a connection to use for multiplexing a new conversation with.
[ "Helper", "method", "chooses", "the", "connection", "to", "use", "for", "a", "new", "conversation", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/ConnectionDataGroup.java#L506-L556
67,699
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/ConnectionDataGroup.java
ConnectionDataGroup.doConnect
private Conversation doConnect(ConversationReceiveListener conversationReceiveListener, ConversationUsageType usageType, JFapAddressHolder jfapAddressHolder, final NetworkConnectionFactoryHolder ncfHolder) throws JFapConnectFailedException, SIResourceException { if (TraceC...
java
private Conversation doConnect(ConversationReceiveListener conversationReceiveListener, ConversationUsageType usageType, JFapAddressHolder jfapAddressHolder, final NetworkConnectionFactoryHolder ncfHolder) throws JFapConnectFailedException, SIResourceException { if (TraceC...
[ "private", "Conversation", "doConnect", "(", "ConversationReceiveListener", "conversationReceiveListener", ",", "ConversationUsageType", "usageType", ",", "JFapAddressHolder", "jfapAddressHolder", ",", "final", "NetworkConnectionFactoryHolder", "ncfHolder", ")", "throws", "JFapCo...
Actually do the connecting, creating a new ConnectionData if required @param conversationReceiveListener The receive listener for the conversation @param usageType Usage type for the conversation. @param jfapAddressHolder The holder for jfapAddress over which to connect (if any) @param ncfHolder The holder from which ...
[ "Actually", "do", "the", "connecting", "creating", "a", "new", "ConnectionData", "if", "required" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/ConnectionDataGroup.java#L671-L741