id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
69,700 | 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 |
69,701 | 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 |
69,702 | 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 |
69,703 | 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 |
69,704 | 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 |
69,705 | 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 |
69,706 | 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 |
69,707 | 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 |
69,708 | 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 |
69,709 | 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 |
69,710 | 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 |
69,711 | 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 |
69,712 | 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 |
69,713 | 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 |
69,714 | 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 |
69,715 | 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 |
69,716 | 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 |
69,717 | 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 |
69,718 | 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 |
69,719 | 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 |
69,720 | 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 |
69,721 | 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 |
69,722 | 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 |
69,723 | 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 |
69,724 | 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 |
69,725 | 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 |
69,726 | 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 |
69,727 | 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 |
69,728 | 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 |
69,729 | 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 |
69,730 | 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 |
69,731 | 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 |
69,732 | 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 |
69,733 | 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 |
69,734 | 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 |
69,735 | 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 |
69,736 | 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 |
69,737 | 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 |
69,738 | 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 |
69,739 | 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 |
69,740 | 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 |
69,741 | 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 |
69,742 | 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 |
69,743 | 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 |
69,744 | 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 |
69,745 | 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 |
69,746 | 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 |
69,747 | 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 |
69,748 | 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 |
69,749 | 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 |
69,750 | 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 |
69,751 | 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 |
69,752 | 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 |
69,753 | 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 |
69,754 | 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 |
69,755 | 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 |
69,756 | 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 |
69,757 | 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 |
69,758 | 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 |
69,759 | 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 |
69,760 | 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 |
69,761 | 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 |
69,762 | 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 |
69,763 | 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 |
69,764 | 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 |
69,765 | 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 |
69,766 | 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 |
69,767 | 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 |
69,768 | 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 |
69,769 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/srt/http/HttpInputStream.java | HttpInputStream.read | public int read() throws IOException
{
if ( total >= limit )
{
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"read", "Over the limit: -1");
}
return -1;
}
... | java | public int read() throws IOException
{
if ( total >= limit )
{
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"read", "Over the limit: -1");
}
return -1;
}
... | [
"public",
"int",
"read",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"total",
">=",
"limit",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"logger",
".",
"isLoggable",
"(",
"Level",
".",
"FINE",
")",
")",
"{"... | Reads a byte of data. This method will block if no input is available.
@return the byte read, or -1 if the end of the stream is reached or
the content length has been exceeded
@exception IOException if an I/O error has occurred | [
"Reads",
"a",
"byte",
"of",
"data",
".",
"This",
"method",
"will",
"block",
"if",
"no",
"input",
"is",
"available",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/srt/http/HttpInputStream.java#L221-L243 |
69,770 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/srt/http/HttpInputStream.java | HttpInputStream.read | public int read(byte []read_buffer, int offset, int length) throws IOException {
// Copy as much as possible from the read buffer
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"read", "read length -->"+length);
... | java | public int read(byte []read_buffer, int offset, int length) throws IOException {
// Copy as much as possible from the read buffer
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"read", "read length -->"+length);
... | [
"public",
"int",
"read",
"(",
"byte",
"[",
"]",
"read_buffer",
",",
"int",
"offset",
",",
"int",
"length",
")",
"throws",
"IOException",
"{",
"// Copy as much as possible from the read buffer ",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&... | Reads into an array of bytes. This method will block until some input
is available.
@param b the buffer into which the data is read
@param off the start offset of the data
@param len the maximum number of bytes read
@return the actual number of bytes read, or -1 if the end of the
stream is reached
@exception IOExceptio... | [
"Reads",
"into",
"an",
"array",
"of",
"bytes",
".",
"This",
"method",
"will",
"block",
"until",
"some",
"input",
"is",
"available",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/srt/http/HttpInputStream.java#L255-L315 |
69,771 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/srt/http/HttpInputStream.java | HttpInputStream.readLine | public int readLine(byte[] b, int off, int len) throws IOException
{
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"readLine", "readLine");
}
if ( total >= limit )
{
if (T... | java | public int readLine(byte[] b, int off, int len) throws IOException
{
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"readLine", "readLine");
}
if ( total >= limit )
{
if (T... | [
"public",
"int",
"readLine",
"(",
"byte",
"[",
"]",
"b",
",",
"int",
"off",
",",
"int",
"len",
")",
"throws",
"IOException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"logger",
".",
"isLoggable",
"(",
"Level",
".",
"... | Reads into an array of bytes until all requested bytes have been
read or a '\n' is encountered, in which case the '\n' is read into
the array as well.
@param b the buffer where data is stored
@param off the start offset of the data
@param len the length of the data
@return the actual number of bytes read, or -1 if the ... | [
"Reads",
"into",
"an",
"array",
"of",
"bytes",
"until",
"all",
"requested",
"bytes",
"have",
"been",
"read",
"or",
"a",
"\\",
"n",
"is",
"encountered",
"in",
"which",
"case",
"the",
"\\",
"n",
"is",
"read",
"into",
"the",
"array",
"as",
"well",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/srt/http/HttpInputStream.java#L329-L412 |
69,772 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/srt/http/HttpInputStream.java | HttpInputStream.fill | protected void fill() throws IOException
{
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"fill", "fill");
}
// PK79219 Start
long longLeft = limit-total;
int len;
if (lon... | java | protected void fill() throws IOException
{
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15
logger.logp(Level.FINE, CLASS_NAME,"fill", "fill");
}
// PK79219 Start
long longLeft = limit-total;
int len;
if (lon... | [
"protected",
"void",
"fill",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"logger",
".",
"isLoggable",
"(",
"Level",
".",
"FINE",
")",
")",
"{",
"//306998.15",
"logger",
".",
"logp",
"(",
... | Fills input buffer with more bytes. | [
"Fills",
"input",
"buffer",
"with",
"more",
"bytes",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/srt/http/HttpInputStream.java#L530-L554 |
69,773 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.javaeesec.cdi/src/com/ibm/ws/security/javaeesec/cdi/beans/hash/Pbkdf2PasswordHashImpl.java | Pbkdf2PasswordHashImpl.parseData | private String[] parseData(String hashedPassword) throws IllegalArgumentException {
// <algorithm>:<iterations>:<base64(salt)>:<base64(hash)>
String[] items = hashedPassword.split(":");
String error = null;
if (items.length == 4) {
if (SUPPORTED_ALGORITHMS.contains(items[0]))... | java | private String[] parseData(String hashedPassword) throws IllegalArgumentException {
// <algorithm>:<iterations>:<base64(salt)>:<base64(hash)>
String[] items = hashedPassword.split(":");
String error = null;
if (items.length == 4) {
if (SUPPORTED_ALGORITHMS.contains(items[0]))... | [
"private",
"String",
"[",
"]",
"parseData",
"(",
"String",
"hashedPassword",
")",
"throws",
"IllegalArgumentException",
"{",
"// <algorithm>:<iterations>:<base64(salt)>:<base64(hash)>",
"String",
"[",
"]",
"items",
"=",
"hashedPassword",
".",
"split",
"(",
"\":\"",
")",... | Parse the data by colon.
Make sure that there are three colons, and algorithm is one of supported ones
and the 2nd param can be converted to the integer.
@param hashedPassword
@return | [
"Parse",
"the",
"data",
"by",
"colon",
".",
"Make",
"sure",
"that",
"there",
"are",
"three",
"colons",
"and",
"algorithm",
"is",
"one",
"of",
"supported",
"ones",
"and",
"the",
"2nd",
"param",
"can",
"be",
"converted",
"to",
"the",
"integer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.javaeesec.cdi/src/com/ibm/ws/security/javaeesec/cdi/beans/hash/Pbkdf2PasswordHashImpl.java#L116-L146 |
69,774 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.javaeesec.cdi/src/com/ibm/ws/security/javaeesec/cdi/beans/hash/Pbkdf2PasswordHashImpl.java | Pbkdf2PasswordHashImpl.parseParams | protected void parseParams(Map<String, String> params) {
generateAlgorithm = indexOf(PARAM_ALGORITHM, DEFAULT_ALGORITHM, SUPPORTED_ALGORITHMS, params.get(PARAM_ALGORITHM));
generateIterations = parseInt(PARAM_ITERATIONS, params.get(PARAM_ITERATIONS), DEFAULT_ITERATIONS, MINIMUM_ITERATIONS);
gene... | java | protected void parseParams(Map<String, String> params) {
generateAlgorithm = indexOf(PARAM_ALGORITHM, DEFAULT_ALGORITHM, SUPPORTED_ALGORITHMS, params.get(PARAM_ALGORITHM));
generateIterations = parseInt(PARAM_ITERATIONS, params.get(PARAM_ITERATIONS), DEFAULT_ITERATIONS, MINIMUM_ITERATIONS);
gene... | [
"protected",
"void",
"parseParams",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"params",
")",
"{",
"generateAlgorithm",
"=",
"indexOf",
"(",
"PARAM_ALGORITHM",
",",
"DEFAULT_ALGORITHM",
",",
"SUPPORTED_ALGORITHMS",
",",
"params",
".",
"get",
"(",
"PARAM_ALGO... | Parse the parameters. If the value is not set, set the default, if the value is invalid, throw InvalidArgumentException | [
"Parse",
"the",
"parameters",
".",
"If",
"the",
"value",
"is",
"not",
"set",
"set",
"the",
"default",
"if",
"the",
"value",
"is",
"invalid",
"throw",
"InvalidArgumentException"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.javaeesec.cdi/src/com/ibm/ws/security/javaeesec/cdi/beans/hash/Pbkdf2PasswordHashImpl.java#L151-L156 |
69,775 | OpenLiberty/open-liberty | dev/com.ibm.json4j/src/com/ibm/json/java/JSONObject.java | JSONObject.isValidType | public static boolean isValidType(Class clazz)
{
if (null == clazz) throw new IllegalArgumentException();
if (String.class == clazz) return true;
if (Boolean.class == clazz) return true;
if (JSONObject.class.isAssignableFrom(clazz)) return true;
if (JSONArray.class == clazz... | java | public static boolean isValidType(Class clazz)
{
if (null == clazz) throw new IllegalArgumentException();
if (String.class == clazz) return true;
if (Boolean.class == clazz) return true;
if (JSONObject.class.isAssignableFrom(clazz)) return true;
if (JSONArray.class == clazz... | [
"public",
"static",
"boolean",
"isValidType",
"(",
"Class",
"clazz",
")",
"{",
"if",
"(",
"null",
"==",
"clazz",
")",
"throw",
"new",
"IllegalArgumentException",
"(",
")",
";",
"if",
"(",
"String",
".",
"class",
"==",
"clazz",
")",
"return",
"true",
";",... | Return whether the class is a valid type of value for a property.
@param clazz The class type to check for validity as a JSON object type. | [
"Return",
"whether",
"the",
"class",
"is",
"a",
"valid",
"type",
"of",
"value",
"for",
"a",
"property",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.json4j/src/com/ibm/json/java/JSONObject.java#L60-L71 |
69,776 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/cache/links/RootMembership.java | RootMembership.initialize | public final void initialize() throws PersistenceException, SevereMessageStoreException
{
PersistentMessageStore pm = _messageStore.getPersistentMessageStore();
final HashMap tupleMap = _buildTupleMap(pm);
_buildStreamTree(tupleMap);
_recoverStreamsWithInDoubts(pm);
} | java | public final void initialize() throws PersistenceException, SevereMessageStoreException
{
PersistentMessageStore pm = _messageStore.getPersistentMessageStore();
final HashMap tupleMap = _buildTupleMap(pm);
_buildStreamTree(tupleMap);
_recoverStreamsWithInDoubts(pm);
} | [
"public",
"final",
"void",
"initialize",
"(",
")",
"throws",
"PersistenceException",
",",
"SevereMessageStoreException",
"{",
"PersistentMessageStore",
"pm",
"=",
"_messageStore",
".",
"getPersistentMessageStore",
"(",
")",
";",
"final",
"HashMap",
"tupleMap",
"=",
"_... | This method essentially drives the initial loading of the cache layer from the
persistence layer.
@throws SevereMessageStoreException | [
"This",
"method",
"essentially",
"drives",
"the",
"initial",
"loading",
"of",
"the",
"cache",
"layer",
"from",
"the",
"persistence",
"layer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/cache/links/RootMembership.java#L307-L313 |
69,777 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/JCATranWrapperImpl.java | JCATranWrapperImpl.commit | public void commit() throws XAException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "commit", _txn);
// replay must have finished
if (_tranManager.isReplayComplete())
{
final int state = _txn.getTransactionState().getState();
switch (state)
{
... | java | public void commit() throws XAException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "commit", _txn);
// replay must have finished
if (_tranManager.isReplayComplete())
{
final int state = _txn.getTransactionState().getState();
switch (state)
{
... | [
"public",
"void",
"commit",
"(",
")",
"throws",
"XAException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"commit\"",
",",
"_txn",
")",
";",
"// replay must have finished",
"if",
"(",
"_tranManager",
... | Informs the object that the transaction is to be committed
@exception XAException thrown with the following error codes:
<ul><li>XA_HEURMIX - the transaction branch has been heuristically
committed and rolled back</li>
<li>XA_HEURRB - the transaction branch has been heuristically rolled back</li>
<li>XAER_PROTO - the ... | [
"Informs",
"the",
"object",
"that",
"the",
"transaction",
"is",
"to",
"be",
"committed"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/JCATranWrapperImpl.java#L242-L342 |
69,778 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/JCATranWrapperImpl.java | JCATranWrapperImpl.commitOnePhase | public void commitOnePhase() throws XAException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "commitOnePhase", _txn);
final int state = _txn.getTransactionState().getState();
switch (state)
{
case TransactionState.STATE_ACTIVE :
// Suspend local transaction i... | java | public void commitOnePhase() throws XAException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "commitOnePhase", _txn);
final int state = _txn.getTransactionState().getState();
switch (state)
{
case TransactionState.STATE_ACTIVE :
// Suspend local transaction i... | [
"public",
"void",
"commitOnePhase",
"(",
")",
"throws",
"XAException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"commitOnePhase\"",
",",
"_txn",
")",
";",
"final",
"int",
"state",
"=",
"_txn",
".... | Informs the object that the transaction is to be committed in one-phase
@exception XAException thrown with the following error codes:
<ul><li>XA_RBROLLBACK - the transaction has rolled back</li>
<li>XA_HEURHAZ - the transaction branch may have been heuristically committed</li>
<li>XA_HEURRB - the transaction branch ha... | [
"Informs",
"the",
"object",
"that",
"the",
"transaction",
"is",
"to",
"be",
"committed",
"in",
"one",
"-",
"phase"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/JCATranWrapperImpl.java#L388-L479 |
69,779 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/JCATranWrapperImpl.java | JCATranWrapperImpl.rollback | public synchronized void rollback() throws XAException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "rollback", _txn);
// If we've been prepared then replay must
// have finished before we can rollback
if (_prepared && !_tranManager.isReplayComplete())
{
if (tc.isEntr... | java | public synchronized void rollback() throws XAException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "rollback", _txn);
// If we've been prepared then replay must
// have finished before we can rollback
if (_prepared && !_tranManager.isReplayComplete())
{
if (tc.isEntr... | [
"public",
"synchronized",
"void",
"rollback",
"(",
")",
"throws",
"XAException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"rollback\"",
",",
"_txn",
")",
";",
"// If we've been prepared then replay must"... | Informs the object that the transaction is to be rolled back
@exception XAException thrown with the following error codes:
<ul><li>XA_HEURMIX - the transaction branch has been committed
and heuristically rolled back</li>
<li>XAER_PROTO - the routine was invoked in an inproper context</li>
<li>XA_RMERR - a resource man... | [
"Informs",
"the",
"object",
"that",
"the",
"transaction",
"is",
"to",
"be",
"rolled",
"back"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/JCATranWrapperImpl.java#L518-L618 |
69,780 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/JCATranWrapperImpl.java | JCATranWrapperImpl.forget | public synchronized void forget() throws XAException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "forget", _txn);
// replay must have finished
if (_tranManager.isReplayComplete())
{
_heuristic = StatefulResource.NONE;
_txn.notifyCompletion();
}
e... | java | public synchronized void forget() throws XAException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "forget", _txn);
// replay must have finished
if (_tranManager.isReplayComplete())
{
_heuristic = StatefulResource.NONE;
_txn.notifyCompletion();
}
e... | [
"public",
"synchronized",
"void",
"forget",
"(",
")",
"throws",
"XAException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"forget\"",
",",
"_txn",
")",
";",
"// replay must have finished",
"if",
"(",
... | Informs the object that the transaction is to be forgotten
@exception XAException | [
"Informs",
"the",
"object",
"that",
"the",
"transaction",
"is",
"to",
"be",
"forgotten"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/JCATranWrapperImpl.java#L657-L675 |
69,781 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java | GBSIterator.reset | public void reset()
{
_dstack.reset();
_current1.reset();
_last1.reset();
_eof = false;
_s = 0;
_p = null;
} | java | public void reset()
{
_dstack.reset();
_current1.reset();
_last1.reset();
_eof = false;
_s = 0;
_p = null;
} | [
"public",
"void",
"reset",
"(",
")",
"{",
"_dstack",
".",
"reset",
"(",
")",
";",
"_current1",
".",
"reset",
"(",
")",
";",
"_last1",
".",
"reset",
"(",
")",
";",
"_eof",
"=",
"false",
";",
"_s",
"=",
"0",
";",
"_p",
"=",
"null",
";",
"}"
] | Reset to post construction state. | [
"Reset",
"to",
"post",
"construction",
"state",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java#L158-L166 |
69,782 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java | GBSIterator.findFirst | private void findFirst(
DeleteStack stack)
{
boolean x = optimisticFindFirst(stack);
if (x == pessimisticNeeded)
pessimisticFindFirst(stack);
} | java | private void findFirst(
DeleteStack stack)
{
boolean x = optimisticFindFirst(stack);
if (x == pessimisticNeeded)
pessimisticFindFirst(stack);
} | [
"private",
"void",
"findFirst",
"(",
"DeleteStack",
"stack",
")",
"{",
"boolean",
"x",
"=",
"optimisticFindFirst",
"(",
"stack",
")",
";",
"if",
"(",
"x",
"==",
"pessimisticNeeded",
")",
"pessimisticFindFirst",
"(",
"stack",
")",
";",
"}"
] | Find the first key in the index.
<p>Start by using a non-locking, optimistic search. If this
doesn't work then switch to a pessimistic search which locks the
index.</p>
@param stack The stack to use to record the traversal.
@return The first entry in the index. | [
"Find",
"the",
"first",
"key",
"in",
"the",
"index",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java#L179-L185 |
69,783 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java | GBSIterator.optimisticFindFirst | private boolean optimisticFindFirst(
DeleteStack stack)
{
Object q = null;
int v1 = _index.vno();
int x1 = _index.xno();
if ((v1&1) != 0)
return pessimisticNeeded;
synchronized(this)
{
}
try
... | java | private boolean optimisticFindFirst(
DeleteStack stack)
{
Object q = null;
int v1 = _index.vno();
int x1 = _index.xno();
if ((v1&1) != 0)
return pessimisticNeeded;
synchronized(this)
{
}
try
... | [
"private",
"boolean",
"optimisticFindFirst",
"(",
"DeleteStack",
"stack",
")",
"{",
"Object",
"q",
"=",
"null",
";",
"int",
"v1",
"=",
"_index",
".",
"vno",
"(",
")",
";",
"int",
"x1",
"=",
"_index",
".",
"xno",
"(",
")",
";",
"if",
"(",
"(",
"v1",... | Find first key in index using optimistic locking
@param stack The stack to use to record the traversal | [
"Find",
"first",
"key",
"in",
"index",
"using",
"optimistic",
"locking"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java#L193-L231 |
69,784 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java | GBSIterator.pessimisticFindFirst | private void pessimisticFindFirst(
DeleteStack stack)
{
Object q = null;
int v1 = 0;
int x1 = 0;
synchronized(_index)
{
q = getFirst(stack);
v1 = _index.vno();
x1 = _index.xno();
_pessimi... | java | private void pessimisticFindFirst(
DeleteStack stack)
{
Object q = null;
int v1 = 0;
int x1 = 0;
synchronized(_index)
{
q = getFirst(stack);
v1 = _index.vno();
x1 = _index.xno();
_pessimi... | [
"private",
"void",
"pessimisticFindFirst",
"(",
"DeleteStack",
"stack",
")",
"{",
"Object",
"q",
"=",
"null",
";",
"int",
"v1",
"=",
"0",
";",
"int",
"x1",
"=",
"0",
";",
"synchronized",
"(",
"_index",
")",
"{",
"q",
"=",
"getFirst",
"(",
"stack",
")... | Find first key in index using pessimistic locking.
@param stack The stack to use to record the traversal | [
"Find",
"first",
"key",
"in",
"index",
"using",
"pessimistic",
"locking",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java#L238-L254 |
69,785 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java | GBSIterator.getFirst | private Object getFirst(
DeleteStack stack)
{
Object q = null;
GBSNode n = leftMostChild(stack);
if (n != null)
{
q = n.leftMostKey();
_current1.setLocation(n, 0);
}
return q;
} | java | private Object getFirst(
DeleteStack stack)
{
Object q = null;
GBSNode n = leftMostChild(stack);
if (n != null)
{
q = n.leftMostKey();
_current1.setLocation(n, 0);
}
return q;
} | [
"private",
"Object",
"getFirst",
"(",
"DeleteStack",
"stack",
")",
"{",
"Object",
"q",
"=",
"null",
";",
"GBSNode",
"n",
"=",
"leftMostChild",
"(",
"stack",
")",
";",
"if",
"(",
"n",
"!=",
"null",
")",
"{",
"q",
"=",
"n",
".",
"leftMostKey",
"(",
"... | Return first key in the index in key order, if any.
<p>This also sets the node and index in _current1 if a key
is found.</p>
@param stack The stack to use to record the traversal.
@return The first key in the index in key order or null
if the index is empty. | [
"Return",
"first",
"key",
"in",
"the",
"index",
"in",
"key",
"order",
"if",
"any",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java#L267-L278 |
69,786 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java | GBSIterator.leftMostChild | private GBSNode leftMostChild(
DeleteStack stack)
{
GBSNode p;
p = _index.root(); /* Root of tree */
GBSNode lastl = null; /* Will point to left-most child */
if (p != null) ... | java | private GBSNode leftMostChild(
DeleteStack stack)
{
GBSNode p;
p = _index.root(); /* Root of tree */
GBSNode lastl = null; /* Will point to left-most child */
if (p != null) ... | [
"private",
"GBSNode",
"leftMostChild",
"(",
"DeleteStack",
"stack",
")",
"{",
"GBSNode",
"p",
";",
"p",
"=",
"_index",
".",
"root",
"(",
")",
";",
"/* Root of tree */",
"GBSNode",
"lastl",
"=",
"null",
";",
"/* Will point to left-most child ... | Find the left-most child of the tree by following all of the
left children down to the bottom of the tree.
@param stack The DeleteStack that is used to record the traversal.
@return The left most child at the bottom of the tree or null
if the tree is empty.
@exception OptimisticDepthException if the depth of the tra... | [
"Find",
"the",
"left",
"-",
"most",
"child",
"of",
"the",
"tree",
"by",
"following",
"all",
"of",
"the",
"left",
"children",
"down",
"to",
"the",
"bottom",
"of",
"the",
"tree",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java#L292-L306 |
69,787 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java | GBSIterator.findNextAfterEof | private void findNextAfterEof(
DeleteStack stack)
{
if ( !_eof )
throw new RuntimeException("findNextAfterEof called when _eof false.");
if (_current1._vno != _index.vno())
{
boolean state = pessimisticNeeded;
state = o... | java | private void findNextAfterEof(
DeleteStack stack)
{
if ( !_eof )
throw new RuntimeException("findNextAfterEof called when _eof false.");
if (_current1._vno != _index.vno())
{
boolean state = pessimisticNeeded;
state = o... | [
"private",
"void",
"findNextAfterEof",
"(",
"DeleteStack",
"stack",
")",
"{",
"if",
"(",
"!",
"_eof",
")",
"throw",
"new",
"RuntimeException",
"(",
"\"findNextAfterEof called when _eof false.\"",
")",
";",
"if",
"(",
"_current1",
".",
"_vno",
"!=",
"_index",
"."... | Find the next key in the index after an eof condition.
<p>The vno from the time of the eof condition is stored in
_current1. If the vno in the index has not changed then the
iterator is still stuck at the end and there is nothing to do. If
the vno in the index has changed then we do an optimistic search to
re-establ... | [
"Find",
"the",
"next",
"key",
"in",
"the",
"index",
"after",
"an",
"eof",
"condition",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java#L411-L424 |
69,788 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java | GBSIterator.optimisticSearchNext | private boolean optimisticSearchNext(
DeleteStack stack)
{
int v1 = _index.vno();
int x1 = _index.xno();
if ((v1&1) != 0)
return pessimisticNeeded;
synchronized(this)
{
}
try
{
intern... | java | private boolean optimisticSearchNext(
DeleteStack stack)
{
int v1 = _index.vno();
int x1 = _index.xno();
if ((v1&1) != 0)
return pessimisticNeeded;
synchronized(this)
{
}
try
{
intern... | [
"private",
"boolean",
"optimisticSearchNext",
"(",
"DeleteStack",
"stack",
")",
"{",
"int",
"v1",
"=",
"_index",
".",
"vno",
"(",
")",
";",
"int",
"x1",
"=",
"_index",
".",
"xno",
"(",
")",
";",
"if",
"(",
"(",
"v1",
"&",
"1",
")",
"!=",
"0",
")"... | Optimistically find the next key in the index after an eof condition. | [
"Optimistically",
"find",
"the",
"next",
"key",
"in",
"the",
"index",
"after",
"an",
"eof",
"condition",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java#L430-L467 |
69,789 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java | GBSIterator.pessimisticSearchNext | private void pessimisticSearchNext(
DeleteStack stack)
{
synchronized(_index)
{
internalSearchNext(stack, _index.vno(), _index.xno());
_pessimisticSearchNexts++;
}
} | java | private void pessimisticSearchNext(
DeleteStack stack)
{
synchronized(_index)
{
internalSearchNext(stack, _index.vno(), _index.xno());
_pessimisticSearchNexts++;
}
} | [
"private",
"void",
"pessimisticSearchNext",
"(",
"DeleteStack",
"stack",
")",
"{",
"synchronized",
"(",
"_index",
")",
"{",
"internalSearchNext",
"(",
"stack",
",",
"_index",
".",
"vno",
"(",
")",
",",
"_index",
".",
"xno",
"(",
")",
")",
";",
"_pessimisti... | Pessimistically find the next key in the index after an eof condition. | [
"Pessimistically",
"find",
"the",
"next",
"key",
"in",
"the",
"index",
"after",
"an",
"eof",
"condition",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java#L472-L480 |
69,790 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java | GBSIterator.internalSearchNext | private void internalSearchNext(
DeleteStack stack,
int v1,
int x1)
{
SearchComparator comp = searchComparator(SearchComparator.GT);
_s = 0;
_p = null;
_e... | java | private void internalSearchNext(
DeleteStack stack,
int v1,
int x1)
{
SearchComparator comp = searchComparator(SearchComparator.GT);
_s = 0;
_p = null;
_e... | [
"private",
"void",
"internalSearchNext",
"(",
"DeleteStack",
"stack",
",",
"int",
"v1",
",",
"int",
"x1",
")",
"{",
"SearchComparator",
"comp",
"=",
"searchComparator",
"(",
"SearchComparator",
".",
"GT",
")",
";",
"_s",
"=",
"0",
";",
"_p",
"=",
"null",
... | Search to re-establish current iterator position.
<p>This is called when the iterator can find no more entries and is
either known to have hit eof or is just about to confirm that fact.
It sets _eof true and saves the current index vno in _current1. If
the search succeeds it sets _eof false.</p> | [
"Search",
"to",
"re",
"-",
"establish",
"current",
"iterator",
"position",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java#L491-L511 |
69,791 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java | GBSIterator.pessimisticGetNext | private void pessimisticGetNext(
DeleteStack stack)
{
synchronized(_index)
{
internalGetNext(stack, _index.vno(), _index.xno());
_pessimisticGetNexts++;
}
} | java | private void pessimisticGetNext(
DeleteStack stack)
{
synchronized(_index)
{
internalGetNext(stack, _index.vno(), _index.xno());
_pessimisticGetNexts++;
}
} | [
"private",
"void",
"pessimisticGetNext",
"(",
"DeleteStack",
"stack",
")",
"{",
"synchronized",
"(",
"_index",
")",
"{",
"internalGetNext",
"(",
"stack",
",",
"_index",
".",
"vno",
"(",
")",
",",
"_index",
".",
"xno",
"(",
")",
")",
";",
"_pessimisticGetNe... | Get the next key pessimistically.
<p>Lock the whole index and call internalGetNext().</p>
@param stack The stack used to record the traversal. | [
"Get",
"the",
"next",
"key",
"pessimistically",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java#L595-L603 |
69,792 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java | GBSIterator.nextNode | private GBSNode nextNode(
DeleteStack stack)
{
if (_eof)
throw new RuntimeException("_eof is set on entry to nextNode()");
boolean done = false;
GBSNode q = null;
GBSNode nextp = null;
while ( !done )
{
if (stack... | java | private GBSNode nextNode(
DeleteStack stack)
{
if (_eof)
throw new RuntimeException("_eof is set on entry to nextNode()");
boolean done = false;
GBSNode q = null;
GBSNode nextp = null;
while ( !done )
{
if (stack... | [
"private",
"GBSNode",
"nextNode",
"(",
"DeleteStack",
"stack",
")",
"{",
"if",
"(",
"_eof",
")",
"throw",
"new",
"RuntimeException",
"(",
"\"_eof is set on entry to nextNode()\"",
")",
";",
"boolean",
"done",
"=",
"false",
";",
"GBSNode",
"q",
"=",
"null",
";"... | Find the next node in the tree in key order.
@param stack The stack being used for traversal.
@return the next node in key order. null if we have reached the end. | [
"Find",
"the",
"next",
"node",
"in",
"the",
"tree",
"in",
"key",
"order",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java#L669-L726 |
69,793 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java | GBSIterator.next | public Object next()
{
_current1.reset();
if (_last1.key() == null)
findFirst(_dstack);
else
{
findNext(_dstack);
if (_current1.key() == null)
_eof = true;
}
if (_current1.key() != null)
_last1.setLocati... | java | public Object next()
{
_current1.reset();
if (_last1.key() == null)
findFirst(_dstack);
else
{
findNext(_dstack);
if (_current1.key() == null)
_eof = true;
}
if (_current1.key() != null)
_last1.setLocati... | [
"public",
"Object",
"next",
"(",
")",
"{",
"_current1",
".",
"reset",
"(",
")",
";",
"if",
"(",
"_last1",
".",
"key",
"(",
")",
"==",
"null",
")",
"findFirst",
"(",
"_dstack",
")",
";",
"else",
"{",
"findNext",
"(",
"_dstack",
")",
";",
"if",
"("... | Return the next element in the collection. | [
"Return",
"the",
"next",
"element",
"in",
"the",
"collection",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSIterator.java#L731-L747 |
69,794 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/JFapAddress.java | JFapAddress.getLocalAddress | public InetSocketAddress getLocalAddress()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getLocalAddress");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getLocalAddress","rc="+null);
return null;
} | java | public InetSocketAddress getLocalAddress()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getLocalAddress");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getLocalAddress","rc="+null);
return null;
} | [
"public",
"InetSocketAddress",
"getLocalAddress",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getLocalAddress\"",
"... | Retrieve the address of the local NIC to bind to.
@see TCPConnectRequestContext#getLocalAddress() | [
"Retrieve",
"the",
"address",
"of",
"the",
"local",
"NIC",
"to",
"bind",
"to",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/JFapAddress.java#L57-L62 |
69,795 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/JFapAddress.java | JFapAddress.getRemoteAddress | public InetSocketAddress getRemoteAddress()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getRemoteAddress");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getRemoteAddress","rc="+remoteAddress);
return remoteAddre... | java | public InetSocketAddress getRemoteAddress()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getRemoteAddress");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getRemoteAddress","rc="+remoteAddress);
return remoteAddre... | [
"public",
"InetSocketAddress",
"getRemoteAddress",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getRemoteAddress\"",
... | Retrieves the address of the remote address to connect to.
@see TCPConnectRequestContext#getRemoteAddress() | [
"Retrieves",
"the",
"address",
"of",
"the",
"remote",
"address",
"to",
"connect",
"to",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/JFapAddress.java#L68-L73 |
69,796 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/Utils.java | Utils.convert | public static Number convert(Number value, Class<?> type) {
if (int.class.equals(type) || Integer.class.equals(type))
value = value.intValue();
else if (long.class.equals(type) || Long.class.equals(type))
value = value.longValue();
else if (short.class.equals(type) || Sho... | java | public static Number convert(Number value, Class<?> type) {
if (int.class.equals(type) || Integer.class.equals(type))
value = value.intValue();
else if (long.class.equals(type) || Long.class.equals(type))
value = value.longValue();
else if (short.class.equals(type) || Sho... | [
"public",
"static",
"Number",
"convert",
"(",
"Number",
"value",
",",
"Class",
"<",
"?",
">",
"type",
")",
"{",
"if",
"(",
"int",
".",
"class",
".",
"equals",
"(",
"type",
")",
"||",
"Integer",
".",
"class",
".",
"equals",
"(",
"type",
")",
")",
... | Converts a Number value to a Integer, Long, Short, Byte, Double, or Float.
If unable to convert, the original value is returned.
@param value a numeric value.
@param type the desired type, which should be one of (Integer, Long, Short, Byte, Double, Float).
@return converted value. | [
"Converts",
"a",
"Number",
"value",
"to",
"a",
"Integer",
"Long",
"Short",
"Byte",
"Double",
"or",
"Float",
".",
"If",
"unable",
"to",
"convert",
"the",
"original",
"value",
"is",
"returned",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/Utils.java#L54-L68 |
69,797 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/Utils.java | Utils.convert | public static Object convert(String str, Class<?> type) throws Exception {
Object value;
if (int.class.equals(type) || Integer.class.equals(type))
value = Integer.parseInt(str);
else if (boolean.class.equals(type) || Boolean.class.equals(type))
value = Boolean.parseBoolea... | java | public static Object convert(String str, Class<?> type) throws Exception {
Object value;
if (int.class.equals(type) || Integer.class.equals(type))
value = Integer.parseInt(str);
else if (boolean.class.equals(type) || Boolean.class.equals(type))
value = Boolean.parseBoolea... | [
"public",
"static",
"Object",
"convert",
"(",
"String",
"str",
",",
"Class",
"<",
"?",
">",
"type",
")",
"throws",
"Exception",
"{",
"Object",
"value",
";",
"if",
"(",
"int",
".",
"class",
".",
"equals",
"(",
"type",
")",
"||",
"Integer",
".",
"class... | Converts a String value to the specified type.
@param str a String value.
@param type the desired type, which can be a primitive or primitive wrapper.
@return converted value. | [
"Converts",
"a",
"String",
"value",
"to",
"the",
"specified",
"type",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/Utils.java#L77-L98 |
69,798 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/Utils.java | Utils.serObjByte | public static byte[] serObjByte(Object pk) throws IOException {
final boolean trace = TraceComponent.isAnyTracingEnabled();
if (trace && tc.isEntryEnabled())
Tr.entry(tc, "serObjByte", pk == null ? null : pk.getClass());
byte[] b;
try {
ByteArrayOutputStream bos =... | java | public static byte[] serObjByte(Object pk) throws IOException {
final boolean trace = TraceComponent.isAnyTracingEnabled();
if (trace && tc.isEntryEnabled())
Tr.entry(tc, "serObjByte", pk == null ? null : pk.getClass());
byte[] b;
try {
ByteArrayOutputStream bos =... | [
"public",
"static",
"byte",
"[",
"]",
"serObjByte",
"(",
"Object",
"pk",
")",
"throws",
"IOException",
"{",
"final",
"boolean",
"trace",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"trace",
"&&",
"tc",
".",
"isEntryEnabled",
... | Serialize an object to a byte array.
@param pk the object
@throws IOException if an error occurs during the serialization process. | [
"Serialize",
"an",
"object",
"to",
"a",
"byte",
"array",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/Utils.java#L232-L258 |
69,799 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/Utils.java | Utils.checkAccessibility | public static void checkAccessibility(String resourceName, String adapterName, String embeddedApp, String accessingApp,
boolean isEndpoint) throws ResourceException {
if (embeddedApp != null) {
if (!embeddedApp.equals(accessingApp)) {
String ... | java | public static void checkAccessibility(String resourceName, String adapterName, String embeddedApp, String accessingApp,
boolean isEndpoint) throws ResourceException {
if (embeddedApp != null) {
if (!embeddedApp.equals(accessingApp)) {
String ... | [
"public",
"static",
"void",
"checkAccessibility",
"(",
"String",
"resourceName",
",",
"String",
"adapterName",
",",
"String",
"embeddedApp",
",",
"String",
"accessingApp",
",",
"boolean",
"isEndpoint",
")",
"throws",
"ResourceException",
"{",
"if",
"(",
"embeddedApp... | Check accessibility of the resource adapter from the application.
@param resourceName The name of the resource
@param adapterName The name of the resource adapter
@param embeddedApp The name of the app in which the resource adapter is embedded
@param acessingApp The name of the app from which the resource is accessed
... | [
"Check",
"accessibility",
"of",
"the",
"resource",
"adapter",
"from",
"the",
"application",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/Utils.java#L289-L318 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.