repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java
MPIO.sendToMe
public void sendToMe(SIBUuid8 targetME, int priority, AbstractMessage aMessage) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "sendToMe", new Object[] { aMessage, Integer.valueOf(priority), targetME }); // find an appropriate MPConnection MPConnection firstCho...
java
public void sendToMe(SIBUuid8 targetME, int priority, AbstractMessage aMessage) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "sendToMe", new Object[] { aMessage, Integer.valueOf(priority), targetME }); // find an appropriate MPConnection MPConnection firstCho...
[ "public", "void", "sendToMe", "(", "SIBUuid8", "targetME", ",", "int", "priority", ",", "AbstractMessage", "aMessage", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", "."...
Send a ControlMessage to one specific ME @param aMessage The ControlMessage to be sent @param priority The priority at which to send the message @param targetME The ME to send the message to
[ "Send", "a", "ControlMessage", "to", "one", "specific", "ME" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java#L502-L531
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java
MPIO.sendDownTree
public void sendDownTree(SIBUuid8[] targets, int priority, AbstractMessage cMsg) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "sendDownTree", new Object[] { this, cMsg, Integer.valueOf(priority), targets}); // Select a set of connections, then annotate the messag...
java
public void sendDownTree(SIBUuid8[] targets, int priority, AbstractMessage cMsg) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "sendDownTree", new Object[] { this, cMsg, Integer.valueOf(priority), targets}); // Select a set of connections, then annotate the messag...
[ "public", "void", "sendDownTree", "(", "SIBUuid8", "[", "]", "targets", ",", "int", "priority", ",", "AbstractMessage", "cMsg", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "...
Send a control message to a list of MEs @param jsMsg The message to be sent @param priority The priority at which to send it @param fromTo The MEs to send it to
[ "Send", "a", "control", "message", "to", "a", "list", "of", "MEs" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java#L541-L597
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java
MPIO.isMEReachable
public boolean isMEReachable(SIBUuid8 meUuid) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "isMEReachable", new Object[] {this, meUuid}); boolean result = (findMPConnection(meUuid) != null); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryE...
java
public boolean isMEReachable(SIBUuid8 meUuid) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "isMEReachable", new Object[] {this, meUuid}); boolean result = (findMPConnection(meUuid) != null); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryE...
[ "public", "boolean", "isMEReachable", "(", "SIBUuid8", "meUuid", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"isMEReachable\"", ",", ...
Test whether or not a particular ME is reachable. @param me The ME to test. @return True if TRM has a path to this ME, false otherwise.
[ "Test", "whether", "or", "not", "a", "particular", "ME", "is", "reachable", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java#L609-L620
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java
MPIO.isCompatibleME
public boolean isCompatibleME(SIBUuid8 meUuid, ProtocolVersion version) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "isCompatibleME", new Object[] {meUuid}); boolean result = false; MPConnection conn = findMPConnection(meUuid); if (conn!=null) ...
java
public boolean isCompatibleME(SIBUuid8 meUuid, ProtocolVersion version) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "isCompatibleME", new Object[] {meUuid}); boolean result = false; MPConnection conn = findMPConnection(meUuid); if (conn!=null) ...
[ "public", "boolean", "isCompatibleME", "(", "SIBUuid8", "meUuid", ",", "ProtocolVersion", "version", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "t...
Test whether or not a particular ME is of a version compatible with this one. @param me The ME to test. @return True if ME is of a compatible version
[ "Test", "whether", "or", "not", "a", "particular", "ME", "is", "of", "a", "version", "compatible", "with", "this", "one", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java#L628-L647
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java
MPIO.forceConnect
public void forceConnect(SIBUuid8 meUuid) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "forceConnect", meUuid); if(_routingManager!=null) _routingManager.connectToME(meUuid); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
public void forceConnect(SIBUuid8 meUuid) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "forceConnect", meUuid); if(_routingManager!=null) _routingManager.connectToME(meUuid); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
[ "public", "void", "forceConnect", "(", "SIBUuid8", "meUuid", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"forceConnect\"", ",", "meU...
Can potentially block for up to 5 seconds
[ "Can", "potentially", "block", "for", "up", "to", "5", "seconds" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java#L650-L660
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java
ServletStartedListener.createSecurityConstraints
private List<SecurityConstraint> createSecurityConstraints(SecurityMetadata securityMetadataFromDD, ServletSecurityElement servletSecurity, Collection<String> urlPatterns) { List<SecurityConstraint> securityConstraints = new ArrayList<SecurityConstraint>(); securityConstraints.add(getConstraintFromHttpE...
java
private List<SecurityConstraint> createSecurityConstraints(SecurityMetadata securityMetadataFromDD, ServletSecurityElement servletSecurity, Collection<String> urlPatterns) { List<SecurityConstraint> securityConstraints = new ArrayList<SecurityConstraint>(); securityConstraints.add(getConstraintFromHttpE...
[ "private", "List", "<", "SecurityConstraint", ">", "createSecurityConstraints", "(", "SecurityMetadata", "securityMetadataFromDD", ",", "ServletSecurityElement", "servletSecurity", ",", "Collection", "<", "String", ">", "urlPatterns", ")", "{", "List", "<", "SecurityConst...
Constructs a list of SecurityConstraint objects from the given ServletSecurityElement and list of URL patterns. @param securityMetadataFromDD the security metadata processed from the deployment descriptor, for updating the roles @param servletSecurity the ServletSecurityElement that represents the information parsed f...
[ "Constructs", "a", "list", "of", "SecurityConstraint", "objects", "from", "the", "given", "ServletSecurityElement", "and", "list", "of", "URL", "patterns", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java#L303-L308
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java
ServletStartedListener.getConstraintFromHttpElement
private SecurityConstraint getConstraintFromHttpElement(SecurityMetadata securityMetadataFromDD, Collection<String> urlPatterns, ServletSecurityElement servletSecurity) { List<String> omissionMethods = new ArrayList<String>(); if (!servletSecurity.getMethodNames().isEmpty()) { omissionMethod...
java
private SecurityConstraint getConstraintFromHttpElement(SecurityMetadata securityMetadataFromDD, Collection<String> urlPatterns, ServletSecurityElement servletSecurity) { List<String> omissionMethods = new ArrayList<String>(); if (!servletSecurity.getMethodNames().isEmpty()) { omissionMethod...
[ "private", "SecurityConstraint", "getConstraintFromHttpElement", "(", "SecurityMetadata", "securityMetadataFromDD", ",", "Collection", "<", "String", ">", "urlPatterns", ",", "ServletSecurityElement", "servletSecurity", ")", "{", "List", "<", "String", ">", "omissionMethods...
Gets the security constraint from the HttpConstraint element defined in the given ServletSecurityElement with the given list of url patterns. This constraint applies to all methods that are not explicitly overridden by the HttpMethodConstraint element. The method constraints are defined as omission methods in this sec...
[ "Gets", "the", "security", "constraint", "from", "the", "HttpConstraint", "element", "defined", "in", "the", "given", "ServletSecurityElement", "with", "the", "given", "list", "of", "url", "patterns", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java#L322-L332
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java
ServletStartedListener.getConstraintsFromHttpMethodElement
private List<SecurityConstraint> getConstraintsFromHttpMethodElement(SecurityMetadata securityMetadataFromDD, Collection<String> urlPatterns, ServletSecurityElement servletSecurity) { List<SecurityConstraint> securityConstraints = new Arra...
java
private List<SecurityConstraint> getConstraintsFromHttpMethodElement(SecurityMetadata securityMetadataFromDD, Collection<String> urlPatterns, ServletSecurityElement servletSecurity) { List<SecurityConstraint> securityConstraints = new Arra...
[ "private", "List", "<", "SecurityConstraint", ">", "getConstraintsFromHttpMethodElement", "(", "SecurityMetadata", "securityMetadataFromDD", ",", "Collection", "<", "String", ">", "urlPatterns", ",", "ServletSecurityElement", "servletSecurity", ")", "{", "List", "<", "Sec...
Gets the security constraints from the HttpMethodConstraint elements defined in the given ServletSecurityElement with the given list of url patterns. @param securityMetadataFromDD the security metadata processed from the deployment descriptor, for updating the roles @param urlPatterns the list of URL patterns defined ...
[ "Gets", "the", "security", "constraints", "from", "the", "HttpMethodConstraint", "elements", "defined", "in", "the", "given", "ServletSecurityElement", "with", "the", "given", "list", "of", "url", "patterns", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java#L343-L358
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java
ServletStartedListener.createSecurityConstraint
private SecurityConstraint createSecurityConstraint(SecurityMetadata securityMetadataFromDD, List<WebResourceCollection> webResourceCollections, HttpConstraintElement httpConstraint, boolean fromHttpConstraint) { List<String> roles = createRoles(httpConstr...
java
private SecurityConstraint createSecurityConstraint(SecurityMetadata securityMetadataFromDD, List<WebResourceCollection> webResourceCollections, HttpConstraintElement httpConstraint, boolean fromHttpConstraint) { List<String> roles = createRoles(httpConstr...
[ "private", "SecurityConstraint", "createSecurityConstraint", "(", "SecurityMetadata", "securityMetadataFromDD", ",", "List", "<", "WebResourceCollection", ">", "webResourceCollections", ",", "HttpConstraintElement", "httpConstraint", ",", "boolean", "fromHttpConstraint", ")", "...
Creates a security constraint from the given web resource collections, url patterns and HttpConstraint element. @param securityMetadataFromDD the security metadata processed from the deployment descriptor, for updating the roles @param webResourceCollections a list of web resource collections @param httpConstraint the...
[ "Creates", "a", "security", "constraint", "from", "the", "given", "web", "resource", "collections", "url", "patterns", "and", "HttpConstraint", "element", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java#L368-L381
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java
ServletStartedListener.isSSLRequired
private boolean isSSLRequired(HttpConstraintElement httpConstraint) { boolean sslRequired = false; TransportGuarantee transportGuarantee = httpConstraint.getTransportGuarantee(); if (transportGuarantee != TransportGuarantee.NONE) { sslRequired = true; } return sslRequ...
java
private boolean isSSLRequired(HttpConstraintElement httpConstraint) { boolean sslRequired = false; TransportGuarantee transportGuarantee = httpConstraint.getTransportGuarantee(); if (transportGuarantee != TransportGuarantee.NONE) { sslRequired = true; } return sslRequ...
[ "private", "boolean", "isSSLRequired", "(", "HttpConstraintElement", "httpConstraint", ")", "{", "boolean", "sslRequired", "=", "false", ";", "TransportGuarantee", "transportGuarantee", "=", "httpConstraint", ".", "getTransportGuarantee", "(", ")", ";", "if", "(", "tr...
Determines if SSL is required for the given HTTP constraint. SSL is required if the transport guarantee is any value other than NONE. @param httpConstraint the element representing the information in the @HttpConstraint annotation @return true if SSL is required, otherwise false
[ "Determines", "if", "SSL", "is", "required", "for", "the", "given", "HTTP", "constraint", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java#L406-L413
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java
ServletStartedListener.isAccessPrecluded
private boolean isAccessPrecluded(HttpConstraintElement httpConstraint) { boolean accessPrecluded = false; String[] roles = httpConstraint.getRolesAllowed(); if (roles == null || roles.length == 0) { if (EmptyRoleSemantic.DENY == httpConstraint.getEmptyRoleSemantic()) ...
java
private boolean isAccessPrecluded(HttpConstraintElement httpConstraint) { boolean accessPrecluded = false; String[] roles = httpConstraint.getRolesAllowed(); if (roles == null || roles.length == 0) { if (EmptyRoleSemantic.DENY == httpConstraint.getEmptyRoleSemantic()) ...
[ "private", "boolean", "isAccessPrecluded", "(", "HttpConstraintElement", "httpConstraint", ")", "{", "boolean", "accessPrecluded", "=", "false", ";", "String", "[", "]", "roles", "=", "httpConstraint", ".", "getRolesAllowed", "(", ")", ";", "if", "(", "roles", "...
Determines if access is precluded for the given HTTP constraint. Access is precluded when there are no roles, and the emptyRoleSemantic defined in the annotation is DENY. @param httpConstraint the element representing the information in the @HttpConstraint annotation @return true if access is precluded, otherwise fal...
[ "Determines", "if", "access", "is", "precluded", "for", "the", "given", "HTTP", "constraint", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java#L424-L432
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java
ServletStartedListener.isAccessUncovered
private boolean isAccessUncovered(HttpConstraintElement httpConstraint) { boolean accessUncovered = false; String[] roles = httpConstraint.getRolesAllowed(); if (roles == null || roles.length == 0) { if (EmptyRoleSemantic.PERMIT == httpConstraint.getEmptyRoleSemantic()) ...
java
private boolean isAccessUncovered(HttpConstraintElement httpConstraint) { boolean accessUncovered = false; String[] roles = httpConstraint.getRolesAllowed(); if (roles == null || roles.length == 0) { if (EmptyRoleSemantic.PERMIT == httpConstraint.getEmptyRoleSemantic()) ...
[ "private", "boolean", "isAccessUncovered", "(", "HttpConstraintElement", "httpConstraint", ")", "{", "boolean", "accessUncovered", "=", "false", ";", "String", "[", "]", "roles", "=", "httpConstraint", ".", "getRolesAllowed", "(", ")", ";", "if", "(", "roles", "...
Determines if access is uncovered for the given HTTP constraint. Access is uncovered when there are no roles, and the emptyRoleSemantic defined in the annotation is PERMIT. @param httpConstraint the element representing the information in the @HttpConstraint annotation @return true if access is precluded, otherwise f...
[ "Determines", "if", "access", "is", "uncovered", "for", "the", "given", "HTTP", "constraint", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java#L443-L452
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java
ServletStartedListener.setModuleSecurityMetaData
private void setModuleSecurityMetaData(Container moduleContainer, SecurityMetadata securityMetadataFromDD) { try { WebModuleMetaData wmmd = moduleContainer.adapt(WebModuleMetaData.class); wmmd.setSecurityMetaData(securityMetadataFromDD); } catch (UnableToAdaptException e) { ...
java
private void setModuleSecurityMetaData(Container moduleContainer, SecurityMetadata securityMetadataFromDD) { try { WebModuleMetaData wmmd = moduleContainer.adapt(WebModuleMetaData.class); wmmd.setSecurityMetaData(securityMetadataFromDD); } catch (UnableToAdaptException e) { ...
[ "private", "void", "setModuleSecurityMetaData", "(", "Container", "moduleContainer", ",", "SecurityMetadata", "securityMetadataFromDD", ")", "{", "try", "{", "WebModuleMetaData", "wmmd", "=", "moduleContainer", ".", "adapt", "(", "WebModuleMetaData", ".", "class", ")", ...
Sets the given security metadata on the deployed module's web module metadata for retrieval later. @param deployedModule the deployed module to get the web module metadata @param securityMetadataFromDD the security metadata processed from the deployment descriptor
[ "Sets", "the", "given", "security", "metadata", "on", "the", "deployed", "module", "s", "web", "module", "metadata", "for", "retrieval", "later", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java#L460-L469
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/context/servlet/FacesContextImplBase.java
FacesContextImplBase.release
@Override public void release() { _applicationFactory = null; _currentFacesContext = null; if (_defaultExternalContext != null) { _defaultExternalContext.release(); _defaultExternalContext = null; } _application = null; _ex...
java
@Override public void release() { _applicationFactory = null; _currentFacesContext = null; if (_defaultExternalContext != null) { _defaultExternalContext.release(); _defaultExternalContext = null; } _application = null; _ex...
[ "@", "Override", "public", "void", "release", "(", ")", "{", "_applicationFactory", "=", "null", ";", "_currentFacesContext", "=", "null", ";", "if", "(", "_defaultExternalContext", "!=", "null", ")", "{", "_defaultExternalContext", ".", "release", "(", ")", "...
Releases the instance fields on FacesContextImplBase. Must be called by sub-classes, when overriding it!
[ "Releases", "the", "instance", "fields", "on", "FacesContextImplBase", ".", "Must", "be", "called", "by", "sub", "-", "classes", "when", "overriding", "it!" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/context/servlet/FacesContextImplBase.java#L112-L144
train
OpenLiberty/open-liberty
dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/URLParser.java
URLParser.findMarkers
private void findMarkers(String url, String target) { final char[] data = url.toCharArray(); // we only care about the last path segment so find that first int i = 0; int lastSlash = 0; for (; i < data.length; i++) { if ('/' == data[i]) { lastSlash = ...
java
private void findMarkers(String url, String target) { final char[] data = url.toCharArray(); // we only care about the last path segment so find that first int i = 0; int lastSlash = 0; for (; i < data.length; i++) { if ('/' == data[i]) { lastSlash = ...
[ "private", "void", "findMarkers", "(", "String", "url", ",", "String", "target", ")", "{", "final", "char", "[", "]", "data", "=", "url", ".", "toCharArray", "(", ")", ";", "// we only care about the last path segment so find that first", "int", "i", "=", "0", ...
Scan the data for various markers, including the provided session id target. @param url @param target
[ "Scan", "the", "data", "for", "various", "markers", "including", "the", "provided", "session", "id", "target", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/URLParser.java#L59-L91
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/FormLogoutExtensionProcessor.java
FormLogoutExtensionProcessor.formLogout
private void formLogout(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { try { // if we have a valid custom logout page, set an attribute so SAML SLO knows about it. String exitPage = getValidLogoutExitPage(req); if (exitPage != null) {...
java
private void formLogout(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { try { // if we have a valid custom logout page, set an attribute so SAML SLO knows about it. String exitPage = getValidLogoutExitPage(req); if (exitPage != null) {...
[ "private", "void", "formLogout", "(", "HttpServletRequest", "req", ",", "HttpServletResponse", "res", ")", "throws", "ServletException", ",", "IOException", "{", "try", "{", "// if we have a valid custom logout page, set an attribute so SAML SLO knows about it.", "String", "exi...
Log the user out by clearing the LTPA cookie if LTPA and SSO are enabled. Must also invalidate the http session since it contains user id and password. Finally, if the user specified an exit page with a form parameter of logoutExitPage, redirect to the specified page. This is a special hidden servlet which is always l...
[ "Log", "the", "user", "out", "by", "clearing", "the", "LTPA", "cookie", "if", "LTPA", "and", "SSO", "are", "enabled", ".", "Must", "also", "invalidate", "the", "http", "session", "since", "it", "contains", "user", "id", "and", "password", ".", "Finally", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/FormLogoutExtensionProcessor.java#L98-L142
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/FormLogoutExtensionProcessor.java
FormLogoutExtensionProcessor.getValidLogoutExitPage
private String getValidLogoutExitPage(HttpServletRequest req) { boolean valid = false; String exitPage = req.getParameter("logoutExitPage"); if (exitPage != null && exitPage.length() != 0) { boolean logoutExitURLaccepted = verifyLogoutURL(req, exitPage); if (logoutExitUR...
java
private String getValidLogoutExitPage(HttpServletRequest req) { boolean valid = false; String exitPage = req.getParameter("logoutExitPage"); if (exitPage != null && exitPage.length() != 0) { boolean logoutExitURLaccepted = verifyLogoutURL(req, exitPage); if (logoutExitUR...
[ "private", "String", "getValidLogoutExitPage", "(", "HttpServletRequest", "req", ")", "{", "boolean", "valid", "=", "false", ";", "String", "exitPage", "=", "req", ".", "getParameter", "(", "\"logoutExitPage\"", ")", ";", "if", "(", "exitPage", "!=", "null", "...
return a logoutExitPage string suitable for redirection if one is defined and valid. else return null
[ "return", "a", "logoutExitPage", "string", "suitable", "for", "redirection", "if", "one", "is", "defined", "and", "valid", ".", "else", "return", "null" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/FormLogoutExtensionProcessor.java#L148-L161
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/FormLogoutExtensionProcessor.java
FormLogoutExtensionProcessor.useDefaultLogoutMsg
private void useDefaultLogoutMsg(HttpServletResponse res) { try { PrintWriter pw = res.getWriter(); pw.println(DEFAULT_LOGOUT_MSG); } catch (IOException e) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, e.getMessage());...
java
private void useDefaultLogoutMsg(HttpServletResponse res) { try { PrintWriter pw = res.getWriter(); pw.println(DEFAULT_LOGOUT_MSG); } catch (IOException e) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, e.getMessage());...
[ "private", "void", "useDefaultLogoutMsg", "(", "HttpServletResponse", "res", ")", "{", "try", "{", "PrintWriter", "pw", "=", "res", ".", "getWriter", "(", ")", ";", "pw", ".", "println", "(", "DEFAULT_LOGOUT_MSG", ")", ";", "}", "catch", "(", "IOException", ...
Display the default logout message. @param res
[ "Display", "the", "default", "logout", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/FormLogoutExtensionProcessor.java#L182-L192
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/FormLogoutExtensionProcessor.java
FormLogoutExtensionProcessor.isRedirectHostTheSameAsLocalHost
private boolean isRedirectHostTheSameAsLocalHost(String exitPage, String logoutURLhost, String hostFullName, String shortName, String ipAddress) { String localHostIpAddress = "127.0.0.1"; boolean acceptURL = false; if (logoutURLhost.equalsIgnoreCase("localhost") || logoutURLhost.equals(localHost...
java
private boolean isRedirectHostTheSameAsLocalHost(String exitPage, String logoutURLhost, String hostFullName, String shortName, String ipAddress) { String localHostIpAddress = "127.0.0.1"; boolean acceptURL = false; if (logoutURLhost.equalsIgnoreCase("localhost") || logoutURLhost.equals(localHost...
[ "private", "boolean", "isRedirectHostTheSameAsLocalHost", "(", "String", "exitPage", ",", "String", "logoutURLhost", ",", "String", "hostFullName", ",", "String", "shortName", ",", "String", "ipAddress", ")", "{", "String", "localHostIpAddress", "=", "\"127.0.0.1\"", ...
Check the logout URL host name with various combination of shortName, full name and ipAddress. @param logoutURLhost @param hostFullName @param shortName @param ipAddress
[ "Check", "the", "logout", "URL", "host", "name", "with", "various", "combination", "of", "shortName", "full", "name", "and", "ipAddress", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/FormLogoutExtensionProcessor.java#L336-L349
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/FormLogoutExtensionProcessor.java
FormLogoutExtensionProcessor.isRequestURLEqualsExitPageHost
private boolean isRequestURLEqualsExitPageHost(HttpServletRequest req, String logoutURLhost) { boolean acceptURL = false; try { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "about to attempt matching the logout exit url with the domain of the ...
java
private boolean isRequestURLEqualsExitPageHost(HttpServletRequest req, String logoutURLhost) { boolean acceptURL = false; try { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "about to attempt matching the logout exit url with the domain of the ...
[ "private", "boolean", "isRequestURLEqualsExitPageHost", "(", "HttpServletRequest", "req", ",", "String", "logoutURLhost", ")", "{", "boolean", "acceptURL", "=", "false", ";", "try", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc"...
Attempt to match the request URL's host with the URL for the exitPage this might be the case of a proxy URL that is used in the request. @param req @param acceptURL @return
[ "Attempt", "to", "match", "the", "request", "URL", "s", "host", "with", "the", "URL", "for", "the", "exitPage", "this", "might", "be", "the", "case", "of", "a", "proxy", "URL", "that", "is", "used", "in", "the", "request", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/FormLogoutExtensionProcessor.java#L359-L378
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Tree.java
Tree.makeExclusiveDependency
public synchronized boolean makeExclusiveDependency(int depStreamID, int exclusiveParentStreamID) { Node depNode = root.findNode(depStreamID); Node exclusiveParentNode = root.findNode(exclusiveParentStreamID); return makeExclusiveDependency(depNode, exclusiveParentNode); }
java
public synchronized boolean makeExclusiveDependency(int depStreamID, int exclusiveParentStreamID) { Node depNode = root.findNode(depStreamID); Node exclusiveParentNode = root.findNode(exclusiveParentStreamID); return makeExclusiveDependency(depNode, exclusiveParentNode); }
[ "public", "synchronized", "boolean", "makeExclusiveDependency", "(", "int", "depStreamID", ",", "int", "exclusiveParentStreamID", ")", "{", "Node", "depNode", "=", "root", ".", "findNode", "(", "depStreamID", ")", ";", "Node", "exclusiveParentNode", "=", "root", "...
Helper method to find the nodes given the stream IDs, and then call the method that does the real work. @param depStreamID @param exclusiveParentStreamID @return the Node that was changed, null if the node or the parent node could not be found
[ "Helper", "method", "to", "find", "the", "nodes", "given", "the", "stream", "IDs", "and", "then", "call", "the", "method", "that", "does", "the", "real", "work", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Tree.java#L271-L277
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Tree.java
Tree.changeParent
public synchronized boolean changeParent(int depStreamID, int newPriority, int newParentStreamID, boolean exclusive) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "changeParent entry: depStreamID: " + depStreamID + " newParentStreamID: " + newParentStreamID + " e...
java
public synchronized boolean changeParent(int depStreamID, int newPriority, int newParentStreamID, boolean exclusive) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "changeParent entry: depStreamID: " + depStreamID + " newParentStreamID: " + newParentStreamID + " e...
[ "public", "synchronized", "boolean", "changeParent", "(", "int", "depStreamID", ",", "int", "newPriority", ",", "int", "newParentStreamID", ",", "boolean", "exclusive", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".",...
Implement the above spec functionality @param depStreamID @param newParentStreamID @param exclusive
[ "Implement", "the", "above", "spec", "functionality" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Tree.java#L373-L450
train
OpenLiberty/open-liberty
dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/HandlerHolder.java
HandlerHolder.populateTopics
private void populateTopics(String[] topics) { for (String t : topics) { // Clean up leading and trailing white space as appropriate t = t.trim(); // Ignore topics that start or end with a '/' if (t.startsWith("/") || t.endsWith("/") || t.contains("//") || t.isEm...
java
private void populateTopics(String[] topics) { for (String t : topics) { // Clean up leading and trailing white space as appropriate t = t.trim(); // Ignore topics that start or end with a '/' if (t.startsWith("/") || t.endsWith("/") || t.contains("//") || t.isEm...
[ "private", "void", "populateTopics", "(", "String", "[", "]", "topics", ")", "{", "for", "(", "String", "t", ":", "topics", ")", "{", "// Clean up leading and trailing white space as appropriate", "t", "=", "t", ".", "trim", "(", ")", ";", "// Ignore topics that...
Parse the topic specifications into the appropriate lists. @param topics the topics the handler is interested in
[ "Parse", "the", "topic", "specifications", "into", "the", "appropriate", "lists", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/HandlerHolder.java#L168-L189
train
OpenLiberty/open-liberty
dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/HandlerHolder.java
HandlerHolder.checkTopicSubscribePermission
private void checkTopicSubscribePermission(String topic) { SecurityManager sm = System.getSecurityManager(); if (sm == null) return; sm.checkPermission(new TopicPermission(topic, SUBSCRIBE)); }
java
private void checkTopicSubscribePermission(String topic) { SecurityManager sm = System.getSecurityManager(); if (sm == null) return; sm.checkPermission(new TopicPermission(topic, SUBSCRIBE)); }
[ "private", "void", "checkTopicSubscribePermission", "(", "String", "topic", ")", "{", "SecurityManager", "sm", "=", "System", ".", "getSecurityManager", "(", ")", ";", "if", "(", "sm", "==", "null", ")", "return", ";", "sm", ".", "checkPermission", "(", "new...
Check if the caller has permission to subscribe to events published to the specified topic. @param topic the topic being subscribed to
[ "Check", "if", "the", "caller", "has", "permission", "to", "subscribe", "to", "events", "published", "to", "the", "specified", "topic", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/HandlerHolder.java#L198-L204
train
OpenLiberty/open-liberty
dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/HandlerHolder.java
HandlerHolder.fireEvent
void fireEvent() { boolean useLock = !isReentrant(); if (useLock) { lock.lock(); } EventImpl event = eventQueue.poll(); try { if (event != null) { fireEvent(event); } } finally { if (useLock) { ...
java
void fireEvent() { boolean useLock = !isReentrant(); if (useLock) { lock.lock(); } EventImpl event = eventQueue.poll(); try { if (event != null) { fireEvent(event); } } finally { if (useLock) { ...
[ "void", "fireEvent", "(", ")", "{", "boolean", "useLock", "=", "!", "isReentrant", "(", ")", ";", "if", "(", "useLock", ")", "{", "lock", ".", "lock", "(", ")", ";", "}", "EventImpl", "event", "=", "eventQueue", ".", "poll", "(", ")", ";", "try", ...
Deliver this event to the next target handler pulled from the handlerQueue. If the handler is not reentrant, the delivery will be serialized to prevent multiple threads entering the handler concurrently.
[ "Deliver", "this", "event", "to", "the", "next", "target", "handler", "pulled", "from", "the", "handlerQueue", ".", "If", "the", "handler", "is", "not", "reentrant", "the", "delivery", "will", "be", "serialized", "to", "prevent", "multiple", "threads", "enteri...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/HandlerHolder.java#L340-L357
train
OpenLiberty/open-liberty
dev/com.ibm.websphere.security/src/com/ibm/websphere/security/WSSecurityException.java
WSSecurityException.getCause
@Override public Throwable getCause() { if (exceptions != null && exceptions.size() > 0) return (Throwable) exceptions.get(0); else return null; }
java
@Override public Throwable getCause() { if (exceptions != null && exceptions.size() > 0) return (Throwable) exceptions.get(0); else return null; }
[ "@", "Override", "public", "Throwable", "getCause", "(", ")", "{", "if", "(", "exceptions", "!=", "null", "&&", "exceptions", ".", "size", "(", ")", ">", "0", ")", "return", "(", "Throwable", ")", "exceptions", ".", "get", "(", "0", ")", ";", "else",...
Returns the root cause exception. @return The Throwable root cause exception.
[ "Returns", "the", "root", "cause", "exception", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security/src/com/ibm/websphere/security/WSSecurityException.java#L103-L109
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelResolver.java
KernelResolver.addBootJars
public void addBootJars(List<URL> urlList) { addBootJars(cache.getJarFiles(kernelMf), urlList); addBootJars(cache.getJarFiles(logProviderMf), urlList); if (osExtensionMf != null) addBootJars(cache.getJarFiles(osExtensionMf), urlList); }
java
public void addBootJars(List<URL> urlList) { addBootJars(cache.getJarFiles(kernelMf), urlList); addBootJars(cache.getJarFiles(logProviderMf), urlList); if (osExtensionMf != null) addBootJars(cache.getJarFiles(osExtensionMf), urlList); }
[ "public", "void", "addBootJars", "(", "List", "<", "URL", ">", "urlList", ")", "{", "addBootJars", "(", "cache", ".", "getJarFiles", "(", "kernelMf", ")", ",", "urlList", ")", ";", "addBootJars", "(", "cache", ".", "getJarFiles", "(", "logProviderMf", ")",...
Add any boot.jar resources specified by the kernel, log provider, or os extension definition files @param urlList target list for additional URLs. @see ResolverCache#getJarFiles(File)
[ "Add", "any", "boot", ".", "jar", "resources", "specified", "by", "the", "kernel", "log", "provider", "or", "os", "extension", "definition", "files" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelResolver.java#L238-L244
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelResolver.java
KernelResolver.addBootJars
private void addBootJars(List<File> jarFiles, List<URL> urlList) { for (File jarFile : jarFiles) { try { urlList.add(jarFile.toURI().toURL()); } catch (MalformedURLException e) { // Unlikely: we're making URLs for files we know exist } ...
java
private void addBootJars(List<File> jarFiles, List<URL> urlList) { for (File jarFile : jarFiles) { try { urlList.add(jarFile.toURI().toURL()); } catch (MalformedURLException e) { // Unlikely: we're making URLs for files we know exist } ...
[ "private", "void", "addBootJars", "(", "List", "<", "File", ">", "jarFiles", ",", "List", "<", "URL", ">", "urlList", ")", "{", "for", "(", "File", "jarFile", ":", "jarFiles", ")", "{", "try", "{", "urlList", ".", "add", "(", "jarFile", ".", "toURI",...
Given the list of files, add the URL for each file to the list of URLs @param jarFiles List of Files (source) @param urlList List of URLs (target)
[ "Given", "the", "list", "of", "files", "add", "the", "URL", "for", "each", "file", "to", "the", "list", "of", "URLs" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelResolver.java#L252-L260
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java
JsHdrsImpl.getMessageHandle
public SIMessageHandle getMessageHandle() { // If the transient is not set, build the handle from the values in the message and cache it. if (cachedMessageHandle == null) { byte[] b = (byte[]) jmo.getField(JsHdrAccess.SYSTEMMESSAGESOURCEUUID); if (b != null) { cac...
java
public SIMessageHandle getMessageHandle() { // If the transient is not set, build the handle from the values in the message and cache it. if (cachedMessageHandle == null) { byte[] b = (byte[]) jmo.getField(JsHdrAccess.SYSTEMMESSAGESOURCEUUID); if (b != null) { cac...
[ "public", "SIMessageHandle", "getMessageHandle", "(", ")", "{", "// If the transient is not set, build the handle from the values in the message and cache it.", "if", "(", "cachedMessageHandle", "==", "null", ")", "{", "byte", "[", "]", "b", "=", "(", "byte", "[", "]", ...
Get the message handle which uniquely identifies this message. @return An SIMessageHandle which identifies this message.
[ "Get", "the", "message", "handle", "which", "uniquely", "identifies", "this", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java#L658-L671
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java
JsHdrsImpl.setProducerType
final void setProducerType(ProducerType value) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setProducerType", value); /* Get the int value of the ProducerType and set that into the field */ getHdr2().setField(JsHdr2Access.PRODUCERTYPE, val...
java
final void setProducerType(ProducerType value) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setProducerType", value); /* Get the int value of the ProducerType and set that into the field */ getHdr2().setField(JsHdr2Access.PRODUCERTYPE, val...
[ "final", "void", "setProducerType", "(", "ProducerType", "value", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"setProdu...
Set the value of the ProducerType field in the message header. This method is only used by message constructors so is not public final. @param value The ProducerType representing the Producer Type of the message (e.g. Core, API, TRM)
[ "Set", "the", "value", "of", "the", "ProducerType", "field", "in", "the", "message", "header", ".", "This", "method", "is", "only", "used", "by", "message", "constructors", "so", "is", "not", "public", "final", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java#L1459-L1466
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java
JsHdrsImpl.setJsMessageType
final void setJsMessageType(MessageType value) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setJsMessageType", value); /* Get the int value of the MessageType and set that into the field */ jmo.setField(JsHdrAccess.MESSAGETYPE, value.toByt...
java
final void setJsMessageType(MessageType value) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setJsMessageType", value); /* Get the int value of the MessageType and set that into the field */ jmo.setField(JsHdrAccess.MESSAGETYPE, value.toByt...
[ "final", "void", "setJsMessageType", "(", "MessageType", "value", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"setJsMes...
Set the value of the JsMessageType in the message header. This method is only used by message constructors so is not public final. @param value The MessageType representing the Message Type (e.g. JMS) of the message.
[ "Set", "the", "value", "of", "the", "JsMessageType", "in", "the", "message", "header", ".", "This", "method", "is", "only", "used", "by", "message", "constructors", "so", "is", "not", "public", "final", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java#L1474-L1481
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java
JsHdrsImpl.setGuaranteedRemoteGetPrevTick
public final void setGuaranteedRemoteGetPrevTick(long value) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setGuaranteedRemoteGetPrevTick", Long.valueOf(value)); getHdr2().setLongField(JsHdr2Access.GUARANTEEDREMOTEGET_SET_PREVTICK, value); ...
java
public final void setGuaranteedRemoteGetPrevTick(long value) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setGuaranteedRemoteGetPrevTick", Long.valueOf(value)); getHdr2().setLongField(JsHdr2Access.GUARANTEEDREMOTEGET_SET_PREVTICK, value); ...
[ "public", "final", "void", "setGuaranteedRemoteGetPrevTick", "(", "long", "value", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ...
Set the Guaranteed Delivery Remote Get Prev Tick value from the message. Javadoc description supplied by JsMessage interface.
[ "Set", "the", "Guaranteed", "Delivery", "Remote", "Get", "Prev", "Tick", "value", "from", "the", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java#L1941-L1947
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java
JsHdrsImpl.setSubtype
final void setSubtype(Byte value) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setSubtype", value); jmo.setField(JsHdrAccess.SUBTYPE, value); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc,...
java
final void setSubtype(Byte value) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setSubtype", value); jmo.setField(JsHdrAccess.SUBTYPE, value); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc,...
[ "final", "void", "setSubtype", "(", "Byte", "value", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"setSubtype\"", ",",...
Set the Byte field which indicates the subtype of the message. @param value The Byte value of the Message SubType field
[ "Set", "the", "Byte", "field", "which", "indicates", "the", "subtype", "of", "the", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java#L2322-L2328
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java
JsHdrsImpl.copyTransients
void copyTransients(JsHdrsImpl copy) { copy.cachedMessageWaitTime = cachedMessageWaitTime; copy.cachedReliability = cachedReliability; copy.cachedPriority = cachedPriority; copy.cachedMessageHandle = cachedMessageHandle; copy.flags = flags; copy.gotFlags = gotFlags; }
java
void copyTransients(JsHdrsImpl copy) { copy.cachedMessageWaitTime = cachedMessageWaitTime; copy.cachedReliability = cachedReliability; copy.cachedPriority = cachedPriority; copy.cachedMessageHandle = cachedMessageHandle; copy.flags = flags; copy.gotFlags = gotFlags; }
[ "void", "copyTransients", "(", "JsHdrsImpl", "copy", ")", "{", "copy", ".", "cachedMessageWaitTime", "=", "cachedMessageWaitTime", ";", "copy", ".", "cachedReliability", "=", "cachedReliability", ";", "copy", ".", "cachedPriority", "=", "cachedPriority", ";", "copy"...
Copies any 'interesting' transient data into the given message copy. Sub-classes should override this (calling super.copyTransients()) to copy any transient cached data into new copies of messages. Note that: The part caches must NOT be copied. wasTimeToLiveChanged need not be copied as it is only used during a Media...
[ "Copies", "any", "interesting", "transient", "data", "into", "the", "given", "message", "copy", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java#L2402-L2409
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java
JsHdrsImpl.getHdr2
synchronized final JsMsgPart getHdr2() { if (hdr2 == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "getHdr2 will call getPart"); hdr2 = jmo.getPart(JsHdrAccess.HDR2, JsHdr2Access.schema); } return hdr2; ...
java
synchronized final JsMsgPart getHdr2() { if (hdr2 == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "getHdr2 will call getPart"); hdr2 = jmo.getPart(JsHdrAccess.HDR2, JsHdr2Access.schema); } return hdr2; ...
[ "synchronized", "final", "JsMsgPart", "getHdr2", "(", ")", "{", "if", "(", "hdr2", "==", "null", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "SibTr", ".", "debug", "(", ...
Get the JsMsgPart which contains the JMF Message described by the JsHdr2 schema. Once obtained, the value is cached, and the cached value is returned until the cache is cleared. @return JsMsgPart The message part described by the JsHdr2 schema
[ "Get", "the", "JsMsgPart", "which", "contains", "the", "JMF", "Message", "described", "by", "the", "JsHdr2", "schema", ".", "Once", "obtained", "the", "value", "is", "cached", "and", "the", "cached", "value", "is", "returned", "until", "the", "cache", "is", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java#L2431-L2438
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java
JsHdrsImpl.getApi
synchronized final JsMsgPart getApi() { if (api == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "getApi will call getPart"); api = jmo.getPart(JsHdrAccess.API_DATA, JsApiAccess.schema); } return api; }
java
synchronized final JsMsgPart getApi() { if (api == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "getApi will call getPart"); api = jmo.getPart(JsHdrAccess.API_DATA, JsApiAccess.schema); } return api; }
[ "synchronized", "final", "JsMsgPart", "getApi", "(", ")", "{", "if", "(", "api", "==", "null", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "SibTr", ".", "debug", "(", "t...
Get the JsMsgPart which contains the JMF Message described by the JsApi schema. Once obtained, the value is cached, and the cached value is returned until the cache is cleared. @return JsMsgPart The message part described by the JsApi schema
[ "Get", "the", "JsMsgPart", "which", "contains", "the", "JMF", "Message", "described", "by", "the", "JsApi", "schema", ".", "Once", "obtained", "the", "value", "is", "cached", "and", "the", "cached", "value", "is", "returned", "until", "the", "cache", "is", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java#L2464-L2471
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java
JsHdrsImpl.getPayload
synchronized final JsMsgPart getPayload(JMFSchema schema) { if (payload == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "getPayload will call getPart"); payload = jmo.getPayloadPart().getPart(JsPayloadAccess.PAYLOAD_DATA, ...
java
synchronized final JsMsgPart getPayload(JMFSchema schema) { if (payload == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "getPayload will call getPart"); payload = jmo.getPayloadPart().getPart(JsPayloadAccess.PAYLOAD_DATA, ...
[ "synchronized", "final", "JsMsgPart", "getPayload", "(", "JMFSchema", "schema", ")", "{", "if", "(", "payload", "==", "null", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Si...
Get the JsMsgPart which contains the JMF Message described by the schema for the data field in the JsPayload Schema. Once obtained, the value is cached, and the cached value is returned until the cache is cleared. @param schema The schema to use to decode the data field of the JsPayload. @return JsMsgPart The message...
[ "Get", "the", "JsMsgPart", "which", "contains", "the", "JMF", "Message", "described", "by", "the", "schema", "for", "the", "data", "field", "in", "the", "JsPayload", "Schema", ".", "Once", "obtained", "the", "value", "is", "cached", "and", "the", "cached", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java#L2499-L2506
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java
JsHdrsImpl.getPayloadIfFluffed
synchronized final JsMsgPart getPayloadIfFluffed() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { if (payload == null) SibTr.debug(this, tc, "getPayloadIfFluffed returning null"); } return payload; }
java
synchronized final JsMsgPart getPayloadIfFluffed() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { if (payload == null) SibTr.debug(this, tc, "getPayloadIfFluffed returning null"); } return payload; }
[ "synchronized", "final", "JsMsgPart", "getPayloadIfFluffed", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "if", "(", "payload", "==", "null", ")", "SibTr", ".", "de...
Get the JsMsgPart which contains the JMF Message described by the schema for the data field in the JsPayload Schema, if it has already been fluffed up and cached. If the part is not already fluffed and cached, just return null as the caller does NOT want to fluff it up. @return JsMsgPart The message part for the JsPay...
[ "Get", "the", "JsMsgPart", "which", "contains", "the", "JMF", "Message", "described", "by", "the", "schema", "for", "the", "data", "field", "in", "the", "JsPayload", "Schema", "if", "it", "has", "already", "been", "fluffed", "up", "and", "cached", ".", "If...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java#L2517-L2523
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java
JsHdrsImpl.clearPartCaches
@Override synchronized final void clearPartCaches() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "clearPartCaches"); hdr2 = api = payload = null; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(th...
java
@Override synchronized final void clearPartCaches() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "clearPartCaches"); hdr2 = api = payload = null; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(th...
[ "@", "Override", "synchronized", "final", "void", "clearPartCaches", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "...
Clear the cached references to other message parts.
[ "Clear", "the", "cached", "references", "to", "other", "message", "parts", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java#L2528-L2535
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java
JsHdrsImpl.setFlagValue
private final void setFlagValue(byte flagBit, boolean value) { if (value) { flags = (byte) (getFlags() | flagBit); } else { flags = (byte) (getFlags() & (~flagBit)); } }
java
private final void setFlagValue(byte flagBit, boolean value) { if (value) { flags = (byte) (getFlags() | flagBit); } else { flags = (byte) (getFlags() & (~flagBit)); } }
[ "private", "final", "void", "setFlagValue", "(", "byte", "flagBit", ",", "boolean", "value", ")", "{", "if", "(", "value", ")", "{", "flags", "=", "(", "byte", ")", "(", "getFlags", "(", ")", "|", "flagBit", ")", ";", "}", "else", "{", "flags", "="...
Set the boolean 'value' of one of the flags in the FLAGS field of th message. @param flagBit A byte with a single bit set on, marking the position of the required flag. @param value true if the required flag is to be set on, otherwise false
[ "Set", "the", "boolean", "value", "of", "one", "of", "the", "flags", "in", "the", "FLAGS", "field", "of", "th", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java#L2572-L2579
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/TagAttributeImpl.java
TagAttributeImpl.getValue
public String getValue(FaceletContext ctx) { if ((this.capabilities & EL_LITERAL) != 0) { return this.value; } else { return (String) this.getObject(ctx, String.class); } }
java
public String getValue(FaceletContext ctx) { if ((this.capabilities & EL_LITERAL) != 0) { return this.value; } else { return (String) this.getObject(ctx, String.class); } }
[ "public", "String", "getValue", "(", "FaceletContext", "ctx", ")", "{", "if", "(", "(", "this", ".", "capabilities", "&", "EL_LITERAL", ")", "!=", "0", ")", "{", "return", "this", ".", "value", ";", "}", "else", "{", "return", "(", "String", ")", "th...
If literal, then return our value, otherwise delegate to getObject, passing String.class. @see #getObject(FaceletContext, Class) @param ctx FaceletContext to use @return String value of this attribute
[ "If", "literal", "then", "return", "our", "value", "otherwise", "delegate", "to", "getObject", "passing", "String", ".", "class", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/TagAttributeImpl.java#L381-L391
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/TagAttributeImpl.java
TagAttributeImpl.getObject
public Object getObject(FaceletContext ctx, Class type) { if ((this.capabilities & EL_LITERAL) != 0) { if (String.class.equals(type)) { return this.value; } else { try { re...
java
public Object getObject(FaceletContext ctx, Class type) { if ((this.capabilities & EL_LITERAL) != 0) { if (String.class.equals(type)) { return this.value; } else { try { re...
[ "public", "Object", "getObject", "(", "FaceletContext", "ctx", ",", "Class", "type", ")", "{", "if", "(", "(", "this", ".", "capabilities", "&", "EL_LITERAL", ")", "!=", "0", ")", "{", "if", "(", "String", ".", "class", ".", "equals", "(", "type", ")...
If literal, simply coerce our String literal value using an ExpressionFactory, otherwise create a ValueExpression and evaluate it. @see ExpressionFactory#coerceToType(java.lang.Object, java.lang.Class) @see ExpressionFactory#createValueExpression(javax.el.ELContext, java.lang.String, java.lang.Class) @see ValueExpress...
[ "If", "literal", "simply", "coerce", "our", "String", "literal", "value", "using", "an", "ExpressionFactory", "otherwise", "create", "a", "ValueExpression", "and", "evaluate", "it", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/TagAttributeImpl.java#L406-L438
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/TagAttributeImpl.java
TagAttributeImpl.getValueExpression
public ValueExpression getValueExpression(FaceletContext ctx, Class type) { AbstractFaceletContext actx = (AbstractFaceletContext) ctx; //volatile reads are atomic, so take the tuple to later comparison. Object[] localCachedExpression = cachedExpression; if (actx.isAllowCach...
java
public ValueExpression getValueExpression(FaceletContext ctx, Class type) { AbstractFaceletContext actx = (AbstractFaceletContext) ctx; //volatile reads are atomic, so take the tuple to later comparison. Object[] localCachedExpression = cachedExpression; if (actx.isAllowCach...
[ "public", "ValueExpression", "getValueExpression", "(", "FaceletContext", "ctx", ",", "Class", "type", ")", "{", "AbstractFaceletContext", "actx", "=", "(", "AbstractFaceletContext", ")", "ctx", ";", "//volatile reads are atomic, so take the tuple to later comparison.", "Obje...
Create a ValueExpression, using this attribute's literal value and the passed expected type. @see ExpressionFactory#createValueExpression(javax.el.ELContext, java.lang.String, java.lang.Class) @see ValueExpression @param ctx FaceletContext to use @param type expected return type @return ValueExpression instance
[ "Create", "a", "ValueExpression", "using", "this", "attribute", "s", "literal", "value", "and", "the", "passed", "expected", "type", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/TagAttributeImpl.java#L451-L556
train
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/ws/impl/BatchLocationServiceImpl.java
BatchLocationServiceImpl.stripFileSeparateAtTheEnd
protected String stripFileSeparateAtTheEnd(String path) { return (path != null && (path.endsWith("/") || path.endsWith("\\") ) ) ? path.substring(0, path.length()-1) : path; }
java
protected String stripFileSeparateAtTheEnd(String path) { return (path != null && (path.endsWith("/") || path.endsWith("\\") ) ) ? path.substring(0, path.length()-1) : path; }
[ "protected", "String", "stripFileSeparateAtTheEnd", "(", "String", "path", ")", "{", "return", "(", "path", "!=", "null", "&&", "(", "path", ".", "endsWith", "(", "\"/\"", ")", "||", "path", ".", "endsWith", "(", "\"\\\\\"", ")", ")", ")", "?", "path", ...
remove separator at the end of userDir directory if exist @param path @return
[ "remove", "separator", "at", "the", "end", "of", "userDir", "directory", "if", "exist" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/ws/impl/BatchLocationServiceImpl.java#L169-L173
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/html/HtmlRenderer.java
HtmlRenderer.renderId
protected void renderId( FacesContext context, UIComponent component) throws IOException { if (shouldRenderId(context, component)) { String clientId = getClientId(context, component); context.getResponseWriter().writeAttribute(HTML.ID_ATTR, clientId, JSFAttr.ID_ATTR); ...
java
protected void renderId( FacesContext context, UIComponent component) throws IOException { if (shouldRenderId(context, component)) { String clientId = getClientId(context, component); context.getResponseWriter().writeAttribute(HTML.ID_ATTR, clientId, JSFAttr.ID_ATTR); ...
[ "protected", "void", "renderId", "(", "FacesContext", "context", ",", "UIComponent", "component", ")", "throws", "IOException", "{", "if", "(", "shouldRenderId", "(", "context", ",", "component", ")", ")", "{", "String", "clientId", "=", "getClientId", "(", "c...
Renders the client ID as an "id".
[ "Renders", "the", "client", "ID", "as", "an", "id", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/html/HtmlRenderer.java#L78-L87
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/html/HtmlRenderer.java
HtmlRenderer.shouldRenderId
protected boolean shouldRenderId( FacesContext context, UIComponent component) { String id = component.getId(); // Otherwise, if ID isn't set, don't bother if (id == null) { return false; } // ... or if the ID was generated, don't bother if (id.star...
java
protected boolean shouldRenderId( FacesContext context, UIComponent component) { String id = component.getId(); // Otherwise, if ID isn't set, don't bother if (id == null) { return false; } // ... or if the ID was generated, don't bother if (id.star...
[ "protected", "boolean", "shouldRenderId", "(", "FacesContext", "context", ",", "UIComponent", "component", ")", "{", "String", "id", "=", "component", ".", "getId", "(", ")", ";", "// Otherwise, if ID isn't set, don't bother", "if", "(", "id", "==", "null", ")", ...
Returns true if the component should render an ID. Components that deliver events should always return "true". @todo Is this a bottleneck? If so, optimize!
[ "Returns", "true", "if", "the", "component", "should", "render", "an", "ID", ".", "Components", "that", "deliver", "events", "should", "always", "return", "true", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/html/HtmlRenderer.java#L105-L124
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/html/HtmlRenderer.java
HtmlRenderer.toUri
static public String toUri(Object o) { if (o == null) { return null; } String uri = o.toString(); if (uri.startsWith("/")) { // Treat two slashes as server-relative if (uri.startsWith("//")) { uri = uri.substring(1); } ...
java
static public String toUri(Object o) { if (o == null) { return null; } String uri = o.toString(); if (uri.startsWith("/")) { // Treat two slashes as server-relative if (uri.startsWith("//")) { uri = uri.substring(1); } ...
[ "static", "public", "String", "toUri", "(", "Object", "o", ")", "{", "if", "(", "o", "==", "null", ")", "{", "return", "null", ";", "}", "String", "uri", "=", "o", ".", "toString", "(", ")", ";", "if", "(", "uri", ".", "startsWith", "(", "\"/\"",...
Coerces an object into a URI, accounting for JSF rules with initial slashes.
[ "Coerces", "an", "object", "into", "a", "URI", "accounting", "for", "JSF", "rules", "with", "initial", "slashes", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/html/HtmlRenderer.java#L130-L153
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/el/VariableMapperWrapper.java
VariableMapperWrapper.resolveVariable
public ValueExpression resolveVariable(String variable) { ValueExpression ve = null; try { if (_vars != null) { ve = (ValueExpression) _vars.get(variable); // Is this code in a block that wants to cache // the resultin...
java
public ValueExpression resolveVariable(String variable) { ValueExpression ve = null; try { if (_vars != null) { ve = (ValueExpression) _vars.get(variable); // Is this code in a block that wants to cache // the resultin...
[ "public", "ValueExpression", "resolveVariable", "(", "String", "variable", ")", "{", "ValueExpression", "ve", "=", "null", ";", "try", "{", "if", "(", "_vars", "!=", "null", ")", "{", "ve", "=", "(", "ValueExpression", ")", "_vars", ".", "get", "(", "var...
First tries to resolve agains the inner Map, then the wrapped ValueExpression. @see javax.el.VariableMapper#resolveVariable(java.lang.String)
[ "First", "tries", "to", "resolve", "agains", "the", "inner", "Map", "then", "the", "wrapped", "ValueExpression", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/el/VariableMapperWrapper.java#L70-L98
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/DSConfig.java
DSConfig.introspectSelf
@Override public String[] introspectSelf() { List<?> nameValuePairs = Arrays.asList( BEGIN_TRAN_FOR_SCROLLING_APIS, beginTranForResultSetScrollingAPIs, BEGIN_TRAN_FOR_VENDOR_APIS, beginTranForVendorAPIs, ...
java
@Override public String[] introspectSelf() { List<?> nameValuePairs = Arrays.asList( BEGIN_TRAN_FOR_SCROLLING_APIS, beginTranForResultSetScrollingAPIs, BEGIN_TRAN_FOR_VENDOR_APIS, beginTranForVendorAPIs, ...
[ "@", "Override", "public", "String", "[", "]", "introspectSelf", "(", ")", "{", "List", "<", "?", ">", "nameValuePairs", "=", "Arrays", ".", "asList", "(", "BEGIN_TRAN_FOR_SCROLLING_APIS", ",", "beginTranForResultSetScrollingAPIs", ",", "BEGIN_TRAN_FOR_VENDOR_APIS", ...
Returns information to log on first failure. @return information to log on first failure.
[ "Returns", "information", "to", "log", "on", "first", "failure", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/DSConfig.java#L318-L338
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/control/ControlMessageType.java
ControlMessageType.getControlMessageType
public final static ControlMessageType getControlMessageType(Byte aValue) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc,"Value = " + aValue); return set[aValue.intValue()]; }
java
public final static ControlMessageType getControlMessageType(Byte aValue) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc,"Value = " + aValue); return set[aValue.intValue()]; }
[ "public", "final", "static", "ControlMessageType", "getControlMessageType", "(", "Byte", "aValue", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "SibTr", ".", "debug", "(", "tc", ...
Returns the corresponding ControlMessageType for a given integer. This method should NOT be called by any code outside the MFP component. It is only public so that it can be accessed by sub-packages. @param aValue The integer for which an ControlMessageType is required. @return The corresponding ControlMessa...
[ "Returns", "the", "corresponding", "ControlMessageType", "for", "a", "given", "integer", ".", "This", "method", "should", "NOT", "be", "called", "by", "any", "code", "outside", "the", "MFP", "component", ".", "It", "is", "only", "public", "so", "that", "it",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/control/ControlMessageType.java#L201-L204
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BusHandler.java
BusHandler.updateDefinition
public void updateDefinition(ForeignBusDefinition foreignBusDefinition) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "updateDefinition", foreignBusDefinition); ForeignDestinationDefault newForeignDefault = null; // If sendA...
java
public void updateDefinition(ForeignBusDefinition foreignBusDefinition) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "updateDefinition", foreignBusDefinition); ForeignDestinationDefault newForeignDefault = null; // If sendA...
[ "public", "void", "updateDefinition", "(", "ForeignBusDefinition", "foreignBusDefinition", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", ...
Dynamically update the foreignBusDefinition @param foreignBusDefinition @throws SIResourceException
[ "Dynamically", "update", "the", "foreignBusDefinition" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BusHandler.java#L158-L233
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BusHandler.java
BusHandler.updateSendAllowed
public void updateSendAllowed(boolean oldSendAllowed, boolean newSendAllowed) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "updateSendAllowed", new Object[] {Boolean.valueOf(oldSendAllowed), Boolean.valueOf(newSendAllowed)}); ...
java
public void updateSendAllowed(boolean oldSendAllowed, boolean newSendAllowed) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "updateSendAllowed", new Object[] {Boolean.valueOf(oldSendAllowed), Boolean.valueOf(newSendAllowed)}); ...
[ "public", "void", "updateSendAllowed", "(", "boolean", "oldSendAllowed", ",", "boolean", "newSendAllowed", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "("...
Update sendAllowed setting for this bus and any targetting Handlers. @param foreignBusDefinition
[ "Update", "sendAllowed", "setting", "for", "this", "bus", "and", "any", "targetting", "Handlers", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BusHandler.java#L240-L255
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BusHandler.java
BusHandler.updateVirtualLinkDefinition
public void updateVirtualLinkDefinition(VirtualLinkDefinition newVirtualLinkDefinition) throws SIIncorrectCallException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "updateVirtualLinkDefinition", new Object[...
java
public void updateVirtualLinkDefinition(VirtualLinkDefinition newVirtualLinkDefinition) throws SIIncorrectCallException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "updateVirtualLinkDefinition", new Object[...
[ "public", "void", "updateVirtualLinkDefinition", "(", "VirtualLinkDefinition", "newVirtualLinkDefinition", ")", "throws", "SIIncorrectCallException", ",", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEn...
Update VirtualLinkDefinition attributes such as inbound or outbound userid settings for this bus and any targetting Handlers. @param newVirtualLinkDefinition @throws SIIncorrectCallException @throws SIResourceException
[ "Update", "VirtualLinkDefinition", "attributes", "such", "as", "inbound", "or", "outbound", "userid", "settings", "for", "this", "bus", "and", "any", "targetting", "Handlers", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BusHandler.java#L265-L348
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BusHandler.java
BusHandler.checkDestinationAccess
public boolean checkDestinationAccess( SecurityContext secContext, OperationType operation) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "checkDestinationAccess", new Object[] { secContext, operation }); boolean allow = false; ...
java
public boolean checkDestinationAccess( SecurityContext secContext, OperationType operation) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "checkDestinationAccess", new Object[] { secContext, operation }); boolean allow = false; ...
[ "public", "boolean", "checkDestinationAccess", "(", "SecurityContext", "secContext", ",", "OperationType", "operation", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "...
Check permission to access a Destination @param secContext @param operation @return @throws SICoreException
[ "Check", "permission", "to", "access", "a", "Destination" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BusHandler.java#L709-L733
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/ws/collector/manager/buffer/BufferManagerImpl.java
BufferManagerImpl.addEventToRingBuffer
@FFDCIgnore(NullPointerException.class) private void addEventToRingBuffer(Object event) { // Check again to see if the ringBuffer is null if (ringBuffer != null) { try { ringBuffer.add(event); } catch (NullPointerException npe) { // Nothing to do! Perhaps a Trace? } } }
java
@FFDCIgnore(NullPointerException.class) private void addEventToRingBuffer(Object event) { // Check again to see if the ringBuffer is null if (ringBuffer != null) { try { ringBuffer.add(event); } catch (NullPointerException npe) { // Nothing to do! Perhaps a Trace? } } }
[ "@", "FFDCIgnore", "(", "NullPointerException", ".", "class", ")", "private", "void", "addEventToRingBuffer", "(", "Object", "event", ")", "{", "// Check again to see if the ringBuffer is null", "if", "(", "ringBuffer", "!=", "null", ")", "{", "try", "{", "ringBuffe...
Method to add events to the ringBufferthat and ignores a possible NPE with ringBuffer which is due to the removeHandler method call from this same class We do not wish synchronize the add for every ringBuffer due to performance impacts @param event event to add to the buffer
[ "Method", "to", "add", "events", "to", "the", "ringBufferthat", "and", "ignores", "a", "possible", "NPE", "with", "ringBuffer", "which", "is", "due", "to", "the", "removeHandler", "method", "call", "from", "this", "same", "class" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ws/collector/manager/buffer/BufferManagerImpl.java#L132-L142
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/ws/collector/manager/buffer/BufferManagerImpl.java
BufferManagerImpl.addSyncHandler
public synchronized void addSyncHandler(SynchronousHandler syncHandler) { // Send messages from EMQ to synchronous handler when it subscribes to // receive messages if (earlyMessageQueue != null && earlyMessageQueue.size() != 0 && !synchronousHandlerSet.contains(syncHandler)) { for (Object message : earlyM...
java
public synchronized void addSyncHandler(SynchronousHandler syncHandler) { // Send messages from EMQ to synchronous handler when it subscribes to // receive messages if (earlyMessageQueue != null && earlyMessageQueue.size() != 0 && !synchronousHandlerSet.contains(syncHandler)) { for (Object message : earlyM...
[ "public", "synchronized", "void", "addSyncHandler", "(", "SynchronousHandler", "syncHandler", ")", "{", "// Send messages from EMQ to synchronous handler when it subscribes to", "// receive messages", "if", "(", "earlyMessageQueue", "!=", "null", "&&", "earlyMessageQueue", ".", ...
Add a synchronousHandler that will receive log events directly @param syncHandler synchronousHandler that will receive log events directly
[ "Add", "a", "synchronousHandler", "that", "will", "receive", "log", "events", "directly" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ws/collector/manager/buffer/BufferManagerImpl.java#L219-L235
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/ws/collector/manager/buffer/BufferManagerImpl.java
BufferManagerImpl.removeSyncHandler
public synchronized void removeSyncHandler(SynchronousHandler syncHandler) { Set<SynchronousHandler> synchronousHandlerSetCopy = new HashSet<SynchronousHandler>(synchronousHandlerSet); synchronousHandlerSetCopy.remove(syncHandler); Tr.event(tc, "Removed Synchronous Handler: " + syncHandler.getHandlerName()); sy...
java
public synchronized void removeSyncHandler(SynchronousHandler syncHandler) { Set<SynchronousHandler> synchronousHandlerSetCopy = new HashSet<SynchronousHandler>(synchronousHandlerSet); synchronousHandlerSetCopy.remove(syncHandler); Tr.event(tc, "Removed Synchronous Handler: " + syncHandler.getHandlerName()); sy...
[ "public", "synchronized", "void", "removeSyncHandler", "(", "SynchronousHandler", "syncHandler", ")", "{", "Set", "<", "SynchronousHandler", ">", "synchronousHandlerSetCopy", "=", "new", "HashSet", "<", "SynchronousHandler", ">", "(", "synchronousHandlerSet", ")", ";", ...
Remove a synchronousHandler from receiving log events directly @param syncHandler syncHandler to remove
[ "Remove", "a", "synchronousHandler", "from", "receiving", "log", "events", "directly" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ws/collector/manager/buffer/BufferManagerImpl.java#L242-L247
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/ws/collector/manager/buffer/BufferManagerImpl.java
BufferManagerImpl.removeHandler
public synchronized void removeHandler(String handlerId) { handlerEventMap.remove(handlerId); Tr.event(tc, "Removed Asynchronous Handler: " + handlerId); if (handlerEventMap.isEmpty()) { ringBuffer = null; Tr.event(tc, "ringBuffer for this BufferManagerImpl has now been set to null"); } }
java
public synchronized void removeHandler(String handlerId) { handlerEventMap.remove(handlerId); Tr.event(tc, "Removed Asynchronous Handler: " + handlerId); if (handlerEventMap.isEmpty()) { ringBuffer = null; Tr.event(tc, "ringBuffer for this BufferManagerImpl has now been set to null"); } }
[ "public", "synchronized", "void", "removeHandler", "(", "String", "handlerId", ")", "{", "handlerEventMap", ".", "remove", "(", "handlerId", ")", ";", "Tr", ".", "event", "(", "tc", ",", "\"Removed Asynchronous Handler: \"", "+", "handlerId", ")", ";", "if", "...
Remove the given handlerId from this BufferManager @param handlerId handlerId to remove
[ "Remove", "the", "given", "handlerId", "from", "this", "BufferManager" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ws/collector/manager/buffer/BufferManagerImpl.java#L254-L261
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/EJBSerializer.java
EJBSerializer.instance
public static EJBSerializer instance() { EJBSerializer theInstance; synchronized (CLASS_NAME) { if (cvInstance == null) { try { cvInstance = (EJBSerializer) Class.forName(IMPL_CLASS_NAME).newInstance(); ...
java
public static EJBSerializer instance() { EJBSerializer theInstance; synchronized (CLASS_NAME) { if (cvInstance == null) { try { cvInstance = (EJBSerializer) Class.forName(IMPL_CLASS_NAME).newInstance(); ...
[ "public", "static", "EJBSerializer", "instance", "(", ")", "{", "EJBSerializer", "theInstance", ";", "synchronized", "(", "CLASS_NAME", ")", "{", "if", "(", "cvInstance", "==", "null", ")", "{", "try", "{", "cvInstance", "=", "(", "EJBSerializer", ")", "Clas...
Returns singleton instance.
[ "Returns", "singleton", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/EJBSerializer.java#L55-L75
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.monitor/src/com/ibm/ws/webcontainer/monitor/WebAppMonitorListener.java
WebAppMonitorListener.initializeAppCounters
public void initializeAppCounters(String appName) { if (StatsFactory.isPMIEnabled()) { synchronized(this) { appPmi = new WebAppModule (appName, true); // @539186C appPmiState = APP_PMI_WEB; // @539186A } } }
java
public void initializeAppCounters(String appName) { if (StatsFactory.isPMIEnabled()) { synchronized(this) { appPmi = new WebAppModule (appName, true); // @539186C appPmiState = APP_PMI_WEB; // @539186A } } }
[ "public", "void", "initializeAppCounters", "(", "String", "appName", ")", "{", "if", "(", "StatsFactory", ".", "isPMIEnabled", "(", ")", ")", "{", "synchronized", "(", "this", ")", "{", "appPmi", "=", "new", "WebAppModule", "(", "appName", ",", "true", ")"...
This method initialize the module instance and register it.
[ "This", "method", "initialize", "the", "module", "instance", "and", "register", "it", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.monitor/src/com/ibm/ws/webcontainer/monitor/WebAppMonitorListener.java#L229-L239
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/parser/OpenAPIV3Parser.java
OpenAPIV3Parser.transform
protected List<AuthorizationValue> transform(List<AuthorizationValue> input) { if (input == null) { return null; } List<AuthorizationValue> output = new ArrayList<>(); for (AuthorizationValue value : input) { AuthorizationValue v = new AuthorizationValue(); ...
java
protected List<AuthorizationValue> transform(List<AuthorizationValue> input) { if (input == null) { return null; } List<AuthorizationValue> output = new ArrayList<>(); for (AuthorizationValue value : input) { AuthorizationValue v = new AuthorizationValue(); ...
[ "protected", "List", "<", "AuthorizationValue", ">", "transform", "(", "List", "<", "AuthorizationValue", ">", "input", ")", "{", "if", "(", "input", "==", "null", ")", "{", "return", "null", ";", "}", "List", "<", "AuthorizationValue", ">", "output", "=",...
Transform the swagger-model version of AuthorizationValue into a parser-specific one, to avoid dependencies across extensions @param input @return
[ "Transform", "the", "swagger", "-", "model", "version", "of", "AuthorizationValue", "into", "a", "parser", "-", "specific", "one", "to", "avoid", "dependencies", "across", "extensions" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/parser/OpenAPIV3Parser.java#L235-L253
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/Util.java
Util.ensureNotNull
static <T> T ensureNotNull(String msg, T t) throws ClassLoadingConfigurationException { ensure(msg, t != null); return t; }
java
static <T> T ensureNotNull(String msg, T t) throws ClassLoadingConfigurationException { ensure(msg, t != null); return t; }
[ "static", "<", "T", ">", "T", "ensureNotNull", "(", "String", "msg", ",", "T", "t", ")", "throws", "ClassLoadingConfigurationException", "{", "ensure", "(", "msg", ",", "t", "!=", "null", ")", ";", "return", "t", ";", "}" ]
Check that the parameter is not null. @param msg the exception message to use if the parameter is null @return the parameter if it isn't null @throws ClassLoadingConfigurationException if the parameter is null
[ "Check", "that", "the", "parameter", "is", "not", "null", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/Util.java#L45-L48
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/Util.java
Util.join
static <T> String join(Iterable<T> elems, String delim) { if (elems == null) return ""; StringBuilder result = new StringBuilder(); for (T elem : elems) result.append(elem).append(delim); if (result.length() > 0) result.setLength(result.length() - deli...
java
static <T> String join(Iterable<T> elems, String delim) { if (elems == null) return ""; StringBuilder result = new StringBuilder(); for (T elem : elems) result.append(elem).append(delim); if (result.length() > 0) result.setLength(result.length() - deli...
[ "static", "<", "T", ">", "String", "join", "(", "Iterable", "<", "T", ">", "elems", ",", "String", "delim", ")", "{", "if", "(", "elems", "==", "null", ")", "return", "\"\"", ";", "StringBuilder", "result", "=", "new", "StringBuilder", "(", ")", ";",...
Join several objects into a string
[ "Join", "several", "objects", "into", "a", "string" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/Util.java#L92-L101
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/Util.java
Util.compose
static <T> Enumeration<T> compose(Enumeration<T> e1, Enumeration<T> e2) { // return the composite of e1 and e2, or whichever is non-empty return isEmpty(e1) ? e2 : isEmpty(e2) ? e1 : new CompositeEnumeration<T>(e1).add(e2); }
java
static <T> Enumeration<T> compose(Enumeration<T> e1, Enumeration<T> e2) { // return the composite of e1 and e2, or whichever is non-empty return isEmpty(e1) ? e2 : isEmpty(e2) ? e1 : new CompositeEnumeration<T>(e1).add(e2); }
[ "static", "<", "T", ">", "Enumeration", "<", "T", ">", "compose", "(", "Enumeration", "<", "T", ">", "e1", ",", "Enumeration", "<", "T", ">", "e2", ")", "{", "// return the composite of e1 and e2, or whichever is non-empty ", "return", "isEmpty", "(", "e1", ")...
Compose two enumerations into one. @param e1 an enumeration @param e2 another enumeration @return an enumeration containing every element from <code>e1</code> and <code>e2</code>
[ "Compose", "two", "enumerations", "into", "one", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/Util.java#L144-L149
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/RequestIdTable.java
RequestIdTable.add
public synchronized void add(int requestId, ReceiveListener rl, SendListener s) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "add", new Object[] {""+requestId, rl, s}); if (containsId(requestId)) { if (TraceComponent.isAnyTracingEnabled() && tc.isDeb...
java
public synchronized void add(int requestId, ReceiveListener rl, SendListener s) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "add", new Object[] {""+requestId, rl, s}); if (containsId(requestId)) { if (TraceComponent.isAnyTracingEnabled() && tc.isDeb...
[ "public", "synchronized", "void", "add", "(", "int", "requestId", ",", "ReceiveListener", "rl", ",", "SendListener", "s", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ...
Adds an entry to the request ID table using the specified request ID. @param requestId The request ID (must not already be in the table). @param rl The receive listener to associated with the request id @param s The send listener to associate with the request
[ "Adds", "an", "entry", "to", "the", "request", "ID", "table", "using", "the", "specified", "request", "ID", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/RequestIdTable.java#L121-L133
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/RequestIdTable.java
RequestIdTable.getSendListener
public synchronized SendListener getSendListener(int requestId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getSendListener", ""+requestId); if (!containsId(requestId)) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) debugTrac...
java
public synchronized SendListener getSendListener(int requestId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getSendListener", ""+requestId); if (!containsId(requestId)) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) debugTrac...
[ "public", "synchronized", "SendListener", "getSendListener", "(", "int", "requestId", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc"...
Returns the semaphore assocaited with the specified request ID. The request ID must be present in the table otherwise a runtime exception is thrown. @param requestId The request ID to retreive the semaphore for. @return Semaphore The semaphore retrieved.
[ "Returns", "the", "semaphore", "assocaited", "with", "the", "specified", "request", "ID", ".", "The", "request", "ID", "must", "be", "present", "in", "the", "table", "otherwise", "a", "runtime", "exception", "is", "thrown", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/RequestIdTable.java#L164-L179
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/RequestIdTable.java
RequestIdTable.getListener
public synchronized ReceiveListener getListener(int requestId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getListener", ""+requestId); if (!containsId(requestId)) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) debugTraceTable("...
java
public synchronized ReceiveListener getListener(int requestId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getListener", ""+requestId); if (!containsId(requestId)) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) debugTraceTable("...
[ "public", "synchronized", "ReceiveListener", "getListener", "(", "int", "requestId", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc",...
Returns the receive listener associated with the specified request ID. The request ID must be present in the table otherwise a runtime exception will be thrown. @param requestId The request ID to retrieve the receive listener for. @return ReceiveListener The receive listener received.
[ "Returns", "the", "receive", "listener", "associated", "with", "the", "specified", "request", "ID", ".", "The", "request", "ID", "must", "be", "present", "in", "the", "table", "otherwise", "a", "runtime", "exception", "will", "be", "thrown", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/RequestIdTable.java#L188-L203
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/RequestIdTable.java
RequestIdTable.containsId
public synchronized boolean containsId(int requestId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "containsId", ""+requestId); testReqIdTableEntry.requestId = requestId; boolean result = table.containsKey(testReqIdTableEntry); if (TraceComponent.isAnyTr...
java
public synchronized boolean containsId(int requestId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "containsId", ""+requestId); testReqIdTableEntry.requestId = requestId; boolean result = table.containsKey(testReqIdTableEntry); if (TraceComponent.isAnyTr...
[ "public", "synchronized", "boolean", "containsId", "(", "int", "requestId", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", ...
Tests to see if the table contains a specified request ID. @param requestId The request ID to test. @return boolean Returns true if and only if the table contains the request ID.
[ "Tests", "to", "see", "if", "the", "table", "contains", "a", "specified", "request", "ID", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/RequestIdTable.java#L211-L220
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/RequestIdTable.java
RequestIdTable.receiveListenerIterator
public synchronized Iterator receiveListenerIterator() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "receiveListenerIterator"); final LinkedList<ReceiveListener>linkedList = new LinkedList<ReceiveListener>(); final Iterator iterator = table.values().iterator...
java
public synchronized Iterator receiveListenerIterator() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "receiveListenerIterator"); final LinkedList<ReceiveListener>linkedList = new LinkedList<ReceiveListener>(); final Iterator iterator = table.values().iterator...
[ "public", "synchronized", "Iterator", "receiveListenerIterator", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"receiv...
Returns an iterator which iterates over receive listeners in the table. @return Iterator
[ "Returns", "an", "iterator", "which", "iterates", "over", "receive", "listeners", "in", "the", "table", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/RequestIdTable.java#L227-L243
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/RequestIdTable.java
RequestIdTable.sendListenerIterator
public synchronized Iterator sendListenerIterator() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "sendListenerIterator"); final LinkedList<SendListener> linkedList = new LinkedList<SendListener>(); final Iterator iterator = table.values().iterator(); while(iter...
java
public synchronized Iterator sendListenerIterator() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "sendListenerIterator"); final LinkedList<SendListener> linkedList = new LinkedList<SendListener>(); final Iterator iterator = table.values().iterator(); while(iter...
[ "public", "synchronized", "Iterator", "sendListenerIterator", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"sendListe...
Returns an iterator which iterates over the send listeners in the table. @return Iterator
[ "Returns", "an", "iterator", "which", "iterates", "over", "the", "send", "listeners", "in", "the", "table", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/RequestIdTable.java#L250-L267
train
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomManifest.java
CustomManifest.getFileLocationsFromSubsystemContent
protected List<String> getFileLocationsFromSubsystemContent(String subsystemContent) { String sc = subsystemContent + ","; List<String> files = new ArrayList<String>(); boolean isFile = false; String location = null; int strLen = sc.length(); boolean quoted = false; ...
java
protected List<String> getFileLocationsFromSubsystemContent(String subsystemContent) { String sc = subsystemContent + ","; List<String> files = new ArrayList<String>(); boolean isFile = false; String location = null; int strLen = sc.length(); boolean quoted = false; ...
[ "protected", "List", "<", "String", ">", "getFileLocationsFromSubsystemContent", "(", "String", "subsystemContent", ")", "{", "String", "sc", "=", "subsystemContent", "+", "\",\"", ";", "List", "<", "String", ">", "files", "=", "new", "ArrayList", "<", "String",...
returns the list of location attribute of which type is file in the given text of Subsystem-Content. the location may or may not be an absolute path. If there is not a mathing data, returns empty List.
[ "returns", "the", "list", "of", "location", "attribute", "of", "which", "type", "is", "file", "in", "the", "given", "text", "of", "Subsystem", "-", "Content", ".", "the", "location", "may", "or", "may", "not", "be", "an", "absolute", "path", ".", "If", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomManifest.java#L216-L255
train
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomManifest.java
CustomManifest.getValue
protected String getValue(String str) { int index = str.indexOf('='); String value = null; if (index > 0) { value = str.substring(index + 1).trim(); if (value.charAt(0) == '\"') { value = value.substring(1, value.length() - 1); } } ...
java
protected String getValue(String str) { int index = str.indexOf('='); String value = null; if (index > 0) { value = str.substring(index + 1).trim(); if (value.charAt(0) == '\"') { value = value.substring(1, value.length() - 1); } } ...
[ "protected", "String", "getValue", "(", "String", "str", ")", "{", "int", "index", "=", "str", ".", "indexOf", "(", "'", "'", ")", ";", "String", "value", "=", "null", ";", "if", "(", "index", ">", "0", ")", "{", "value", "=", "str", ".", "substr...
returns the value of key = value pair. if the value is quoted, the quotation characters are stripped.
[ "returns", "the", "value", "of", "key", "=", "value", "pair", ".", "if", "the", "value", "is", "quoted", "the", "quotation", "characters", "are", "stripped", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomManifest.java#L329-L339
train
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomManifest.java
CustomManifest.getFeatureSymbolicName
protected String getFeatureSymbolicName(Attributes attrs) { String output = null; if (attrs != null) { // get Subsystem-SymbolicName String value = attrs.getValue(HDR_SUB_SYM_NAME); if (value != null) { String[] parts = value.split(";"); ...
java
protected String getFeatureSymbolicName(Attributes attrs) { String output = null; if (attrs != null) { // get Subsystem-SymbolicName String value = attrs.getValue(HDR_SUB_SYM_NAME); if (value != null) { String[] parts = value.split(";"); ...
[ "protected", "String", "getFeatureSymbolicName", "(", "Attributes", "attrs", ")", "{", "String", "output", "=", "null", ";", "if", "(", "attrs", "!=", "null", ")", "{", "// get Subsystem-SymbolicName", "String", "value", "=", "attrs", ".", "getValue", "(", "HD...
returns the feature symbolic name from Attribute object.
[ "returns", "the", "feature", "symbolic", "name", "from", "Attribute", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomManifest.java#L344-L357
train
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomManifest.java
CustomManifest.getFeatureName
protected String getFeatureName(Attributes attrs) { String output = null; if (attrs != null) { // get IBM-ShortName first, String value = attrs.getValue(HDR_SUB_SHORT_NAME); if (value != null) { output = value.trim(); } else { ...
java
protected String getFeatureName(Attributes attrs) { String output = null; if (attrs != null) { // get IBM-ShortName first, String value = attrs.getValue(HDR_SUB_SHORT_NAME); if (value != null) { output = value.trim(); } else { ...
[ "protected", "String", "getFeatureName", "(", "Attributes", "attrs", ")", "{", "String", "output", "=", "null", ";", "if", "(", "attrs", "!=", "null", ")", "{", "// get IBM-ShortName first,", "String", "value", "=", "attrs", ".", "getValue", "(", "HDR_SUB_SHOR...
returns the feature name from Attribute object. if IBM-ShortName exists, use this value, otherwise use the symbolic name.
[ "returns", "the", "feature", "name", "from", "Attribute", "object", ".", "if", "IBM", "-", "ShortName", "exists", "use", "this", "value", "otherwise", "use", "the", "symbolic", "name", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomManifest.java#L363-L376
train
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomManifest.java
CustomManifest.getLocalizedString
protected String getLocalizedString(File featureManifest, String value) { if (value != null && value.startsWith("%")) { ResourceBundle res = CustomUtils.getResourceBundle(new File(featureManifest.getParentFile(), "l10n"), featureSymbolicName, Locale.getDefault()); if (res != null) { ...
java
protected String getLocalizedString(File featureManifest, String value) { if (value != null && value.startsWith("%")) { ResourceBundle res = CustomUtils.getResourceBundle(new File(featureManifest.getParentFile(), "l10n"), featureSymbolicName, Locale.getDefault()); if (res != null) { ...
[ "protected", "String", "getLocalizedString", "(", "File", "featureManifest", ",", "String", "value", ")", "{", "if", "(", "value", "!=", "null", "&&", "value", ".", "startsWith", "(", "\"%\"", ")", ")", "{", "ResourceBundle", "res", "=", "CustomUtils", ".", ...
returns the localized string of specified value. the localization file supposes to be located the l10n directory of the location where the feature manifest file exists, and the name of the resource file is feature symbolic name + _ + locale + .properties. prior to call this method, featureSymbolicName field needs to be...
[ "returns", "the", "localized", "string", "of", "specified", "value", ".", "the", "localization", "file", "supposes", "to", "be", "located", "the", "l10n", "directory", "of", "the", "location", "where", "the", "feature", "manifest", "file", "exists", "and", "th...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomManifest.java#L385-L396
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/webapp/WebApp.java
WebApp.injectAndPostConstruct
public ManagedObject injectAndPostConstruct(final Object target) throws InjectionException { final String METHOD_NAME="injectAndPostConstruct"; if (TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) { logger.entering(CLASS_NAME, METHOD_NAME, target); } ...
java
public ManagedObject injectAndPostConstruct(final Object target) throws InjectionException { final String METHOD_NAME="injectAndPostConstruct"; if (TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) { logger.entering(CLASS_NAME, METHOD_NAME, target); } ...
[ "public", "ManagedObject", "injectAndPostConstruct", "(", "final", "Object", "target", ")", "throws", "InjectionException", "{", "final", "String", "METHOD_NAME", "=", "\"injectAndPostConstruct\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ...
This method injects the target object, then immediately performs PostConstruct operations @param target the filter, servlet or listener that is being injected into @return This method will either return the managed object if the injection was successful or throw the exception that resulted during the inject or the Po...
[ "This", "method", "injects", "the", "target", "object", "then", "immediately", "performs", "PostConstruct", "operations" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/webapp/WebApp.java#L1358-L1390
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/util/BaseReaderUtils.java
BaseReaderUtils.parseExtensions
@FFDCIgnore(IOException.class) public static Map<String, Object> parseExtensions(Extension[] extensions) { final Map<String, Object> map = new HashMap<String, Object>(); for (Extension extension : extensions) { final String name = extension.name(); final String key = name.len...
java
@FFDCIgnore(IOException.class) public static Map<String, Object> parseExtensions(Extension[] extensions) { final Map<String, Object> map = new HashMap<String, Object>(); for (Extension extension : extensions) { final String name = extension.name(); final String key = name.len...
[ "@", "FFDCIgnore", "(", "IOException", ".", "class", ")", "public", "static", "Map", "<", "String", ",", "Object", ">", "parseExtensions", "(", "Extension", "[", "]", "extensions", ")", "{", "final", "Map", "<", "String", ",", "Object", ">", "map", "=", ...
Collects extensions. @param extensions is an array of extensions @return the map with extensions
[ "Collects", "extensions", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/util/BaseReaderUtils.java#L37-L53
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/xpath/ParseException.java
ParseException.add_escapes
protected String add_escapes(String str) { StringBuffer retval = new StringBuffer(); char ch; for (int i = 0; i < str.length(); i++) { switch (str.charAt(i)) { case 0 : continue; case '\b': retval.append("\\b"); continue; ...
java
protected String add_escapes(String str) { StringBuffer retval = new StringBuffer(); char ch; for (int i = 0; i < str.length(); i++) { switch (str.charAt(i)) { case 0 : continue; case '\b': retval.append("\\b"); continue; ...
[ "protected", "String", "add_escapes", "(", "String", "str", ")", "{", "StringBuffer", "retval", "=", "new", "StringBuffer", "(", ")", ";", "char", "ch", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "str", ".", "length", "(", ")", ";", "i",...
Used to convert raw characters to their escaped version when these raw version cannot be used as part of an ASCII string literal.
[ "Used", "to", "convert", "raw", "characters", "to", "their", "escaped", "version", "when", "these", "raw", "version", "cannot", "be", "used", "as", "part", "of", "an", "ASCII", "string", "literal", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/xpath/ParseException.java#L160-L203
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java
ContextManager.checkWritePermission
public void checkWritePermission(TimedDirContext ctx) throws OperationNotSupportedException { if (!iWriteToSecondary) { String providerURL = getProviderURL(ctx); if (!getPrimaryURL().equalsIgnoreCase(providerURL)) { String msg = Tr.formatMessage(tc, WIMMessageKey.WRITE_TO...
java
public void checkWritePermission(TimedDirContext ctx) throws OperationNotSupportedException { if (!iWriteToSecondary) { String providerURL = getProviderURL(ctx); if (!getPrimaryURL().equalsIgnoreCase(providerURL)) { String msg = Tr.formatMessage(tc, WIMMessageKey.WRITE_TO...
[ "public", "void", "checkWritePermission", "(", "TimedDirContext", "ctx", ")", "throws", "OperationNotSupportedException", "{", "if", "(", "!", "iWriteToSecondary", ")", "{", "String", "providerURL", "=", "getProviderURL", "(", "ctx", ")", ";", "if", "(", "!", "g...
Check whether we can write on the LDAP server the context is currently connected to. It is not permissible to write to a fail-over server if write to secondary is disabled. @param ctx The context with a connection to the current LDAP server. @throws OperationNotSupportedException If write to secondary is disabled and ...
[ "Check", "whether", "we", "can", "write", "on", "the", "LDAP", "server", "the", "context", "is", "currently", "connected", "to", ".", "It", "is", "not", "permissible", "to", "write", "to", "a", "fail", "-", "over", "server", "if", "write", "to", "seconda...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java#L248-L256
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java
ContextManager.closeContextPool
@FFDCIgnore(NamingException.class) private void closeContextPool(List<TimedDirContext> contexts) { final String METHODNAME = "closeContextPool"; if (contexts != null) { if (tc.isDebugEnabled()) { Tr.debug(tc, METHODNAME + " Context pool being closed by " + Thread.currentT...
java
@FFDCIgnore(NamingException.class) private void closeContextPool(List<TimedDirContext> contexts) { final String METHODNAME = "closeContextPool"; if (contexts != null) { if (tc.isDebugEnabled()) { Tr.debug(tc, METHODNAME + " Context pool being closed by " + Thread.currentT...
[ "@", "FFDCIgnore", "(", "NamingException", ".", "class", ")", "private", "void", "closeContextPool", "(", "List", "<", "TimedDirContext", ">", "contexts", ")", "{", "final", "String", "METHODNAME", "=", "\"closeContextPool\"", ";", "if", "(", "contexts", "!=", ...
Close the context pool. @param contexts The contexts in the pool to close.
[ "Close", "the", "context", "pool", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java#L263-L281
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java
ContextManager.createContextPool
private void createContextPool(Integer poolSize, String providerURL) throws NamingException { final String METHODNAME = "createContextPool"; /* * Validate provider URL */ if (providerURL == null) { providerURL = getPrimaryURL(); } /* * Def...
java
private void createContextPool(Integer poolSize, String providerURL) throws NamingException { final String METHODNAME = "createContextPool"; /* * Validate provider URL */ if (providerURL == null) { providerURL = getPrimaryURL(); } /* * Def...
[ "private", "void", "createContextPool", "(", "Integer", "poolSize", ",", "String", "providerURL", ")", "throws", "NamingException", "{", "final", "String", "METHODNAME", "=", "\"createContextPool\"", ";", "/*\n * Validate provider URL\n */", "if", "(", "pr...
Create a directory context pool of the specified size. @param poolSize The initial size of the pool. @param providerURL The URL of the LDAP provider. @throws NamingException If there was an error connecting while creating the context pool.
[ "Create", "a", "directory", "context", "pool", "of", "the", "specified", "size", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java#L290-L370
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java
ContextManager.createSubcontext
public DirContext createSubcontext(String name, Attributes attrs) throws OperationNotSupportedException, WIMSystemException, EntityAlreadyExistsException, EntityNotFoundException { final String METHODNAME = "createSubcontext"; DirContext dirContext = null; ...
java
public DirContext createSubcontext(String name, Attributes attrs) throws OperationNotSupportedException, WIMSystemException, EntityAlreadyExistsException, EntityNotFoundException { final String METHODNAME = "createSubcontext"; DirContext dirContext = null; ...
[ "public", "DirContext", "createSubcontext", "(", "String", "name", ",", "Attributes", "attrs", ")", "throws", "OperationNotSupportedException", ",", "WIMSystemException", ",", "EntityAlreadyExistsException", ",", "EntityNotFoundException", "{", "final", "String", "METHODNAM...
Creates and binds a new context, along with associated attributes. @param name The name to bind the new context. @param attrs The attributes to bind on the new context. @return The new context. @throws OperationNotSupportedException If connected to a fail-over server and write to secondary is disabled. @throws EntityA...
[ "Creates", "and", "binds", "a", "new", "context", "along", "with", "associated", "attributes", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java#L522-L569
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java
ContextManager.destroySubcontext
public void destroySubcontext(String name) throws EntityHasDescendantsException, EntityNotFoundException, WIMSystemException { TimedDirContext ctx = getDirContext(); // checkWritePermission(ctx); // TODO Why are we not checking permissions here? try { try { ctx.destro...
java
public void destroySubcontext(String name) throws EntityHasDescendantsException, EntityNotFoundException, WIMSystemException { TimedDirContext ctx = getDirContext(); // checkWritePermission(ctx); // TODO Why are we not checking permissions here? try { try { ctx.destro...
[ "public", "void", "destroySubcontext", "(", "String", "name", ")", "throws", "EntityHasDescendantsException", ",", "EntityNotFoundException", ",", "WIMSystemException", "{", "TimedDirContext", "ctx", "=", "getDirContext", "(", ")", ";", "// checkWritePermission(ctx); // TOD...
Delete the given name from the LDAP tree. @param name The distinguished name to delete. @throws EntityHasDescendantsException The context being destroyed is not empty. @throws EntityNotFoundException If part of the name cannot be found to destroy the entity. @throws WIMSystemException If any other {@link NamingExcepti...
[ "Delete", "the", "given", "name", "from", "the", "LDAP", "tree", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java#L579-L604
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java
ContextManager.formatIPv6Addr
private static String formatIPv6Addr(String host) { if (host == null) { return null; } else { return (new StringBuilder()).append("[").append(host).append("]").toString(); } }
java
private static String formatIPv6Addr(String host) { if (host == null) { return null; } else { return (new StringBuilder()).append("[").append(host).append("]").toString(); } }
[ "private", "static", "String", "formatIPv6Addr", "(", "String", "host", ")", "{", "if", "(", "host", "==", "null", ")", "{", "return", "null", ";", "}", "else", "{", "return", "(", "new", "StringBuilder", "(", ")", ")", ".", "append", "(", "\"[\"", "...
Format the given address as an IPv6 Address. @param host The address. @return The IPv6 formatted address.
[ "Format", "the", "given", "address", "as", "an", "IPv6", "Address", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java#L612-L618
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java
ContextManager.getEnvironment
@SuppressWarnings("unchecked") private Hashtable<String, Object> getEnvironment(int type, String startingURL) { Hashtable<String, Object> env = new Hashtable<String, Object>(iEnvironment); List<String> urlList = (List<String>) env.remove(ENVKEY_URL_LIST); int numURLs = urlList.size(); ...
java
@SuppressWarnings("unchecked") private Hashtable<String, Object> getEnvironment(int type, String startingURL) { Hashtable<String, Object> env = new Hashtable<String, Object>(iEnvironment); List<String> urlList = (List<String>) env.remove(ENVKEY_URL_LIST); int numURLs = urlList.size(); ...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "private", "Hashtable", "<", "String", ",", "Object", ">", "getEnvironment", "(", "int", "type", ",", "String", "startingURL", ")", "{", "Hashtable", "<", "String", ",", "Object", ">", "env", "=", "new", ...
Returns LDAP environment containing specified URL sequence. @param type Single or sequence @param startingURL Starting URL @return Environment containing specified URL sequence
[ "Returns", "LDAP", "environment", "containing", "specified", "URL", "sequence", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java#L845-L870
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java
ContextManager.getEnvURLList
@SuppressWarnings("unchecked") @Trivial private List<String> getEnvURLList() { return (List<String>) iEnvironment.get(ENVKEY_URL_LIST); }
java
@SuppressWarnings("unchecked") @Trivial private List<String> getEnvURLList() { return (List<String>) iEnvironment.get(ENVKEY_URL_LIST); }
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "@", "Trivial", "private", "List", "<", "String", ">", "getEnvURLList", "(", ")", "{", "return", "(", "List", "<", "String", ">", ")", "iEnvironment", ".", "get", "(", "ENVKEY_URL_LIST", ")", ";", "}" ]
Helper method to get the configured list of URLs. @return The list of URLs.
[ "Helper", "method", "to", "get", "the", "configured", "list", "of", "URLs", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java#L877-L881
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java
ContextManager.getNextURL
@Trivial private String getNextURL(String currentURL) { List<String> urlList = getEnvURLList(); int urlIndex = getURLIndex(currentURL, urlList); return urlList.get((urlIndex + 1) % urlList.size()); }
java
@Trivial private String getNextURL(String currentURL) { List<String> urlList = getEnvURLList(); int urlIndex = getURLIndex(currentURL, urlList); return urlList.get((urlIndex + 1) % urlList.size()); }
[ "@", "Trivial", "private", "String", "getNextURL", "(", "String", "currentURL", ")", "{", "List", "<", "String", ">", "urlList", "=", "getEnvURLList", "(", ")", ";", "int", "urlIndex", "=", "getURLIndex", "(", "currentURL", ",", "urlList", ")", ";", "retur...
Returns the next URL after the specified URL. @param currentURL Current URL @return Next URL
[ "Returns", "the", "next", "URL", "after", "the", "specified", "URL", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java#L889-L894
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java
ContextManager.getProviderURL
@Trivial @FFDCIgnore(NamingException.class) private String getProviderURL(TimedDirContext ctx) { try { return (String) ctx.getEnvironment().get(Context.PROVIDER_URL); } catch (NamingException e) { if (tc.isDebugEnabled()) { Tr.debug(tc, "getProviderURL", e...
java
@Trivial @FFDCIgnore(NamingException.class) private String getProviderURL(TimedDirContext ctx) { try { return (String) ctx.getEnvironment().get(Context.PROVIDER_URL); } catch (NamingException e) { if (tc.isDebugEnabled()) { Tr.debug(tc, "getProviderURL", e...
[ "@", "Trivial", "@", "FFDCIgnore", "(", "NamingException", ".", "class", ")", "private", "String", "getProviderURL", "(", "TimedDirContext", "ctx", ")", "{", "try", "{", "return", "(", "String", ")", "ctx", ".", "getEnvironment", "(", ")", ".", "get", "(",...
Get the provider URL from the given directory context. @param ctx @return
[ "Get", "the", "provider", "URL", "from", "the", "given", "directory", "context", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java#L912-L923
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java
ContextManager.getURLIndex
private int getURLIndex(String url, List<String> urlList) { int urlIndex = 0; int numURLs = urlList.size(); // get URL index if (url != null) for (int i = 0; i < numURLs; i++) if ((urlList.get(i)).equalsIgnoreCase(url)) { urlIndex = i; ...
java
private int getURLIndex(String url, List<String> urlList) { int urlIndex = 0; int numURLs = urlList.size(); // get URL index if (url != null) for (int i = 0; i < numURLs; i++) if ((urlList.get(i)).equalsIgnoreCase(url)) { urlIndex = i; ...
[ "private", "int", "getURLIndex", "(", "String", "url", ",", "List", "<", "String", ">", "urlList", ")", "{", "int", "urlIndex", "=", "0", ";", "int", "numURLs", "=", "urlList", ".", "size", "(", ")", ";", "// get URL index", "if", "(", "url", "!=", "...
Returns URL index in the URL list. @param url URL @param urlList List of URLs @return URL index
[ "Returns", "URL", "index", "in", "the", "URL", "list", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java#L932-L945
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java
ContextManager.handleBindStat
private void handleBindStat(long elapsedTime) { String METHODNAME = "handleBindStat(long)"; if (elapsedTime < LDAP_CONNECT_TIMEOUT_TRACE) { QUICK_LDAP_BIND.getAndIncrement(); } long now = System.currentTimeMillis(); /* * Print out at most every 30 minutes t...
java
private void handleBindStat(long elapsedTime) { String METHODNAME = "handleBindStat(long)"; if (elapsedTime < LDAP_CONNECT_TIMEOUT_TRACE) { QUICK_LDAP_BIND.getAndIncrement(); } long now = System.currentTimeMillis(); /* * Print out at most every 30 minutes t...
[ "private", "void", "handleBindStat", "(", "long", "elapsedTime", ")", "{", "String", "METHODNAME", "=", "\"handleBindStat(long)\"", ";", "if", "(", "elapsedTime", "<", "LDAP_CONNECT_TIMEOUT_TRACE", ")", "{", "QUICK_LDAP_BIND", ".", "getAndIncrement", "(", ")", ";", ...
Track the count of "quick" binds. Dump the updated statistic to the log at most once every 30 seconds. @param elapsedTime The time in milliseconds that the bind took
[ "Track", "the", "count", "of", "quick", "binds", ".", "Dump", "the", "updated", "statistic", "to", "the", "log", "at", "most", "once", "every", "30", "seconds", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java#L952-L971
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java
ContextManager.isIPv6Addr
private static boolean isIPv6Addr(String host) { if (host != null) { if (host.contains("[") && host.contains("]")) host = host.substring(host.indexOf("[") + 1, host.indexOf("]")); host = host.toLowerCase(); Pattern p1 = Pattern.compile("^(?:(?:(?:(?:[a-f0-9]{1...
java
private static boolean isIPv6Addr(String host) { if (host != null) { if (host.contains("[") && host.contains("]")) host = host.substring(host.indexOf("[") + 1, host.indexOf("]")); host = host.toLowerCase(); Pattern p1 = Pattern.compile("^(?:(?:(?:(?:[a-f0-9]{1...
[ "private", "static", "boolean", "isIPv6Addr", "(", "String", "host", ")", "{", "if", "(", "host", "!=", "null", ")", "{", "if", "(", "host", ".", "contains", "(", "\"[\"", ")", "&&", "host", ".", "contains", "(", "\"]\"", ")", ")", "host", "=", "ho...
Is the address an IPv6 Address. @param host The host string to check. @return True if the string is in the format of an IPv6 address.
[ "Is", "the", "address", "an", "IPv6", "Address", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java#L1161-L1176
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java
ContextManager.reCreateDirContext
public TimedDirContext reCreateDirContext(TimedDirContext oldCtx, String errorMessage) throws WIMSystemException { final String METHODNAME = "DirContext reCreateDirContext(String errorMessage)"; if (tc.isDebugEnabled()) { Tr.debug(tc, METHODNAME + " Communication exception occurs: " + errorM...
java
public TimedDirContext reCreateDirContext(TimedDirContext oldCtx, String errorMessage) throws WIMSystemException { final String METHODNAME = "DirContext reCreateDirContext(String errorMessage)"; if (tc.isDebugEnabled()) { Tr.debug(tc, METHODNAME + " Communication exception occurs: " + errorM...
[ "public", "TimedDirContext", "reCreateDirContext", "(", "TimedDirContext", "oldCtx", ",", "String", "errorMessage", ")", "throws", "WIMSystemException", "{", "final", "String", "METHODNAME", "=", "\"DirContext reCreateDirContext(String errorMessage)\"", ";", "if", "(", "tc"...
Recreate a Directory context, where the oldContext failed with the given error message. @param oldCtx The context that failed. @param errorMessage The error message from the failure. @return The new {@link TimedDirContext}. It is possible this context is connected to another LDAP server than the old context was. @thro...
[ "Recreate", "a", "Directory", "context", "where", "the", "oldContext", "failed", "with", "the", "given", "error", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java#L1187-L1233
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java
ContextManager.releaseDirContext
@FFDCIgnore(NamingException.class) public void releaseDirContext(TimedDirContext ctx) throws WIMSystemException { final String METHODNAME = "releaseDirContext"; if (iContextPoolEnabled) { //Get the lock for the current domain synchronized (iLock) { // If the ...
java
@FFDCIgnore(NamingException.class) public void releaseDirContext(TimedDirContext ctx) throws WIMSystemException { final String METHODNAME = "releaseDirContext"; if (iContextPoolEnabled) { //Get the lock for the current domain synchronized (iLock) { // If the ...
[ "@", "FFDCIgnore", "(", "NamingException", ".", "class", ")", "public", "void", "releaseDirContext", "(", "TimedDirContext", "ctx", ")", "throws", "WIMSystemException", "{", "final", "String", "METHODNAME", "=", "\"releaseDirContext\"", ";", "if", "(", "iContextPool...
Release the given directory context. @param ctx The context to release. @throws WIMSystemException If there were any {@link NamingException}s while releasing the context.
[ "Release", "the", "given", "directory", "context", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/context/ContextManager.java#L1241-L1301
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/ControlMessageImpl.java
ControlMessageImpl.getTraceSummaryLine
public void getTraceSummaryLine(StringBuilder buff) { // Need to trim the control message name, as many contain space padding buff.append(getControlMessageType().toString().trim()); // Display the bit flags in hex form buff.append(":flags=0x"); buff.append(Integer.toHexString(getFlags() & 0xff)); ...
java
public void getTraceSummaryLine(StringBuilder buff) { // Need to trim the control message name, as many contain space padding buff.append(getControlMessageType().toString().trim()); // Display the bit flags in hex form buff.append(":flags=0x"); buff.append(Integer.toHexString(getFlags() & 0xff)); ...
[ "public", "void", "getTraceSummaryLine", "(", "StringBuilder", "buff", ")", "{", "// Need to trim the control message name, as many contain space padding", "buff", ".", "append", "(", "getControlMessageType", "(", ")", ".", "toString", "(", ")", ".", "trim", "(", ")", ...
Get the common prefix for all control message summary lines
[ "Get", "the", "common", "prefix", "for", "all", "control", "message", "summary", "lines" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/ControlMessageImpl.java#L579-L585
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/ControlMessageImpl.java
ControlMessageImpl.appendArray
protected static void appendArray(StringBuilder buff, String name, String[] values) { buff.append(','); buff.append(name); buff.append("=["); if (values != null) { for (int i = 0; i < values.length; i++) { if (i != 0) buff.append(','); buff.append(values[i]); } } buff...
java
protected static void appendArray(StringBuilder buff, String name, String[] values) { buff.append(','); buff.append(name); buff.append("=["); if (values != null) { for (int i = 0; i < values.length; i++) { if (i != 0) buff.append(','); buff.append(values[i]); } } buff...
[ "protected", "static", "void", "appendArray", "(", "StringBuilder", "buff", ",", "String", "name", ",", "String", "[", "]", "values", ")", "{", "buff", ".", "append", "(", "'", "'", ")", ";", "buff", ".", "append", "(", "name", ")", ";", "buff", ".",...
Helper method to append a string array to a summary string method
[ "Helper", "method", "to", "append", "a", "string", "array", "to", "a", "summary", "string", "method" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/ControlMessageImpl.java#L622-L633
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/srt/http/HttpInputStream.java
HttpInputStream.init
public void init(InputStream in) throws IOException { if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15 logger.logp(Level.FINE, CLASS_NAME,"init", "init"); } this.in = in; next(); obs=null; }
java
public void init(InputStream in) throws IOException { if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15 logger.logp(Level.FINE, CLASS_NAME,"init", "init"); } this.in = in; next(); obs=null; }
[ "public", "void", "init", "(", "InputStream", "in", ")", "throws", "IOException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "logger", ".", "isLoggable", "(", "Level", ".", "FINE", ")", ")", "{", "//306998.15", "logger", ...
Initializes the servlet input stream with the specified raw input stream. @param in the raw input stream
[ "Initializes", "the", "servlet", "input", "stream", "with", "the", "specified", "raw", "input", "stream", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/srt/http/HttpInputStream.java#L104-L112
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/srt/http/HttpInputStream.java
HttpInputStream.next
public void next() { if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15 logger.logp(Level.FINE, CLASS_NAME,"next", "next"); } length = -1; limit = Long.MAX_VALUE; // PM03146 total = 0; count = 0; pos = 0; ...
java
public void next() { if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15 logger.logp(Level.FINE, CLASS_NAME,"next", "next"); } length = -1; limit = Long.MAX_VALUE; // PM03146 total = 0; count = 0; pos = 0; ...
[ "public", "void", "next", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "logger", ".", "isLoggable", "(", "Level", ".", "FINE", ")", ")", "{", "//306998.15", "logger", ".", "logp", "(", "Level", ".", "FINE", ",...
Begins reading the next request.
[ "Begins", "reading", "the", "next", "request", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/srt/http/HttpInputStream.java#L117-L127
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/srt/http/HttpInputStream.java
HttpInputStream.finish
public void finish() throws IOException { if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15 logger.logp(Level.FINE, CLASS_NAME,"finish", "finish"); } // PM18453 start WebContainerRequestState requestState = WebContainerRequestState...
java
public void finish() throws IOException { if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15 logger.logp(Level.FINE, CLASS_NAME,"finish", "finish"); } // PM18453 start WebContainerRequestState requestState = WebContainerRequestState...
[ "public", "void", "finish", "(", ")", "throws", "IOException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "logger", ".", "isLoggable", "(", "Level", ".", "FINE", ")", ")", "{", "//306998.15", "logger", ".", "logp", "(", ...
Finishes reading the request without closing the underlying stream. @exception IOException if an I/O error has occurred
[ "Finishes", "reading", "the", "request", "without", "closing", "the", "underlying", "stream", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/srt/http/HttpInputStream.java#L133-L163
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/srt/http/HttpInputStream.java
HttpInputStream.resets
public void resets() { if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15 logger.logp(Level.FINE, CLASS_NAME,"resets", "resets"); } this.in = null; }
java
public void resets() { if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15 logger.logp(Level.FINE, CLASS_NAME,"resets", "resets"); } this.in = null; }
[ "public", "void", "resets", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "logger", ".", "isLoggable", "(", "Level", ".", "FINE", ")", ")", "{", "//306998.15", "logger", ".", "logp", "(", "Level", ".", "FINE", ...
Resets the input stream for a new connection.
[ "Resets", "the", "input", "stream", "for", "a", "new", "connection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/srt/http/HttpInputStream.java#L168-L174
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/srt/http/HttpInputStream.java
HttpInputStream.setContentLength
public void setContentLength(long len) { if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15 logger.logp(Level.FINE, CLASS_NAME,"setContentLength", "setContentLength --> "+len); } if ( len < 0 ) { logger.logp(Level.SEVERE,...
java
public void setContentLength(long len) { if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15 logger.logp(Level.FINE, CLASS_NAME,"setContentLength", "setContentLength --> "+len); } if ( len < 0 ) { logger.logp(Level.SEVERE,...
[ "public", "void", "setContentLength", "(", "long", "len", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "logger", ".", "isLoggable", "(", "Level", ".", "FINE", ")", ")", "{", "//306998.15", "logger", ".", "logp", "(", ...
Sets the content length for this input stream. This should be called once the headers have been read from the input stream. @param len the content length
[ "Sets", "the", "content", "length", "for", "this", "input", "stream", ".", "This", "should", "be", "called", "once", "the", "headers", "have", "been", "read", "from", "the", "input", "stream", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/srt/http/HttpInputStream.java#L190-L205
train