id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
69,400
OpenLiberty/open-liberty
dev/com.ibm.ws.diagnostics/src/com/ibm/ws/diagnostics/java/EnvironmentVariables.java
EnvironmentVariables.getEnvironment
private Map<String, String> getEnvironment() { return AccessController.doPrivileged(new PrivilegedAction<Map<String, String>>() { @Override public Map<String, String> run() { return System.getenv(); } }); }
java
private Map<String, String> getEnvironment() { return AccessController.doPrivileged(new PrivilegedAction<Map<String, String>>() { @Override public Map<String, String> run() { return System.getenv(); } }); }
[ "private", "Map", "<", "String", ",", "String", ">", "getEnvironment", "(", ")", "{", "return", "AccessController", ".", "doPrivileged", "(", "new", "PrivilegedAction", "<", "Map", "<", "String", ",", "String", ">", ">", "(", ")", "{", "@", "Override", "...
Get the system environment variables in a doPrivileged block. @return the process environment variables
[ "Get", "the", "system", "environment", "variables", "in", "a", "doPrivileged", "block", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.diagnostics/src/com/ibm/ws/diagnostics/java/EnvironmentVariables.java#L54-L61
69,401
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/ConfigManager.java
ConfigManager.getDefaultParentForEntityInRealm
public String getDefaultParentForEntityInRealm(String entType, String realmName) throws WIMException { String defaultParent = getDefaultParent(entType); if (realmName != null) { validateRealmName(realmName); String parent = null; RealmConfig realmConfig = getRealmConf...
java
public String getDefaultParentForEntityInRealm(String entType, String realmName) throws WIMException { String defaultParent = getDefaultParent(entType); if (realmName != null) { validateRealmName(realmName); String parent = null; RealmConfig realmConfig = getRealmConf...
[ "public", "String", "getDefaultParentForEntityInRealm", "(", "String", "entType", ",", "String", "realmName", ")", "throws", "WIMException", "{", "String", "defaultParent", "=", "getDefaultParent", "(", "entType", ")", ";", "if", "(", "realmName", "!=", "null", ")...
Gets the default parent node that is for the specified entity type in specified realm. @param entType The entity type. e.g. Person, Group... @param realmName The name of the realm @return The default parent node.
[ "Gets", "the", "default", "parent", "node", "that", "is", "for", "the", "specified", "entity", "type", "in", "specified", "realm", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/ConfigManager.java#L367-L385
69,402
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/ConfigManager.java
ConfigManager.getDefaultParent
public String getDefaultParent(String entityTypeName) { SupportedEntityConfig entityConfig = entityTypeMap.get(entityTypeName); if (entityConfig != null) { return entityConfig.getDefaultParent(); } return null; }
java
public String getDefaultParent(String entityTypeName) { SupportedEntityConfig entityConfig = entityTypeMap.get(entityTypeName); if (entityConfig != null) { return entityConfig.getDefaultParent(); } return null; }
[ "public", "String", "getDefaultParent", "(", "String", "entityTypeName", ")", "{", "SupportedEntityConfig", "entityConfig", "=", "entityTypeMap", ".", "get", "(", "entityTypeName", ")", ";", "if", "(", "entityConfig", "!=", "null", ")", "{", "return", "entityConfi...
Returns the default parent for the given prefixed entity type. Entity types under WIM package should not have any name space prefix. For example, "Person". @param entityTypeName The prefixed entity type. @return The unique name of the default parent of this entity type. If the entity type is not supported, null will b...
[ "Returns", "the", "default", "parent", "for", "the", "given", "prefixed", "entity", "type", ".", "Entity", "types", "under", "WIM", "package", "should", "not", "have", "any", "name", "space", "prefix", ".", "For", "example", "Person", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/ConfigManager.java#L394-L400
69,403
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.faulttolerance.cdi/src/com/ibm/ws/microprofile/faulttolerance/cdi/FaultToleranceCDIExtension.java
FaultToleranceCDIExtension.processMethod
private <T> boolean processMethod(AnnotatedMethod<T> method, Class<?> clazz, Asynchronous classLevelAsync) { FTEnablementConfig config = FaultToleranceCDIComponent.getEnablementConfig(); Method javaMethod = method.getJavaMember(); if (javaMethod.isBridge()) { // Skip all validation ...
java
private <T> boolean processMethod(AnnotatedMethod<T> method, Class<?> clazz, Asynchronous classLevelAsync) { FTEnablementConfig config = FaultToleranceCDIComponent.getEnablementConfig(); Method javaMethod = method.getJavaMember(); if (javaMethod.isBridge()) { // Skip all validation ...
[ "private", "<", "T", ">", "boolean", "processMethod", "(", "AnnotatedMethod", "<", "T", ">", "method", ",", "Class", "<", "?", ">", "clazz", ",", "Asynchronous", "classLevelAsync", ")", "{", "FTEnablementConfig", "config", "=", "FaultToleranceCDIComponent", ".",...
Validate a method and return whether it has fault tolerance annotations which require us to add the FT interceptor @param method the method to process @param clazz the class which declares the method @param classLevelAsync whether the declaring class is annotated with {@code @Asynchronous} @return true if the method r...
[ "Validate", "a", "method", "and", "return", "whether", "it", "has", "fault", "tolerance", "annotations", "which", "require", "us", "to", "add", "the", "FT", "interceptor" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance.cdi/src/com/ibm/ws/microprofile/faulttolerance/cdi/FaultToleranceCDIExtension.java#L156-L211
69,404
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/ws/Transaction/JTS/Configuration.java
Configuration.setServerName
public static final void setServerName(String name) { if (tc.isDebugEnabled()) Tr.debug(tc, "setServerName", name); // Store the server name. serverName = name; }
java
public static final void setServerName(String name) { if (tc.isDebugEnabled()) Tr.debug(tc, "setServerName", name); // Store the server name. serverName = name; }
[ "public", "static", "final", "void", "setServerName", "(", "String", "name", ")", "{", "if", "(", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", "\"setServerName\"", ",", "name", ")", ";", "// Store the server name.", "serv...
Sets the name of the server. @param name The server name. Non-recoverable servers have null.
[ "Sets", "the", "name", "of", "the", "server", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/ws/Transaction/JTS/Configuration.java#L43-L50
69,405
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/ws/Transaction/JTS/Configuration.java
Configuration.isRecoverable
public static final boolean isRecoverable() { if (tc.isEntryEnabled()) Tr.entry(tc, "isRecoverable"); // This JTS is recoverable if there is a server name. // boolean result = (serverName != null); // JTA2 - we are recoverable if we have a working log... // We ca...
java
public static final boolean isRecoverable() { if (tc.isEntryEnabled()) Tr.entry(tc, "isRecoverable"); // This JTS is recoverable if there is a server name. // boolean result = (serverName != null); // JTA2 - we are recoverable if we have a working log... // We ca...
[ "public", "static", "final", "boolean", "isRecoverable", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"isRecoverable\"", ")", ";", "// This JTS is recoverable if there is a server name.", "// boolean r...
Determines whether the JTS instance is recoverable. @return Indicates whether the JTS is recoverable.
[ "Determines", "whether", "the", "JTS", "instance", "is", "recoverable", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/ws/Transaction/JTS/Configuration.java#L72-L93
69,406
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/ws/Transaction/JTS/Configuration.java
Configuration.setCurrentEpoch
public static final void setCurrentEpoch(int number) { if (tc.isDebugEnabled()) Tr.debug(tc, "setCurrentEpoch", number); currentEpoch = number; }
java
public static final void setCurrentEpoch(int number) { if (tc.isDebugEnabled()) Tr.debug(tc, "setCurrentEpoch", number); currentEpoch = number; }
[ "public", "static", "final", "void", "setCurrentEpoch", "(", "int", "number", ")", "{", "if", "(", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", "\"setCurrentEpoch\"", ",", "number", ")", ";", "currentEpoch", "=", "numbe...
Sets the current epoch value for this server instance. Initially on a cold start the valus is 1, and this is incremented on each warm start after extracting the previous value from the transactions log. The epoch value is used to create unique global transaction identifiers. On each cold start we also create a new app...
[ "Sets", "the", "current", "epoch", "value", "for", "this", "server", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/ws/Transaction/JTS/Configuration.java#L107-L113
69,407
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/ws/Transaction/JTS/Configuration.java
Configuration.setApplId
public static final void setApplId(byte[] name) { if (tc.isDebugEnabled()) Tr.debug(tc, "setApplId", name); // Store the applId. applId = name; }
java
public static final void setApplId(byte[] name) { if (tc.isDebugEnabled()) Tr.debug(tc, "setApplId", name); // Store the applId. applId = name; }
[ "public", "static", "final", "void", "setApplId", "(", "byte", "[", "]", "name", ")", "{", "if", "(", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", "\"setApplId\"", ",", "name", ")", ";", "// Store the applId.", "applI...
Sets the applId of the server. @param name The applId. Non-recoverable servers may have an applId but no name.
[ "Sets", "the", "applId", "of", "the", "server", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/ws/Transaction/JTS/Configuration.java#L132-L139
69,408
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/ConversionManager.java
ConversionManager.convertCompatible
protected ConversionStatus convertCompatible(String rawString, Class<?> type) { ConversionStatus status = new ConversionStatus(); for (PriorityConverter con : converters.getAll()) { Type key = con.getType(); if (key instanceof Class) { Class<?> clazz = (Class<?>) ...
java
protected ConversionStatus convertCompatible(String rawString, Class<?> type) { ConversionStatus status = new ConversionStatus(); for (PriorityConverter con : converters.getAll()) { Type key = con.getType(); if (key instanceof Class) { Class<?> clazz = (Class<?>) ...
[ "protected", "ConversionStatus", "convertCompatible", "(", "String", "rawString", ",", "Class", "<", "?", ">", "type", ")", "{", "ConversionStatus", "status", "=", "new", "ConversionStatus", "(", ")", ";", "for", "(", "PriorityConverter", "con", ":", "converters...
Converts from String based on isAssignableFrom or instanceof @param rawString @param type @return ConversionStatus<T> whether a converter is found and the converted value
[ "Converts", "from", "String", "based", "on", "isAssignableFrom", "or", "instanceof" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/ConversionManager.java#L213-L234
69,409
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/ConversionManager.java
ConversionManager.convertArray
public <T> T[] convertArray(String rawString, Class<T> arrayType) { String[] elements = split(rawString); T[] array = convertArray(elements, arrayType); return array; }
java
public <T> T[] convertArray(String rawString, Class<T> arrayType) { String[] elements = split(rawString); T[] array = convertArray(elements, arrayType); return array; }
[ "public", "<", "T", ">", "T", "[", "]", "convertArray", "(", "String", "rawString", ",", "Class", "<", "T", ">", "arrayType", ")", "{", "String", "[", "]", "elements", "=", "split", "(", "rawString", ")", ";", "T", "[", "]", "array", "=", "convertA...
Apply convert across an array @param rawString @param arrayType @return an array of converted T objects.
[ "Apply", "convert", "across", "an", "array" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/ConversionManager.java#L270-L275
69,410
OpenLiberty/open-liberty
dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/utils/JspTranslatorUtil.java
JspTranslatorUtil.toClass
public static Class toClass(String type, ClassLoader loader) throws ClassNotFoundException { if(com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable(Level.FINER)){ logger.logp(Level.FINER, CLASS_NAME, "toClass(String, ClassLoader)"," type= ["+type+"] loader= ["+loa...
java
public static Class toClass(String type, ClassLoader loader) throws ClassNotFoundException { if(com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable(Level.FINER)){ logger.logp(Level.FINER, CLASS_NAME, "toClass(String, ClassLoader)"," type= ["+type+"] loader= ["+loa...
[ "public", "static", "Class", "toClass", "(", "String", "type", ",", "ClassLoader", "loader", ")", "throws", "ClassNotFoundException", "{", "if", "(", "com", ".", "ibm", ".", "ejs", ".", "ras", ".", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&"...
PM12828 - need to account for a case where type is [Lcom.ibm.sample.TagsAttr;
[ "PM12828", "-", "need", "to", "account", "for", "a", "case", "where", "type", "is", "[", "Lcom", ".", "ibm", ".", "sample", ".", "TagsAttr", ";" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/utils/JspTranslatorUtil.java#L560-L618
69,411
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/impl/DefaultFaceletFactory.java
DefaultFaceletFactory.getFacelet
@Override public Facelet getFacelet(URL url) throws IOException, FaceletException, FacesException, ELException { return _faceletCache.getFacelet(url); }
java
@Override public Facelet getFacelet(URL url) throws IOException, FaceletException, FacesException, ELException { return _faceletCache.getFacelet(url); }
[ "@", "Override", "public", "Facelet", "getFacelet", "(", "URL", "url", ")", "throws", "IOException", ",", "FaceletException", ",", "FacesException", ",", "ELException", "{", "return", "_faceletCache", ".", "getFacelet", "(", "url", ")", ";", "}" ]
Create a Facelet from the passed URL. This method checks if the cached Facelet needs to be refreshed before returning. If so, uses the passed URL to build a new instance; @param url source url @return Facelet instance @throws IOException @throws FaceletException @throws FacesException @throws ELException
[ "Create", "a", "Facelet", "from", "the", "passed", "URL", ".", "This", "method", "checks", "if", "the", "cached", "Facelet", "needs", "to", "be", "refreshed", "before", "returning", ".", "If", "so", "uses", "the", "passed", "URL", "to", "build", "a", "ne...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/impl/DefaultFaceletFactory.java#L261-L265
69,412
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/impl/DefaultFaceletFactory.java
DefaultFaceletFactory._removeFirst
private String _removeFirst(String string, String toRemove) { // do exactly what String.replaceFirst(toRemove, "") internally does, // except treating the search as literal text and not as regex return Pattern.compile(toRemove, Pattern.LITERAL).matcher(string).replaceFirst(""); }
java
private String _removeFirst(String string, String toRemove) { // do exactly what String.replaceFirst(toRemove, "") internally does, // except treating the search as literal text and not as regex return Pattern.compile(toRemove, Pattern.LITERAL).matcher(string).replaceFirst(""); }
[ "private", "String", "_removeFirst", "(", "String", "string", ",", "String", "toRemove", ")", "{", "// do exactly what String.replaceFirst(toRemove, \"\") internally does,", "// except treating the search as literal text and not as regex", "return", "Pattern", ".", "compile", "(", ...
Removes the first appearance of toRemove in string. Works just like string.replaceFirst(toRemove, ""), except that toRemove is not treated as a regex (which could cause problems with filenames). @param string @param toRemove @return
[ "Removes", "the", "first", "appearance", "of", "toRemove", "in", "string", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/impl/DefaultFaceletFactory.java#L613-L619
69,413
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/MessageDrivenBeanO.java
MessageDrivenBeanO.initialize
@Override protected void initialize(boolean reactivate) throws RemoteException, InvocationTargetException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "initialize"); } BeanMetaData bmd = home.beanM...
java
@Override protected void initialize(boolean reactivate) throws RemoteException, InvocationTargetException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "initialize"); } BeanMetaData bmd = home.beanM...
[ "@", "Override", "protected", "void", "initialize", "(", "boolean", "reactivate", ")", "throws", "RemoteException", ",", "InvocationTargetException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", ...
d399469.2 - added entire method.
[ "d399469", ".", "2", "-", "added", "entire", "method", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/MessageDrivenBeanO.java#L111-L260
69,414
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/MessageDrivenBeanO.java
MessageDrivenBeanO.discard
@Override public void discard() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "discard"); } discarded = true; if (state == DESTROYED) { return; } setState(DESTR...
java
@Override public void discard() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "discard"); } discarded = true; if (state == DESTROYED) { return; } setState(DESTR...
[ "@", "Override", "public", "void", "discard", "(", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "Tr", ".", "ent...
167937 - rewrote entire method.
[ "167937", "-", "rewrote", "entire", "method", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/MessageDrivenBeanO.java#L300-L328
69,415
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/MessageDrivenBeanO.java
MessageDrivenBeanO.remove
@Override public final void remove() throws RemoteException, RemoveException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "remove"); throw new InvalidBeanOStateException(StateStrs[state], "NONE" + ...
java
@Override public final void remove() throws RemoteException, RemoveException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "remove"); throw new InvalidBeanOStateException(StateStrs[state], "NONE" + ...
[ "@", "Override", "public", "final", "void", "remove", "(", ")", "throws", "RemoteException", ",", "RemoveException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug",...
This method should never really get invoked for message driven beans, there is no home interface on which to invoke it.
[ "This", "method", "should", "never", "really", "get", "invoked", "for", "message", "driven", "beans", "there", "is", "no", "home", "interface", "on", "which", "to", "invoke", "it", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/MessageDrivenBeanO.java#L476-L482
69,416
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/MessageDrivenBeanO.java
MessageDrivenBeanO.getIsolationLevel
@Override public int getIsolationLevel() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getIsolationLevel : " + currentIsolationLevel); return currentIsolationLevel; }
java
@Override public int getIsolationLevel() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getIsolationLevel : " + currentIsolationLevel); return currentIsolationLevel; }
[ "@", "Override", "public", "int", "getIsolationLevel", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", "\"getIsolationLevel : \"", "+", ...
Get isolation level currently associated with this session bean instance. This is used for determining the isolation level to use in a bean managed transaction. The current isolation level is maintained in a stack with the assistance of the EJSDeployedSupport instance passed to preInvoke/postInvoke.
[ "Get", "isolation", "level", "currently", "associated", "with", "this", "session", "bean", "instance", ".", "This", "is", "used", "for", "determining", "the", "isolation", "level", "to", "use", "in", "a", "bean", "managed", "transaction", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/MessageDrivenBeanO.java#L506-L511
69,417
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/MessageDrivenBeanO.java
MessageDrivenBeanO.getUserTransaction
@Override public synchronized UserTransaction getUserTransaction() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "getUserTransaction"); // Calling getUserTransaction is not allowed from setMessageDrivenContex...
java
@Override public synchronized UserTransaction getUserTransaction() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "getUserTransaction"); // Calling getUserTransaction is not allowed from setMessageDrivenContex...
[ "@", "Override", "public", "synchronized", "UserTransaction", "getUserTransaction", "(", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "(", ...
Get user transaction object bean can use to demarcate transactions
[ "Get", "user", "transaction", "object", "bean", "can", "use", "to", "demarcate", "transactions" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/MessageDrivenBeanO.java#L694-L719
69,418
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/MessageDrivenBeanO.java
MessageDrivenBeanO.getEJBHome
@Override public EJBHome getEJBHome() //d116376 { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getEJBHome"); Tr.error(tc, "METHOD_NOT_ALLOWED_CNTR0047E", "MessageDrivenBeanO.getEJBHome()"); throw new IllegalStateException("Method Not Allowed ...
java
@Override public EJBHome getEJBHome() //d116376 { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getEJBHome"); Tr.error(tc, "METHOD_NOT_ALLOWED_CNTR0047E", "MessageDrivenBeanO.getEJBHome()"); throw new IllegalStateException("Method Not Allowed ...
[ "@", "Override", "public", "EJBHome", "getEJBHome", "(", ")", "//d116376", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", "\"getEJBHome\"", ")", ...
getEJBHome - It is illegal to call this method message-driven bean methods because there is no EJBHome object for message-driven beans.
[ "getEJBHome", "-", "It", "is", "illegal", "to", "call", "this", "method", "message", "-", "driven", "bean", "methods", "because", "there", "is", "no", "EJBHome", "object", "for", "message", "-", "driven", "beans", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/MessageDrivenBeanO.java#L852-L859
69,419
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/MessageDrivenBeanO.java
MessageDrivenBeanO.getEJBLocalHome
@Override public EJBLocalHome getEJBLocalHome() //d116376 { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getEJBLocalHome"); Tr.error(tc, "METHOD_NOT_ALLOWED_CNTR0047E", "MessageDrivenBeanO.getEJBLocalHome()"); throw new Illeg...
java
@Override public EJBLocalHome getEJBLocalHome() //d116376 { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getEJBLocalHome"); Tr.error(tc, "METHOD_NOT_ALLOWED_CNTR0047E", "MessageDrivenBeanO.getEJBLocalHome()"); throw new Illeg...
[ "@", "Override", "public", "EJBLocalHome", "getEJBLocalHome", "(", ")", "//d116376", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", "\"getEJBLocalH...
getEJBLocalHome - It is illegal to call this method message-driven bean methods because there is no EJBLocalHome object for message-driven beans.
[ "getEJBLocalHome", "-", "It", "is", "illegal", "to", "call", "this", "method", "message", "-", "driven", "bean", "methods", "because", "there", "is", "no", "EJBLocalHome", "object", "for", "message", "-", "driven", "beans", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/MessageDrivenBeanO.java#L866-L874
69,420
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/KeystoreConfig.java
KeystoreConfig.updateRegistration
synchronized void updateRegistration(BundleContext ctx) { if (registration == null) { registration = ctx.registerService(KeystoreConfig.class, this, properties); } else { registration.setProperties(properties); } }
java
synchronized void updateRegistration(BundleContext ctx) { if (registration == null) { registration = ctx.registerService(KeystoreConfig.class, this, properties); } else { registration.setProperties(properties); } }
[ "synchronized", "void", "updateRegistration", "(", "BundleContext", "ctx", ")", "{", "if", "(", "registration", "==", "null", ")", "{", "registration", "=", "ctx", ".", "registerService", "(", "KeystoreConfig", ".", "class", ",", "this", ",", "properties", ")"...
Register this as a service in the service registry. Package private. @param ctx Bundle context to register service with.
[ "Register", "this", "as", "a", "service", "in", "the", "service", "registry", ".", "Package", "private", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/KeystoreConfig.java#L109-L115
69,421
OpenLiberty/open-liberty
dev/com.ibm.ws.security.utility/src/com/ibm/ws/security/utility/tasks/HelpTask.java
HelpTask.taskHelp
private String taskHelp(SecurityUtilityTask task) { StringBuffer taskUsage = new StringBuffer(NL); taskUsage.append(task.getTaskHelp()); taskUsage.append(NL); return taskUsage.toString(); }
java
private String taskHelp(SecurityUtilityTask task) { StringBuffer taskUsage = new StringBuffer(NL); taskUsage.append(task.getTaskHelp()); taskUsage.append(NL); return taskUsage.toString(); }
[ "private", "String", "taskHelp", "(", "SecurityUtilityTask", "task", ")", "{", "StringBuffer", "taskUsage", "=", "new", "StringBuffer", "(", "NL", ")", ";", "taskUsage", ".", "append", "(", "task", ".", "getTaskHelp", "(", ")", ")", ";", "taskUsage", ".", ...
Constructs a string to represent the help for a particular task. @param task @return
[ "Constructs", "a", "string", "to", "represent", "the", "help", "for", "a", "particular", "task", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.utility/src/com/ibm/ws/security/utility/tasks/HelpTask.java#L123-L128
69,422
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ComponentAttributesMap.java
_ComponentAttributesMap.getComponentProperty
private Object getComponentProperty(_PropertyDescriptorHolder propertyDescriptor) { Method readMethod = propertyDescriptor.getReadMethod(); if (readMethod == null) { throw new IllegalArgumentException("Component property " + propertyDescriptor.getName() ...
java
private Object getComponentProperty(_PropertyDescriptorHolder propertyDescriptor) { Method readMethod = propertyDescriptor.getReadMethod(); if (readMethod == null) { throw new IllegalArgumentException("Component property " + propertyDescriptor.getName() ...
[ "private", "Object", "getComponentProperty", "(", "_PropertyDescriptorHolder", "propertyDescriptor", ")", "{", "Method", "readMethod", "=", "propertyDescriptor", ".", "getReadMethod", "(", ")", ";", "if", "(", "readMethod", "==", "null", ")", "{", "throw", "new", ...
Execute the getter method of the specified property on the underlying component. @param propertyDescriptor specifies which property to read. @return the value returned by the getter method. @throws IllegalArgumentException if the property is not readable. @throws FacesException if any other problem occurs wh...
[ "Execute", "the", "getter", "method", "of", "the", "specified", "property", "on", "the", "underlying", "component", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ComponentAttributesMap.java#L676-L694
69,423
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ComponentAttributesMap.java
_ComponentAttributesMap.setComponentProperty
private void setComponentProperty(_PropertyDescriptorHolder propertyDescriptor, Object value) { Method writeMethod = propertyDescriptor.getWriteMethod(); if (writeMethod == null) { throw new IllegalArgumentException("Component property " + propertyDescriptor.getName() ...
java
private void setComponentProperty(_PropertyDescriptorHolder propertyDescriptor, Object value) { Method writeMethod = propertyDescriptor.getWriteMethod(); if (writeMethod == null) { throw new IllegalArgumentException("Component property " + propertyDescriptor.getName() ...
[ "private", "void", "setComponentProperty", "(", "_PropertyDescriptorHolder", "propertyDescriptor", ",", "Object", "value", ")", "{", "Method", "writeMethod", "=", "propertyDescriptor", ".", "getWriteMethod", "(", ")", ";", "if", "(", "writeMethod", "==", "null", ")"...
Execute the setter method of the specified property on the underlying component. @param propertyDescriptor specifies which property to write. @throws IllegalArgumentException if the property is not writable. @throws FacesException if any other problem occurs while invoking the getter method.
[ "Execute", "the", "setter", "method", "of", "the", "specified", "property", "on", "the", "underlying", "component", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_ComponentAttributesMap.java#L705-L724
69,424
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/metadata/builder/EndpointInfoBuilder.java
EndpointInfoBuilder.build
public EndpointInfo build(EndpointInfoBuilderContext ctx, String serviceImplBeanClassName, EndpointType endpointType) throws UnableToAdaptException { EndpointInfo endpointInfo = new EndpointInfo(serviceImplBeanClassName, endpointType); endpointInfo.setBeanName((String) ctx.getContextEnv(JaxWsConstants....
java
public EndpointInfo build(EndpointInfoBuilderContext ctx, String serviceImplBeanClassName, EndpointType endpointType) throws UnableToAdaptException { EndpointInfo endpointInfo = new EndpointInfo(serviceImplBeanClassName, endpointType); endpointInfo.setBeanName((String) ctx.getContextEnv(JaxWsConstants....
[ "public", "EndpointInfo", "build", "(", "EndpointInfoBuilderContext", "ctx", ",", "String", "serviceImplBeanClassName", ",", "EndpointType", "endpointType", ")", "throws", "UnableToAdaptException", "{", "EndpointInfo", "endpointInfo", "=", "new", "EndpointInfo", "(", "ser...
build the endpointInfo @param ctx @return @throws Exception
[ "build", "the", "endpointInfo" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/metadata/builder/EndpointInfoBuilder.java#L88-L102
69,425
OpenLiberty/open-liberty
dev/com.ibm.ws.collector.manager/src/com/ibm/ws/collector/manager/internal/SourceManager.java
SourceManager.addSubscriber
public void addSubscriber(Handler handler) { String handlerId = CollectorManagerUtils.getHandlerId(handler); //temporary exception for audit Source //must change later if (source.getSourceName().trim().equals("audit") && subscribers.isEmpty()) { //First subscriber, assign a buffer....
java
public void addSubscriber(Handler handler) { String handlerId = CollectorManagerUtils.getHandlerId(handler); //temporary exception for audit Source //must change later if (source.getSourceName().trim().equals("audit") && subscribers.isEmpty()) { //First subscriber, assign a buffer....
[ "public", "void", "addSubscriber", "(", "Handler", "handler", ")", "{", "String", "handlerId", "=", "CollectorManagerUtils", ".", "getHandlerId", "(", "handler", ")", ";", "//temporary exception for audit Source //must change later", "if", "(", "source", ".", "getSourc...
Method to add a subscriber to the source Source manager will allocate a buffer when the source has atleast one subscriber. @param handler The handler that is to be added as subscriber
[ "Method", "to", "add", "a", "subscriber", "to", "the", "source", "Source", "manager", "will", "allocate", "a", "buffer", "when", "the", "source", "has", "atleast", "one", "subscriber", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.collector.manager/src/com/ibm/ws/collector/manager/internal/SourceManager.java#L84-L108
69,426
OpenLiberty/open-liberty
dev/com.ibm.ws.collector.manager/src/com/ibm/ws/collector/manager/internal/SourceManager.java
SourceManager.removeSubscriber
public boolean removeSubscriber(Handler handler) { String handlerId = CollectorManagerUtils.getHandlerId(handler); subscribers.remove(handlerId); /* * Inform the handler that this source/buffer will no longer be available: * Synchronous Handler: Remove the synchronous handler f...
java
public boolean removeSubscriber(Handler handler) { String handlerId = CollectorManagerUtils.getHandlerId(handler); subscribers.remove(handlerId); /* * Inform the handler that this source/buffer will no longer be available: * Synchronous Handler: Remove the synchronous handler f...
[ "public", "boolean", "removeSubscriber", "(", "Handler", "handler", ")", "{", "String", "handlerId", "=", "CollectorManagerUtils", ".", "getHandlerId", "(", "handler", ")", ";", "subscribers", ".", "remove", "(", "handlerId", ")", ";", "/*\n * Inform the han...
Method to remove a subscriber from the source Source manager deallocate BufferManager when last subscriber goes away @param handler The handler that is to be removed as subscriber @return a boolean to indicate whether last subscriber has been removed, true for yes false for no
[ "Method", "to", "remove", "a", "subscriber", "from", "the", "source", "Source", "manager", "deallocate", "BufferManager", "when", "last", "subscriber", "goes", "away" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.collector.manager/src/com/ibm/ws/collector/manager/internal/SourceManager.java#L117-L149
69,427
OpenLiberty/open-liberty
dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/internal/JwtTokenException.java
JwtTokenException.handleFfdc
public void handleFfdc() { if (!bFfdcAlready) { com.ibm.ws.ffdc.FFDCFilter.processException(this, "com.ibm.websphere.security.jwt.JwtTokenException", "155", this); bFfdcAlready = true; } }
java
public void handleFfdc() { if (!bFfdcAlready) { com.ibm.ws.ffdc.FFDCFilter.processException(this, "com.ibm.websphere.security.jwt.JwtTokenException", "155", this); bFfdcAlready = true; } }
[ "public", "void", "handleFfdc", "(", ")", "{", "if", "(", "!", "bFfdcAlready", ")", "{", "com", ".", "ibm", ".", "ws", ".", "ffdc", ".", "FFDCFilter", ".", "processException", "(", "this", ",", "\"com.ibm.websphere.security.jwt.JwtTokenException\"", ",", "\"15...
in case we need to do the ffdc
[ "in", "case", "we", "need", "to", "do", "the", "ffdc" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/internal/JwtTokenException.java#L152-L157
69,428
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/impl/ResponseImpl.java
ResponseImpl.toListOfStrings
private List<String> toListOfStrings(String headerName, List<Object> values) { if (values == null) { return null; } List<String> stringValues = new ArrayList<>(values.size()); HeaderDelegate<Object> hd = HttpUtils.getHeaderDelegate(values.get(0)); for (Object value : ...
java
private List<String> toListOfStrings(String headerName, List<Object> values) { if (values == null) { return null; } List<String> stringValues = new ArrayList<>(values.size()); HeaderDelegate<Object> hd = HttpUtils.getHeaderDelegate(values.get(0)); for (Object value : ...
[ "private", "List", "<", "String", ">", "toListOfStrings", "(", "String", "headerName", ",", "List", "<", "Object", ">", "values", ")", "{", "if", "(", "values", "==", "null", ")", "{", "return", "null", ";", "}", "List", "<", "String", ">", "stringValu...
This conversion is needed as some values may not be Strings
[ "This", "conversion", "is", "needed", "as", "some", "values", "may", "not", "be", "Strings" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/impl/ResponseImpl.java#L224-L235
69,429
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/impl/ResponseImpl.java
ResponseImpl.doReadEntity
public <T> T doReadEntity(Class<T> cls, Type t, Annotation[] anns) throws ProcessingException, IllegalStateException { return doReadEntity(cls, t, anns, false); }
java
public <T> T doReadEntity(Class<T> cls, Type t, Annotation[] anns) throws ProcessingException, IllegalStateException { return doReadEntity(cls, t, anns, false); }
[ "public", "<", "T", ">", "T", "doReadEntity", "(", "Class", "<", "T", ">", "cls", ",", "Type", "t", ",", "Annotation", "[", "]", "anns", ")", "throws", "ProcessingException", ",", "IllegalStateException", "{", "return", "doReadEntity", "(", "cls", ",", "...
convenience method for classes that have not been overwritten with liberty-specific changes
[ "convenience", "method", "for", "classes", "that", "have", "not", "been", "overwritten", "with", "liberty", "-", "specific", "changes" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/impl/ResponseImpl.java#L392-L394
69,430
OpenLiberty/open-liberty
dev/com.ibm.ws.javaee.ddmodel/src/com/ibm/ws/javaee/ddmodel/DDReader.java
DDReader.read
public static String read(Container container, String ddPath) { if (container == null || ddPath == null) { return ""; } Entry entry = container.getEntry(ddPath); if (entry == null) { throw new IllegalStateException(ddPath); } InputStream input; ...
java
public static String read(Container container, String ddPath) { if (container == null || ddPath == null) { return ""; } Entry entry = container.getEntry(ddPath); if (entry == null) { throw new IllegalStateException(ddPath); } InputStream input; ...
[ "public", "static", "String", "read", "(", "Container", "container", ",", "String", "ddPath", ")", "{", "if", "(", "container", "==", "null", "||", "ddPath", "==", "null", ")", "{", "return", "\"\"", ";", "}", "Entry", "entry", "=", "container", ".", "...
Read a deployment descriptor into a string. @param container the module container @param ddPath the deployment descriptor path @return the deployment descriptor as a string, or the empty string if there was no deployment descriptor @throws IllegalStateException if an unexpected error occurs
[ "Read", "a", "deployment", "descriptor", "into", "a", "string", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javaee.ddmodel/src/com/ibm/ws/javaee/ddmodel/DDReader.java#L48-L98
69,431
OpenLiberty/open-liberty
dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/AppMessageHelper.java
AppMessageHelper.audit
public void audit(String key, Object... params) { Tr.audit(tc, key, params); }
java
public void audit(String key, Object... params) { Tr.audit(tc, key, params); }
[ "public", "void", "audit", "(", "String", "key", ",", "Object", "...", "params", ")", "{", "Tr", ".", "audit", "(", "tc", ",", "key", ",", "params", ")", ";", "}" ]
Log an audit message. @param key message key for the application manager messages file. @param params message parameters.
[ "Log", "an", "audit", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/AppMessageHelper.java#L37-L39
69,432
OpenLiberty/open-liberty
dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/AppMessageHelper.java
AppMessageHelper.formatMessage
public String formatMessage(String key, Object... params) { return Tr.formatMessage(tc, key, params); }
java
public String formatMessage(String key, Object... params) { return Tr.formatMessage(tc, key, params); }
[ "public", "String", "formatMessage", "(", "String", "key", ",", "Object", "...", "params", ")", "{", "return", "Tr", ".", "formatMessage", "(", "tc", ",", "key", ",", "params", ")", ";", "}" ]
Format a message. @param key message key for the application manager messages file. @param params message parameters. @return the translated message.
[ "Format", "a", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/AppMessageHelper.java#L48-L50
69,433
OpenLiberty/open-liberty
dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/AppMessageHelper.java
AppMessageHelper.info
public void info(String key, Object... params) { Tr.info(tc, key, params); }
java
public void info(String key, Object... params) { Tr.info(tc, key, params); }
[ "public", "void", "info", "(", "String", "key", ",", "Object", "...", "params", ")", "{", "Tr", ".", "info", "(", "tc", ",", "key", ",", "params", ")", ";", "}" ]
Log an informational message. @param key message key for the application manager messages file. @param params message parameters.
[ "Log", "an", "informational", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/AppMessageHelper.java#L79-L81
69,434
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnection.java
JmsJcaManagedConnection.getConnection
@Override final public Object getConnection(final Subject requestSubject, final ConnectionRequestInfo requestInfo) throws ResourceException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "getConnection", new...
java
@Override final public Object getConnection(final Subject requestSubject, final ConnectionRequestInfo requestInfo) throws ResourceException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "getConnection", new...
[ "@", "Override", "final", "public", "Object", "getConnection", "(", "final", "Subject", "requestSubject", ",", "final", "ConnectionRequestInfo", "requestInfo", ")", "throws", "ResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ...
Creates a session handle to this managed connection. The request information will, by now, contain a connection handle. This is passed, along with this managed connection, on the construction of the new session. @param requestSubject the container provided subject, if any @param requestInfo the application request inf...
[ "Creates", "a", "session", "handle", "to", "this", "managed", "connection", ".", "The", "request", "information", "will", "by", "now", "contain", "a", "connection", "handle", ".", "This", "is", "passed", "along", "with", "this", "managed", "connection", "on", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnection.java#L205-L269
69,435
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnection.java
JmsJcaManagedConnection.destroy
@Override final public void destroy() throws ResourceException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "destroy"); } // Invalidate all of the sessions for (final Iterator iterator = _sessions.iterator(); iterator...
java
@Override final public void destroy() throws ResourceException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "destroy"); } // Invalidate all of the sessions for (final Iterator iterator = _sessions.iterator(); iterator...
[ "@", "Override", "final", "public", "void", "destroy", "(", ")", "throws", "ResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "t...
Destroys this managed connection. Called when a connection error has occurred or the managed connection has timed out in the free pool. Marks any associated sessions as invalid. Closes the associated core connection. @throws ResourceException generic exception
[ "Destroys", "this", "managed", "connection", ".", "Called", "when", "a", "connection", "error", "has", "occurred", "or", "the", "managed", "connection", "has", "timed", "out", "in", "the", "free", "pool", ".", "Marks", "any", "associated", "sessions", "as", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnection.java#L280-L347
69,436
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnection.java
JmsJcaManagedConnection.cleanup
@Override final public void cleanup() throws ResourceException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "cleanup"); } // Invalidate all of the sessions for (final Iterator iterator = _sessions.iterator(); iterator...
java
@Override final public void cleanup() throws ResourceException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "cleanup"); } // Invalidate all of the sessions for (final Iterator iterator = _sessions.iterator(); iterator...
[ "@", "Override", "final", "public", "void", "cleanup", "(", ")", "throws", "ResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "t...
Cleans up this managed connection so that it can be returned to the free pool. Any sessions that are still associated should be invalidated. @throws ResourceException generic exception
[ "Cleans", "up", "this", "managed", "connection", "so", "that", "it", "can", "be", "returned", "to", "the", "free", "pool", ".", "Any", "sessions", "that", "are", "still", "associated", "should", "be", "invalidated", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnection.java#L356-L377
69,437
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnection.java
JmsJcaManagedConnection.associateConnection
@Override final public void associateConnection(Object object) throws ResourceException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "associateConnection", object); } if (object instanceof JmsJcaSessionImpl...
java
@Override final public void associateConnection(Object object) throws ResourceException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "associateConnection", object); } if (object instanceof JmsJcaSessionImpl...
[ "@", "Override", "final", "public", "void", "associateConnection", "(", "Object", "object", ")", "throws", "ResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "S...
Associates the given session with this managed connection. Removes the session from its previous managed connection, if any, and adds it to the set for this connection. Sets this managed connection on the session. @param object the session to associate @throws ResourceException generic exception
[ "Associates", "the", "given", "session", "with", "this", "managed", "connection", ".", "Removes", "the", "session", "from", "its", "previous", "managed", "connection", "if", "any", "and", "adds", "it", "to", "the", "set", "for", "this", "connection", ".", "S...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnection.java#L389-L417
69,438
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnection.java
JmsJcaManagedConnection.disassociateSession
final void disassociateSession(final JmsJcaSessionImpl session) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "disassociateSession", session); } _sessions.remove(session); if (TraceComponent.isAnyTracingEnabled() && TRACE....
java
final void disassociateSession(final JmsJcaSessionImpl session) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "disassociateSession", session); } _sessions.remove(session); if (TraceComponent.isAnyTracingEnabled() && TRACE....
[ "final", "void", "disassociateSession", "(", "final", "JmsJcaSessionImpl", "session", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", "...
Dissassociates the given session from this managed connection. @param session the session to disassociate
[ "Dissassociates", "the", "given", "session", "from", "this", "managed", "connection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnection.java#L425-L437
69,439
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnection.java
JmsJcaManagedConnection.addConnectionEventListener
@Override final public void addConnectionEventListener( final ConnectionEventListener listener) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "addConnectionEventListener", listener); } ...
java
@Override final public void addConnectionEventListener( final ConnectionEventListener listener) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "addConnectionEventListener", listener); } ...
[ "@", "Override", "final", "public", "void", "addConnectionEventListener", "(", "final", "ConnectionEventListener", "listener", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", ...
Adds a connection event listener. @param listener the listener to add
[ "Adds", "a", "connection", "event", "listener", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnection.java#L445-L461
69,440
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnection.java
JmsJcaManagedConnection.getMetaData
@Override final public ManagedConnectionMetaData getMetaData() throws ResourceException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "getMetaData"); } if (_metaData == null) { _metaData = new Jm...
java
@Override final public ManagedConnectionMetaData getMetaData() throws ResourceException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "getMetaData"); } if (_metaData == null) { _metaData = new Jm...
[ "@", "Override", "final", "public", "ManagedConnectionMetaData", "getMetaData", "(", ")", "throws", "ResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", "....
Returns the meta data information for this Jetstream connection. @return the metadata information @throws ResourceException generic exception
[ "Returns", "the", "meta", "data", "information", "for", "this", "Jetstream", "connection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnection.java#L593-L610
69,441
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnection.java
JmsJcaManagedConnection.dissociateConnections
@Override final public void dissociateConnections() throws ResourceException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(TRACE, "dissociateConnections"); } // Dissociate sessions for (final Iterator iterator = _sessions.iterator(...
java
@Override final public void dissociateConnections() throws ResourceException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(TRACE, "dissociateConnections"); } // Dissociate sessions for (final Iterator iterator = _sessions.iterator(...
[ "@", "Override", "final", "public", "void", "dissociateConnections", "(", ")", "throws", "ResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry...
Dissociates any sessions currently associated with this managed connection. @throws ResourceException generic exception
[ "Dissociates", "any", "sessions", "currently", "associated", "with", "this", "managed", "connection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnection.java#L649-L670
69,442
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnection.java
JmsJcaManagedConnection.localTransactionStarted
final void localTransactionStarted() { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "localTransactionStarted"); } final ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.LOCAL_TRANSACTION_STAR...
java
final void localTransactionStarted() { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "localTransactionStarted"); } final ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.LOCAL_TRANSACTION_STAR...
[ "final", "void", "localTransactionStarted", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", "TRACE", ",", "\"localTransaction...
Called to indicate that the session associated with this managed connection has begun a local transaction. Notifies the connection event listeners.
[ "Called", "to", "indicate", "that", "the", "session", "associated", "with", "this", "managed", "connection", "has", "begun", "a", "local", "transaction", ".", "Notifies", "the", "connection", "event", "listeners", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnection.java#L784-L812
69,443
OpenLiberty/open-liberty
dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/internal/ConsumerUtil.java
ConsumerUtil.getSigningKey
Key getSigningKey(JwtConsumerConfig config, JwtContext jwtContext, Map properties) throws KeyException { Key signingKey = null; if (config == null) { if (tc.isDebugEnabled()) { Tr.debug(tc, "JWT consumer config object is null"); } return null; } signingKey = getSigningKeyBasedOnSignatureAlgorithm(c...
java
Key getSigningKey(JwtConsumerConfig config, JwtContext jwtContext, Map properties) throws KeyException { Key signingKey = null; if (config == null) { if (tc.isDebugEnabled()) { Tr.debug(tc, "JWT consumer config object is null"); } return null; } signingKey = getSigningKeyBasedOnSignatureAlgorithm(c...
[ "Key", "getSigningKey", "(", "JwtConsumerConfig", "config", ",", "JwtContext", "jwtContext", ",", "Map", "properties", ")", "throws", "KeyException", "{", "Key", "signingKey", "=", "null", ";", "if", "(", "config", "==", "null", ")", "{", "if", "(", "tc", ...
Get the appropriate signing key based on the signature algorithm specified in the config.
[ "Get", "the", "appropriate", "signing", "key", "based", "on", "the", "signature", "algorithm", "specified", "in", "the", "config", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/internal/ConsumerUtil.java#L122-L137
69,444
OpenLiberty/open-liberty
dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/internal/ConsumerUtil.java
ConsumerUtil.getSharedSecretKey
Key getSharedSecretKey(JwtConsumerConfig config) throws KeyException { if (config == null) { if (tc.isDebugEnabled()) { Tr.debug(tc, "JWT consumer config object is null"); } return null; } String sharedKey = config.getSharedKey(); return createKeyFromSharedKey(sharedKey); }
java
Key getSharedSecretKey(JwtConsumerConfig config) throws KeyException { if (config == null) { if (tc.isDebugEnabled()) { Tr.debug(tc, "JWT consumer config object is null"); } return null; } String sharedKey = config.getSharedKey(); return createKeyFromSharedKey(sharedKey); }
[ "Key", "getSharedSecretKey", "(", "JwtConsumerConfig", "config", ")", "throws", "KeyException", "{", "if", "(", "config", "==", "null", ")", "{", "if", "(", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"JWT consu...
Creates a Key object from the shared key specified in the provided configuration.
[ "Creates", "a", "Key", "object", "from", "the", "shared", "key", "specified", "in", "the", "provided", "configuration", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/internal/ConsumerUtil.java#L167-L176
69,445
OpenLiberty/open-liberty
dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/internal/ConsumerUtil.java
ConsumerUtil.getPublicKey
Key getPublicKey(String trustedAlias, String trustStoreRef, String signatureAlgorithm) throws KeyStoreServiceException, KeyException { Key signingKey = getPublicKeyFromKeystore(trustedAlias, trustStoreRef, signatureAlgorithm); if (tc.isDebugEnabled()) { Tr.debug(tc, "Trusted alias: " + trustedAlias + ", Trust...
java
Key getPublicKey(String trustedAlias, String trustStoreRef, String signatureAlgorithm) throws KeyStoreServiceException, KeyException { Key signingKey = getPublicKeyFromKeystore(trustedAlias, trustStoreRef, signatureAlgorithm); if (tc.isDebugEnabled()) { Tr.debug(tc, "Trusted alias: " + trustedAlias + ", Trust...
[ "Key", "getPublicKey", "(", "String", "trustedAlias", ",", "String", "trustStoreRef", ",", "String", "signatureAlgorithm", ")", "throws", "KeyStoreServiceException", ",", "KeyException", "{", "Key", "signingKey", "=", "getPublicKeyFromKeystore", "(", "trustedAlias", ","...
Creates a Key object from the certificate stored in the trust store and alias provided.
[ "Creates", "a", "Key", "object", "from", "the", "certificate", "stored", "in", "the", "trust", "store", "and", "alias", "provided", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/internal/ConsumerUtil.java#L290-L301
69,446
OpenLiberty/open-liberty
dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/internal/ConsumerUtil.java
ConsumerUtil.validateSignatureAlgorithmWithKey
void validateSignatureAlgorithmWithKey(JwtConsumerConfig config, Key key) throws InvalidClaimException { String signatureAlgorithm = config.getSignatureAlgorithm(); if (key == null && signatureAlgorithm != null && !signatureAlgorithm.equalsIgnoreCase("none")) { String msg = Tr.formatMessage(tc, "JWT_MISSING_KEY"...
java
void validateSignatureAlgorithmWithKey(JwtConsumerConfig config, Key key) throws InvalidClaimException { String signatureAlgorithm = config.getSignatureAlgorithm(); if (key == null && signatureAlgorithm != null && !signatureAlgorithm.equalsIgnoreCase("none")) { String msg = Tr.formatMessage(tc, "JWT_MISSING_KEY"...
[ "void", "validateSignatureAlgorithmWithKey", "(", "JwtConsumerConfig", "config", ",", "Key", "key", ")", "throws", "InvalidClaimException", "{", "String", "signatureAlgorithm", "=", "config", ".", "getSignatureAlgorithm", "(", ")", ";", "if", "(", "key", "==", "null...
Throws an exception if the provided key is null but the config specifies a signature algorithm other than "none".
[ "Throws", "an", "exception", "if", "the", "provided", "key", "is", "null", "but", "the", "config", "specifies", "a", "signature", "algorithm", "other", "than", "none", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/internal/ConsumerUtil.java#L394-L400
69,447
OpenLiberty/open-liberty
dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/internal/ConsumerUtil.java
ConsumerUtil.validateIssuer
boolean validateIssuer(String consumerConfigId, String issuers, String tokenIssuer) throws InvalidClaimException { boolean isIssuer = false; if (issuers == null || issuers.isEmpty()) { String msg = Tr.formatMessage(tc, "JWT_TRUSTED_ISSUERS_NULL", new Object[] { tokenIssuer, consumerConfigId }); throw new...
java
boolean validateIssuer(String consumerConfigId, String issuers, String tokenIssuer) throws InvalidClaimException { boolean isIssuer = false; if (issuers == null || issuers.isEmpty()) { String msg = Tr.formatMessage(tc, "JWT_TRUSTED_ISSUERS_NULL", new Object[] { tokenIssuer, consumerConfigId }); throw new...
[ "boolean", "validateIssuer", "(", "String", "consumerConfigId", ",", "String", "issuers", ",", "String", "tokenIssuer", ")", "throws", "InvalidClaimException", "{", "boolean", "isIssuer", "=", "false", ";", "if", "(", "issuers", "==", "null", "||", "issuers", "....
Verifies that tokenIssuer is one of the values specified in the comma-separated issuers string.
[ "Verifies", "that", "tokenIssuer", "is", "one", "of", "the", "values", "specified", "in", "the", "comma", "-", "separated", "issuers", "string", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/internal/ConsumerUtil.java#L406-L432
69,448
OpenLiberty/open-liberty
dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/internal/ConsumerUtil.java
ConsumerUtil.validateAudience
boolean validateAudience(List<String> allowedAudiences, List<String> audiences) { boolean valid = false; if (allowedAudiences != null && allowedAudiences.contains(Constants.ALL_AUDIENCES)) { return true; } if (allowedAudiences != null && audiences != null) { for (String audience : audiences) { for (S...
java
boolean validateAudience(List<String> allowedAudiences, List<String> audiences) { boolean valid = false; if (allowedAudiences != null && allowedAudiences.contains(Constants.ALL_AUDIENCES)) { return true; } if (allowedAudiences != null && audiences != null) { for (String audience : audiences) { for (S...
[ "boolean", "validateAudience", "(", "List", "<", "String", ">", "allowedAudiences", ",", "List", "<", "String", ">", "audiences", ")", "{", "boolean", "valid", "=", "false", ";", "if", "(", "allowedAudiences", "!=", "null", "&&", "allowedAudiences", ".", "co...
Verifies that at least one of the values specified in audiences is contained in the allowedAudiences list.
[ "Verifies", "that", "at", "least", "one", "of", "the", "values", "specified", "in", "audiences", "is", "contained", "in", "the", "allowedAudiences", "list", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/internal/ConsumerUtil.java#L438-L458
69,449
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ExternalizedBeanId.java
ExternalizedBeanId.readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "readExternal"); try { // read magic short magic = in.readShort(); sho...
java
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "readExternal"); try { // read magic short magic = in.readShort(); sho...
[ "public", "void", "readExternal", "(", "ObjectInput", "in", ")", "throws", "IOException", ",", "ClassNotFoundException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry...
readExternal is called by Java serialization when readObject is called on an ObjectInputStream for an object of class BeanId. It must read the values in the same sequence and with the same types as written by writeExternal.
[ "readExternal", "is", "called", "by", "Java", "serialization", "when", "readObject", "is", "called", "on", "an", "ObjectInputStream", "for", "an", "object", "of", "class", "BeanId", ".", "It", "must", "read", "the", "values", "in", "the", "same", "sequence", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ExternalizedBeanId.java#L117-L174
69,450
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ExternalizedBeanId.java
ExternalizedBeanId.readExternalPKey
private Serializable readExternalPKey(ObjectInput in, byte[] j2eeNameBytes) throws java.io.IOException, ClassNotFoundException { int pkeyLength = in.readInt(); byte[] pkeyBytes = new byte[pkeyLength]; //d164415 start int bytesRead = 0; for (int offset = 0; o...
java
private Serializable readExternalPKey(ObjectInput in, byte[] j2eeNameBytes) throws java.io.IOException, ClassNotFoundException { int pkeyLength = in.readInt(); byte[] pkeyBytes = new byte[pkeyLength]; //d164415 start int bytesRead = 0; for (int offset = 0; o...
[ "private", "Serializable", "readExternalPKey", "(", "ObjectInput", "in", ",", "byte", "[", "]", "j2eeNameBytes", ")", "throws", "java", ".", "io", ".", "IOException", ",", "ClassNotFoundException", "{", "int", "pkeyLength", "=", "in", ".", "readInt", "(", ")",...
Private helper method for readExternal - reads the Serialized primary key. @author Adrian Colyer @return java.io.Serializable @param in java.io.ObjectInput @exception java.io.IOException The exception description.
[ "Private", "helper", "method", "for", "readExternal", "-", "reads", "the", "Serialized", "primary", "key", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ExternalizedBeanId.java#L208-L252
69,451
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ExternalizedBeanId.java
ExternalizedBeanId.writeExternal
public void writeExternal(ObjectOutput out) throws IOException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "writeExternal"); try { // write magic out.writeShort(EXTERNAL_MAGIC); out.writeShort(MAJOR_VERSION); ...
java
public void writeExternal(ObjectOutput out) throws IOException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "writeExternal"); try { // write magic out.writeShort(EXTERNAL_MAGIC); out.writeShort(MAJOR_VERSION); ...
[ "public", "void", "writeExternal", "(", "ObjectOutput", "out", ")", "throws", "IOException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"wr...
writeExternal is called by Java serialization when writeObject is called on an ObjectOutputStream for an object of class BeanId.
[ "writeExternal", "is", "called", "by", "Java", "serialization", "when", "writeObject", "is", "called", "on", "an", "ObjectOutputStream", "for", "an", "object", "of", "class", "BeanId", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ExternalizedBeanId.java#L270-L301
69,452
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ExternalizedBeanId.java
ExternalizedBeanId.writeExternalPKey
private void writeExternalPKey(ObjectOutput out) throws java.io.IOException { // write the serialized primary key - can't mix eternaized stream // and writeObject so convert to bytes... ByteArrayOutputStream baos = new ByteArrayOutputStream(); ObjectOutputStream pkey...
java
private void writeExternalPKey(ObjectOutput out) throws java.io.IOException { // write the serialized primary key - can't mix eternaized stream // and writeObject so convert to bytes... ByteArrayOutputStream baos = new ByteArrayOutputStream(); ObjectOutputStream pkey...
[ "private", "void", "writeExternalPKey", "(", "ObjectOutput", "out", ")", "throws", "java", ".", "io", ".", "IOException", "{", "// write the serialized primary key - can't mix eternaized stream", "// and writeObject so convert to bytes...", "ByteArrayOutputStream", "baos", "=", ...
Private helper method for writeExternal - writes the primary key @author Adrian Colyer @param out java.io.ObjectOutput @exception java.io.IOException The exception description.
[ "Private", "helper", "method", "for", "writeExternal", "-", "writes", "the", "primary", "key" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ExternalizedBeanId.java#L318-L331
69,453
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIComponent.java
UIComponent.getCompositeComponentParent
public static UIComponent getCompositeComponentParent(UIComponent component) { if (component == null) { return null; } UIComponent parent = component; do { parent = parent.getParent(); if (parent != null && UIComponent.isComposite...
java
public static UIComponent getCompositeComponentParent(UIComponent component) { if (component == null) { return null; } UIComponent parent = component; do { parent = parent.getParent(); if (parent != null && UIComponent.isComposite...
[ "public", "static", "UIComponent", "getCompositeComponentParent", "(", "UIComponent", "component", ")", "{", "if", "(", "component", "==", "null", ")", "{", "return", "null", ";", "}", "UIComponent", "parent", "=", "component", ";", "do", "{", "parent", "=", ...
search for the nearest parent composite component, if no parent is found it has to return null! if the component itself is null we have to return null as well! @param component the component to start from @return the parent composite component if found otherwise null @since 2.0
[ "search", "for", "the", "nearest", "parent", "composite", "component", "if", "no", "parent", "is", "found", "it", "has", "to", "return", "null!" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIComponent.java#L437-L455
69,454
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIComponent.java
UIComponent.getStateHelper
protected StateHelper getStateHelper(boolean create) { if (_stateHelper != null) { return _stateHelper; } if (create) { _stateHelper = new _DeltaStateHelper(this); } return _stateHelper; }
java
protected StateHelper getStateHelper(boolean create) { if (_stateHelper != null) { return _stateHelper; } if (create) { _stateHelper = new _DeltaStateHelper(this); } return _stateHelper; }
[ "protected", "StateHelper", "getStateHelper", "(", "boolean", "create", ")", "{", "if", "(", "_stateHelper", "!=", "null", ")", "{", "return", "_stateHelper", ";", "}", "if", "(", "create", ")", "{", "_stateHelper", "=", "new", "_DeltaStateHelper", "(", "thi...
returns a delta state saving enabled state helper for the current component @param create if true a state helper is created if not already existing @return an implementation of the StateHelper interface or null if none exists and create is set to false
[ "returns", "a", "delta", "state", "saving", "enabled", "state", "helper", "for", "the", "current", "component" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIComponent.java#L1108-L1119
69,455
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIComponent.java
UIComponent._getHonorCurrentComponentAttributes
private static Boolean _getHonorCurrentComponentAttributes(FacesContext facesContext) { // performance note: we cache value in facesContext.attributes because // 1) methods pushComponentToEL, popComponentFromEl, getCurrentComponent a getCurrentCompositeComponent // can use that value ...
java
private static Boolean _getHonorCurrentComponentAttributes(FacesContext facesContext) { // performance note: we cache value in facesContext.attributes because // 1) methods pushComponentToEL, popComponentFromEl, getCurrentComponent a getCurrentCompositeComponent // can use that value ...
[ "private", "static", "Boolean", "_getHonorCurrentComponentAttributes", "(", "FacesContext", "facesContext", ")", "{", "// performance note: we cache value in facesContext.attributes because", "// 1) methods pushComponentToEL, popComponentFromEl, getCurrentComponent a getCurrentCompositeComponent...
Gets value of "javax.faces.HONOR_CURRENT_COMPONENT_ATTRIBUTES" parameter cached in facesContext.attributes or resolves that param and caches its value in facesContext.attributes. @return canonical Boolean value for parameter "javax.faces.HONOR_CURRENT_COMPONENT_ATTRIBUTES"
[ "Gets", "value", "of", "javax", ".", "faces", ".", "HONOR_CURRENT_COMPONENT_ATTRIBUTES", "parameter", "cached", "in", "facesContext", ".", "attributes", "or", "resolves", "that", "param", "and", "caches", "its", "value", "in", "facesContext", ".", "attributes", "....
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIComponent.java#L1358-L1376
69,456
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/context/servlet/PartialViewContextImpl.java
PartialViewContextImpl.processPartial
@Override public void processPartial(PhaseId phaseId) { assertNotReleased(); UIViewRoot viewRoot = _facesContext.getViewRoot(); if (phaseId == PhaseId.APPLY_REQUEST_VALUES || phaseId == PhaseId.PROCESS_VALIDATIONS || phaseId == PhaseId.UPDATE_MODEL_VALUE...
java
@Override public void processPartial(PhaseId phaseId) { assertNotReleased(); UIViewRoot viewRoot = _facesContext.getViewRoot(); if (phaseId == PhaseId.APPLY_REQUEST_VALUES || phaseId == PhaseId.PROCESS_VALIDATIONS || phaseId == PhaseId.UPDATE_MODEL_VALUE...
[ "@", "Override", "public", "void", "processPartial", "(", "PhaseId", "phaseId", ")", "{", "assertNotReleased", "(", ")", ";", "UIViewRoot", "viewRoot", "=", "_facesContext", ".", "getViewRoot", "(", ")", ";", "if", "(", "phaseId", "==", "PhaseId", ".", "APPL...
process the partial response allowed phase ids according to the spec
[ "process", "the", "partial", "response", "allowed", "phase", "ids", "according", "to", "the", "spec" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/context/servlet/PartialViewContextImpl.java#L404-L421
69,457
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/common/utils/internal/RepositoryCommonUtils.java
RepositoryCommonUtils.localeForString
public static Locale localeForString(String localeString) { if (localeString == null || localeString.isEmpty()) { return null; } Locale locale; String[] localeParts = localeString.split("_"); switch (localeParts.length) { case 1: locale = n...
java
public static Locale localeForString(String localeString) { if (localeString == null || localeString.isEmpty()) { return null; } Locale locale; String[] localeParts = localeString.split("_"); switch (localeParts.length) { case 1: locale = n...
[ "public", "static", "Locale", "localeForString", "(", "String", "localeString", ")", "{", "if", "(", "localeString", "==", "null", "||", "localeString", ".", "isEmpty", "(", ")", ")", "{", "return", "null", ";", "}", "Locale", "locale", ";", "String", "[",...
Creates a locale based on a String of the form language_country_variant, either of the last two parts can be omitted. @param localeString The locale string @return The locale
[ "Creates", "a", "locale", "based", "on", "a", "String", "of", "the", "form", "language_country_variant", "either", "of", "the", "last", "two", "parts", "can", "be", "omitted", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/common/utils/internal/RepositoryCommonUtils.java#L27-L51
69,458
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/AbstractRemoteRepositoryReader.java
AbstractRemoteRepositoryReader.getLogLists
public Iterable<ServerInstanceLogRecordList> getLogLists(RepositoryPointer after, LogQueryBean query) throws LogRepositoryException { logger.entering(thisClass, "getLogLists", new Object[]{after, query}); RemoteAllResults lists = readLogLists(query, after); ArrayList<ServerInstanceLogRecordList> result = new A...
java
public Iterable<ServerInstanceLogRecordList> getLogLists(RepositoryPointer after, LogQueryBean query) throws LogRepositoryException { logger.entering(thisClass, "getLogLists", new Object[]{after, query}); RemoteAllResults lists = readLogLists(query, after); ArrayList<ServerInstanceLogRecordList> result = new A...
[ "public", "Iterable", "<", "ServerInstanceLogRecordList", ">", "getLogLists", "(", "RepositoryPointer", "after", ",", "LogQueryBean", "query", ")", "throws", "LogRepositoryException", "{", "logger", ".", "entering", "(", "thisClass", ",", "\"getLogLists\"", ",", "new"...
returns log records from the repository that are beyond a given repository location, according to the criteria specified by the log query bean. @param after pointer to a record the list will start after @param query {@link LogQueryBean} instance representing set of criteria each of which need to be met by th...
[ "returns", "log", "records", "from", "the", "repository", "that", "are", "beyond", "a", "given", "repository", "location", "according", "to", "the", "criteria", "specified", "by", "the", "log", "query", "bean", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/AbstractRemoteRepositoryReader.java#L332-L347
69,459
OpenLiberty/open-liberty
dev/com.ibm.ws.jmx.connector.client.rest/src/com/ibm/ws/jmx/connector/client/rest/internal/Connector.java
Connector.validatePossibleEndpoint
private void validatePossibleEndpoint(String possibleEndpoint) throws IllegalArgumentException { if (!possibleEndpoint.contains(":")) { throw new IllegalArgumentException(RESTClientMessagesUtil.getMessage(RESTClientMessagesUtil.INVALID_ENDPOINT, possibleEndpoint)); } String[] compone...
java
private void validatePossibleEndpoint(String possibleEndpoint) throws IllegalArgumentException { if (!possibleEndpoint.contains(":")) { throw new IllegalArgumentException(RESTClientMessagesUtil.getMessage(RESTClientMessagesUtil.INVALID_ENDPOINT, possibleEndpoint)); } String[] compone...
[ "private", "void", "validatePossibleEndpoint", "(", "String", "possibleEndpoint", ")", "throws", "IllegalArgumentException", "{", "if", "(", "!", "possibleEndpoint", ".", "contains", "(", "\":\"", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "REST...
Validate the possible endpoint String. @param possibleEndpoint @throws IllegalArgumentException if the String is not a valid endpoint
[ "Validate", "the", "possible", "endpoint", "String", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.client.rest/src/com/ibm/ws/jmx/connector/client/rest/internal/Connector.java#L193-L206
69,460
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/validation/PathItemValidator.java
PathItemValidator.validatePathAndRetrievePathParams
private Set<String> validatePathAndRetrievePathParams(ValidationHelper helper, Context context, String pathStr) { String pathToCheck = pathStr; Set<String> pathParameters = new HashSet<String>(); while (pathToCheck.contains("{")) { if (!pathToCheck.contains("}")) { f...
java
private Set<String> validatePathAndRetrievePathParams(ValidationHelper helper, Context context, String pathStr) { String pathToCheck = pathStr; Set<String> pathParameters = new HashSet<String>(); while (pathToCheck.contains("{")) { if (!pathToCheck.contains("}")) { f...
[ "private", "Set", "<", "String", ">", "validatePathAndRetrievePathParams", "(", "ValidationHelper", "helper", ",", "Context", "context", ",", "String", "pathStr", ")", "{", "String", "pathToCheck", "=", "pathStr", ";", "Set", "<", "String", ">", "pathParameters", ...
Validate the path and extract path parameters
[ "Validate", "the", "path", "and", "extract", "path", "parameters" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/validation/PathItemValidator.java#L223-L261
69,461
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.service/src/com/ibm/wsspi/kernel/service/utils/CompositeEnumeration.java
CompositeEnumeration.add
public CompositeEnumeration<T> add(Enumeration<T> enumeration) { // optimise out empty enumerations up front if (enumeration.hasMoreElements()) enumerations.add(enumeration); return this; }
java
public CompositeEnumeration<T> add(Enumeration<T> enumeration) { // optimise out empty enumerations up front if (enumeration.hasMoreElements()) enumerations.add(enumeration); return this; }
[ "public", "CompositeEnumeration", "<", "T", ">", "add", "(", "Enumeration", "<", "T", ">", "enumeration", ")", "{", "// optimise out empty enumerations up front", "if", "(", "enumeration", ".", "hasMoreElements", "(", ")", ")", "enumerations", ".", "add", "(", "...
Fluent method for chaining additions of subsequent enumerations.
[ "Fluent", "method", "for", "chaining", "additions", "of", "subsequent", "enumerations", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.service/src/com/ibm/wsspi/kernel/service/utils/CompositeEnumeration.java#L41-L46
69,462
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/OrderingContextProxy.java
OrderingContextProxy.incrementUseCount
public synchronized void incrementUseCount() throws SIConnectionUnavailableException, SIConnectionDroppedException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "incrementUseCount"); // Check if this ordering conext instance is "dead...
java
public synchronized void incrementUseCount() throws SIConnectionUnavailableException, SIConnectionDroppedException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "incrementUseCount"); // Check if this ordering conext instance is "dead...
[ "public", "synchronized", "void", "incrementUseCount", "(", ")", "throws", "SIConnectionUnavailableException", ",", "SIConnectionDroppedException", ",", "SIErrorException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntry...
This method will increment the use count on this order context. @throws SIConnectionUnavailableException @throws SIConnectionDroppedException @throws SIErrorException
[ "This", "method", "will", "increment", "the", "use", "count", "on", "this", "order", "context", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/OrderingContextProxy.java#L133-L149
69,463
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/OrderingContextProxy.java
OrderingContextProxy.decrementUseCount
public synchronized void decrementUseCount() throws SIConnectionDroppedException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "decrementUseCount"); useCount--; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) ...
java
public synchronized void decrementUseCount() throws SIConnectionDroppedException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "decrementUseCount"); useCount--; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) ...
[ "public", "synchronized", "void", "decrementUseCount", "(", ")", "throws", "SIConnectionDroppedException", ",", "SIErrorException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", "...
This method will decrement the use count on this order context. @throws SIConnectionUnavailableException @throws SIConnectionDroppedException @throws SIErrorException
[ "This", "method", "will", "decrement", "the", "use", "count", "on", "this", "order", "context", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/OrderingContextProxy.java#L175-L193
69,464
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/OrderingContextProxy.java
OrderingContextProxy.close
public void close() throws SIConnectionDroppedException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close"); queue = null; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "Returning or...
java
public void close() throws SIConnectionDroppedException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close"); queue = null; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "Returning or...
[ "public", "void", "close", "(", ")", "throws", "SIConnectionDroppedException", ",", "SIErrorException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this"...
This method will close the ordering context. This method should ideally be called by the API application. But at present, it is called by us when the use count is 0. The order context is only returned to the connection pool of free order contexts as this avoids an exchange with the server which is costly. @throws SICo...
[ "This", "method", "will", "close", "the", "ordering", "context", ".", "This", "method", "should", "ideally", "be", "called", "by", "the", "API", "application", ".", "But", "at", "present", "it", "is", "called", "by", "us", "when", "the", "use", "count", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/OrderingContextProxy.java#L260-L272
69,465
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/OrderingContextProxy.java
OrderingContextProxy.associateWithQueue
public void associateWithQueue(Queue queueToAssociate) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "associateWithQueue", queueToAssociate); this.queue = queueToAssociate; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, t...
java
public void associateWithQueue(Queue queueToAssociate) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "associateWithQueue", queueToAssociate); this.queue = queueToAssociate; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, t...
[ "public", "void", "associateWithQueue", "(", "Queue", "queueToAssociate", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"...
Called by a proxy queue to associate itself with this ordering context. @param queueToAssociate
[ "Called", "by", "a", "proxy", "queue", "to", "associate", "itself", "with", "this", "ordering", "context", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/OrderingContextProxy.java#L292-L297
69,466
OpenLiberty/open-liberty
dev/com.ibm.ws.persistence.utility/src/com/ibm/ws/persistence/utility/DDLGenerationUtility.java
DDLGenerationUtility.getMessage
private String getMessage(String key, Object... args) { String message = messages.getString(key); return (args.length == 0) ? message : MessageFormat.format(message, args); }
java
private String getMessage(String key, Object... args) { String message = messages.getString(key); return (args.length == 0) ? message : MessageFormat.format(message, args); }
[ "private", "String", "getMessage", "(", "String", "key", ",", "Object", "...", "args", ")", "{", "String", "message", "=", "messages", ".", "getString", "(", "key", ")", ";", "return", "(", "args", ".", "length", "==", "0", ")", "?", "message", ":", ...
Get a formatted message.
[ "Get", "a", "formatted", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.persistence.utility/src/com/ibm/ws/persistence/utility/DDLGenerationUtility.java#L97-L100
69,467
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageFactoryImpl.java
JsMessageFactoryImpl.restoreJsMessage
private final JsMessage restoreJsMessage(byte[] buffer, Object store) throws MessageRestoreFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "restoreJsMessage" , buffer); JsMessage newMsg = null; String className; int offset = 0; /* The buffer cont...
java
private final JsMessage restoreJsMessage(byte[] buffer, Object store) throws MessageRestoreFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "restoreJsMessage" , buffer); JsMessage newMsg = null; String className; int offset = 0; /* The buffer cont...
[ "private", "final", "JsMessage", "restoreJsMessage", "(", "byte", "[", "]", "buffer", ",", "Object", "store", ")", "throws", "MessageRestoreFailedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled",...
Restore a JsMessage of any specializaton from a 'flattenned' copy. Since SIB0112b, this method is only called by the preceding restoreJsMessage method so it is marked private. @param buffer The byte array representing the message. @param store The MesasgeStore from which the message is being recovered, may be null....
[ "Restore", "a", "JsMessage", "of", "any", "specializaton", "from", "a", "flattenned", "copy", ".", "Since", "SIB0112b", "this", "method", "is", "only", "called", "by", "the", "preceding", "restoreJsMessage", "method", "so", "it", "is", "marked", "private", "."...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageFactoryImpl.java#L446-L511
69,468
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageFactoryImpl.java
JsMessageFactoryImpl.ensureSchemasAvailable
private final static int ensureSchemasAvailable(byte[] buffer, int offset, Object store) throws MessageRestoreFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "ensureSchemasAvailable", new Object[] {offset, store}); // If we have a message store we need to ensu...
java
private final static int ensureSchemasAvailable(byte[] buffer, int offset, Object store) throws MessageRestoreFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "ensureSchemasAvailable", new Object[] {offset, store}); // If we have a message store we need to ensu...
[ "private", "final", "static", "int", "ensureSchemasAvailable", "(", "byte", "[", "]", "buffer", ",", "int", "offset", ",", "Object", "store", ")", "throws", "MessageRestoreFailedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ...
Utility method to extract the schema ids from a message buffer and, if a message store is supplied, check that all the necessary schemas are available. @param buffer The buffer containing the schema ids @param offset The offset into the buffer where the schema ids start @param store The MesasgeStore from which the...
[ "Utility", "method", "to", "extract", "the", "schema", "ids", "from", "a", "message", "buffer", "and", "if", "a", "message", "store", "is", "supplied", "check", "that", "all", "the", "necessary", "schemas", "are", "available", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageFactoryImpl.java#L563-L582
69,469
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageFactoryImpl.java
JsMessageFactoryImpl.createSpecialisedMessage
private final JsMessage createSpecialisedMessage(JsMsgObject jmo) { JsMessage message = null; /* For an API message, we need to return an instance of the appropriate */ /* specialisation. */ if (jmo.getChoiceField(JsHdrAccess.API) == JsHdrAccess...
java
private final JsMessage createSpecialisedMessage(JsMsgObject jmo) { JsMessage message = null; /* For an API message, we need to return an instance of the appropriate */ /* specialisation. */ if (jmo.getChoiceField(JsHdrAccess.API) == JsHdrAccess...
[ "private", "final", "JsMessage", "createSpecialisedMessage", "(", "JsMsgObject", "jmo", ")", "{", "JsMessage", "message", "=", "null", ";", "/* For an API message, we need to return an instance of the appropriate */", "/* specialisation. ...
Returns a new JsMessage instance, of the subclass appropriate to the message content. @param jmo The JsMsgObject containing the guts of the message @return JsMessage A new instance of the appropriate JsMessage implementation
[ "Returns", "a", "new", "JsMessage", "instance", "of", "the", "subclass", "appropriate", "to", "the", "message", "content", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageFactoryImpl.java#L594-L614
69,470
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/transactions/PersistentTranId.java
PersistentTranId.bytesToInt
private int bytesToInt(byte[] bytes) { int result = -1; if (bytes.length >= 4) { result = ((bytes[0]&0xff) << 24) + ((bytes[1]&0xff) << 16) + ((bytes[2]&0xff) << 8) + (bytes[3]&0xff); } return result; ...
java
private int bytesToInt(byte[] bytes) { int result = -1; if (bytes.length >= 4) { result = ((bytes[0]&0xff) << 24) + ((bytes[1]&0xff) << 16) + ((bytes[2]&0xff) << 8) + (bytes[3]&0xff); } return result; ...
[ "private", "int", "bytesToInt", "(", "byte", "[", "]", "bytes", ")", "{", "int", "result", "=", "-", "1", ";", "if", "(", "bytes", ".", "length", ">=", "4", ")", "{", "result", "=", "(", "(", "bytes", "[", "0", "]", "&", "0xff", ")", "<<", "2...
A helper function which extracts an int from a byte array representation
[ "A", "helper", "function", "which", "extracts", "an", "int", "from", "a", "byte", "array", "representation" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/transactions/PersistentTranId.java#L361-L372
69,471
OpenLiberty/open-liberty
dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/adapter/ServiceEventAdapter.java
ServiceEventAdapter.getTopic
private String getTopic(ServiceEvent serviceEvent) { StringBuilder topic = new StringBuilder(SERVICE_EVENT_TOPIC_PREFIX); switch (serviceEvent.getType()) { case ServiceEvent.REGISTERED: topic.append("REGISTERED"); break; case ServiceEvent.MODIFIED...
java
private String getTopic(ServiceEvent serviceEvent) { StringBuilder topic = new StringBuilder(SERVICE_EVENT_TOPIC_PREFIX); switch (serviceEvent.getType()) { case ServiceEvent.REGISTERED: topic.append("REGISTERED"); break; case ServiceEvent.MODIFIED...
[ "private", "String", "getTopic", "(", "ServiceEvent", "serviceEvent", ")", "{", "StringBuilder", "topic", "=", "new", "StringBuilder", "(", "SERVICE_EVENT_TOPIC_PREFIX", ")", ";", "switch", "(", "serviceEvent", ".", "getType", "(", ")", ")", "{", "case", "Servic...
Determine the appropriate topic to use for the Service Event. @param serviceEvent the service event that is being adapted @return the topic or null if the event is not supported
[ "Determine", "the", "appropriate", "topic", "to", "use", "for", "the", "Service", "Event", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/adapter/ServiceEventAdapter.java#L108-L126
69,472
OpenLiberty/open-liberty
dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/notification/ClientNotificationFilter.java
ClientNotificationFilter.updateFilters
public synchronized void updateFilters(NotificationFilter[] filtersArray) { filters.clear(); if (filtersArray != null) Collections.addAll(filters, filtersArray); }
java
public synchronized void updateFilters(NotificationFilter[] filtersArray) { filters.clear(); if (filtersArray != null) Collections.addAll(filters, filtersArray); }
[ "public", "synchronized", "void", "updateFilters", "(", "NotificationFilter", "[", "]", "filtersArray", ")", "{", "filters", ".", "clear", "(", ")", ";", "if", "(", "filtersArray", "!=", "null", ")", "Collections", ".", "addAll", "(", "filters", ",", "filter...
Override the list of filters with given array.
[ "Override", "the", "list", "of", "filters", "with", "given", "array", "." ]
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/notification/ClientNotificationFilter.java#L54-L58
69,473
OpenLiberty/open-liberty
dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/notification/ClientNotificationFilter.java
ClientNotificationFilter.isNotificationEnabled
@Override public synchronized boolean isNotificationEnabled(Notification notification) { if (filters.isEmpty()) { //Allow all return true; } final Iterator<NotificationFilter> i = filters.iterator(); while (i.hasNext()) { if (i.next().isNotificati...
java
@Override public synchronized boolean isNotificationEnabled(Notification notification) { if (filters.isEmpty()) { //Allow all return true; } final Iterator<NotificationFilter> i = filters.iterator(); while (i.hasNext()) { if (i.next().isNotificati...
[ "@", "Override", "public", "synchronized", "boolean", "isNotificationEnabled", "(", "Notification", "notification", ")", "{", "if", "(", "filters", ".", "isEmpty", "(", ")", ")", "{", "//Allow all", "return", "true", ";", "}", "final", "Iterator", "<", "Notifi...
Handle notification filtering according to stored filters.
[ "Handle", "notification", "filtering", "according", "to", "stored", "filters", "." ]
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/notification/ClientNotificationFilter.java#L63-L78
69,474
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java
EJBModuleMetaDataImpl.getApplicationExceptionRollback
public Boolean getApplicationExceptionRollback(Throwable t) // F743-14982 { Class<?> klass = t.getClass(); ApplicationException ae = getApplicationException(klass); Boolean rollback = null; if (ae != null) { rollback = ae.rollback(); } // Prior to...
java
public Boolean getApplicationExceptionRollback(Throwable t) // F743-14982 { Class<?> klass = t.getClass(); ApplicationException ae = getApplicationException(klass); Boolean rollback = null; if (ae != null) { rollback = ae.rollback(); } // Prior to...
[ "public", "Boolean", "getApplicationExceptionRollback", "(", "Throwable", "t", ")", "// F743-14982", "{", "Class", "<", "?", ">", "klass", "=", "t", ".", "getClass", "(", ")", ";", "ApplicationException", "ae", "=", "getApplicationException", "(", "klass", ")", ...
Gets the application exception and rollback status of the specified exception. @param t the exception @return null if the exception is not an application exception; otherwise, Boolean.TRUE if the exception should cause rollback or Boolean.FALSE if it should not
[ "Gets", "the", "application", "exception", "and", "rollback", "status", "of", "the", "specified", "exception", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java#L385-L425
69,475
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java
EJBModuleMetaDataImpl.getApplicationException
private ApplicationException getApplicationException(Class<?> klass) // F743-14982 { ApplicationException result = null; if (ivApplicationExceptionMap != null) { result = ivApplicationExceptionMap.get(klass.getName()); if (TraceComponent.isAnyTracingEnabled() && tc.is...
java
private ApplicationException getApplicationException(Class<?> klass) // F743-14982 { ApplicationException result = null; if (ivApplicationExceptionMap != null) { result = ivApplicationExceptionMap.get(klass.getName()); if (TraceComponent.isAnyTracingEnabled() && tc.is...
[ "private", "ApplicationException", "getApplicationException", "(", "Class", "<", "?", ">", "klass", ")", "// F743-14982", "{", "ApplicationException", "result", "=", "null", ";", "if", "(", "ivApplicationExceptionMap", "!=", "null", ")", "{", "result", "=", "ivApp...
Gets the application exception status of the specified exception class from either the deployment descriptor or from the annotation. @param klass is the Throwable class @return the settings, or null if no application-exception was provided for the specified class.
[ "Gets", "the", "application", "exception", "status", "of", "the", "specified", "exception", "class", "from", "either", "the", "deployment", "descriptor", "or", "from", "the", "annotation", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java#L436-L458
69,476
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java
EJBModuleMetaDataImpl.getComponentMetaDatas
@Override public ComponentMetaData[] getComponentMetaDatas() { ComponentMetaData[] initializedComponentMetaDatas = null; synchronized (ivEJBApplicationMetaData) { initializedComponentMetaDatas = new ComponentMetaData[ivNumFullyInitializedBeans]; int i = 0; ...
java
@Override public ComponentMetaData[] getComponentMetaDatas() { ComponentMetaData[] initializedComponentMetaDatas = null; synchronized (ivEJBApplicationMetaData) { initializedComponentMetaDatas = new ComponentMetaData[ivNumFullyInitializedBeans]; int i = 0; ...
[ "@", "Override", "public", "ComponentMetaData", "[", "]", "getComponentMetaDatas", "(", ")", "{", "ComponentMetaData", "[", "]", "initializedComponentMetaDatas", "=", "null", ";", "synchronized", "(", "ivEJBApplicationMetaData", ")", "{", "initializedComponentMetaDatas", ...
Return an Array of fully initialized ComponentMetaDatas for this modules.
[ "Return", "an", "Array", "of", "fully", "initialized", "ComponentMetaDatas", "for", "this", "modules", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java#L491-L511
69,477
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java
EJBModuleMetaDataImpl.toDumpString
public String toDumpString() { // Get the New Line separator from the Java system property. String newLine = AccessController.doPrivileged(new SystemGetPropertyPrivileged("line.separator", "\n")); StringBuilder sb = new StringBuilder(toString()); String indent = " "; sb.app...
java
public String toDumpString() { // Get the New Line separator from the Java system property. String newLine = AccessController.doPrivileged(new SystemGetPropertyPrivileged("line.separator", "\n")); StringBuilder sb = new StringBuilder(toString()); String indent = " "; sb.app...
[ "public", "String", "toDumpString", "(", ")", "{", "// Get the New Line separator from the Java system property.", "String", "newLine", "=", "AccessController", ".", "doPrivileged", "(", "new", "SystemGetPropertyPrivileged", "(", "\"line.separator\"", ",", "\"\\n\"", ")", "...
Return a String with EJB Container's module level runtime config data
[ "Return", "a", "String", "with", "EJB", "Container", "s", "module", "level", "runtime", "config", "data" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java#L544-L596
69,478
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java
EJBModuleMetaDataImpl.addApplicationEventListener
public void addApplicationEventListener(EJBApplicationEventListener listener) // F743-26072 { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isDebugEnabled()) Tr.debug(tc, "addApplicationEventListener: " + listener); if (ivApplicationEventLis...
java
public void addApplicationEventListener(EJBApplicationEventListener listener) // F743-26072 { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isDebugEnabled()) Tr.debug(tc, "addApplicationEventListener: " + listener); if (ivApplicationEventLis...
[ "public", "void", "addApplicationEventListener", "(", "EJBApplicationEventListener", "listener", ")", "// F743-26072", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "i...
Adds a new application even listener to be notified when an application has fully started or will begin stopping. @param listener the listener
[ "Adds", "a", "new", "application", "even", "listener", "to", "be", "notified", "when", "an", "application", "has", "fully", "started", "or", "will", "begin", "stopping", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java#L656-L667
69,479
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java
EJBModuleMetaDataImpl.addAutomaticTimerBean
public void addAutomaticTimerBean(AutomaticTimerBean timerBean) // d604213 { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "addAutomaticTimerBean: " + timerBean.getBeanMetaData().j2eeName); if (ivAutomaticTimerBeans == null) { ivAutoma...
java
public void addAutomaticTimerBean(AutomaticTimerBean timerBean) // d604213 { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "addAutomaticTimerBean: " + timerBean.getBeanMetaData().j2eeName); if (ivAutomaticTimerBeans == null) { ivAutoma...
[ "public", "void", "addAutomaticTimerBean", "(", "AutomaticTimerBean", "timerBean", ")", "// d604213", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", ...
Adds a list of timer method metadata for a bean belonging to this application. This method will only be called for beans that contain automatic timers. @param timerBean the list of timer method metadata
[ "Adds", "a", "list", "of", "timer", "method", "metadata", "for", "a", "bean", "belonging", "to", "this", "application", ".", "This", "method", "will", "only", "be", "called", "for", "beans", "that", "contain", "automatic", "timers", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java#L676-L689
69,480
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java
EJBModuleMetaDataImpl.freeResourcesAfterAllBeansInitialized
public void freeResourcesAfterAllBeansInitialized(BeanMetaData bmd) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "freeResourcesAfterAllBeansInitialized: " + bmd.j2eeName + ", " + (ivNumFullyI...
java
public void freeResourcesAfterAllBeansInitialized(BeanMetaData bmd) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "freeResourcesAfterAllBeansInitialized: " + bmd.j2eeName + ", " + (ivNumFullyI...
[ "public", "void", "freeResourcesAfterAllBeansInitialized", "(", "BeanMetaData", "bmd", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")",...
d462512 - log orphan warning message.
[ "d462512", "-", "log", "orphan", "warning", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java#L705-L731
69,481
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java
EJBModuleMetaDataImpl.setVersionedModuleBaseName
@Override public void setVersionedModuleBaseName(String appBaseName, String modBaseName) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "ModuleName = " + ivName + ", VersionedBaseName = " + appBaseName + "#" + modBaseName); i...
java
@Override public void setVersionedModuleBaseName(String appBaseName, String modBaseName) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "ModuleName = " + ivName + ", VersionedBaseName = " + appBaseName + "#" + modBaseName); i...
[ "@", "Override", "public", "void", "setVersionedModuleBaseName", "(", "String", "appBaseName", ",", "String", "modBaseName", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", "....
F54184 F54184.2
[ "F54184", "F54184", ".", "2" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/EJBModuleMetaDataImpl.java#L738-L758
69,482
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.addElement
private void addElement(String value) { if (null == value) { return; } this.num_items++; this.genericValues.add(value); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "addElement: " + value + " num: " + this.num_items); ...
java
private void addElement(String value) { if (null == value) { return; } this.num_items++; this.genericValues.add(value); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "addElement: " + value + " num: " + this.num_items); ...
[ "private", "void", "addElement", "(", "String", "value", ")", "{", "if", "(", "null", "==", "value", ")", "{", "return", ";", "}", "this", ".", "num_items", "++", ";", "this", ".", "genericValues", ".", "add", "(", "value", ")", ";", "if", "(", "Tr...
Add the given element to the generic no-key storage. The value must be in lowercase form by the time of this call. @param value - if null then nothing is stored
[ "Add", "the", "given", "element", "to", "the", "generic", "no", "-", "key", "storage", ".", "The", "value", "must", "be", "in", "lowercase", "form", "by", "the", "time", "of", "this", "call", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L94-L103
69,483
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.addElement
private void addElement(String key, String value) { this.num_items++; List<String> vals = this.values.get(key); if (null == vals) { vals = new LinkedList<String>(); } if (null == value) { vals.add("\"\""); } else { vals.add(value); ...
java
private void addElement(String key, String value) { this.num_items++; List<String> vals = this.values.get(key); if (null == vals) { vals = new LinkedList<String>(); } if (null == value) { vals.add("\"\""); } else { vals.add(value); ...
[ "private", "void", "addElement", "(", "String", "key", ",", "String", "value", ")", "{", "this", ".", "num_items", "++", ";", "List", "<", "String", ">", "vals", "=", "this", ".", "values", ".", "get", "(", "key", ")", ";", "if", "(", "null", "==",...
Add the given key=value pair into storage. Both key and value must be in lowercase form. If this key already exists, then this value will be appended to the existing values. @param key @param value - if null then an empty string value is stored
[ "Add", "the", "given", "key", "=", "value", "pair", "into", "storage", ".", "Both", "key", "and", "value", "must", "be", "in", "lowercase", "form", ".", "If", "this", "key", "already", "exists", "then", "this", "value", "will", "be", "appended", "to", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L113-L128
69,484
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.parse
private void parse(String input) { char[] data = input.toCharArray(); int start = 0; int hard_stop = data.length - 1; while (start < data.length) { if (this.mySep == data[start]) { start++; continue; } // look for the '=...
java
private void parse(String input) { char[] data = input.toCharArray(); int start = 0; int hard_stop = data.length - 1; while (start < data.length) { if (this.mySep == data[start]) { start++; continue; } // look for the '=...
[ "private", "void", "parse", "(", "String", "input", ")", "{", "char", "[", "]", "data", "=", "input", ".", "toCharArray", "(", ")", ";", "int", "start", "=", "0", ";", "int", "hard_stop", "=", "data", ".", "length", "-", "1", ";", "while", "(", "...
Parse the input string for all value possibilities. @param input
[ "Parse", "the", "input", "string", "for", "all", "value", "possibilities", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L135-L186
69,485
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.extractString
private String extractString(char[] data, int start, int end) { // skip leading whitespace and quotes while (start < end && (' ' == data[start] || '\t' == data[start] || '"' == data[start])) { start++; } // ignore trailing whitespace and quotes while (e...
java
private String extractString(char[] data, int start, int end) { // skip leading whitespace and quotes while (start < end && (' ' == data[start] || '\t' == data[start] || '"' == data[start])) { start++; } // ignore trailing whitespace and quotes while (e...
[ "private", "String", "extractString", "(", "char", "[", "]", "data", ",", "int", "start", ",", "int", "end", ")", "{", "// skip leading whitespace and quotes", "while", "(", "start", "<", "end", "&&", "(", "'", "'", "==", "data", "[", "start", "]", "||",...
Extract a string from the input array based on the start and end markers. This will strip off any leading and trailing white space or quotes. @param data @param start @param end @return String (lowercase converted)
[ "Extract", "a", "string", "from", "the", "input", "array", "based", "on", "the", "start", "and", "end", "markers", ".", "This", "will", "strip", "off", "any", "leading", "and", "trailing", "white", "space", "or", "quotes", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L197-L218
69,486
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.add
public boolean add(String inputValue) { String value = Normalizer.normalize(inputValue, Normalizer.NORMALIZE_LOWER); if (!contains(this.genericValues, value)) { addElement(value); return true; } return false; }
java
public boolean add(String inputValue) { String value = Normalizer.normalize(inputValue, Normalizer.NORMALIZE_LOWER); if (!contains(this.genericValues, value)) { addElement(value); return true; } return false; }
[ "public", "boolean", "add", "(", "String", "inputValue", ")", "{", "String", "value", "=", "Normalizer", ".", "normalize", "(", "inputValue", ",", "Normalizer", ".", "NORMALIZE_LOWER", ")", ";", "if", "(", "!", "contains", "(", "this", ".", "genericValues", ...
Add the generic value to this handler with no required key. @param inputValue @return boolean (true means success adding)
[ "Add", "the", "generic", "value", "to", "this", "handler", "with", "no", "required", "key", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L226-L233
69,487
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.add
public boolean add(String inputKey, String inputValue) { String key = Normalizer.normalize(inputKey, Normalizer.NORMALIZE_LOWER); String value = Normalizer.normalize(inputValue, Normalizer.NORMALIZE_LOWER); if (!contains(this.values.get(key), value)) { addElement(key, value); ...
java
public boolean add(String inputKey, String inputValue) { String key = Normalizer.normalize(inputKey, Normalizer.NORMALIZE_LOWER); String value = Normalizer.normalize(inputValue, Normalizer.NORMALIZE_LOWER); if (!contains(this.values.get(key), value)) { addElement(key, value); ...
[ "public", "boolean", "add", "(", "String", "inputKey", ",", "String", "inputValue", ")", "{", "String", "key", "=", "Normalizer", ".", "normalize", "(", "inputKey", ",", "Normalizer", ".", "NORMALIZE_LOWER", ")", ";", "String", "value", "=", "Normalizer", "....
Add the given key=value pair to this handler. @param inputKey @param inputValue @return boolean (true means success adding)
[ "Add", "the", "given", "key", "=", "value", "pair", "to", "this", "handler", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L242-L250
69,488
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.remove
private boolean remove(List<String> list, String item) { if (null != list) { if (list.remove(item)) { this.num_items--; return true; } } return false; }
java
private boolean remove(List<String> list, String item) { if (null != list) { if (list.remove(item)) { this.num_items--; return true; } } return false; }
[ "private", "boolean", "remove", "(", "List", "<", "String", ">", "list", ",", "String", "item", ")", "{", "if", "(", "null", "!=", "list", ")", "{", "if", "(", "list", ".", "remove", "(", "item", ")", ")", "{", "this", ".", "num_items", "--", ";"...
Remove the given item from the input list, if present, and update the item counter appropriately. @param list @param item @return boolean (true means removed)
[ "Remove", "the", "given", "item", "from", "the", "input", "list", "if", "present", "and", "update", "the", "item", "counter", "appropriately", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L260-L268
69,489
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.remove
public boolean remove(String inputKey, String inputValue) { String key = Normalizer.normalize(inputKey, Normalizer.NORMALIZE_LOWER); String value = Normalizer.normalize(inputValue, Normalizer.NORMALIZE_LOWER); boolean rc = remove(this.values.get(key), value); if (TraceComponent.isAnyTrac...
java
public boolean remove(String inputKey, String inputValue) { String key = Normalizer.normalize(inputKey, Normalizer.NORMALIZE_LOWER); String value = Normalizer.normalize(inputValue, Normalizer.NORMALIZE_LOWER); boolean rc = remove(this.values.get(key), value); if (TraceComponent.isAnyTrac...
[ "public", "boolean", "remove", "(", "String", "inputKey", ",", "String", "inputValue", ")", "{", "String", "key", "=", "Normalizer", ".", "normalize", "(", "inputKey", ",", "Normalizer", ".", "NORMALIZE_LOWER", ")", ";", "String", "value", "=", "Normalizer", ...
Remove this specific key=value pair from storage. If this key exists with other values, then those will not be touched, only the target value. @param inputKey @param inputValue @return boolean (true means success removing)
[ "Remove", "this", "specific", "key", "=", "value", "pair", "from", "storage", ".", "If", "this", "key", "exists", "with", "other", "values", "then", "those", "will", "not", "be", "touched", "only", "the", "target", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L278-L286
69,490
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.remove
public boolean remove(String inputValue) { String value = Normalizer.normalize(inputValue, Normalizer.NORMALIZE_LOWER); boolean rc = remove(this.genericValues, value); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "remove: " + value + " rc=" + rc); ...
java
public boolean remove(String inputValue) { String value = Normalizer.normalize(inputValue, Normalizer.NORMALIZE_LOWER); boolean rc = remove(this.genericValues, value); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "remove: " + value + " rc=" + rc); ...
[ "public", "boolean", "remove", "(", "String", "inputValue", ")", "{", "String", "value", "=", "Normalizer", ".", "normalize", "(", "inputValue", ",", "Normalizer", ".", "NORMALIZE_LOWER", ")", ";", "boolean", "rc", "=", "remove", "(", "this", ".", "genericVa...
Remove the target value from the generic no-key storage. @param inputValue @return boolean (true means success removing)
[ "Remove", "the", "target", "value", "from", "the", "generic", "no", "-", "key", "storage", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L294-L301
69,491
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.removeKey
public int removeKey(String inputKey) { String key = Normalizer.normalize(inputKey, Normalizer.NORMALIZE_LOWER); int num_removed = 0; List<String> vals = this.values.remove(key); if (null != vals) { num_removed = vals.size(); } this.num_items -= num_removed; ...
java
public int removeKey(String inputKey) { String key = Normalizer.normalize(inputKey, Normalizer.NORMALIZE_LOWER); int num_removed = 0; List<String> vals = this.values.remove(key); if (null != vals) { num_removed = vals.size(); } this.num_items -= num_removed; ...
[ "public", "int", "removeKey", "(", "String", "inputKey", ")", "{", "String", "key", "=", "Normalizer", ".", "normalize", "(", "inputKey", ",", "Normalizer", ".", "NORMALIZE_LOWER", ")", ";", "int", "num_removed", "=", "0", ";", "List", "<", "String", ">", ...
Remove an entire key from storage, regardless of how many values it may contain. @param inputKey @return int (number of items removed by this action)
[ "Remove", "an", "entire", "key", "from", "storage", "regardless", "of", "how", "many", "values", "it", "may", "contain", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L310-L322
69,492
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.contains
private boolean contains(List<String> list, String item) { return (null == list) ? false : list.contains(item); }
java
private boolean contains(List<String> list, String item) { return (null == list) ? false : list.contains(item); }
[ "private", "boolean", "contains", "(", "List", "<", "String", ">", "list", ",", "String", "item", ")", "{", "return", "(", "null", "==", "list", ")", "?", "false", ":", "list", ".", "contains", "(", "item", ")", ";", "}" ]
Query whether the target list contains the item. @param list @param item @return boolean
[ "Query", "whether", "the", "target", "list", "contains", "the", "item", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L331-L333
69,493
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.containsKey
public boolean containsKey(String inputKey) { String key = Normalizer.normalize(inputKey, Normalizer.NORMALIZE_LOWER); List<String> list = this.values.get(key); boolean rc = (null == list) ? false : !list.isEmpty(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { ...
java
public boolean containsKey(String inputKey) { String key = Normalizer.normalize(inputKey, Normalizer.NORMALIZE_LOWER); List<String> list = this.values.get(key); boolean rc = (null == list) ? false : !list.isEmpty(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { ...
[ "public", "boolean", "containsKey", "(", "String", "inputKey", ")", "{", "String", "key", "=", "Normalizer", ".", "normalize", "(", "inputKey", ",", "Normalizer", ".", "NORMALIZE_LOWER", ")", ";", "List", "<", "String", ">", "list", "=", "this", ".", "valu...
Query whether the target key exists with any values in this handler. @param inputKey @return boolean
[ "Query", "whether", "the", "target", "key", "exists", "with", "any", "values", "in", "this", "handler", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L356-L364
69,494
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.getValues
public Iterator<String> getValues(String inputKey) { String key = Normalizer.normalize(inputKey, Normalizer.NORMALIZE_LOWER); List<String> vals = this.values.get(key); if (null != vals) { return vals.iterator(); } return new LinkedList<String>().iterator(); }
java
public Iterator<String> getValues(String inputKey) { String key = Normalizer.normalize(inputKey, Normalizer.NORMALIZE_LOWER); List<String> vals = this.values.get(key); if (null != vals) { return vals.iterator(); } return new LinkedList<String>().iterator(); }
[ "public", "Iterator", "<", "String", ">", "getValues", "(", "String", "inputKey", ")", "{", "String", "key", "=", "Normalizer", ".", "normalize", "(", "inputKey", ",", "Normalizer", ".", "NORMALIZE_LOWER", ")", ";", "List", "<", "String", ">", "vals", "=",...
Access an iterator of all values for the target key. @param inputKey @return Iterator (empty list if none present)
[ "Access", "an", "iterator", "of", "all", "values", "for", "the", "target", "key", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L398-L405
69,495
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.marshall
public String marshall() { if (0 == this.num_items) { return ""; } boolean shouldPrepend = false; StringBuilder output = new StringBuilder(10 * this.num_items); // walk through the list of simple values (no key=value) first Iterator<String> i = this.genericVal...
java
public String marshall() { if (0 == this.num_items) { return ""; } boolean shouldPrepend = false; StringBuilder output = new StringBuilder(10 * this.num_items); // walk through the list of simple values (no key=value) first Iterator<String> i = this.genericVal...
[ "public", "String", "marshall", "(", ")", "{", "if", "(", "0", "==", "this", ".", "num_items", ")", "{", "return", "\"\"", ";", "}", "boolean", "shouldPrepend", "=", "false", ";", "StringBuilder", "output", "=", "new", "StringBuilder", "(", "10", "*", ...
Take the current data in this handler and create the properly formatted string that would represent the header. @return String (empty string if no values are present)
[ "Take", "the", "current", "data", "in", "this", "handler", "and", "create", "the", "properly", "formatted", "string", "that", "would", "represent", "the", "header", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L413-L470
69,496
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java
HeaderHandler.clear
public void clear() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Clearing this header handler: " + this); } this.num_items = 0; this.values.clear(); this.genericValues.clear(); }
java
public void clear() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Clearing this header handler: " + this); } this.num_items = 0; this.values.clear(); this.genericValues.clear(); }
[ "public", "void", "clear", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"Clearing this header handler: \"", "+", "this", ")", ...
Clear everything out of storage for this handler.
[ "Clear", "everything", "out", "of", "storage", "for", "this", "handler", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderHandler.java#L493-L500
69,497
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java
ConnectionWriteCompletedCallback.proddle
protected void proddle() throws SIConnectionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "proddle"); boolean useThisThread = false; synchronized (priorityQueue) { synchronized (this) { if (idle) { useThi...
java
protected void proddle() throws SIConnectionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "proddle"); boolean useThisThread = false; synchronized (priorityQueue) { synchronized (this) { if (idle) { useThi...
[ "protected", "void", "proddle", "(", ")", "throws", "SIConnectionDroppedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", ...
being F176003, F181603.2, D192359
[ "being", "F176003", "F181603", ".", "2", "D192359" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java#L135-L154
69,498
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java
ConnectionWriteCompletedCallback.complete
public void complete(NetworkConnection vc, IOWriteRequestContext wctx) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "complete", new Object[] {vc, wctx}); if (connection.isLoggingIOEvents()) connection.getConnectionEventRecorder().logDebug("complete method invoked ...
java
public void complete(NetworkConnection vc, IOWriteRequestContext wctx) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "complete", new Object[] {vc, wctx}); if (connection.isLoggingIOEvents()) connection.getConnectionEventRecorder().logDebug("complete method invoked ...
[ "public", "void", "complete", "(", "NetworkConnection", "vc", ",", "IOWriteRequestContext", "wctx", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "th...
begin F181603.2, D192359
[ "begin", "F181603", ".", "2", "D192359" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java#L162-L208
69,499
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java
ConnectionWriteCompletedCallback.doWork
private void doWork(boolean hasWritten) throws SIConnectionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "doWork", Boolean.valueOf(hasWritten)); final BlockingQueue<Pair<SendListener,Conversation>> readySendCallbacks = new LinkedBlock...
java
private void doWork(boolean hasWritten) throws SIConnectionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "doWork", Boolean.valueOf(hasWritten)); final BlockingQueue<Pair<SendListener,Conversation>> readySendCallbacks = new LinkedBlock...
[ "private", "void", "doWork", "(", "boolean", "hasWritten", ")", "throws", "SIConnectionDroppedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "thi...
Looks to initiate write operations to write all available data from the priority queue to the network. Continues until all data has been sent or until the return from a write call indicates its completion will be asynchronous. Once it has finished writing on this thread, calls the registered send listeners for all mess...
[ "Looks", "to", "initiate", "write", "operations", "to", "write", "all", "available", "data", "from", "the", "priority", "queue", "to", "the", "network", ".", "Continues", "until", "all", "data", "has", "been", "sent", "or", "until", "the", "return", "from", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/ConnectionWriteCompletedCallback.java#L219-L263