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
65,700
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java
TreeMap.size
public long size(Transaction transaction) throws ObjectManagerException { // No trace because this is used by toString(), and hence by trace itself; long sizeFound; // For return; synchronized (this) { sizeFound = availableSize; // Move through th...
java
public long size(Transaction transaction) throws ObjectManagerException { // No trace because this is used by toString(), and hence by trace itself; long sizeFound; // For return; synchronized (this) { sizeFound = availableSize; // Move through th...
[ "public", "long", "size", "(", "Transaction", "transaction", ")", "throws", "ObjectManagerException", "{", "// No trace because this is used by toString(), and hence by trace itself;", "long", "sizeFound", ";", "// For return;", "synchronized", "(", "this", ")", "{", "sizeFou...
Returns the number of key-value mappings in this map , which ara available to the transaction. @param transaction which sees the tree as this size. @return the number of key-value mappings in this map. @exception ObjectManagerException @see com.ibm.ws.objectManager.Collection#size(com.ibm.ws.objectManager.Transaction...
[ "Returns", "the", "number", "of", "key", "-", "value", "mappings", "in", "this", "map", "which", "ara", "available", "to", "the", "transaction", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java#L222-L243
65,701
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java
TreeMap.isEmpty
public synchronized boolean isEmpty(Transaction transaction) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass , "isEmpty" , new Object[] { transaction }); ...
java
public synchronized boolean isEmpty(Transaction transaction) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass , "isEmpty" , new Object[] { transaction }); ...
[ "public", "synchronized", "boolean", "isEmpty", "(", "Transaction", "transaction", ")", "throws", "ObjectManagerException", "{", "if", "(", "Tracing", ".", "isAnyTracingEnabled", "(", ")", "&&", "trace", ".", "isEntryEnabled", "(", ")", ")", "trace", ".", "entry...
Determines if the tree is empty as viewed by the transaction. Returns true if there are no entries visible to the transaction and false if there are entries visible. @param transaction the transaction which sees the tree as empty. @return true if no entries are visible, false if there are entries visible. @exception O...
[ "Determines", "if", "the", "tree", "is", "empty", "as", "viewed", "by", "the", "transaction", ".", "Returns", "true", "if", "there", "are", "no", "entries", "visible", "to", "the", "transaction", "and", "false", "if", "there", "are", "entries", "visible", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java#L266-L285
65,702
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java
TreeMap.getEntry
private Entry getEntry(Object key) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass , "getEntry" , new Object[] { key }); Entry entry = (Entry) super....
java
private Entry getEntry(Object key) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass , "getEntry" , new Object[] { key }); Entry entry = (Entry) super....
[ "private", "Entry", "getEntry", "(", "Object", "key", ")", "throws", "ObjectManagerException", "{", "if", "(", "Tracing", ".", "isAnyTracingEnabled", "(", ")", "&&", "trace", ".", "isEntryEnabled", "(", ")", ")", "trace", ".", "entry", "(", "this", ",", "c...
Returns the first Entry matching the key or null if the map does not contain an entry for the key. The entry returned may be uncommited. @param key whose Entry is to be returned. @return Entry matching the key or null if there is none. @exception ObjectManagerException
[ "Returns", "the", "first", "Entry", "matching", "the", "key", "or", "null", "if", "the", "map", "does", "not", "contain", "an", "entry", "for", "the", "key", ".", "The", "entry", "returned", "may", "be", "uncommited", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java#L485-L513
65,703
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java
TreeMap.putDuplicate
public synchronized void putDuplicate(Object key, Token value, Transaction transaction) throws ObjectManagerException { put(key, value, transaction, true); }
java
public synchronized void putDuplicate(Object key, Token value, Transaction transaction) throws ObjectManagerException { put(key, value, transaction, true); }
[ "public", "synchronized", "void", "putDuplicate", "(", "Object", "key", ",", "Token", "value", ",", "Transaction", "transaction", ")", "throws", "ObjectManagerException", "{", "put", "(", "key", ",", "value", ",", "transaction", ",", "true", ")", ";", "}" ]
Associates the specified value with the specified key in this map. If the map previously contained a mapping for this key, the old value is left alone and a new one added. @param key with which the specified value is to be associated. @param value to be associated with the specified key. @param transaction the put wil...
[ "Associates", "the", "specified", "value", "with", "the", "specified", "key", "in", "this", "map", ".", "If", "the", "map", "previously", "contained", "a", "mapping", "for", "this", "key", "the", "old", "value", "is", "left", "alone", "and", "a", "new", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java#L555-L564
65,704
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java
TreeMap.add
private void add(Object key, Token value, Entry currentEntry, Transaction transaction, long logSpaceDelta) throws ObjectManagerException { final String methodName = "add"; if (Tracing.isAnyTracingEnab...
java
private void add(Object key, Token value, Entry currentEntry, Transaction transaction, long logSpaceDelta) throws ObjectManagerException { final String methodName = "add"; if (Tracing.isAnyTracingEnab...
[ "private", "void", "add", "(", "Object", "key", ",", "Token", "value", ",", "Entry", "currentEntry", ",", "Transaction", "transaction", ",", "long", "logSpaceDelta", ")", "throws", "ObjectManagerException", "{", "final", "String", "methodName", "=", "\"add\"", "...
Add a new value to the tree at a point where they key is after all less than or equal keys and below the currentEntry. @param key for the value. @param value to be added. @param currentEntry which starts the search. @param transaction controlling the addition. @param logSpaceDelta the change in log space to be reserve...
[ "Add", "a", "new", "value", "to", "the", "tree", "at", "a", "point", "where", "they", "key", "is", "after", "all", "less", "than", "or", "equal", "keys", "and", "below", "the", "currentEntry", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java#L845-L914
65,705
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java
TreeMap.undoPut
private void undoPut() throws ObjectManagerException { final String methodName = "undoPut"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName); // Give back all of the remaining space. owningToken.objectStor...
java
private void undoPut() throws ObjectManagerException { final String methodName = "undoPut"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName); // Give back all of the remaining space. owningToken.objectStor...
[ "private", "void", "undoPut", "(", ")", "throws", "ObjectManagerException", "{", "final", "String", "methodName", "=", "\"undoPut\"", ";", "if", "(", "Tracing", ".", "isAnyTracingEnabled", "(", ")", "&&", "trace", ".", "isEntryEnabled", "(", ")", ")", "trace",...
Reverse the action of addition to the map, used after an add has failed to log anything. @throws ObjectManagerException
[ "Reverse", "the", "action", "of", "addition", "to", "the", "map", "used", "after", "an", "add", "has", "failed", "to", "log", "anything", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java#L922-L933
65,706
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java
TreeMap.clear
public synchronized void clear(Transaction transaction) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass , "clear" + "transaction=" + transaction + "(Transac...
java
public synchronized void clear(Transaction transaction) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass , "clear" + "transaction=" + transaction + "(Transac...
[ "public", "synchronized", "void", "clear", "(", "Transaction", "transaction", ")", "throws", "ObjectManagerException", "{", "if", "(", "Tracing", ".", "isAnyTracingEnabled", "(", ")", "&&", "trace", ".", "isEntryEnabled", "(", ")", ")", "trace", ".", "entry", ...
Removes all mappings from this TreeMap, which are visible to the transaction. Actual deletion of the entries takes place when the transaction commits. @param transaction to control clearing the map. @exception ObjectManagerException If thrown the map may be partially cleared.
[ "Removes", "all", "mappings", "from", "this", "TreeMap", "which", "are", "visible", "to", "the", "transaction", ".", "Actual", "deletion", "of", "the", "entries", "takes", "place", "when", "the", "transaction", "commits", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java#L1067-L1088
65,707
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java
TreeMap.compare
private int compare(Object key1, Object key2) { if (comparator == null) return ((Comparable) key1).compareTo(key2); else return comparator.compare(key1, key2); }
java
private int compare(Object key1, Object key2) { if (comparator == null) return ((Comparable) key1).compareTo(key2); else return comparator.compare(key1, key2); }
[ "private", "int", "compare", "(", "Object", "key1", ",", "Object", "key2", ")", "{", "if", "(", "comparator", "==", "null", ")", "return", "(", "(", "Comparable", ")", "key1", ")", ".", "compareTo", "(", "key2", ")", ";", "else", "return", "comparator"...
Use the comparator to compare the two keys. @param key1 first key to compare. @param key2 second key to compare. @return int -1 if key1 < key2 0 if key1 = key2 1 if key1 > key2
[ "Use", "the", "comparator", "to", "compare", "the", "two", "keys", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java#L1564-L1569
65,708
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java
TreeMap.deleteEntry
private synchronized void deleteEntry(Entry entry, Transaction transaction) throws ObjectManagerException { final String methodName = "deleteEntry"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cc...
java
private synchronized void deleteEntry(Entry entry, Transaction transaction) throws ObjectManagerException { final String methodName = "deleteEntry"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cc...
[ "private", "synchronized", "void", "deleteEntry", "(", "Entry", "entry", ",", "Transaction", "transaction", ")", "throws", "ObjectManagerException", "{", "final", "String", "methodName", "=", "\"deleteEntry\"", ";", "if", "(", "Tracing", ".", "isAnyTracingEnabled", ...
Finalise removal of an Entry from the tree. We have already logged the deletion of the Entry so we now need to rechain those Entries currently refering to it and rebalance the tree. This may be redriven at recovery so we need to detect if the entry has already been removed from the tree so that we don't disrupt other ...
[ "Finalise", "removal", "of", "an", "Entry", "from", "the", "tree", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java#L1857-L1890
65,709
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java
TreeMap.move
void move(AbstractTreeMap.Entry x, AbstractTreeMap.Entry y) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.exit(this, cclass, "move", new Object[] { x, y }...
java
void move(AbstractTreeMap.Entry x, AbstractTreeMap.Entry y) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.exit(this, cclass, "move", new Object[] { x, y }...
[ "void", "move", "(", "AbstractTreeMap", ".", "Entry", "x", ",", "AbstractTreeMap", ".", "Entry", "y", ")", "throws", "ObjectManagerException", "{", "if", "(", "Tracing", ".", "isAnyTracingEnabled", "(", ")", "&&", "trace", ".", "isEntryEnabled", "(", ")", ")...
Move x to occupy the position currently held by y. @param x to be moved. @param y location to be moved to. @throws ObjectManagerException
[ "Move", "x", "to", "occupy", "the", "position", "currently", "held", "by", "y", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java#L1950-L1985
65,710
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java
TreeMap.print
public synchronized void print(java.io.PrintWriter printWriter) { printWriter.println("Dump of TreeMap size=" + size + "(long)"); try { for (Iterator iterator = entrySet().iterator(); iterator.hasNext();) { Entry entry = (Entry) iterator.next(); printWrite...
java
public synchronized void print(java.io.PrintWriter printWriter) { printWriter.println("Dump of TreeMap size=" + size + "(long)"); try { for (Iterator iterator = entrySet().iterator(); iterator.hasNext();) { Entry entry = (Entry) iterator.next(); printWrite...
[ "public", "synchronized", "void", "print", "(", "java", ".", "io", ".", "PrintWriter", "printWriter", ")", "{", "printWriter", ".", "println", "(", "\"Dump of TreeMap size=\"", "+", "size", "+", "\"(long)\"", ")", ";", "try", "{", "for", "(", "Iterator", "it...
Print a dump of the Map. @param printWriter to be written to.
[ "Print", "a", "dump", "of", "the", "Map", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java#L2038-L2053
65,711
OpenLiberty/open-liberty
dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/RESTHelper.java
RESTHelper.containsMultipleRoutingContext
public static boolean containsMultipleRoutingContext(RESTRequest request) { //TODO: add a check for query string if (request instanceof ServletRESTRequestWithParams) { ServletRESTRequestWithParams req = (ServletRESTRequestWithParams) request; return (req.getParam(ClientProvider....
java
public static boolean containsMultipleRoutingContext(RESTRequest request) { //TODO: add a check for query string if (request instanceof ServletRESTRequestWithParams) { ServletRESTRequestWithParams req = (ServletRESTRequestWithParams) request; return (req.getParam(ClientProvider....
[ "public", "static", "boolean", "containsMultipleRoutingContext", "(", "RESTRequest", "request", ")", "{", "//TODO: add a check for query string", "if", "(", "request", "instanceof", "ServletRESTRequestWithParams", ")", "{", "ServletRESTRequestWithParams", "req", "=", "(", "...
Quick check for multiple-target routing context, without actually fetching all pieces
[ "Quick", "check", "for", "multiple", "-", "target", "routing", "context", "without", "actually", "fetching", "all", "pieces" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/RESTHelper.java#L147-L155
65,712
OpenLiberty/open-liberty
dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/RESTHelper.java
RESTHelper.getRoutingContext
public static String[] getRoutingContext(RESTRequest request, boolean errorIfNull) { //Look for headers first String targetHost = request.getHeader(ClientProvider.ROUTING_KEY_HOST_NAME); if (targetHost != null) { targetHost = URLDecoder(targetHost, null); String targetUse...
java
public static String[] getRoutingContext(RESTRequest request, boolean errorIfNull) { //Look for headers first String targetHost = request.getHeader(ClientProvider.ROUTING_KEY_HOST_NAME); if (targetHost != null) { targetHost = URLDecoder(targetHost, null); String targetUse...
[ "public", "static", "String", "[", "]", "getRoutingContext", "(", "RESTRequest", "request", ",", "boolean", "errorIfNull", ")", "{", "//Look for headers first", "String", "targetHost", "=", "request", ".", "getHeader", "(", "ClientProvider", ".", "ROUTING_KEY_HOST_NAM...
This helper method looks for the routing keys in the HTTP headers first, and then fallsback into looking at the query string. @param request of the current request @return a 3-sized String array containing hostName, userDir and serverName respectively, or null if no routing context was found.
[ "This", "helper", "method", "looks", "for", "the", "routing", "keys", "in", "the", "HTTP", "headers", "first", "and", "then", "fallsback", "into", "looking", "at", "the", "query", "string", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/RESTHelper.java#L171-L237
65,713
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java
RendererUtils.isDefaultAttributeValue
public static boolean isDefaultAttributeValue(Object value) { if (value == null) { return true; } else if (value instanceof Boolean) { return !((Boolean) value).booleanValue(); } else if (value instanceof Number) { i...
java
public static boolean isDefaultAttributeValue(Object value) { if (value == null) { return true; } else if (value instanceof Boolean) { return !((Boolean) value).booleanValue(); } else if (value instanceof Number) { i...
[ "public", "static", "boolean", "isDefaultAttributeValue", "(", "Object", "value", ")", "{", "if", "(", "value", "==", "null", ")", "{", "return", "true", ";", "}", "else", "if", "(", "value", "instanceof", "Boolean", ")", "{", "return", "!", "(", "(", ...
See JSF Spec. 8.5 Table 8-1 @param value @return boolean
[ "See", "JSF", "Spec", ".", "8", ".", "5", "Table", "8", "-", "1" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java#L495-L533
65,714
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java
RendererUtils.findUIOutputConverter
public static Converter findUIOutputConverter(FacesContext facesContext, UIOutput component) throws FacesException { return _SharedRendererUtils.findUIOutputConverter(facesContext, component); }
java
public static Converter findUIOutputConverter(FacesContext facesContext, UIOutput component) throws FacesException { return _SharedRendererUtils.findUIOutputConverter(facesContext, component); }
[ "public", "static", "Converter", "findUIOutputConverter", "(", "FacesContext", "facesContext", ",", "UIOutput", "component", ")", "throws", "FacesException", "{", "return", "_SharedRendererUtils", ".", "findUIOutputConverter", "(", "facesContext", ",", "component", ")", ...
Find the proper Converter for the given UIOutput component. @return the Converter or null if no Converter specified or needed @throws FacesException if the Converter could not be created
[ "Find", "the", "proper", "Converter", "for", "the", "given", "UIOutput", "component", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java#L540-L545
65,715
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java
RendererUtils.findUISelectManyConverter
public static Converter findUISelectManyConverter( FacesContext facesContext, UISelectMany component) { return findUISelectManyConverter(facesContext, component, false); }
java
public static Converter findUISelectManyConverter( FacesContext facesContext, UISelectMany component) { return findUISelectManyConverter(facesContext, component, false); }
[ "public", "static", "Converter", "findUISelectManyConverter", "(", "FacesContext", "facesContext", ",", "UISelectMany", "component", ")", "{", "return", "findUISelectManyConverter", "(", "facesContext", ",", "component", ",", "false", ")", ";", "}" ]
Calls findUISelectManyConverter with considerValueType = false. @param facesContext @param component @return
[ "Calls", "findUISelectManyConverter", "with", "considerValueType", "=", "false", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java#L553-L557
65,716
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java
RendererUtils.findUISelectManyConverter
public static Converter findUISelectManyConverter( FacesContext facesContext, UISelectMany component, boolean considerValueType) { // If the component has an attached Converter, use it. Converter converter = component.getConverter(); if (converter != null) { ...
java
public static Converter findUISelectManyConverter( FacesContext facesContext, UISelectMany component, boolean considerValueType) { // If the component has an attached Converter, use it. Converter converter = component.getConverter(); if (converter != null) { ...
[ "public", "static", "Converter", "findUISelectManyConverter", "(", "FacesContext", "facesContext", ",", "UISelectMany", "component", ",", "boolean", "considerValueType", ")", "{", "// If the component has an attached Converter, use it.", "Converter", "converter", "=", "componen...
Find proper Converter for the entries in the associated Collection or array of the given UISelectMany as specified in API Doc of UISelectMany. If considerValueType is true, the valueType attribute will be used in addition to the standard algorithm to get a valid converter. @return the Converter or null if no Converter...
[ "Find", "proper", "Converter", "for", "the", "entries", "in", "the", "associated", "Collection", "or", "array", "of", "the", "given", "UISelectMany", "as", "specified", "in", "API", "Doc", "of", "UISelectMany", ".", "If", "considerValueType", "is", "true", "th...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java#L568-L655
65,717
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java
RendererUtils.getSelectedValuesAsSet
public static Set getSelectedValuesAsSet(FacesContext context, UIComponent component, Converter converter, UISelectMany uiSelectMany) { Object selectedValues = uiSelectMany.getValue(); return internalSubmittedOrSelectedValuesAsSet(context, component, converte...
java
public static Set getSelectedValuesAsSet(FacesContext context, UIComponent component, Converter converter, UISelectMany uiSelectMany) { Object selectedValues = uiSelectMany.getValue(); return internalSubmittedOrSelectedValuesAsSet(context, component, converte...
[ "public", "static", "Set", "getSelectedValuesAsSet", "(", "FacesContext", "context", ",", "UIComponent", "component", ",", "Converter", "converter", ",", "UISelectMany", "uiSelectMany", ")", "{", "Object", "selectedValues", "=", "uiSelectMany", ".", "getValue", "(", ...
Convenient utility method that returns the currently selected values of a UISelectMany component as a Set, of which the contains method can then be easily used to determine if a value is currently selected. Calling the contains method of this Set with the item value as argument returns true if this item is selected. @p...
[ "Convenient", "utility", "method", "that", "returns", "the", "currently", "selected", "values", "of", "a", "UISelectMany", "component", "as", "a", "Set", "of", "which", "the", "contains", "method", "can", "then", "be", "easily", "used", "to", "determine", "if"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java#L837-L845
65,718
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java
RendererUtils.getConvertedStringValue
public static String getConvertedStringValue(FacesContext context, UIComponent component, Converter converter, Object value) { if (converter == null) { if (value == null) { return ""; } else if (value instanceof String) ...
java
public static String getConvertedStringValue(FacesContext context, UIComponent component, Converter converter, Object value) { if (converter == null) { if (value == null) { return ""; } else if (value instanceof String) ...
[ "public", "static", "String", "getConvertedStringValue", "(", "FacesContext", "context", ",", "UIComponent", "component", ",", "Converter", "converter", ",", "Object", "value", ")", "{", "if", "(", "converter", "==", "null", ")", "{", "if", "(", "value", "==",...
Convenient utility method that returns the currently given value as String, using the given converter. Especially usefull for dealing with primitive types.
[ "Convenient", "utility", "method", "that", "returns", "the", "currently", "given", "value", "as", "String", "using", "the", "given", "converter", ".", "Especially", "usefull", "for", "dealing", "with", "primitive", "types", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java#L852-L872
65,719
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java
RendererUtils.getConvertedStringValue
public static String getConvertedStringValue(FacesContext context, UIComponent component, Converter converter, SelectItem selectItem) { return getConvertedStringValue(context, component, converter, selectItem.getValue()); }
java
public static String getConvertedStringValue(FacesContext context, UIComponent component, Converter converter, SelectItem selectItem) { return getConvertedStringValue(context, component, converter, selectItem.getValue()); }
[ "public", "static", "String", "getConvertedStringValue", "(", "FacesContext", "context", ",", "UIComponent", "component", ",", "Converter", "converter", ",", "SelectItem", "selectItem", ")", "{", "return", "getConvertedStringValue", "(", "context", ",", "component", "...
Convenient utility method that returns the currently given SelectItem value as String, using the given converter. Especially usefull for dealing with primitive types.
[ "Convenient", "utility", "method", "that", "returns", "the", "currently", "given", "SelectItem", "value", "as", "String", "using", "the", "given", "converter", ".", "Especially", "usefull", "for", "dealing", "with", "primitive", "types", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java#L879-L884
65,720
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java
RendererUtils.getConvertedUISelectManyValue
public static Object getConvertedUISelectManyValue( FacesContext facesContext, UISelectMany selectMany, Object submittedValue, boolean considerValueType) throws ConverterException { if (submittedValue == null) { return null; } if (!(su...
java
public static Object getConvertedUISelectManyValue( FacesContext facesContext, UISelectMany selectMany, Object submittedValue, boolean considerValueType) throws ConverterException { if (submittedValue == null) { return null; } if (!(su...
[ "public", "static", "Object", "getConvertedUISelectManyValue", "(", "FacesContext", "facesContext", ",", "UISelectMany", "selectMany", ",", "Object", "submittedValue", ",", "boolean", "considerValueType", ")", "throws", "ConverterException", "{", "if", "(", "submittedValu...
Gets the converted value of a UISelectMany component. @param facesContext @param selectMany @param submittedValue @param considerValueType if true, the valueType attribute of the component will also be used (applies for Tomahawk UISelectMany components) @return @throws ConverterException
[ "Gets", "the", "converted", "value", "of", "a", "UISelectMany", "component", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java#L1045-L1064
65,721
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java
RendererUtils.initPartialValidationAndModelUpdate
public static void initPartialValidationAndModelUpdate( UIComponent component, FacesContext facesContext) { String actionFor = (String) component.getAttributes().get("actionFor"); if (actionFor != null) { List li = convertIdsToClientIds(actionFor, facesContext, compo...
java
public static void initPartialValidationAndModelUpdate( UIComponent component, FacesContext facesContext) { String actionFor = (String) component.getAttributes().get("actionFor"); if (actionFor != null) { List li = convertIdsToClientIds(actionFor, facesContext, compo...
[ "public", "static", "void", "initPartialValidationAndModelUpdate", "(", "UIComponent", "component", ",", "FacesContext", "facesContext", ")", "{", "String", "actionFor", "=", "(", "String", ")", "component", ".", "getAttributes", "(", ")", ".", "get", "(", "\"acti...
check for partial validation or model update attributes being set and initialize the request-map accordingly. SubForms will work with this information.
[ "check", "for", "partial", "validation", "or", "model", "update", "attributes", "being", "set", "and", "initialize", "the", "request", "-", "map", "accordingly", ".", "SubForms", "will", "work", "with", "this", "information", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java#L1414-L1437
65,722
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java
RendererUtils.getResponseStateManager
@Deprecated public static ResponseStateManager getResponseStateManager( FacesContext facesContext, String renderKitId) throws FacesException { RenderKit renderKit = facesContext.getRenderKit(); if (renderKit == null) { // look for the renderkit in the...
java
@Deprecated public static ResponseStateManager getResponseStateManager( FacesContext facesContext, String renderKitId) throws FacesException { RenderKit renderKit = facesContext.getRenderKit(); if (renderKit == null) { // look for the renderkit in the...
[ "@", "Deprecated", "public", "static", "ResponseStateManager", "getResponseStateManager", "(", "FacesContext", "facesContext", ",", "String", "renderKitId", ")", "throws", "FacesException", "{", "RenderKit", "renderKit", "=", "facesContext", ".", "getRenderKit", "(", ")...
Gets the ResponseStateManager for the renderKit Id provided @deprecated use FacesContext.getRenderKit() or getRenderKitFactory().getRenderKit( context, renderKitId).getResponseStateManager()
[ "Gets", "the", "ResponseStateManager", "for", "the", "renderKit", "Id", "provided" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java#L1455-L1496
65,723
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java
RendererUtils.toResourceUri
static public String toResourceUri(FacesContext facesContext, Object o) { if (o == null) { return null; } String uri = o.toString(); // *** EL Coercion problem *** // If icon or image attribute was declared with #{resource[]} and that expression ...
java
static public String toResourceUri(FacesContext facesContext, Object o) { if (o == null) { return null; } String uri = o.toString(); // *** EL Coercion problem *** // If icon or image attribute was declared with #{resource[]} and that expression ...
[ "static", "public", "String", "toResourceUri", "(", "FacesContext", "facesContext", ",", "Object", "o", ")", "{", "if", "(", "o", "==", "null", ")", "{", "return", "null", ";", "}", "String", "uri", "=", "o", ".", "toString", "(", ")", ";", "// *** EL ...
Coerces an object into a resource URI, calling the view-handler.
[ "Coerces", "an", "object", "into", "a", "resource", "URI", "calling", "the", "view", "-", "handler", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java#L1571-L1614
65,724
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/client/LibertyCustomizeBindingOutInterceptor.java
LibertyCustomizeBindingOutInterceptor.trim
public final static String trim(String value) { String result = null; if (null != value) { result = value.trim(); } return result; }
java
public final static String trim(String value) { String result = null; if (null != value) { result = value.trim(); } return result; }
[ "public", "final", "static", "String", "trim", "(", "String", "value", ")", "{", "String", "result", "=", "null", ";", "if", "(", "null", "!=", "value", ")", "{", "result", "=", "value", ".", "trim", "(", ")", ";", "}", "return", "result", ";", "}"...
remove the blank characters in the left and right for a given value. @param value @return
[ "remove", "the", "blank", "characters", "in", "the", "left", "and", "right", "for", "a", "given", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/client/LibertyCustomizeBindingOutInterceptor.java#L106-L115
65,725
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/client/LibertyCustomizeBindingOutInterceptor.java
LibertyCustomizeBindingOutInterceptor.customizeClientProperties
protected void customizeClientProperties(Message message) { if (null == configPropertiesSet) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "There are no client properties."); } return; } Bus bus = message.ge...
java
protected void customizeClientProperties(Message message) { if (null == configPropertiesSet) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "There are no client properties."); } return; } Bus bus = message.ge...
[ "protected", "void", "customizeClientProperties", "(", "Message", "message", ")", "{", "if", "(", "null", "==", "configPropertiesSet", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")"...
Customize the client properties. @param message
[ "Customize", "the", "client", "properties", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/client/LibertyCustomizeBindingOutInterceptor.java#L196-L218
65,726
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/client/LibertyCustomizeBindingOutInterceptor.java
LibertyCustomizeBindingOutInterceptor.customizePortAddress
protected void customizePortAddress(Message message) { String address = null; PortComponentRefInfo portInfo = null; if (null != wsrInfo) { QName portQName = getPortQName(message); if (null != portQName) { portInfo = wsrInfo.getPortComponentRefInfo(portQNa...
java
protected void customizePortAddress(Message message) { String address = null; PortComponentRefInfo portInfo = null; if (null != wsrInfo) { QName portQName = getPortQName(message); if (null != portQName) { portInfo = wsrInfo.getPortComponentRefInfo(portQNa...
[ "protected", "void", "customizePortAddress", "(", "Message", "message", ")", "{", "String", "address", "=", "null", ";", "PortComponentRefInfo", "portInfo", "=", "null", ";", "if", "(", "null", "!=", "wsrInfo", ")", "{", "QName", "portQName", "=", "getPortQNam...
Customize the port address @param message
[ "Customize", "the", "port", "address" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/client/LibertyCustomizeBindingOutInterceptor.java#L225-L244
65,727
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.el.3.0/src/javax/el/ExpressionFactory.java
ExpressionFactory.discoverClassName
private static String discoverClassName(ClassLoader tccl) { String className = null; // First services API className = getClassNameServices(tccl); if (className == null) { if (IS_SECURITY_ENABLED) { className = AccessController.doPrivileged( ...
java
private static String discoverClassName(ClassLoader tccl) { String className = null; // First services API className = getClassNameServices(tccl); if (className == null) { if (IS_SECURITY_ENABLED) { className = AccessController.doPrivileged( ...
[ "private", "static", "String", "discoverClassName", "(", "ClassLoader", "tccl", ")", "{", "String", "className", "=", "null", ";", "// First services API", "className", "=", "getClassNameServices", "(", "tccl", ")", ";", "if", "(", "className", "==", "null", ")"...
Discover the name of class that implements ExpressionFactory. @param tccl {@code ClassLoader} @return Class name. There is default, so it is never {@code null}.
[ "Discover", "the", "name", "of", "class", "that", "implements", "ExpressionFactory", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.el.3.0/src/javax/el/ExpressionFactory.java#L364-L404
65,728
OpenLiberty/open-liberty
dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/EsaParser.java
EsaParser.addBundleManifestRequireCapability
private static void addBundleManifestRequireCapability(FileSystem zipSystem, Path bundle, Map<Path, String> requiresMap) throws IOException { Path extractedJar = null; try { ...
java
private static void addBundleManifestRequireCapability(FileSystem zipSystem, Path bundle, Map<Path, String> requiresMap) throws IOException { Path extractedJar = null; try { ...
[ "private", "static", "void", "addBundleManifestRequireCapability", "(", "FileSystem", "zipSystem", ",", "Path", "bundle", ",", "Map", "<", "Path", ",", "String", ">", "requiresMap", ")", "throws", "IOException", "{", "Path", "extractedJar", "=", "null", ";", "tr...
Adds the Require-Capability Strings from a bundle jar to the Map of Require-Capabilities found @param zipSystem - the FileSystem mapping to the feature containing this bundle @param bundle - the bundle within a zipped up feature @param requiresMap - Map of Path to Require-Capability @throws IOException
[ "Adds", "the", "Require", "-", "Capability", "Strings", "from", "a", "bundle", "jar", "to", "the", "Map", "of", "Require", "-", "Capabilities", "found" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/EsaParser.java#L542-L575
65,729
OpenLiberty/open-liberty
dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/EsaParser.java
EsaParser.addSubsystemManifestRequireCapability
private static void addSubsystemManifestRequireCapability(File esa, Map<Path, String> requiresMap) throws IOException { String esaLocation = esa.getAbsolutePath(); ZipFile zip = null; try { zip = new ZipFile(esaLocation); ...
java
private static void addSubsystemManifestRequireCapability(File esa, Map<Path, String> requiresMap) throws IOException { String esaLocation = esa.getAbsolutePath(); ZipFile zip = null; try { zip = new ZipFile(esaLocation); ...
[ "private", "static", "void", "addSubsystemManifestRequireCapability", "(", "File", "esa", ",", "Map", "<", "Path", ",", "String", ">", "requiresMap", ")", "throws", "IOException", "{", "String", "esaLocation", "=", "esa", ".", "getAbsolutePath", "(", ")", ";", ...
Adds the Require-Capability Strings from a SUBSYSTEM.MF to the Map of Require-Capabilities found @param esa - the feature file containing the SUBSYSTEM.MF @param requiresMap - Map of Path to Require-Capability @throws IOException
[ "Adds", "the", "Require", "-", "Capability", "Strings", "from", "a", "SUBSYSTEM", ".", "MF", "to", "the", "Map", "of", "Require", "-", "Capabilities", "found" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/EsaParser.java#L585-L613
65,730
OpenLiberty/open-liberty
dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtHeaderInjecter.java
JwtHeaderInjecter.filter
@Override public void filter(ClientRequestContext requestContext) { // if (requestContext == null || jwt == null || requestContext.getHeaders().containsKey("Authorization")) { return; } if (header == null || header.equals("")) { header = "Authorization"; ...
java
@Override public void filter(ClientRequestContext requestContext) { // if (requestContext == null || jwt == null || requestContext.getHeaders().containsKey("Authorization")) { return; } if (header == null || header.equals("")) { header = "Authorization"; ...
[ "@", "Override", "public", "void", "filter", "(", "ClientRequestContext", "requestContext", ")", "{", "//", "if", "(", "requestContext", "==", "null", "||", "jwt", "==", "null", "||", "requestContext", ".", "getHeaders", "(", ")", ".", "containsKey", "(", "\...
Adds the JWT token to the Authorization header in the jax-rs client requests to propagate the token. @param requestContext jax-rs client request context
[ "Adds", "the", "JWT", "token", "to", "the", "Authorization", "header", "in", "the", "jax", "-", "rs", "client", "requests", "to", "propagate", "the", "token", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtHeaderInjecter.java#L73-L90
65,731
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/common/util/UrlUtils.java
UrlUtils.urlDecode
public static String urlDecode(String value, String enc) { return urlDecode(value, enc, false); }
java
public static String urlDecode(String value, String enc) { return urlDecode(value, enc, false); }
[ "public", "static", "String", "urlDecode", "(", "String", "value", ",", "String", "enc", ")", "{", "return", "urlDecode", "(", "value", ",", "enc", ",", "false", ")", ";", "}" ]
Decodes using URLDecoder - use when queries or form post values are decoded @param value value to decode @param enc encoding
[ "Decodes", "using", "URLDecoder", "-", "use", "when", "queries", "or", "form", "post", "values", "are", "decoded" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/common/util/UrlUtils.java#L73-L75
65,732
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/common/util/UrlUtils.java
UrlUtils.pathDecode
public static String pathDecode(String value) { return urlDecode(value, StandardCharsets.UTF_8.name(), true); }
java
public static String pathDecode(String value) { return urlDecode(value, StandardCharsets.UTF_8.name(), true); }
[ "public", "static", "String", "pathDecode", "(", "String", "value", ")", "{", "return", "urlDecode", "(", "value", ",", "StandardCharsets", ".", "UTF_8", ".", "name", "(", ")", ",", "true", ")", ";", "}" ]
URL path segments may contain '+' symbols which should not be decoded into ' ' This method replaces '+' with %2B and delegates to URLDecoder @param value value to decode
[ "URL", "path", "segments", "may", "contain", "+", "symbols", "which", "should", "not", "be", "decoded", "into", "This", "method", "replaces", "+", "with", "%2B", "and", "delegates", "to", "URLDecoder" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/common/util/UrlUtils.java#L141-L143
65,733
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/common/util/UrlUtils.java
UrlUtils.parseQueryString
public static Map<String, String> parseQueryString(String s) { Map<String, String> ht = new HashMap<String, String>(); StringTokenizer st = new StringTokenizer(s, "&"); while (st.hasMoreTokens()) { String pair = st.nextToken(); int pos = pair.indexOf('='); if ...
java
public static Map<String, String> parseQueryString(String s) { Map<String, String> ht = new HashMap<String, String>(); StringTokenizer st = new StringTokenizer(s, "&"); while (st.hasMoreTokens()) { String pair = st.nextToken(); int pos = pair.indexOf('='); if ...
[ "public", "static", "Map", "<", "String", ",", "String", ">", "parseQueryString", "(", "String", "s", ")", "{", "Map", "<", "String", ",", "String", ">", "ht", "=", "new", "HashMap", "<", "String", ",", "String", ">", "(", ")", ";", "StringTokenizer", ...
Create a map from String to String that represents the contents of the query portion of a URL. For each x=y, x is the key and y is the value. @param s the query part of the URI. @return the map.
[ "Create", "a", "map", "from", "String", "to", "String", "that", "represents", "the", "contents", "of", "the", "query", "portion", "of", "a", "URL", ".", "For", "each", "x", "=", "y", "x", "is", "the", "key", "and", "y", "is", "the", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/common/util/UrlUtils.java#L152-L166
65,734
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/common/util/UrlUtils.java
UrlUtils.getStem
public static String getStem(String baseURI) { int idx = baseURI.lastIndexOf('/'); String result = baseURI; if (idx != -1) { result = baseURI.substring(0, idx); } return result; }
java
public static String getStem(String baseURI) { int idx = baseURI.lastIndexOf('/'); String result = baseURI; if (idx != -1) { result = baseURI.substring(0, idx); } return result; }
[ "public", "static", "String", "getStem", "(", "String", "baseURI", ")", "{", "int", "idx", "=", "baseURI", ".", "lastIndexOf", "(", "'", "'", ")", ";", "String", "result", "=", "baseURI", ";", "if", "(", "idx", "!=", "-", "1", ")", "{", "result", "...
Return everything in the path up to the last slash in a URI. @param baseURI @return the trailing
[ "Return", "everything", "in", "the", "path", "up", "to", "the", "last", "slash", "in", "a", "URI", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/common/util/UrlUtils.java#L174-L181
65,735
OpenLiberty/open-liberty
dev/com.ibm.ws.session/src/com/ibm/ws/session/utils/LRUHashMap.java
LRUHashMap.updateCacheList
private synchronized CacheEntryWrapper updateCacheList(Object key) { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_CORE.isLoggable(Level.FINER)) { LoggingUtil.SESSION_LOGGER_CORE.entering(methodClassName, methodNames[UPDATE_CACHE_LIST], "key=" + key); ...
java
private synchronized CacheEntryWrapper updateCacheList(Object key) { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_CORE.isLoggable(Level.FINER)) { LoggingUtil.SESSION_LOGGER_CORE.entering(methodClassName, methodNames[UPDATE_CACHE_LIST], "key=" + key); ...
[ "private", "synchronized", "CacheEntryWrapper", "updateCacheList", "(", "Object", "key", ")", "{", "if", "(", "com", ".", "ibm", ".", "ejs", ".", "ras", ".", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "LoggingUtil", ".", "SESSION_LOGGER_CORE",...
remove the input entry from it's spot in the list and make it the mru
[ "remove", "the", "input", "entry", "from", "it", "s", "spot", "in", "the", "list", "and", "make", "it", "the", "mru" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session/src/com/ibm/ws/session/utils/LRUHashMap.java#L372-L403
65,736
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaSessionImpl.java
JmsJcaSessionImpl.getSICoreConnection
public SICoreConnection getSICoreConnection() throws IllegalStateException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "getSICoreConnection"); } if (_sessionClosed) { throw new IllegalStateException(NLS.getFormattedMe...
java
public SICoreConnection getSICoreConnection() throws IllegalStateException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "getSICoreConnection"); } if (_sessionClosed) { throw new IllegalStateException(NLS.getFormattedMe...
[ "public", "SICoreConnection", "getSICoreConnection", "(", ")", "throws", "IllegalStateException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this"...
A convenience method that returns the core connection associated with this session's connection. @return the core connection @throws IllegalStateException if this session has been closed or invalidated
[ "A", "convenience", "method", "that", "returns", "the", "core", "connection", "associated", "with", "this", "session", "s", "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/JmsJcaSessionImpl.java#L149-L176
65,737
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaSessionImpl.java
JmsJcaSessionImpl.dissociate
void dissociate() { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "dissociate"); } _managedConnection = null; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.exit(this, TRACE, "dissoci...
java
void dissociate() { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "dissociate"); } _managedConnection = null; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.exit(this, TRACE, "dissoci...
[ "void", "dissociate", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", "TRACE", ",", "\"dissociate\"", ")", ";", "}", "_...
Dissociates this session from its current managed connection.
[ "Dissociates", "this", "session", "from", "its", "current", "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/JmsJcaSessionImpl.java#L797-L809
65,738
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaSessionImpl.java
JmsJcaSessionImpl.associate
void associate(final JmsJcaManagedConnection managedConnection) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "associate", managedConnection); } if (_managedConnection != null) { _managedConnection.disassociateSession(t...
java
void associate(final JmsJcaManagedConnection managedConnection) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "associate", managedConnection); } if (_managedConnection != null) { _managedConnection.disassociateSession(t...
[ "void", "associate", "(", "final", "JmsJcaManagedConnection", "managedConnection", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", ...
Associates this session with a new managed connection. @param managedConnection the new managed connection
[ "Associates", "this", "session", "with", "a", "new", "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/JmsJcaSessionImpl.java#L817-L832
65,739
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaSessionImpl.java
JmsJcaSessionImpl.invalidate
void invalidate() { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "invalidate"); } _sessionInvalidated = true; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.exit(this, TRACE, "invali...
java
void invalidate() { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "invalidate"); } _sessionInvalidated = true; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.exit(this, TRACE, "invali...
[ "void", "invalidate", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", "TRACE", ",", "\"invalidate\"", ")", ";", "}", "_...
Marks this session as invalid.
[ "Marks", "this", "session", "as", "invalid", "." ]
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/JmsJcaSessionImpl.java#L871-L883
65,740
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaSessionImpl.java
JmsJcaSessionImpl.setParentConnection
void setParentConnection(final JmsJcaConnectionImpl connection) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "setParentConnection", connection); } _connection = connection; if (TraceComponent.isAnyTracingEnabled() && TRAC...
java
void setParentConnection(final JmsJcaConnectionImpl connection) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "setParentConnection", connection); } _connection = connection; if (TraceComponent.isAnyTracingEnabled() && TRAC...
[ "void", "setParentConnection", "(", "final", "JmsJcaConnectionImpl", "connection", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", ...
Sets the parent connection for this session. @param connection the parent connection
[ "Sets", "the", "parent", "connection", "for", "this", "session", "." ]
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/JmsJcaSessionImpl.java#L891-L903
65,741
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java
InterceptorMetaDataFactory.createInterceptorMetaData
static public InterceptorMetaData createInterceptorMetaData (EJBMDOrchestrator ejbMDOrchestrator , BeanMetaData bmd , final Map<Method, ArrayList<EJBMethodInfoImpl>> methodInfoMap) // d430356 throws EJBConfigurationException { ...
java
static public InterceptorMetaData createInterceptorMetaData (EJBMDOrchestrator ejbMDOrchestrator , BeanMetaData bmd , final Map<Method, ArrayList<EJBMethodInfoImpl>> methodInfoMap) // d430356 throws EJBConfigurationException { ...
[ "static", "public", "InterceptorMetaData", "createInterceptorMetaData", "(", "EJBMDOrchestrator", "ejbMDOrchestrator", ",", "BeanMetaData", "bmd", ",", "final", "Map", "<", "Method", ",", "ArrayList", "<", "EJBMethodInfoImpl", ">", ">", "methodInfoMap", ")", "// d430356...
Create InterceptorMetaData instance to use for a specified EJB module and bean meta data object. Also, update EJBMethodInfoImpl object with method level interceptor data as needed. <dl> <dt>pre-conditions:</dt> <dd>bmd.ivModuleVersion >= BeanMetaData.J2EE_EJB_VERSION_3_0, which means this method must only be called fo...
[ "Create", "InterceptorMetaData", "instance", "to", "use", "for", "a", "specified", "EJB", "module", "and", "bean", "meta", "data", "object", ".", "Also", "update", "EJBMethodInfoImpl", "object", "with", "method", "level", "interceptor", "data", "as", "needed", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java#L259-L369
65,742
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java
InterceptorMetaDataFactory.addJCDIInterceptors
private void addJCDIInterceptors() { // Must be in a JCDI enabled module, and not a ManagedBean JCDIHelper jcdiHelper = ivEJBModuleMetaDataImpl.ivJCDIHelper; if (jcdiHelper != null && !ivBmd.isManagedBean()) // F743-34301.1 { // Obtain the interceptor to start the interce...
java
private void addJCDIInterceptors() { // Must be in a JCDI enabled module, and not a ManagedBean JCDIHelper jcdiHelper = ivEJBModuleMetaDataImpl.ivJCDIHelper; if (jcdiHelper != null && !ivBmd.isManagedBean()) // F743-34301.1 { // Obtain the interceptor to start the interce...
[ "private", "void", "addJCDIInterceptors", "(", ")", "{", "// Must be in a JCDI enabled module, and not a ManagedBean", "JCDIHelper", "jcdiHelper", "=", "ivEJBModuleMetaDataImpl", ".", "ivJCDIHelper", ";", "if", "(", "jcdiHelper", "!=", "null", "&&", "!", "ivBmd", ".", "...
F743-15628 d649636
[ "F743", "-", "15628", "d649636" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java#L1154-L1183
65,743
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java
InterceptorMetaDataFactory.addLoadedInterceptorClasses
private List<String> addLoadedInterceptorClasses(Class<?>[] classes) // d630717 { List<String> names = new ArrayList<String>(); for (Class<?> klass : classes) { String className = klass.getName(); ivInterceptorNameToClassMap.put(className, klass); names.ad...
java
private List<String> addLoadedInterceptorClasses(Class<?>[] classes) // d630717 { List<String> names = new ArrayList<String>(); for (Class<?> klass : classes) { String className = klass.getName(); ivInterceptorNameToClassMap.put(className, klass); names.ad...
[ "private", "List", "<", "String", ">", "addLoadedInterceptorClasses", "(", "Class", "<", "?", ">", "[", "]", "classes", ")", "// d630717", "{", "List", "<", "String", ">", "names", "=", "new", "ArrayList", "<", "String", ">", "(", ")", ";", "for", "(",...
Adds a class to the list of loaded classes. getInterceptorProxies relies on every interceptor class either being added via updateNamesToClassMap or this method. @param klass the class @return the list of class names
[ "Adds", "a", "class", "to", "the", "list", "of", "loaded", "classes", ".", "getInterceptorProxies", "relies", "on", "every", "interceptor", "class", "either", "being", "added", "via", "updateNamesToClassMap", "or", "this", "method", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java#L1237-L1248
65,744
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java
InterceptorMetaDataFactory.addMethodLevelInterceptors
private ArrayList<String> addMethodLevelInterceptors(Method method, EJBInterceptorBinding methodBinding) throws EJBConfigurationException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "ad...
java
private ArrayList<String> addMethodLevelInterceptors(Method method, EJBInterceptorBinding methodBinding) throws EJBConfigurationException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "ad...
[ "private", "ArrayList", "<", "String", ">", "addMethodLevelInterceptors", "(", "Method", "method", ",", "EJBInterceptorBinding", "methodBinding", ")", "throws", "EJBConfigurationException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEna...
d367572.9 updated for xml and metadata-complete.
[ "d367572", ".", "9", "updated", "for", "xml", "and", "metadata", "-", "complete", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java#L1261-L1318
65,745
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java
InterceptorMetaDataFactory.updateEJBMethodInfoInterceptorProxies
private void updateEJBMethodInfoInterceptorProxies() // d386227 throws EJBConfigurationException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "updateEJBMethodInfoInterceptorProxies: " + ivEjbName); ...
java
private void updateEJBMethodInfoInterceptorProxies() // d386227 throws EJBConfigurationException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "updateEJBMethodInfoInterceptorProxies: " + ivEjbName); ...
[ "private", "void", "updateEJBMethodInfoInterceptorProxies", "(", ")", "// d386227", "throws", "EJBConfigurationException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", ...
d367572.9 updated for xml
[ "d367572", ".", "9", "updated", "for", "xml" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java#L1329-L1376
65,746
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java
InterceptorMetaDataFactory.getAroundInterceptorProxies
private InterceptorProxy[] getAroundInterceptorProxies(InterceptorMethodKind kind, Method m) throws EJBConfigurationException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "getAroundInter...
java
private InterceptorProxy[] getAroundInterceptorProxies(InterceptorMethodKind kind, Method m) throws EJBConfigurationException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "getAroundInter...
[ "private", "InterceptorProxy", "[", "]", "getAroundInterceptorProxies", "(", "InterceptorMethodKind", "kind", ",", "Method", "m", ")", "throws", "EJBConfigurationException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")...
Get the array of InterceptorProxy objects required for invoking the AroundInvoke or AroundTimeout interceptors methods when a method is invoked. @param kind the interceptor kind; must be either AROUND_INVOKE or AROUND_TIMEOUT @param m the method @return array of InterceptorProxy for invoking interceptors or a null re...
[ "Get", "the", "array", "of", "InterceptorProxy", "objects", "required", "for", "invoking", "the", "AroundInvoke", "or", "AroundTimeout", "interceptors", "methods", "when", "a", "method", "is", "invoked", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java#L1390-L1414
65,747
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java
InterceptorMetaDataFactory.processBeanInterceptors
private void processBeanInterceptors() // d630717 throws EJBConfigurationException { ivBeanInterceptorProxyMap = createInterceptorProxyMap(ivEjbClass, -1); // F743-1751 - Not all bean types collect bean methods. For those // that do, find the methods that are declared on the bean. ...
java
private void processBeanInterceptors() // d630717 throws EJBConfigurationException { ivBeanInterceptorProxyMap = createInterceptorProxyMap(ivEjbClass, -1); // F743-1751 - Not all bean types collect bean methods. For those // that do, find the methods that are declared on the bean. ...
[ "private", "void", "processBeanInterceptors", "(", ")", "// d630717", "throws", "EJBConfigurationException", "{", "ivBeanInterceptorProxyMap", "=", "createInterceptorProxyMap", "(", "ivEjbClass", ",", "-", "1", ")", ";", "// F743-1751 - Not all bean types collect bean methods. ...
Processes interceptor methods on the bean class. @throws EJBConfigurationException
[ "Processes", "interceptor", "methods", "on", "the", "bean", "class", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java#L1497-L1530
65,748
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java
InterceptorMetaDataFactory.getInterceptorProxies
private InterceptorProxy[] getInterceptorProxies(InterceptorMethodKind kind, List<String> orderedList) // d630717 throws EJBConfigurationException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "getInterc...
java
private InterceptorProxy[] getInterceptorProxies(InterceptorMethodKind kind, List<String> orderedList) // d630717 throws EJBConfigurationException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "getInterc...
[ "private", "InterceptorProxy", "[", "]", "getInterceptorProxies", "(", "InterceptorMethodKind", "kind", ",", "List", "<", "String", ">", "orderedList", ")", "// d630717", "throws", "EJBConfigurationException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent",...
Gets an ordered list of interceptor proxies of the specified kind. processBeanInterceptors must have been called prior to calling this method. @param kind the interceptor kind @param orderedList an ordered list of interceptor class names, all of which have been passed through loadInterceptorClass or addLoadedIntercept...
[ "Gets", "an", "ordered", "list", "of", "interceptor", "proxies", "of", "the", "specified", "kind", ".", "processBeanInterceptors", "must", "have", "been", "called", "prior", "to", "calling", "this", "method", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java#L1546-L1659
65,749
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java
InterceptorMetaDataFactory.validateEJBCallbackMethod
private void validateEJBCallbackMethod(InterceptorMethodKind actualKind, Method m, boolean annotation) throws EJBConfigurationException { // Get the name of the method. String methodName = m.getName(); // Map the method name into one of the InterceptorMethodKind enum val...
java
private void validateEJBCallbackMethod(InterceptorMethodKind actualKind, Method m, boolean annotation) throws EJBConfigurationException { // Get the name of the method. String methodName = m.getName(); // Map the method name into one of the InterceptorMethodKind enum val...
[ "private", "void", "validateEJBCallbackMethod", "(", "InterceptorMethodKind", "actualKind", ",", "Method", "m", ",", "boolean", "annotation", ")", "throws", "EJBConfigurationException", "{", "// Get the name of the method.", "String", "methodName", "=", "m", ".", "getName...
d463727 entire method added.
[ "d463727", "entire", "method", "added", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java#L1934-L1998
65,750
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java
InterceptorMetaDataFactory.orderClassLevelInterceptors
private ArrayList<String> orderClassLevelInterceptors() throws EJBConfigurationException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "orderClassLevelInterceptors"); } // Create the default...
java
private ArrayList<String> orderClassLevelInterceptors() throws EJBConfigurationException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { Tr.entry(tc, "orderClassLevelInterceptors"); } // Create the default...
[ "private", "ArrayList", "<", "String", ">", "orderClassLevelInterceptors", "(", ")", "throws", "EJBConfigurationException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ...
Get an ordered list of class level interceptors to be used for this EJB. @return ordered list of interceptors to use at class level. @throws EJBConfigurationException is thrown if interceptor-order element is not a total ordering of the interceptors for this class.
[ "Get", "an", "ordered", "list", "of", "class", "level", "interceptors", "to", "be", "used", "for", "this", "EJB", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java#L2120-L2197
65,751
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java
InterceptorMetaDataFactory.orderMethodLevelInterceptors
private ArrayList<String> orderMethodLevelInterceptors(Method m) // d630717 throws EJBConfigurationException { // Create the default ordering of class level interceptor names // for this EJB. ArrayList<String> orderedList = new ArrayList<String>(); // Find the InterceptorBinding...
java
private ArrayList<String> orderMethodLevelInterceptors(Method m) // d630717 throws EJBConfigurationException { // Create the default ordering of class level interceptor names // for this EJB. ArrayList<String> orderedList = new ArrayList<String>(); // Find the InterceptorBinding...
[ "private", "ArrayList", "<", "String", ">", "orderMethodLevelInterceptors", "(", "Method", "m", ")", "// d630717", "throws", "EJBConfigurationException", "{", "// Create the default ordering of class level interceptor names", "// for this EJB.", "ArrayList", "<", "String", ">",...
Get an ordered list of method level interceptors for specified method of an EJB. @param m the method @return ordered list of interceptors to use for this method. @throws EJBConfigurationException is thrown if order is not a total ordering of the interceptors for the method as required by EJB specification.
[ "Get", "an", "ordered", "list", "of", "method", "level", "interceptors", "for", "specified", "method", "of", "an", "EJB", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java#L2210-L2303
65,752
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java
CacheProviderWrapper.containsCacheId
@Override public boolean containsCacheId(Object cacheId) { boolean found = false; if (cacheId != null) { found = this.coreCache.containsCacheId(cacheId); } return found; }
java
@Override public boolean containsCacheId(Object cacheId) { boolean found = false; if (cacheId != null) { found = this.coreCache.containsCacheId(cacheId); } return found; }
[ "@", "Override", "public", "boolean", "containsCacheId", "(", "Object", "cacheId", ")", "{", "boolean", "found", "=", "false", ";", "if", "(", "cacheId", "!=", "null", ")", "{", "found", "=", "this", ".", "coreCache", ".", "containsCacheId", "(", "cacheId"...
Returns true if memory cache contains a mapping for the specified cache ID. @param cacheId cache ID is to be tested. @return <code>true</code> if the memory cache contains the specified cacheID.
[ "Returns", "true", "if", "memory", "cache", "contains", "a", "mapping", "for", "the", "specified", "cache", "ID", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L96-L103
65,753
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java
CacheProviderWrapper.getEntryFromMemory
@Override public com.ibm.websphere.cache.CacheEntry getEntryFromMemory(Object id) { final String methodName = "getEntryFromMemory()"; com.ibm.websphere.cache.CacheEntry ce = this.coreCache.get(id); if (tc.isDebugEnabled()) { Tr.debug(tc, methodName + " cacheName=" + cacheName + "...
java
@Override public com.ibm.websphere.cache.CacheEntry getEntryFromMemory(Object id) { final String methodName = "getEntryFromMemory()"; com.ibm.websphere.cache.CacheEntry ce = this.coreCache.get(id); if (tc.isDebugEnabled()) { Tr.debug(tc, methodName + " cacheName=" + cacheName + "...
[ "@", "Override", "public", "com", ".", "ibm", ".", "websphere", ".", "cache", ".", "CacheEntry", "getEntryFromMemory", "(", "Object", "id", ")", "{", "final", "String", "methodName", "=", "\"getEntryFromMemory()\"", ";", "com", ".", "ibm", ".", "websphere", ...
This returns the cache entry from memory cache identified by the specified cache id. It returns null if not in the cache. @param id The cache id for the entry. The id cannot be null. @return The entry identified by the cache id.
[ "This", "returns", "the", "cache", "entry", "from", "memory", "cache", "identified", "by", "the", "specified", "cache", "id", ".", "It", "returns", "null", "if", "not", "in", "the", "cache", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L215-L223
65,754
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java
CacheProviderWrapper.getAllIds
@Override public Enumeration getAllIds() { Set ids = this.coreCache.getCacheIds(); ValueSet idvs = new ValueSet(ids.iterator()); return idvs.elements(); }
java
@Override public Enumeration getAllIds() { Set ids = this.coreCache.getCacheIds(); ValueSet idvs = new ValueSet(ids.iterator()); return idvs.elements(); }
[ "@", "Override", "public", "Enumeration", "getAllIds", "(", ")", "{", "Set", "ids", "=", "this", ".", "coreCache", ".", "getCacheIds", "(", ")", ";", "ValueSet", "idvs", "=", "new", "ValueSet", "(", "ids", ".", "iterator", "(", ")", ")", ";", "return",...
Returns an enumeration view of the cache IDs contained in the memory cache. @return An enumeration of cache IDs or empty if there is no cache ID.
[ "Returns", "an", "enumeration", "view", "of", "the", "cache", "IDs", "contained", "in", "the", "memory", "cache", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L230-L235
65,755
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java
CacheProviderWrapper.internalInvalidateByDepId
@Override public void internalInvalidateByDepId(Object id, int causeOfInvalidation, int source, boolean bFireIL) { final String methodName = "internalInvalidateByDepId()"; if (tc.isDebugEnabled()) { Tr.debug(tc, methodName + " cacheName=" + cacheName + " id=" + id); } thi...
java
@Override public void internalInvalidateByDepId(Object id, int causeOfInvalidation, int source, boolean bFireIL) { final String methodName = "internalInvalidateByDepId()"; if (tc.isDebugEnabled()) { Tr.debug(tc, methodName + " cacheName=" + cacheName + " id=" + id); } thi...
[ "@", "Override", "public", "void", "internalInvalidateByDepId", "(", "Object", "id", ",", "int", "causeOfInvalidation", ",", "int", "source", ",", "boolean", "bFireIL", ")", "{", "final", "String", "methodName", "=", "\"internalInvalidateByDepId()\"", ";", "if", "...
This invalidates all entries in this Cache having a dependency on this dependency id. @param id dependency id. @param causeOfInvalidation The cause of invalidation @param source The source of invalidation (local or remote) @param bFireIL True to fire invalidation event
[ "This", "invalidates", "all", "entries", "in", "this", "Cache", "having", "a", "dependency", "on", "this", "dependency", "id", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L466-L474
65,756
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java
CacheProviderWrapper.invalidateByTemplate
@Override public void invalidateByTemplate(String template, boolean waitOnInvalidation) { final String methodName = "invalidateByTemplate()"; if (tc.isDebugEnabled()) { Tr.debug(tc, methodName + " cacheName=" + cacheName + " template=" + template); } this.invalidateExtern...
java
@Override public void invalidateByTemplate(String template, boolean waitOnInvalidation) { final String methodName = "invalidateByTemplate()"; if (tc.isDebugEnabled()) { Tr.debug(tc, methodName + " cacheName=" + cacheName + " template=" + template); } this.invalidateExtern...
[ "@", "Override", "public", "void", "invalidateByTemplate", "(", "String", "template", ",", "boolean", "waitOnInvalidation", ")", "{", "final", "String", "methodName", "=", "\"invalidateByTemplate()\"", ";", "if", "(", "tc", ".", "isDebugEnabled", "(", ")", ")", ...
This invalidates all entries in this Cache having a dependency on this template. @param template The template name. @param waitOnInvalidation True indicates that this method should not return until the invalidations have taken effect on all caches. False indicates that the invalidations will be queued for later batch ...
[ "This", "invalidates", "all", "entries", "in", "this", "Cache", "having", "a", "dependency", "on", "this", "template", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L535-L543
65,757
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java
CacheProviderWrapper.addAlias
@Override public void addAlias(Object key, Object[] aliasArray, boolean askPermission, boolean coordinate) { final String methodName = "addAlias()"; if (this.featureSupport.isAliasSupported()) { if (tc.isDebugEnabled()) { Tr.debug(tc, methodName + " cacheName=" + cacheNam...
java
@Override public void addAlias(Object key, Object[] aliasArray, boolean askPermission, boolean coordinate) { final String methodName = "addAlias()"; if (this.featureSupport.isAliasSupported()) { if (tc.isDebugEnabled()) { Tr.debug(tc, methodName + " cacheName=" + cacheNam...
[ "@", "Override", "public", "void", "addAlias", "(", "Object", "key", ",", "Object", "[", "]", "aliasArray", ",", "boolean", "askPermission", ",", "boolean", "coordinate", ")", "{", "final", "String", "methodName", "=", "\"addAlias()\"", ";", "if", "(", "this...
Adds an alias for the given key in the cache's mapping table. If the alias is already associated with another key, it will be changed to associate with the new key. @param key the key assoicated with alias @param aliasArray the alias to use for lookups @param askPermission True implies that execution must ask the coor...
[ "Adds", "an", "alias", "for", "the", "given", "key", "in", "the", "cache", "s", "mapping", "table", ".", "If", "the", "alias", "is", "already", "associated", "with", "another", "key", "it", "will", "be", "changed", "to", "associate", "with", "the", "new"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L695-L706
65,758
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java
CacheProviderWrapper.removeAlias
@Override public void removeAlias(Object alias, boolean askPermission, boolean coordinate) { final String methodName = "removeAlias()"; if (this.featureSupport.isAliasSupported()) { if (tc.isDebugEnabled()) { Tr.debug(tc, methodName + " cacheName=" + cacheName + " ERROR b...
java
@Override public void removeAlias(Object alias, boolean askPermission, boolean coordinate) { final String methodName = "removeAlias()"; if (this.featureSupport.isAliasSupported()) { if (tc.isDebugEnabled()) { Tr.debug(tc, methodName + " cacheName=" + cacheName + " ERROR b...
[ "@", "Override", "public", "void", "removeAlias", "(", "Object", "alias", ",", "boolean", "askPermission", ",", "boolean", "coordinate", ")", "{", "final", "String", "methodName", "=", "\"removeAlias()\"", ";", "if", "(", "this", ".", "featureSupport", ".", "i...
Removes an alias from the cache mapping. @param alias the alias assoicated with cache id @param askPermission True implies that execution must ask the coordinating CacheUnit for permission (No effect on CoreCache). @param coordinate Indicates that the value should be set in other caches caching this value. (No effect ...
[ "Removes", "an", "alias", "from", "the", "cache", "mapping", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L715-L726
65,759
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java
CacheProviderWrapper.getCacheIdsInPushPullTable
@Override public List getCacheIdsInPushPullTable() { final String methodName = "getCacheIdsInPushPullTable()"; List list = new ArrayList(); if (this.featureSupport.isReplicationSupported()) { // TODO write code to support getCacheIdsInPushPullTable function if (tc.isD...
java
@Override public List getCacheIdsInPushPullTable() { final String methodName = "getCacheIdsInPushPullTable()"; List list = new ArrayList(); if (this.featureSupport.isReplicationSupported()) { // TODO write code to support getCacheIdsInPushPullTable function if (tc.isD...
[ "@", "Override", "public", "List", "getCacheIdsInPushPullTable", "(", ")", "{", "final", "String", "methodName", "=", "\"getCacheIdsInPushPullTable()\"", ";", "List", "list", "=", "new", "ArrayList", "(", ")", ";", "if", "(", "this", ".", "featureSupport", ".", ...
Returns all of the cache IDs in the PushPullTable
[ "Returns", "all", "of", "the", "cache", "IDs", "in", "the", "PushPullTable" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L756-L769
65,760
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java
CacheProviderWrapper.shouldPull
@Override public boolean shouldPull(int share, Object id) { final String methodName = "shouldPull()"; boolean shouldPull = false; if (this.featureSupport.isReplicationSupported()) { // TODO write code to support shouldPull function //if (tc.isDebugEnabled()) { ...
java
@Override public boolean shouldPull(int share, Object id) { final String methodName = "shouldPull()"; boolean shouldPull = false; if (this.featureSupport.isReplicationSupported()) { // TODO write code to support shouldPull function //if (tc.isDebugEnabled()) { ...
[ "@", "Override", "public", "boolean", "shouldPull", "(", "int", "share", ",", "Object", "id", ")", "{", "final", "String", "methodName", "=", "\"shouldPull()\"", ";", "boolean", "shouldPull", "=", "false", ";", "if", "(", "this", ".", "featureSupport", ".", ...
Return to indicate the entry can be pulled from other remote caches which caching this value. @param share sharing policy @id cache ID
[ "Return", "to", "indicate", "the", "entry", "can", "be", "pulled", "from", "other", "remote", "caches", "which", "caching", "this", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L794-L807
65,761
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java
CacheProviderWrapper.getDepIdsSizeDisk
@Override public int getDepIdsSizeDisk() { final String methodName = "getDepIdsSizeDisk()"; if (this.swapToDisk) { // TODO write code to support getDepIdsSizeDisk function if (tc.isDebugEnabled()) { Tr.debug(tc, methodName + " cacheName=" + cacheName + " ERROR...
java
@Override public int getDepIdsSizeDisk() { final String methodName = "getDepIdsSizeDisk()"; if (this.swapToDisk) { // TODO write code to support getDepIdsSizeDisk function if (tc.isDebugEnabled()) { Tr.debug(tc, methodName + " cacheName=" + cacheName + " ERROR...
[ "@", "Override", "public", "int", "getDepIdsSizeDisk", "(", ")", "{", "final", "String", "methodName", "=", "\"getDepIdsSizeDisk()\"", ";", "if", "(", "this", ".", "swapToDisk", ")", "{", "// TODO write code to support getDepIdsSizeDisk function", "if", "(", "tc", "...
Returns the current dependency IDs size for the disk cache. @return The current dependency ids size for the disk cache.
[ "Returns", "the", "current", "dependency", "IDs", "size", "for", "the", "disk", "cache", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L1041-L1059
65,762
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java
CacheProviderWrapper.getDiskCacheException
@Override public Exception getDiskCacheException() { final String methodName = "getDiskCacheException()"; Exception ex = null; if (this.swapToDisk) { // TODO write code to support getDiskCacheException function if (tc.isDebugEnabled()) { Tr.debug(tc, m...
java
@Override public Exception getDiskCacheException() { final String methodName = "getDiskCacheException()"; Exception ex = null; if (this.swapToDisk) { // TODO write code to support getDiskCacheException function if (tc.isDebugEnabled()) { Tr.debug(tc, m...
[ "@", "Override", "public", "Exception", "getDiskCacheException", "(", ")", "{", "final", "String", "methodName", "=", "\"getDiskCacheException()\"", ";", "Exception", "ex", "=", "null", ";", "if", "(", "this", ".", "swapToDisk", ")", "{", "// TODO write code to su...
Returns the exception object from the disk cache because disk cache reported the error. @return The exception object
[ "Returns", "the", "exception", "object", "from", "the", "disk", "cache", "because", "disk", "cache", "reported", "the", "error", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L1066-L1085
65,763
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java
CacheProviderWrapper.resetPMICounters
@Override public void resetPMICounters() { // TODO needs to change if cache provider supports PMI counters. final String methodName = "resetPMICounters()"; if (tc.isDebugEnabled()) { Tr.debug(tc, methodName + " cacheName=" + cacheName); } }
java
@Override public void resetPMICounters() { // TODO needs to change if cache provider supports PMI counters. final String methodName = "resetPMICounters()"; if (tc.isDebugEnabled()) { Tr.debug(tc, methodName + " cacheName=" + cacheName); } }
[ "@", "Override", "public", "void", "resetPMICounters", "(", ")", "{", "// TODO needs to change if cache provider supports PMI counters.", "final", "String", "methodName", "=", "\"resetPMICounters()\"", ";", "if", "(", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "...
This method needs to change if cache provider supports PMI counters.
[ "This", "method", "needs", "to", "change", "if", "cache", "provider", "supports", "PMI", "counters", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L1485-L1492
65,764
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java
CacheProviderWrapper.updateStatisticsForVBC
@Override public void updateStatisticsForVBC(com.ibm.websphere.cache.CacheEntry cacheEntry, boolean directive) { // TODO needs to change if cache provider supports PMI and CacheStatisticsListener final String methodName = "updateStatisticsForVBC()"; Object id = null; if (cacheEntry !...
java
@Override public void updateStatisticsForVBC(com.ibm.websphere.cache.CacheEntry cacheEntry, boolean directive) { // TODO needs to change if cache provider supports PMI and CacheStatisticsListener final String methodName = "updateStatisticsForVBC()"; Object id = null; if (cacheEntry !...
[ "@", "Override", "public", "void", "updateStatisticsForVBC", "(", "com", ".", "ibm", ".", "websphere", ".", "cache", ".", "CacheEntry", "cacheEntry", ",", "boolean", "directive", ")", "{", "// TODO needs to change if cache provider supports PMI and CacheStatisticsListener",...
This method needs to change if cache provider supports PMI and CacheStatisticsListener.
[ "This", "method", "needs", "to", "change", "if", "cache", "provider", "supports", "PMI", "and", "CacheStatisticsListener", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L1497-L1508
65,765
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ParseUtil.java
ParseUtil.reduceStringLiteralToken
private static String reduceStringLiteralToken(String image) { // First, remove leading and trailing ' character image = image.substring(1, image.length()-1); // Next, de-double any doubled occurances of the ' character for (int i = 0; i < image.length(); i++) if (image.charAt(i) == '\'') ...
java
private static String reduceStringLiteralToken(String image) { // First, remove leading and trailing ' character image = image.substring(1, image.length()-1); // Next, de-double any doubled occurances of the ' character for (int i = 0; i < image.length(); i++) if (image.charAt(i) == '\'') ...
[ "private", "static", "String", "reduceStringLiteralToken", "(", "String", "image", ")", "{", "// First, remove leading and trailing ' character", "image", "=", "image", ".", "substring", "(", "1", ",", "image", ".", "length", "(", ")", "-", "1", ")", ";", "// Ne...
processing ' characters in the image
[ "processing", "characters", "in", "the", "image" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ParseUtil.java#L40-L49
65,766
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ParseUtil.java
ParseUtil.parseIntegerLiteral
static Selector parseIntegerLiteral(String val) { // Determine if this is a long constant by checking the suffix char tag = val.charAt(val.length()-1); boolean mustBeLong = false; if (tag == 'l' || tag == 'L') { val = val.substring(0, val.length()-1); mustBeLong = true; } long l...
java
static Selector parseIntegerLiteral(String val) { // Determine if this is a long constant by checking the suffix char tag = val.charAt(val.length()-1); boolean mustBeLong = false; if (tag == 'l' || tag == 'L') { val = val.substring(0, val.length()-1); mustBeLong = true; } long l...
[ "static", "Selector", "parseIntegerLiteral", "(", "String", "val", ")", "{", "// Determine if this is a long constant by checking the suffix", "char", "tag", "=", "val", ".", "charAt", "(", "val", ".", "length", "(", ")", "-", "1", ")", ";", "boolean", "mustBeLong...
Parse an integer literal @param image a String containing the image of the parse token for the literal @return a Selector representing the literal
[ "Parse", "an", "integer", "literal" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ParseUtil.java#L57-L71
65,767
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ParseUtil.java
ParseUtil.parseFloatingLiteral
static Selector parseFloatingLiteral(String val) { // Determine if this is a float constant by checking the suffix Number value; // was NumericValue char tag = val.charAt(val.length()-1); if (tag == 'f' || tag == 'F') value = new Float(val); else value = new Double(val); return new L...
java
static Selector parseFloatingLiteral(String val) { // Determine if this is a float constant by checking the suffix Number value; // was NumericValue char tag = val.charAt(val.length()-1); if (tag == 'f' || tag == 'F') value = new Float(val); else value = new Double(val); return new L...
[ "static", "Selector", "parseFloatingLiteral", "(", "String", "val", ")", "{", "// Determine if this is a float constant by checking the suffix", "Number", "value", ";", "// was NumericValue", "char", "tag", "=", "val", ".", "charAt", "(", "val", ".", "length", "(", ")...
Parse a floating point literal @param image a String containing the image of the parse token for the literal @return a Selector representing the literal
[ "Parse", "a", "floating", "point", "literal" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ParseUtil.java#L79-L88
65,768
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ParseUtil.java
ParseUtil.convertSet
static Selector convertSet(Selector expr, List set) { Selector ans = null; for (int i = 0; i < set.size(); i++) { Selector comparand = (Selector) set.get(i); Selector comparison = new OperatorImpl(Operator.EQ, (Selector) expr.clone(), comparand); if (ans == null) ans = comparison; ...
java
static Selector convertSet(Selector expr, List set) { Selector ans = null; for (int i = 0; i < set.size(); i++) { Selector comparand = (Selector) set.get(i); Selector comparison = new OperatorImpl(Operator.EQ, (Selector) expr.clone(), comparand); if (ans == null) ans = comparison; ...
[ "static", "Selector", "convertSet", "(", "Selector", "expr", ",", "List", "set", ")", "{", "Selector", "ans", "=", "null", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "set", ".", "size", "(", ")", ";", "i", "++", ")", "{", "Selector", ...
Convert a partially parsed set expression into its more primitive form as a disjunction of equalities. @param expr the expression whose set membership is being tested @param set the set itself, as a FastVector containing Selector trees representing expressions @return a Selector representing the set expression its m...
[ "Convert", "a", "partially", "parsed", "set", "expression", "into", "its", "more", "primitive", "form", "as", "a", "disjunction", "of", "equalities", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ParseUtil.java#L100-L111
65,769
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ParseUtil.java
ParseUtil.convertRange
static Selector convertRange(Selector expr, Selector bound1, Selector bound2) { return new OperatorImpl(Operator.AND, new OperatorImpl(Operator.GE, (Selector) expr.clone(), bound1), new OperatorImpl(Operator.LE, (Selector) expr.clone(), bound2)); }
java
static Selector convertRange(Selector expr, Selector bound1, Selector bound2) { return new OperatorImpl(Operator.AND, new OperatorImpl(Operator.GE, (Selector) expr.clone(), bound1), new OperatorImpl(Operator.LE, (Selector) expr.clone(), bound2)); }
[ "static", "Selector", "convertRange", "(", "Selector", "expr", ",", "Selector", "bound1", ",", "Selector", "bound2", ")", "{", "return", "new", "OperatorImpl", "(", "Operator", ".", "AND", ",", "new", "OperatorImpl", "(", "Operator", ".", "GE", ",", "(", "...
Convert a partially parsed BETWEEN expression into its more primitive form as a conjunction of inequalities. @param expr the expression whose range is being tested @param bound1 the lower bound @param bound2 the upper bound @return a Selector representing the BETWEEN expression its more primitive form
[ "Convert", "a", "partially", "parsed", "BETWEEN", "expression", "into", "its", "more", "primitive", "form", "as", "a", "conjunction", "of", "inequalities", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ParseUtil.java#L124-L128
65,770
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ParseUtil.java
ParseUtil.convertLike
static Selector convertLike(Selector arg, String pattern, String escape) { try { pattern = reduceStringLiteralToken(pattern); boolean escaped = false; char esc = 0; if (escape != null) { escape = reduceStringLiteralToken(escape); if (escape.length() != 1) return...
java
static Selector convertLike(Selector arg, String pattern, String escape) { try { pattern = reduceStringLiteralToken(pattern); boolean escaped = false; char esc = 0; if (escape != null) { escape = reduceStringLiteralToken(escape); if (escape.length() != 1) return...
[ "static", "Selector", "convertLike", "(", "Selector", "arg", ",", "String", "pattern", ",", "String", "escape", ")", "{", "try", "{", "pattern", "=", "reduceStringLiteralToken", "(", "pattern", ")", ";", "boolean", "escaped", "=", "false", ";", "char", "esc"...
Convert a partially parsed LIKE expression, in which the pattern and escape are in the form of token images, to the proper Selector expression to represent the LIKE expression @param arg the argument of the like @param pattern the pattern image (still containing leading and trailing ') @param escape the escape (still c...
[ "Convert", "a", "partially", "parsed", "LIKE", "expression", "in", "which", "the", "pattern", "and", "escape", "are", "in", "the", "form", "of", "token", "images", "to", "the", "proper", "Selector", "expression", "to", "represent", "the", "LIKE", "expression" ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ParseUtil.java#L139-L167
65,771
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security.admin/src/com/ibm/ws/webcontainer/security/admin/internal/WebAdminSecurityCollaboratorImpl.java
WebAdminSecurityCollaboratorImpl.getSecurityMetadata
@Override public SecurityMetadata getSecurityMetadata() { SecurityMetadata sm = super.getSecurityMetadata(); if (sm == null) { return getDefaultAdminSecurityMetadata(); } else { return sm; } }
java
@Override public SecurityMetadata getSecurityMetadata() { SecurityMetadata sm = super.getSecurityMetadata(); if (sm == null) { return getDefaultAdminSecurityMetadata(); } else { return sm; } }
[ "@", "Override", "public", "SecurityMetadata", "getSecurityMetadata", "(", ")", "{", "SecurityMetadata", "sm", "=", "super", ".", "getSecurityMetadata", "(", ")", ";", "if", "(", "sm", "==", "null", ")", "{", "return", "getDefaultAdminSecurityMetadata", "(", ")"...
Get the effective SecurityMetadata for this application. First, try to defer to the application collaborator to see if the application provides data. If so, use it. Otherwise, fallback to the default SecurityMetadata. {@inheritDoc}
[ "Get", "the", "effective", "SecurityMetadata", "for", "this", "application", ".", "First", "try", "to", "defer", "to", "the", "application", "collaborator", "to", "see", "if", "the", "application", "provides", "data", ".", "If", "so", "use", "it", ".", "Othe...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security.admin/src/com/ibm/ws/webcontainer/security/admin/internal/WebAdminSecurityCollaboratorImpl.java#L128-L136
65,772
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/security/ServerSecurityInterceptor.java
ServerSecurityInterceptor.buildPolicyErrorMessage
private void buildPolicyErrorMessage(String msgKey, String defaultMessage, Object... arg1) { /* The message need to be logged only for level below 'Warning' */ if (TraceComponent.isAnyTracingEnabled() && tc.isWarningEnabled()) { String messageFromBundle = Tr.formatMessage(tc, msgKey, arg1); ...
java
private void buildPolicyErrorMessage(String msgKey, String defaultMessage, Object... arg1) { /* The message need to be logged only for level below 'Warning' */ if (TraceComponent.isAnyTracingEnabled() && tc.isWarningEnabled()) { String messageFromBundle = Tr.formatMessage(tc, msgKey, arg1); ...
[ "private", "void", "buildPolicyErrorMessage", "(", "String", "msgKey", ",", "String", "defaultMessage", ",", "Object", "...", "arg1", ")", "{", "/* The message need to be logged only for level below 'Warning' */", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "("...
Receives the message key like "CSIv2_COMMON_AUTH_LAYER_DISABLED" from this key we extract the message from the NLS message bundle which contains the message along with the CWWKS message code. Example: CSIv2_CLIENT_POLICY_DOESNT_EXIST_FAILED=CWWKS9568E: The client security policy does not exist. @param msgCode
[ "Receives", "the", "message", "key", "like", "CSIv2_COMMON_AUTH_LAYER_DISABLED", "from", "this", "key", "we", "extract", "the", "message", "from", "the", "NLS", "message", "bundle", "which", "contains", "the", "message", "along", "with", "the", "CWWKS", "message",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/security/ServerSecurityInterceptor.java#L340-L346
65,773
OpenLiberty/open-liberty
dev/com.ibm.ws.security.social/src/com/ibm/ws/security/social/web/SelectionPageGenerator.java
SelectionPageGenerator.displaySelectionPage
public void displaySelectionPage(HttpServletRequest request, HttpServletResponse response, SocialTaiRequest socialTaiRequest) throws IOException { setRequestAndConfigInformation(request, response, socialTaiRequest); if (selectableConfigs == null || selectableConfigs.isEmpty()) { sendDisplayE...
java
public void displaySelectionPage(HttpServletRequest request, HttpServletResponse response, SocialTaiRequest socialTaiRequest) throws IOException { setRequestAndConfigInformation(request, response, socialTaiRequest); if (selectableConfigs == null || selectableConfigs.isEmpty()) { sendDisplayE...
[ "public", "void", "displaySelectionPage", "(", "HttpServletRequest", "request", ",", "HttpServletResponse", "response", ",", "SocialTaiRequest", "socialTaiRequest", ")", "throws", "IOException", "{", "setRequestAndConfigInformation", "(", "request", ",", "response", ",", ...
Generates the sign in page to allow a user to select from the configured social login services. If no services are configured, the user is redirected to an error page. @param request @param response @param socialTaiRequest @throws IOException
[ "Generates", "the", "sign", "in", "page", "to", "allow", "a", "user", "to", "select", "from", "the", "configured", "social", "login", "services", ".", "If", "no", "services", "are", "configured", "the", "user", "is", "redirected", "to", "an", "error", "pag...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.social/src/com/ibm/ws/security/social/web/SelectionPageGenerator.java#L89-L96
65,774
OpenLiberty/open-liberty
dev/com.ibm.ws.security.social/src/com/ibm/ws/security/social/web/SelectionPageGenerator.java
SelectionPageGenerator.createJavascript
String createJavascript() { StringBuilder html = new StringBuilder(); html.append("<script>\n"); html.append("function " + createCookieFunctionName + "(value) {\n"); html.append("document.cookie = \"" + ClientConstants.LOGIN_HINT + "=\" + value;\n"); html.append("}\n"); h...
java
String createJavascript() { StringBuilder html = new StringBuilder(); html.append("<script>\n"); html.append("function " + createCookieFunctionName + "(value) {\n"); html.append("document.cookie = \"" + ClientConstants.LOGIN_HINT + "=\" + value;\n"); html.append("}\n"); h...
[ "String", "createJavascript", "(", ")", "{", "StringBuilder", "html", "=", "new", "StringBuilder", "(", ")", ";", "html", ".", "append", "(", "\"<script>\\n\"", ")", ";", "html", ".", "append", "(", "\"function \"", "+", "createCookieFunctionName", "+", "\"(va...
Creates a JavaScript function for creating a social_login_hint cookie with the value provided to the function. Each provider button should be configured to call this function when the button is clicked, allowing the login hint to be passed around in a cookie instead of a request parameter.
[ "Creates", "a", "JavaScript", "function", "for", "creating", "a", "social_login_hint", "cookie", "with", "the", "value", "provided", "to", "the", "function", ".", "Each", "provider", "button", "should", "be", "configured", "to", "call", "this", "function", "when...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.social/src/com/ibm/ws/security/social/web/SelectionPageGenerator.java#L268-L276
65,775
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericMessageImpl.java
GenericMessageImpl.parseMessage
public boolean parseMessage(WsByteBuffer buffer, boolean bExtractValue) throws Exception { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); boolean rc = false; if (!isFirstLineComplete()) { if (bTrace && tc.isDebugEnabled()) { Tr.debug(tc, "Parsing First L...
java
public boolean parseMessage(WsByteBuffer buffer, boolean bExtractValue) throws Exception { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); boolean rc = false; if (!isFirstLineComplete()) { if (bTrace && tc.isDebugEnabled()) { Tr.debug(tc, "Parsing First L...
[ "public", "boolean", "parseMessage", "(", "WsByteBuffer", "buffer", ",", "boolean", "bExtractValue", ")", "throws", "Exception", "{", "final", "boolean", "bTrace", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "boolean", "rc", "=", "false", "...
Parse a message from the input buffer. The input flag is whether or not to save the header value immediately or delay the extraction until the header value is queried. @param buffer @param bExtractValue @return boolean (true means parsed entire message) @throws Exception
[ "Parse", "a", "message", "from", "the", "input", "buffer", ".", "The", "input", "flag", "is", "whether", "or", "not", "to", "save", "the", "header", "value", "immediately", "or", "delay", "the", "extraction", "until", "the", "header", "value", "is", "queri...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericMessageImpl.java#L328-L349
65,776
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericMessageImpl.java
GenericMessageImpl.marshallMessage
public WsByteBuffer[] marshallMessage() throws MessageSentException { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); if (bTrace && tc.isEntryEnabled()) { Tr.entry(tc, "marshallMessage"); } preMarshallMessage(); WsByteBuffer[] marshalledObj = hasFirstLin...
java
public WsByteBuffer[] marshallMessage() throws MessageSentException { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); if (bTrace && tc.isEntryEnabled()) { Tr.entry(tc, "marshallMessage"); } preMarshallMessage(); WsByteBuffer[] marshalledObj = hasFirstLin...
[ "public", "WsByteBuffer", "[", "]", "marshallMessage", "(", ")", "throws", "MessageSentException", "{", "final", "boolean", "bTrace", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "bTrace", "&&", "tc", ".", "isEntryEnabled", "(", ...
Marshall a message. @return WsByteBuffer[] @throws MessageSentException
[ "Marshall", "a", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericMessageImpl.java#L357-L373
65,777
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/jaxrs/model/URITemplate.java
URITemplate.createTemplate
public static URITemplate createTemplate(Path path, List<Parameter> params, String classNameandPath) { return createTemplate(path == null ? null : path.value(), params, classNameandPath); }
java
public static URITemplate createTemplate(Path path, List<Parameter> params, String classNameandPath) { return createTemplate(path == null ? null : path.value(), params, classNameandPath); }
[ "public", "static", "URITemplate", "createTemplate", "(", "Path", "path", ",", "List", "<", "Parameter", ">", "params", ",", "String", "classNameandPath", ")", "{", "return", "createTemplate", "(", "path", "==", "null", "?", "null", ":", "path", ".", "value"...
Liberty Change start
[ "Liberty", "Change", "start" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/jaxrs/model/URITemplate.java#L362-L365
65,778
OpenLiberty/open-liberty
dev/com.ibm.ws.jsp/src/org/apache/jasper/compiler/ELParser.java
ELParser.isELReserved
private boolean isELReserved(String id) { int i = 0; int j = reservedWords.length; while (i < j) { int k = (i + j) / 2; int result = reservedWords[k].compareTo(id); if (result == 0) { return true; } if (result < 0) { ...
java
private boolean isELReserved(String id) { int i = 0; int j = reservedWords.length; while (i < j) { int k = (i + j) / 2; int result = reservedWords[k].compareTo(id); if (result == 0) { return true; } if (result < 0) { ...
[ "private", "boolean", "isELReserved", "(", "String", "id", ")", "{", "int", "i", "=", "0", ";", "int", "j", "=", "reservedWords", ".", "length", ";", "while", "(", "i", "<", "j", ")", "{", "int", "k", "=", "(", "i", "+", "j", ")", "/", "2", "...
Test if an id is a reserved word in EL
[ "Test", "if", "an", "id", "is", "a", "reserved", "word", "in", "EL" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/org/apache/jasper/compiler/ELParser.java#L155-L171
65,779
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/internal/classloader/BootstrapChildFirstURLClassloader.java
BootstrapChildFirstURLClassloader.loadClass
@Override protected synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { synchronized (getClassLoadingLock(name)) { Class<?> result = null; if (name == null || name.length() == 0) return null; result = findLoadedC...
java
@Override protected synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { synchronized (getClassLoadingLock(name)) { Class<?> result = null; if (name == null || name.length() == 0) return null; result = findLoadedC...
[ "@", "Override", "protected", "synchronized", "Class", "<", "?", ">", "loadClass", "(", "String", "name", ",", "boolean", "resolve", ")", "throws", "ClassNotFoundException", "{", "synchronized", "(", "getClassLoadingLock", "(", "name", ")", ")", "{", "Class", ...
Any changes must be made to both sources
[ "Any", "changes", "must", "be", "made", "to", "both", "sources" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/internal/classloader/BootstrapChildFirstURLClassloader.java#L50-L75
65,780
OpenLiberty/open-liberty
dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerUtils.java
ZipFileContainerUtils.allocateOffsets
private static List<Integer> allocateOffsets(List<List<Integer>> offsetsStorage) { if ( offsetsStorage.isEmpty() ) { return new ArrayList<Integer>(); } else { return ( offsetsStorage.remove(0) ); } }
java
private static List<Integer> allocateOffsets(List<List<Integer>> offsetsStorage) { if ( offsetsStorage.isEmpty() ) { return new ArrayList<Integer>(); } else { return ( offsetsStorage.remove(0) ); } }
[ "private", "static", "List", "<", "Integer", ">", "allocateOffsets", "(", "List", "<", "List", "<", "Integer", ">", ">", "offsetsStorage", ")", "{", "if", "(", "offsetsStorage", ".", "isEmpty", "(", ")", ")", "{", "return", "new", "ArrayList", "<", "Inte...
Allocate an offsets list. If no discarded list is available, allocate a new list. Otherwise, use one of the discarded lists. @param offsetsStorage Storage of discarded offset lists. @return An allocated offsets list.
[ "Allocate", "an", "offsets", "list", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerUtils.java#L225-L231
65,781
OpenLiberty/open-liberty
dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerUtils.java
ZipFileContainerUtils.releaseOffsets
private static int[] releaseOffsets(List<List<Integer>> offsetsStorage, List<Integer> offsets) { int numValues = offsets.size(); int[] extractedValues; if ( numValues == 0 ) { extractedValues = EMPTY_OFFSETS_ARRAY; } else { extractedValue...
java
private static int[] releaseOffsets(List<List<Integer>> offsetsStorage, List<Integer> offsets) { int numValues = offsets.size(); int[] extractedValues; if ( numValues == 0 ) { extractedValues = EMPTY_OFFSETS_ARRAY; } else { extractedValue...
[ "private", "static", "int", "[", "]", "releaseOffsets", "(", "List", "<", "List", "<", "Integer", ">", ">", "offsetsStorage", ",", "List", "<", "Integer", ">", "offsets", ")", "{", "int", "numValues", "=", "offsets", ".", "size", "(", ")", ";", "int", ...
Release an offsets list to storage. Answer the offsets list converted to a raw array of integers. @param offsetsStorage Storage into which to place the offset list. @param offsets The offset list which is to be released to storage. @return The offset list converted to a raw list of integers.
[ "Release", "an", "offsets", "list", "to", "storage", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerUtils.java#L244-L262
65,782
OpenLiberty/open-liberty
dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerUtils.java
ZipFileContainerUtils.collectIteratorData
@Trivial public static Map<String, IteratorData> collectIteratorData(ZipEntryData[] zipEntryData) { Map<String, IteratorData> allNestingData = new HashMap<String, IteratorData>(); // Re-use offset lists. There can be a lot of these // created for a busy tree. Offset lists are only needed ...
java
@Trivial public static Map<String, IteratorData> collectIteratorData(ZipEntryData[] zipEntryData) { Map<String, IteratorData> allNestingData = new HashMap<String, IteratorData>(); // Re-use offset lists. There can be a lot of these // created for a busy tree. Offset lists are only needed ...
[ "@", "Trivial", "public", "static", "Map", "<", "String", ",", "IteratorData", ">", "collectIteratorData", "(", "ZipEntryData", "[", "]", "zipEntryData", ")", "{", "Map", "<", "String", ",", "IteratorData", ">", "allNestingData", "=", "new", "HashMap", "<", ...
Collect the iterator data for a collection of zip entries. Keys of the entries must be paths stripped of leading and trailing slashes. The entries must be in ascending order per {@link PathUtils#PATH_COMPARATOR}. Only place data for paths which have no children. In particular, leaf entries, which should be most of ...
[ "Collect", "the", "iterator", "data", "for", "a", "collection", "of", "zip", "entries", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerUtils.java#L280-L390
65,783
OpenLiberty/open-liberty
dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerUtils.java
ZipFileContainerUtils.collectZipEntries
@Trivial public static ZipEntryData[] collectZipEntries(ZipFile zipFile) { final List<ZipEntryData> entriesList = new ArrayList<ZipEntryData>(); final Enumeration<? extends ZipEntry> zipEntries = zipFile.entries(); while ( zipEntries.hasMoreElements() ) { entriesList.add( create...
java
@Trivial public static ZipEntryData[] collectZipEntries(ZipFile zipFile) { final List<ZipEntryData> entriesList = new ArrayList<ZipEntryData>(); final Enumeration<? extends ZipEntry> zipEntries = zipFile.entries(); while ( zipEntries.hasMoreElements() ) { entriesList.add( create...
[ "@", "Trivial", "public", "static", "ZipEntryData", "[", "]", "collectZipEntries", "(", "ZipFile", "zipFile", ")", "{", "final", "List", "<", "ZipEntryData", ">", "entriesList", "=", "new", "ArrayList", "<", "ZipEntryData", ">", "(", ")", ";", "final", "Enum...
Collect data for the entries of a zip file. Intermediate / implied paths are not added to the result. Answer the zip entries sorted using the path comparator. See {@link PathUtils#PATH_COMPARATOR}. @param zipFile The zip file for which to collect entry data. @return Sorted data for entries of the zip file.
[ "Collect", "data", "for", "the", "entries", "of", "a", "zip", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerUtils.java#L558-L572
65,784
OpenLiberty/open-liberty
dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerUtils.java
ZipFileContainerUtils.setLocations
@Trivial public static Map<String, ZipEntryData> setLocations(ZipEntryData[] entryData) { Map<String, ZipEntryData> entryDataMap = new HashMap<String, ZipEntryData>(entryData.length); for ( int entryNo = 0; entryNo < entryData.length; entryNo++ ) { ZipEntryData entry = entryData[entryNo]; ...
java
@Trivial public static Map<String, ZipEntryData> setLocations(ZipEntryData[] entryData) { Map<String, ZipEntryData> entryDataMap = new HashMap<String, ZipEntryData>(entryData.length); for ( int entryNo = 0; entryNo < entryData.length; entryNo++ ) { ZipEntryData entry = entryData[entryNo]; ...
[ "@", "Trivial", "public", "static", "Map", "<", "String", ",", "ZipEntryData", ">", "setLocations", "(", "ZipEntryData", "[", "]", "entryData", ")", "{", "Map", "<", "String", ",", "ZipEntryData", ">", "entryDataMap", "=", "new", "HashMap", "<", "String", ...
Create a table of entry data using the relative paths of the entries as keys. As a side effect, set the offset of each entry data to its location int he entry data array. @param entryData The array of entry data to place in a table. @return The table of entry data.
[ "Create", "a", "table", "of", "entry", "data", "using", "the", "relative", "paths", "of", "the", "entries", "as", "keys", ".", "As", "a", "side", "effect", "set", "the", "offset", "of", "each", "entry", "data", "to", "its", "location", "int", "he", "en...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerUtils.java#L583-L594
65,785
OpenLiberty/open-liberty
dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerUtils.java
ZipFileContainerUtils.locatePath
@Trivial public static int locatePath(ZipEntryData[] entryData, final String r_path) { ZipEntryData targetData = new SearchZipEntryData(r_path); // Given: // // 0 gp // 1 gp/p1 // 2 gp/p1/c1 // 3 gp/p2/c2 // // A search for "a" answers ...
java
@Trivial public static int locatePath(ZipEntryData[] entryData, final String r_path) { ZipEntryData targetData = new SearchZipEntryData(r_path); // Given: // // 0 gp // 1 gp/p1 // 2 gp/p1/c1 // 3 gp/p2/c2 // // A search for "a" answers ...
[ "@", "Trivial", "public", "static", "int", "locatePath", "(", "ZipEntryData", "[", "]", "entryData", ",", "final", "String", "r_path", ")", "{", "ZipEntryData", "targetData", "=", "new", "SearchZipEntryData", "(", "r_path", ")", ";", "// Given:", "//", "// 0 g...
Locate a path in a collection of entries. Answer the offset of the entry which has the specified path. If the path is not found, answer -1 times ( the insertion point of the path minus one ). @param entryData The entries which are to be searched. @param r_path The path to fine in the entries. @return The offset to ...
[ "Locate", "a", "path", "in", "a", "collection", "of", "entries", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerUtils.java#L608-L629
65,786
OpenLiberty/open-liberty
dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerUtils.java
ZipFileContainerUtils.stripPath
@Trivial private static String stripPath(String path) { int pathLen = path.length(); if ( pathLen == 0 ) { return path; } else if ( pathLen == 1 ) { if ( path.charAt(0) == '/' ) { return ""; } else { return path; ...
java
@Trivial private static String stripPath(String path) { int pathLen = path.length(); if ( pathLen == 0 ) { return path; } else if ( pathLen == 1 ) { if ( path.charAt(0) == '/' ) { return ""; } else { return path; ...
[ "@", "Trivial", "private", "static", "String", "stripPath", "(", "String", "path", ")", "{", "int", "pathLen", "=", "path", ".", "length", "(", ")", ";", "if", "(", "pathLen", "==", "0", ")", "{", "return", "path", ";", "}", "else", "if", "(", "pat...
Paths used in the zip entry table are adjusted to never have a leading slash and to never have a trailing slash. @param path The path which is to be adjusted. @return The path with leading and trailing slashes removed.
[ "Paths", "used", "in", "the", "zip", "entry", "table", "are", "adjusted", "to", "never", "have", "a", "leading", "slash", "and", "to", "never", "have", "a", "trailing", "slash", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/internal/ZipFileContainerUtils.java#L641-L670
65,787
OpenLiberty/open-liberty
dev/com.ibm.websphere.rest.handler/src/com/ibm/wsspi/rest/config/ConfigBasedRESTHandler.java
ConfigBasedRESTHandler.getDeepestNestedElementName
private static String getDeepestNestedElementName(String configDisplayId) { int start = configDisplayId.lastIndexOf("]/"); if (start > 1) { int end = configDisplayId.indexOf('[', start += 2); if (end > start) return configDisplayId.substring(start, end); }...
java
private static String getDeepestNestedElementName(String configDisplayId) { int start = configDisplayId.lastIndexOf("]/"); if (start > 1) { int end = configDisplayId.indexOf('[', start += 2); if (end > start) return configDisplayId.substring(start, end); }...
[ "private", "static", "String", "getDeepestNestedElementName", "(", "String", "configDisplayId", ")", "{", "int", "start", "=", "configDisplayId", ".", "lastIndexOf", "(", "\"]/\"", ")", ";", "if", "(", "start", ">", "1", ")", "{", "int", "end", "=", "configD...
Returns the most deeply nested element name. @param configDisplayId config.displayId @return the most deeply nested element name. Null if there are not any nested elements.
[ "Returns", "the", "most", "deeply", "nested", "element", "name", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.rest.handler/src/com/ibm/wsspi/rest/config/ConfigBasedRESTHandler.java#L86-L94
65,788
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/persistent/filemgr/FileManagerImpl.java
FileManagerImpl.dump_memory
public void dump_memory(Writer out) throws IOException { int qlist_num; out.write("First quick size: " + first_quick_size + "\n"); out.write("Last quick size: " + last_quick_size + "\n"); out.write("Grain size: " + grain_size + "\n"); out.write("Acceptable waste: " + acc...
java
public void dump_memory(Writer out) throws IOException { int qlist_num; out.write("First quick size: " + first_quick_size + "\n"); out.write("Last quick size: " + last_quick_size + "\n"); out.write("Grain size: " + grain_size + "\n"); out.write("Acceptable waste: " + acc...
[ "public", "void", "dump_memory", "(", "Writer", "out", ")", "throws", "IOException", "{", "int", "qlist_num", ";", "out", ".", "write", "(", "\"First quick size: \"", "+", "first_quick_size", "+", "\"\\n\"", ")", ";", "out", ".", "write", "(", "\"Last quick si...
Outputs storage information stored in main memory. Debugging interface, writes interesting stuff to stdout.
[ "Outputs", "storage", "information", "stored", "in", "main", "memory", ".", "Debugging", "interface", "writes", "interesting", "stuff", "to", "stdout", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/persistent/filemgr/FileManagerImpl.java#L828-L850
65,789
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/impl/JFapChannelFactory.java
JFapChannelFactory.createChannel
protected Channel createChannel(ChannelData config) throws ChannelException { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "createChannel", config); Channel retChannel; if (config.isInbound()) { if (tc.isDebugEnabled()) SibTr.debug(this, tc, "createChannel", "inbound"); ...
java
protected Channel createChannel(ChannelData config) throws ChannelException { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "createChannel", config); Channel retChannel; if (config.isInbound()) { if (tc.isDebugEnabled()) SibTr.debug(this, tc, "createChannel", "inbound"); ...
[ "protected", "Channel", "createChannel", "(", "ChannelData", "config", ")", "throws", "ChannelException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"createChannel\"", ",", "config", ")",...
Creates a new channel. Uses channel configuration to determine if the channel should be inbound or outbound. @see BaseChannelFactory#createChannel(com.ibm.websphere.channelfw.ChannelData)
[ "Creates", "a", "new", "channel", ".", "Uses", "channel", "configuration", "to", "determine", "if", "the", "channel", "should", "be", "inbound", "or", "outbound", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/impl/JFapChannelFactory.java#L60-L102
65,790
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/impl/JFapChannelFactory.java
JFapChannelFactory.getDeviceInterface
public Class[] getDeviceInterface() // F177053 { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getDeviceInterface"); // F177053 // Start D232185 if (devSideInterfaceClasses == null) { devSideInterfaceClasses = new Class[1]; devSid...
java
public Class[] getDeviceInterface() // F177053 { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getDeviceInterface"); // F177053 // Start D232185 if (devSideInterfaceClasses == null) { devSideInterfaceClasses = new Class[1]; devSid...
[ "public", "Class", "[", "]", "getDeviceInterface", "(", ")", "// F177053", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getDeviceInterface\"", ")", ";", "// F177053", "// Start D232185", ...
Returns the device side interfaces which our channels can work with. This is always the TCPServiceContext.
[ "Returns", "the", "device", "side", "interfaces", "which", "our", "channels", "can", "work", "with", ".", "This", "is", "always", "the", "TCPServiceContext", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/impl/JFapChannelFactory.java#L108-L122
65,791
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/RepositoryManager.java
RepositoryManager.addRepository
private void addRepository(String repositoryId, RepositoryWrapper repositoryHolder) { repositories.put(repositoryId, repositoryHolder); try { numRepos = getNumberOfRepositories(); } catch (WIMException e) { // okay } }
java
private void addRepository(String repositoryId, RepositoryWrapper repositoryHolder) { repositories.put(repositoryId, repositoryHolder); try { numRepos = getNumberOfRepositories(); } catch (WIMException e) { // okay } }
[ "private", "void", "addRepository", "(", "String", "repositoryId", ",", "RepositoryWrapper", "repositoryHolder", ")", "{", "repositories", ".", "put", "(", "repositoryId", ",", "repositoryHolder", ")", ";", "try", "{", "numRepos", "=", "getNumberOfRepositories", "("...
Pair adding to the repositories map and resetting the numRepos int. @param repositoryId @param repositoryHolder
[ "Pair", "adding", "to", "the", "repositories", "map", "and", "resetting", "the", "numRepos", "int", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/RepositoryManager.java#L77-L84
65,792
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/RepositoryManager.java
RepositoryManager.getRepositoryIdByUniqueName
protected String getRepositoryIdByUniqueName(String uniqueName) throws WIMException { boolean isDn = UniqueNameHelper.isDN(uniqueName) != null; if (isDn) uniqueName = UniqueNameHelper.getValidUniqueName(uniqueName).trim(); String repo = null; int repoMatch = -1; int ...
java
protected String getRepositoryIdByUniqueName(String uniqueName) throws WIMException { boolean isDn = UniqueNameHelper.isDN(uniqueName) != null; if (isDn) uniqueName = UniqueNameHelper.getValidUniqueName(uniqueName).trim(); String repo = null; int repoMatch = -1; int ...
[ "protected", "String", "getRepositoryIdByUniqueName", "(", "String", "uniqueName", ")", "throws", "WIMException", "{", "boolean", "isDn", "=", "UniqueNameHelper", ".", "isDN", "(", "uniqueName", ")", "!=", "null", ";", "if", "(", "isDn", ")", "uniqueName", "=", ...
Returns the id of the repository to which the uniqueName belongs to. @throws InvalidUniqueNameException
[ "Returns", "the", "id", "of", "the", "repository", "to", "which", "the", "uniqueName", "belongs", "to", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/RepositoryManager.java#L137-L167
65,793
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/FileFailureScope.java
FileFailureScope.isSameExecutionZone
@Override public boolean isSameExecutionZone(FailureScope anotherScope) { if (tc.isEntryEnabled()) Tr.entry(tc, "isSameExecutionZone", anotherScope); boolean isSameZone = equals(anotherScope); if (tc.isEntryEnabled()) Tr.exit(tc, "isSameExecutionZone", new Boole...
java
@Override public boolean isSameExecutionZone(FailureScope anotherScope) { if (tc.isEntryEnabled()) Tr.entry(tc, "isSameExecutionZone", anotherScope); boolean isSameZone = equals(anotherScope); if (tc.isEntryEnabled()) Tr.exit(tc, "isSameExecutionZone", new Boole...
[ "@", "Override", "public", "boolean", "isSameExecutionZone", "(", "FailureScope", "anotherScope", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"isSameExecutionZone\"", ",", "anotherScope", ")", ";", "...
Returns true if this failure scope represents the same general recovery scope as the input parameter. For instance, if more than one FailureScope was created which referenced the same server, they would be in the same execution zone. @param anotherScope Failure scope to test @return boolean Flag indicating if the tar...
[ "Returns", "true", "if", "this", "failure", "scope", "represents", "the", "same", "general", "recovery", "scope", "as", "the", "input", "parameter", ".", "For", "instance", "if", "more", "than", "one", "FailureScope", "was", "created", "which", "referenced", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/FileFailureScope.java#L257-L269
65,794
OpenLiberty/open-liberty
dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/web/WebUtils.java
WebUtils.encodeCookie
public static String encodeCookie(String string) { if (string == null) { return null; } string = string.replaceAll("%", "%25"); string = string.replaceAll(";", "%3B"); string = string.replaceAll(",", "%2C"); return string; }
java
public static String encodeCookie(String string) { if (string == null) { return null; } string = string.replaceAll("%", "%25"); string = string.replaceAll(";", "%3B"); string = string.replaceAll(",", "%2C"); return string; }
[ "public", "static", "String", "encodeCookie", "(", "String", "string", ")", "{", "if", "(", "string", "==", "null", ")", "{", "return", "null", ";", "}", "string", "=", "string", ".", "replaceAll", "(", "\"%\"", ",", "\"%25\"", ")", ";", "string", "=",...
Encodes the given string so that it can be used as an HTTP cookie value. @param string the string to convert
[ "Encodes", "the", "given", "string", "so", "that", "it", "can", "be", "used", "as", "an", "HTTP", "cookie", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/web/WebUtils.java#L98-L106
65,795
OpenLiberty/open-liberty
dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/web/WebUtils.java
WebUtils.decodeCookie
public static String decodeCookie(String string) { if (string == null) { return null; } string = string.replaceAll("%2C", ","); string = string.replaceAll("%3B", ";"); string = string.replaceAll("%25", "%"); return string; }
java
public static String decodeCookie(String string) { if (string == null) { return null; } string = string.replaceAll("%2C", ","); string = string.replaceAll("%3B", ";"); string = string.replaceAll("%25", "%"); return string; }
[ "public", "static", "String", "decodeCookie", "(", "String", "string", ")", "{", "if", "(", "string", "==", "null", ")", "{", "return", "null", ";", "}", "string", "=", "string", ".", "replaceAll", "(", "\"%2C\"", ",", "\",\"", ")", ";", "string", "=",...
Decodes the given string from percent encoding. @param string the string to convert
[ "Decodes", "the", "given", "string", "from", "percent", "encoding", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/web/WebUtils.java#L114-L122
65,796
OpenLiberty/open-liberty
dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/web/WebUtils.java
WebUtils.getRequestStringForTrace
@Trivial public static String getRequestStringForTrace(HttpServletRequest request, String[] secretStrings) { if (request == null || request.getRequestURL() == null) { return "[]"; } StringBuffer sb = new StringBuffer("[" + stripSecretsFromUrl(request.getRequestURL().toString(), ...
java
@Trivial public static String getRequestStringForTrace(HttpServletRequest request, String[] secretStrings) { if (request == null || request.getRequestURL() == null) { return "[]"; } StringBuffer sb = new StringBuffer("[" + stripSecretsFromUrl(request.getRequestURL().toString(), ...
[ "@", "Trivial", "public", "static", "String", "getRequestStringForTrace", "(", "HttpServletRequest", "request", ",", "String", "[", "]", "secretStrings", ")", "{", "if", "(", "request", "==", "null", "||", "request", ".", "getRequestURL", "(", ")", "==", "null...
information and returns a string for tracing
[ "information", "and", "returns", "a", "string", "for", "tracing" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/web/WebUtils.java#L431-L453
65,797
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DynamicConfigManager.java
DynamicConfigManager.deleteAbstractAliasDestinationHandler
public void deleteAbstractAliasDestinationHandler(AbstractAliasDestinationHandler abstractAliasDestinationHandler) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "deleteAbstractAliasDestinationHandler"); //The destination is an alias or a foreign destination, so ...
java
public void deleteAbstractAliasDestinationHandler(AbstractAliasDestinationHandler abstractAliasDestinationHandler) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "deleteAbstractAliasDestinationHandler"); //The destination is an alias or a foreign destination, so ...
[ "public", "void", "deleteAbstractAliasDestinationHandler", "(", "AbstractAliasDestinationHandler", "abstractAliasDestinationHandler", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ...
Delete the abstract alias destination handler @param abstractAliasDestinationHandler
[ "Delete", "the", "abstract", "alias", "destination", "handler" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DynamicConfigManager.java#L455-L473
65,798
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODDependencyTable.java
HTODDependencyTable.add
public int add(Object dependency, ValueSet valueSet, Object entry) { int returnCode = HTODDynacache.NO_EXCEPTION; dependencyNotUpdatedTable.remove(dependency); valueSet.add(entry); if (valueSet.size() > this.delayOffloadEntriesLimit) { if (this.type == DEP_ID_TABLE) { ...
java
public int add(Object dependency, ValueSet valueSet, Object entry) { int returnCode = HTODDynacache.NO_EXCEPTION; dependencyNotUpdatedTable.remove(dependency); valueSet.add(entry); if (valueSet.size() > this.delayOffloadEntriesLimit) { if (this.type == DEP_ID_TABLE) { ...
[ "public", "int", "add", "(", "Object", "dependency", ",", "ValueSet", "valueSet", ",", "Object", "entry", ")", "{", "int", "returnCode", "=", "HTODDynacache", ".", "NO_EXCEPTION", ";", "dependencyNotUpdatedTable", ".", "remove", "(", "dependency", ")", ";", "v...
This adds a entry to the ValueSet for the specified dependency. The dependency is found in the dependencyToEntryTable. @param dependency The dependency. @param valueSet containing all entries for this dependency. @param entry The new entry to add.
[ "This", "adds", "a", "entry", "to", "the", "ValueSet", "for", "the", "specified", "dependency", ".", "The", "dependency", "is", "found", "in", "the", "dependencyToEntryTable", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODDependencyTable.java#L70-L95
65,799
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODDependencyTable.java
HTODDependencyTable.add
public int add(Object dependency, ValueSet valueSet) { int returnCode = HTODDynacache.NO_EXCEPTION; if (dependencyToEntryTable.size() >= this.maxSize) { returnCode = reduceTableSize(); } dependencyNotUpdatedTable.put(dependency, valueSet); dependencyToEntryTable.put(d...
java
public int add(Object dependency, ValueSet valueSet) { int returnCode = HTODDynacache.NO_EXCEPTION; if (dependencyToEntryTable.size() >= this.maxSize) { returnCode = reduceTableSize(); } dependencyNotUpdatedTable.put(dependency, valueSet); dependencyToEntryTable.put(d...
[ "public", "int", "add", "(", "Object", "dependency", ",", "ValueSet", "valueSet", ")", "{", "int", "returnCode", "=", "HTODDynacache", ".", "NO_EXCEPTION", ";", "if", "(", "dependencyToEntryTable", ".", "size", "(", ")", ">=", "this", ".", "maxSize", ")", ...
This adds a new dependency with its valueSet to the DependencyToEntryTable. @param dependency The dependency. @param valueSet containing all entries for this dependency.
[ "This", "adds", "a", "new", "dependency", "with", "its", "valueSet", "to", "the", "DependencyToEntryTable", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODDependencyTable.java#L103-L111