repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java
RestClient.createHeadConnection
private HttpURLConnection createHeadConnection(String path) throws IOException { HttpURLConnection connection = createHttpURLConnectionToMassive(path); connection.setRequestMethod("HEAD"); return connection; }
java
private HttpURLConnection createHeadConnection(String path) throws IOException { HttpURLConnection connection = createHttpURLConnectionToMassive(path); connection.setRequestMethod("HEAD"); return connection; }
[ "private", "HttpURLConnection", "createHeadConnection", "(", "String", "path", ")", "throws", "IOException", "{", "HttpURLConnection", "connection", "=", "createHttpURLConnectionToMassive", "(", "path", ")", ";", "connection", ".", "setRequestMethod", "(", "\"HEAD\"", "...
Creates a head request connection to the specified path @param path The relative URL path @return An HttpURLConnection to the specified path @throws IOException If there was a problem creating the connection or URL
[ "Creates", "a", "head", "request", "connection", "to", "the", "specified", "path" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java#L149-L153
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java
RestClient.deleteAsset
private void deleteAsset(String id) throws IOException, RequestFailureException { HttpURLConnection connection = createHttpURLConnectionToMassive("/assets/" + id); connection.setRequestMethod("DELETE"); testResponseCode(conn...
java
private void deleteAsset(String id) throws IOException, RequestFailureException { HttpURLConnection connection = createHttpURLConnectionToMassive("/assets/" + id); connection.setRequestMethod("DELETE"); testResponseCode(conn...
[ "private", "void", "deleteAsset", "(", "String", "id", ")", "throws", "IOException", ",", "RequestFailureException", "{", "HttpURLConnection", "connection", "=", "createHttpURLConnectionToMassive", "(", "\"/assets/\"", "+", "id", ")", ";", "connection", ".", "setReque...
Deletes an asset with the given ID. Note, this will not delete any attachments associated with the asset. @see #deleteAssetAndAttachments(String) @param id The ID to delete @return <code>true</code> if the delete is successful @throws IOException @throws RequestFailureException
[ "Deletes", "an", "asset", "with", "the", "given", "ID", ".", "Note", "this", "will", "not", "delete", "any", "attachments", "associated", "with", "the", "asset", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java#L224-L229
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java
RestClient.writeMultiPart
private void writeMultiPart(final String assetId, final AttachmentSummary attSummary, HttpURLConnection connection) throws IOException, BadVersionException, RequestFailureException { final File fileToWrite = attSummary.getFile(); String boundary = "----------------------...
java
private void writeMultiPart(final String assetId, final AttachmentSummary attSummary, HttpURLConnection connection) throws IOException, BadVersionException, RequestFailureException { final File fileToWrite = attSummary.getFile(); String boundary = "----------------------...
[ "private", "void", "writeMultiPart", "(", "final", "String", "assetId", ",", "final", "AttachmentSummary", "attSummary", ",", "HttpURLConnection", "connection", ")", "throws", "IOException", ",", "BadVersionException", ",", "RequestFailureException", "{", "final", "File...
Adds a new attachment to an asset @param assetId @param name @param attach @return @throws IOException @throws RequestFailureException
[ "Adds", "a", "new", "attachment", "to", "an", "asset" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java#L374-L437
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java
RestClient.getAttachment
@Override public InputStream getAttachment(final Asset asset, final Attachment attachment) throws IOException, BadVersionException, RequestFailureException { // accept license for type CONTENT HttpURLConnection connection; if (attachment.getType() == AttachmentType.CONTENT) { co...
java
@Override public InputStream getAttachment(final Asset asset, final Attachment attachment) throws IOException, BadVersionException, RequestFailureException { // accept license for type CONTENT HttpURLConnection connection; if (attachment.getType() == AttachmentType.CONTENT) { co...
[ "@", "Override", "public", "InputStream", "getAttachment", "(", "final", "Asset", "asset", ",", "final", "Attachment", "attachment", ")", "throws", "IOException", ",", "BadVersionException", ",", "RequestFailureException", "{", "// accept license for type CONTENT", "HttpU...
Returns the contents of an attachment @param assetId The ID of the asset owning the attachment @param attachmentId The ID of the attachment @return The input stream for the attachment @throws IOException @throws RequestFailureException
[ "Returns", "the", "contents", "of", "an", "attachment" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java#L466-L490
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java
RestClient.getAttachmentMetaData
public Attachment getAttachmentMetaData(String assetId, String attachmentId) throws IOException, BadVersionException, RequestFailureException { // At the moment can only get all attachments Asset ass = getAsset(assetId); List<Attachment> allAttachments = ass.getAttachments(); for (Attach...
java
public Attachment getAttachmentMetaData(String assetId, String attachmentId) throws IOException, BadVersionException, RequestFailureException { // At the moment can only get all attachments Asset ass = getAsset(assetId); List<Attachment> allAttachments = ass.getAttachments(); for (Attach...
[ "public", "Attachment", "getAttachmentMetaData", "(", "String", "assetId", ",", "String", "attachmentId", ")", "throws", "IOException", ",", "BadVersionException", ",", "RequestFailureException", "{", "// At the moment can only get all attachments", "Asset", "ass", "=", "ge...
Returns the meta data about an attachment @param assetId The ID of the asset owning the attachment @param attachmentId The ID of the attachment @return The attachment meta data @throws IOException @throws RequestFailureException
[ "Returns", "the", "meta", "data", "about", "an", "attachment" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java#L503-L515
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java
RestClient.deleteAttachment
@Override public void deleteAttachment(final String assetId, final String attachmentId) throws IOException, RequestFailureException { HttpURLConnection connection = createHttpURLConnectionToMassive("/assets/" + assetId + "/attachments/"...
java
@Override public void deleteAttachment(final String assetId, final String attachmentId) throws IOException, RequestFailureException { HttpURLConnection connection = createHttpURLConnectionToMassive("/assets/" + assetId + "/attachments/"...
[ "@", "Override", "public", "void", "deleteAttachment", "(", "final", "String", "assetId", ",", "final", "String", "attachmentId", ")", "throws", "IOException", ",", "RequestFailureException", "{", "HttpURLConnection", "connection", "=", "createHttpURLConnectionToMassive",...
Delete an attachment from an asset @param assetId The ID of the asset containing the attachment @param attachmentId The ID of the attachment to delete @return <code>true</code> if the delete was successful @throws IOException @throws RequestFailureException
[ "Delete", "an", "attachment", "from", "an", "asset" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java#L528-L534
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java
RestClient.deleteAssetAndAttachments
@Override public void deleteAssetAndAttachments(final String assetId) throws IOException, RequestFailureException { Asset ass = getUnverifiedAsset(assetId); List<Attachment> attachments = ass.getAttachments(); if (attachments != null) { for (Attachment attachment : attachments) {...
java
@Override public void deleteAssetAndAttachments(final String assetId) throws IOException, RequestFailureException { Asset ass = getUnverifiedAsset(assetId); List<Attachment> attachments = ass.getAttachments(); if (attachments != null) { for (Attachment attachment : attachments) {...
[ "@", "Override", "public", "void", "deleteAssetAndAttachments", "(", "final", "String", "assetId", ")", "throws", "IOException", ",", "RequestFailureException", "{", "Asset", "ass", "=", "getUnverifiedAsset", "(", "assetId", ")", ";", "List", "<", "Attachment", ">...
This will delete an asset and all its attachments @param assetId The id of the asset @return <code>true</code> if the asset and all its attachments are deleted. Note this is not atomic so some attachments may be deleted and <code>false</code> returned. @throws IOException @throws RequestFailureException
[ "This", "will", "delete", "an", "asset", "and", "all", "its", "attachments" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java#L547-L558
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java
RestClient.getAsset
@Override public Asset getAsset(final String assetId) throws IOException, BadVersionException, RequestFailureException { HttpURLConnection connection = createHttpURLConnectionToMassive("/assets/" + assetId); connection.setReques...
java
@Override public Asset getAsset(final String assetId) throws IOException, BadVersionException, RequestFailureException { HttpURLConnection connection = createHttpURLConnectionToMassive("/assets/" + assetId); connection.setReques...
[ "@", "Override", "public", "Asset", "getAsset", "(", "final", "String", "assetId", ")", "throws", "IOException", ",", "BadVersionException", ",", "RequestFailureException", "{", "HttpURLConnection", "connection", "=", "createHttpURLConnectionToMassive", "(", "\"/assets/\"...
Gets a single asset @param assetId The ID of the asset to obtain @return The Asset @throws IOException @throws RequestFailureException
[ "Gets", "a", "single", "asset" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java#L569-L576
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java
RestClient.updateState
@Override public void updateState(final String assetId, final StateAction action) throws IOException, RequestFailureException { StateUpdateAction newState = new StateUpdateAction(action); HttpURLConnection connection = createHttpURLConnectionToMassive("/assets/" ...
java
@Override public void updateState(final String assetId, final StateAction action) throws IOException, RequestFailureException { StateUpdateAction newState = new StateUpdateAction(action); HttpURLConnection connection = createHttpURLConnectionToMassive("/assets/" ...
[ "@", "Override", "public", "void", "updateState", "(", "final", "String", "assetId", ",", "final", "StateAction", "action", ")", "throws", "IOException", ",", "RequestFailureException", "{", "StateUpdateAction", "newState", "=", "new", "StateUpdateAction", "(", "act...
This method will update the state of an object by taking the supplied action. @param assetId The ID of the asset to update @param action The action to take to modify the state @return <code>true</code> if the update was successful (currently always returns <code>true</code> from Massive) @throws IOException @throws Re...
[ "This", "method", "will", "update", "the", "state", "of", "an", "object", "by", "taking", "the", "supplied", "action", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java#L609-L621
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java
RestClient.createURL
private URL createURL(final String urlString) throws MalformedURLException { URL url; try { url = AccessController.doPrivileged(new PrivilegedExceptionAction<URL>() { @Override public URL run() throws MalformedURLException { return new UR...
java
private URL createURL(final String urlString) throws MalformedURLException { URL url; try { url = AccessController.doPrivileged(new PrivilegedExceptionAction<URL>() { @Override public URL run() throws MalformedURLException { return new UR...
[ "private", "URL", "createURL", "(", "final", "String", "urlString", ")", "throws", "MalformedURLException", "{", "URL", "url", ";", "try", "{", "url", "=", "AccessController", ".", "doPrivileged", "(", "new", "PrivilegedExceptionAction", "<", "URL", ">", "(", ...
Create a URL in a doPriv @param urlString @return @throws MalformedURLException
[ "Create", "a", "URL", "in", "a", "doPriv" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java#L662-L678
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java
RestClient.updateAttachment
@Override public Attachment updateAttachment(String assetId, AttachmentSummary summary) throws IOException, BadVersionException, RequestFailureException { // First find the attachment to update Asset ass = getAsset(assetId); List<Attachment> attachments = ass.getAttachments(); if (a...
java
@Override public Attachment updateAttachment(String assetId, AttachmentSummary summary) throws IOException, BadVersionException, RequestFailureException { // First find the attachment to update Asset ass = getAsset(assetId); List<Attachment> attachments = ass.getAttachments(); if (a...
[ "@", "Override", "public", "Attachment", "updateAttachment", "(", "String", "assetId", ",", "AttachmentSummary", "summary", ")", "throws", "IOException", ",", "BadVersionException", ",", "RequestFailureException", "{", "// First find the attachment to update", "Asset", "ass...
This method will update an existing attachment on an asset. Note that Massive currently doesn't support update attachment so this will do a delete and an add. @param assetId The ID of the asset that the attachment is attached to @param name The name of the attachment to update @param file The file to attach @param att...
[ "This", "method", "will", "update", "an", "existing", "attachment", "on", "an", "asset", ".", "Note", "that", "Massive", "currently", "doesn", "t", "support", "update", "attachment", "so", "this", "will", "do", "a", "delete", "and", "an", "add", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java#L774-L789
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java
RestClient.clearInputStream
private void clearInputStream(HttpURLConnection conn) { InputStream is = null; byte[] buffer = new byte[1024]; try { is = conn.getInputStream(); while (is.read(buffer) != -1) { continue; } } catch (IOException e) { // Don't ...
java
private void clearInputStream(HttpURLConnection conn) { InputStream is = null; byte[] buffer = new byte[1024]; try { is = conn.getInputStream(); while (is.read(buffer) != -1) { continue; } } catch (IOException e) { // Don't ...
[ "private", "void", "clearInputStream", "(", "HttpURLConnection", "conn", ")", "{", "InputStream", "is", "=", "null", ";", "byte", "[", "]", "buffer", "=", "new", "byte", "[", "1024", "]", ";", "try", "{", "is", "=", "conn", ".", "getInputStream", "(", ...
Read the input stream from the connection, throw it away and close the connection, swallow all exceptions. @param conn
[ "Read", "the", "input", "stream", "from", "the", "connection", "throw", "it", "away", "and", "close", "the", "connection", "swallow", "all", "exceptions", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java#L967-L986
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java
RestClient.getCharset
public static String getCharset(final String contentType) { // Default to UTF-8 String charset = "UTF-8"; try { // Content type is in the form: // Content-Type: text/html; charset=utf-8 // Where they can be lots of params separated by ; characters ...
java
public static String getCharset(final String contentType) { // Default to UTF-8 String charset = "UTF-8"; try { // Content type is in the form: // Content-Type: text/html; charset=utf-8 // Where they can be lots of params separated by ; characters ...
[ "public", "static", "String", "getCharset", "(", "final", "String", "contentType", ")", "{", "// Default to UTF-8", "String", "charset", "=", "\"UTF-8\"", ";", "try", "{", "// Content type is in the form:", "// Content-Type: text/html; charset=utf-8", "// Where they can be lo...
Utility method to get the charset from a url connection's content type @return The charset name
[ "Utility", "method", "to", "get", "the", "charset", "from", "a", "url", "connection", "s", "content", "type" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java#L993-L1022
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java
RestClient.parseErrorObject
private String parseErrorObject(String errorObject) { if (errorObject == null) { return null; } try { // Just use JsonObject parse directly instead of DataModelSerializer as we only want one attribute InputStream inputStream = new ByteArrayInputStream(errorObj...
java
private String parseErrorObject(String errorObject) { if (errorObject == null) { return null; } try { // Just use JsonObject parse directly instead of DataModelSerializer as we only want one attribute InputStream inputStream = new ByteArrayInputStream(errorObj...
[ "private", "String", "parseErrorObject", "(", "String", "errorObject", ")", "{", "if", "(", "errorObject", "==", "null", ")", "{", "return", "null", ";", "}", "try", "{", "// Just use JsonObject parse directly instead of DataModelSerializer as we only want one attribute", ...
This treats the supplied string as a JSON object and looks for the message attribute inside it. If it is not valid JSON or does not contain a message the original string is returned. @param errorObject @return
[ "This", "treats", "the", "supplied", "string", "as", "a", "JSON", "object", "and", "looks", "for", "the", "message", "attribute", "inside", "it", ".", "If", "it", "is", "not", "valid", "JSON", "or", "does", "not", "contain", "a", "message", "the", "origi...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java#L1031-L1050
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/JSONAssetConverter.java
JSONAssetConverter.writeValue
public static void writeValue(OutputStream stream, Object pojo) throws IOException { DataModelSerializer.serializeAsStream(pojo, stream); }
java
public static void writeValue(OutputStream stream, Object pojo) throws IOException { DataModelSerializer.serializeAsStream(pojo, stream); }
[ "public", "static", "void", "writeValue", "(", "OutputStream", "stream", ",", "Object", "pojo", ")", "throws", "IOException", "{", "DataModelSerializer", ".", "serializeAsStream", "(", "pojo", ",", "stream", ")", ";", "}" ]
Write a JSON representation of the asset to a stream @param stream The stream to write to @param pojo The asset to write @throws IOException
[ "Write", "a", "JSON", "representation", "of", "the", "asset", "to", "a", "stream" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/JSONAssetConverter.java#L36-L38
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/JSONAssetConverter.java
JSONAssetConverter.readValues
public static List<Asset> readValues(InputStream inputStream) throws IOException { return DataModelSerializer.deserializeList(inputStream, Asset.class); }
java
public static List<Asset> readValues(InputStream inputStream) throws IOException { return DataModelSerializer.deserializeList(inputStream, Asset.class); }
[ "public", "static", "List", "<", "Asset", ">", "readValues", "(", "InputStream", "inputStream", ")", "throws", "IOException", "{", "return", "DataModelSerializer", ".", "deserializeList", "(", "inputStream", ",", "Asset", ".", "class", ")", ";", "}" ]
Read a list of assets from an input stream @param inputStream The stream to read from @return The list of assets @throws IOException
[ "Read", "a", "list", "of", "assets", "from", "an", "input", "stream" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/JSONAssetConverter.java#L61-L63
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/JSONAssetConverter.java
JSONAssetConverter.readValue
public static Asset readValue(InputStream inputStream) throws IOException, BadVersionException { return DataModelSerializer.deserializeObject(inputStream, Asset.class); }
java
public static Asset readValue(InputStream inputStream) throws IOException, BadVersionException { return DataModelSerializer.deserializeObject(inputStream, Asset.class); }
[ "public", "static", "Asset", "readValue", "(", "InputStream", "inputStream", ")", "throws", "IOException", ",", "BadVersionException", "{", "return", "DataModelSerializer", ".", "deserializeObject", "(", "inputStream", ",", "Asset", ".", "class", ")", ";", "}" ]
Read a single assets from an input stream @param inputStream The stream to read from @return The list of assets @throws IOException @throws BadVersionException
[ "Read", "a", "single", "assets", "from", "an", "input", "stream" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/JSONAssetConverter.java#L74-L76
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/JSONAssetConverter.java
JSONAssetConverter.readValue
public static <T> T readValue(InputStream inputStream, Class<T> type) throws IOException, BadVersionException { return DataModelSerializer.deserializeObject(inputStream, type); }
java
public static <T> T readValue(InputStream inputStream, Class<T> type) throws IOException, BadVersionException { return DataModelSerializer.deserializeObject(inputStream, type); }
[ "public", "static", "<", "T", ">", "T", "readValue", "(", "InputStream", "inputStream", ",", "Class", "<", "T", ">", "type", ")", "throws", "IOException", ",", "BadVersionException", "{", "return", "DataModelSerializer", ".", "deserializeObject", "(", "inputStre...
Reads in a single object from a JSON input stream @param inputStream The input stream containing the JSON object @param type The type of the object to be read from the stream @return The object @throws IOException
[ "Reads", "in", "a", "single", "object", "from", "a", "JSON", "input", "stream" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/JSONAssetConverter.java#L100-L102
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/JSONAssetConverter.java
JSONAssetConverter.readValues
public static <T> List<T> readValues(InputStream inputStream, Class<T> type) throws IOException { return DataModelSerializer.deserializeList(inputStream, type); }
java
public static <T> List<T> readValues(InputStream inputStream, Class<T> type) throws IOException { return DataModelSerializer.deserializeList(inputStream, type); }
[ "public", "static", "<", "T", ">", "List", "<", "T", ">", "readValues", "(", "InputStream", "inputStream", ",", "Class", "<", "T", ">", "type", ")", "throws", "IOException", "{", "return", "DataModelSerializer", ".", "deserializeList", "(", "inputStream", ",...
Reads in a list of objects from a JSON input stream @param inputStream The input stream containing the JSON array of objects @param type The type of the object in the array to be read from the stream @return The list of objects @throws IOException
[ "Reads", "in", "a", "list", "of", "objects", "from", "a", "JSON", "input", "stream" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/JSONAssetConverter.java#L112-L114
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/util/NameUtil.java
NameUtil.getHomeBeanClassName
public static String getHomeBeanClassName(EnterpriseBean enterpriseBean, boolean isPost11DD) // d114199 { String packageName = null; String homeInterfaceName = getHomeInterfaceName(enterpriseBean); // LIDB2281.24.2 made several changes to code below, to accommodate case // where ne...
java
public static String getHomeBeanClassName(EnterpriseBean enterpriseBean, boolean isPost11DD) // d114199 { String packageName = null; String homeInterfaceName = getHomeInterfaceName(enterpriseBean); // LIDB2281.24.2 made several changes to code below, to accommodate case // where ne...
[ "public", "static", "String", "getHomeBeanClassName", "(", "EnterpriseBean", "enterpriseBean", ",", "boolean", "isPost11DD", ")", "// d114199", "{", "String", "packageName", "=", "null", ";", "String", "homeInterfaceName", "=", "getHomeInterfaceName", "(", "enterpriseBe...
Return the name of the deployed home bean class. Assumption here is the package name of the local and remote interfaces are the same. This method uses the last package name found in either the remote or local interface, if one or the other exist. If neither is found, null is returned. @param enterpriseBean WCCM object...
[ "Return", "the", "name", "of", "the", "deployed", "home", "bean", "class", ".", "Assumption", "here", "is", "the", "package", "name", "of", "the", "local", "and", "remote", "interfaces", "are", "the", "same", ".", "This", "method", "uses", "the", "last", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/util/NameUtil.java#L367-L399
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/util/NameUtil.java
NameUtil.getConcreteBeanClassName
public static String getConcreteBeanClassName(EnterpriseBean enterpriseBean) { String beanClassName = enterpriseBean.getEjbClassName(); String packageName = packageName(beanClassName); String beanName = encodeBeanInterfacesName(enterpriseBean, true, false, false, false); // d147734 ...
java
public static String getConcreteBeanClassName(EnterpriseBean enterpriseBean) { String beanClassName = enterpriseBean.getEjbClassName(); String packageName = packageName(beanClassName); String beanName = encodeBeanInterfacesName(enterpriseBean, true, false, false, false); // d147734 ...
[ "public", "static", "String", "getConcreteBeanClassName", "(", "EnterpriseBean", "enterpriseBean", ")", "{", "String", "beanClassName", "=", "enterpriseBean", ".", "getEjbClassName", "(", ")", ";", "String", "packageName", "=", "packageName", "(", "beanClassName", ")"...
f110762.2
[ "f110762", ".", "2" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/util/NameUtil.java#L408-L425
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/util/NameUtil.java
NameUtil.updateFilenameHashCode
public static final String updateFilenameHashCode(EnterpriseBean enterpriseBean, String oldName) { String newName = null; int len = oldName.length(); int last_ = (len > 9 && (oldName.charAt(len - 9) == '_')) ? len - 9 : -1; // input file name must have a trailing "_" follows by 8 hex...
java
public static final String updateFilenameHashCode(EnterpriseBean enterpriseBean, String oldName) { String newName = null; int len = oldName.length(); int last_ = (len > 9 && (oldName.charAt(len - 9) == '_')) ? len - 9 : -1; // input file name must have a trailing "_" follows by 8 hex...
[ "public", "static", "final", "String", "updateFilenameHashCode", "(", "EnterpriseBean", "enterpriseBean", ",", "String", "oldName", ")", "{", "String", "newName", "=", "null", ";", "int", "len", "=", "oldName", ".", "length", "(", ")", ";", "int", "last_", "...
Attempts to find the new file name originated from input oldName using the the new modified BuzzHash algorithm. This method detects if the oldName contains a valid trailing hashcode and try to compute the new one. If the oldName has no valid hashcode in the input name, null is return. For ease of invocation regardless ...
[ "Attempts", "to", "find", "the", "new", "file", "name", "originated", "from", "input", "oldName", "using", "the", "the", "new", "modified", "BuzzHash", "algorithm", ".", "This", "method", "detects", "if", "the", "oldName", "contains", "a", "valid", "trailing",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/util/NameUtil.java#L746-L759
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/util/NameUtil.java
NameUtil.getWebServiceEndpointProxyClassName
public String getWebServiceEndpointProxyClassName() { StringBuilder result = new StringBuilder(); // Use the package of the EJB implementation. String packageName = packageName(ivBeanClass); if (packageName != null) { result.append(packageName); result.appen...
java
public String getWebServiceEndpointProxyClassName() { StringBuilder result = new StringBuilder(); // Use the package of the EJB implementation. String packageName = packageName(ivBeanClass); if (packageName != null) { result.append(packageName); result.appen...
[ "public", "String", "getWebServiceEndpointProxyClassName", "(", ")", "{", "StringBuilder", "result", "=", "new", "StringBuilder", "(", ")", ";", "// Use the package of the EJB implementation.", "String", "packageName", "=", "packageName", "(", "ivBeanClass", ")", ";", "...
LI3294-35 d497921
[ "LI3294", "-", "35", "d497921" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/util/NameUtil.java#L1560-L1579
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/InternalInputStreamManager.java
InternalInputStreamManager.processMessage
public void processMessage(JsMessage jsMsg) throws SIResourceException { if (tc.isEntryEnabled()) SibTr.entry(tc, "processMessage", new Object[] { jsMsg }); int priority = jsMsg.getPriority().intValue(); Reliability reliability = jsMsg.getReliability(); SIBUuid12 streamID = js...
java
public void processMessage(JsMessage jsMsg) throws SIResourceException { if (tc.isEntryEnabled()) SibTr.entry(tc, "processMessage", new Object[] { jsMsg }); int priority = jsMsg.getPriority().intValue(); Reliability reliability = jsMsg.getReliability(); SIBUuid12 streamID = js...
[ "public", "void", "processMessage", "(", "JsMessage", "jsMsg", ")", "throws", "SIResourceException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"processMessage\"", ",", "new", "Object", "[", "]", "{...
This method creates a Stream if this is the first inbound message which has been sent to remote Mes @param jsMsg @throws SIResourceException @throws SICoreException
[ "This", "method", "creates", "a", "Stream", "if", "this", "is", "the", "first", "inbound", "message", "which", "has", "been", "sent", "to", "remote", "Mes" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/InternalInputStreamManager.java#L106-L132
train
OpenLiberty/open-liberty
dev/com.ibm.ws.request.probes/src/com/ibm/ws/request/probe/RequestProbeIntrospector.java
RequestProbeIntrospector.activeRequestIntropectors
private void activeRequestIntropectors(PrintWriter writer) { writer.println("\n------------------------------------------------------------------------------"); writer.println(" Active Requests"); writer.println("----------------------------------------------------------------...
java
private void activeRequestIntropectors(PrintWriter writer) { writer.println("\n------------------------------------------------------------------------------"); writer.println(" Active Requests"); writer.println("----------------------------------------------------------------...
[ "private", "void", "activeRequestIntropectors", "(", "PrintWriter", "writer", ")", "{", "writer", ".", "println", "(", "\"\\n------------------------------------------------------------------------------\"", ")", ";", "writer", ".", "println", "(", "\" Active Reque...
This method will dump all the active request, thread id and their duration in tabular format. In addition will dump the RequestContext @param writer
[ "This", "method", "will", "dump", "all", "the", "active", "request", "thread", "id", "and", "their", "duration", "in", "tabular", "format", ".", "In", "addition", "will", "dump", "the", "RequestContext" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.request.probes/src/com/ibm/ws/request/probe/RequestProbeIntrospector.java#L85-L128
train
OpenLiberty/open-liberty
dev/com.ibm.ws.request.probes/src/com/ibm/ws/request/probe/RequestProbeIntrospector.java
RequestProbeIntrospector.transformDescriptorIntrospectors
private void transformDescriptorIntrospectors(PrintWriter writer) { Map<String, RequestProbeTransformDescriptor> registeredTransformDescriptors = RequestProbeBCIManagerImpl.getRequestProbeTransformDescriptors(); List<String> transformDescriptorRefs = new ArrayList<String>() {{add("Transform Descr...
java
private void transformDescriptorIntrospectors(PrintWriter writer) { Map<String, RequestProbeTransformDescriptor> registeredTransformDescriptors = RequestProbeBCIManagerImpl.getRequestProbeTransformDescriptors(); List<String> transformDescriptorRefs = new ArrayList<String>() {{add("Transform Descr...
[ "private", "void", "transformDescriptorIntrospectors", "(", "PrintWriter", "writer", ")", "{", "Map", "<", "String", ",", "RequestProbeTransformDescriptor", ">", "registeredTransformDescriptors", "=", "RequestProbeBCIManagerImpl", ".", "getRequestProbeTransformDescriptors", "("...
This method will dump all registered transform descriptors. It includes className, methodName and description @param writer
[ "This", "method", "will", "dump", "all", "registered", "transform", "descriptors", ".", "It", "includes", "className", "methodName", "and", "description" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.request.probes/src/com/ibm/ws/request/probe/RequestProbeIntrospector.java#L134-L172
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/ProbeClassFileTransformer.java
ProbeClassFileTransformer.instrumentWithProbes
public void instrumentWithProbes(Collection<Class<?>> classes) { for (Class<?> clazz : classes) { try { instrumentation.retransformClasses(clazz); } catch (Throwable t) { } } }
java
public void instrumentWithProbes(Collection<Class<?>> classes) { for (Class<?> clazz : classes) { try { instrumentation.retransformClasses(clazz); } catch (Throwable t) { } } }
[ "public", "void", "instrumentWithProbes", "(", "Collection", "<", "Class", "<", "?", ">", ">", "classes", ")", "{", "for", "(", "Class", "<", "?", ">", "clazz", ":", "classes", ")", "{", "try", "{", "instrumentation", ".", "retransformClasses", "(", "cla...
Instrument the provided classes with the appropriate probes. @param classes target classes to process
[ "Instrument", "the", "provided", "classes", "with", "the", "appropriate", "probes", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/ProbeClassFileTransformer.java#L88-L95
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageHandleFactoryImpl.java
JsMessageHandleFactoryImpl.createJsMessageHandle
public final JsMessageHandle createJsMessageHandle(SIBUuid8 uuid ,long value ) throws NullPointerException { if (uuid == null) { throw new NullPointe...
java
public final JsMessageHandle createJsMessageHandle(SIBUuid8 uuid ,long value ) throws NullPointerException { if (uuid == null) { throw new NullPointe...
[ "public", "final", "JsMessageHandle", "createJsMessageHandle", "(", "SIBUuid8", "uuid", ",", "long", "value", ")", "throws", "NullPointerException", "{", "if", "(", "uuid", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", "\"uuid\"", ")", ";"...
Create a new JsMessageHandle to represent an SIBusMessage. @param destinationName The name of the SIBus Destination @param localOnly Indicates that the Destination should be localized to the local Messaging Engine. @return JsMessageHandle The new JsMessageHandle. @exception NullPointerException Thrown if eit...
[ "Create", "a", "new", "JsMessageHandle", "to", "represent", "an", "SIBusMessage", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageHandleFactoryImpl.java#L47-L56
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanO.java
BeanO.getCallerPrincipal
@Override public Principal getCallerPrincipal() { EJBSecurityCollaborator<?> securityCollaborator = container.ivSecurityCollaborator; if (securityCollaborator == null) { return NullSecurityCollaborator.UNAUTHENTICATED; } return getCallerPrincipal(securityColl...
java
@Override public Principal getCallerPrincipal() { EJBSecurityCollaborator<?> securityCollaborator = container.ivSecurityCollaborator; if (securityCollaborator == null) { return NullSecurityCollaborator.UNAUTHENTICATED; } return getCallerPrincipal(securityColl...
[ "@", "Override", "public", "Principal", "getCallerPrincipal", "(", ")", "{", "EJBSecurityCollaborator", "<", "?", ">", "securityCollaborator", "=", "container", ".", "ivSecurityCollaborator", ";", "if", "(", "securityCollaborator", "==", "null", ")", "{", "return", ...
Not implemented yet
[ "Not", "implemented", "yet" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanO.java#L701-L711
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanO.java
BeanO.getHandleList
HandleList getHandleList(boolean create) // d662032 { if (connectionHandleList == null && create) { connectionHandleList = new HandleList(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getHandleList: created " + connectionHan...
java
HandleList getHandleList(boolean create) // d662032 { if (connectionHandleList == null && create) { connectionHandleList = new HandleList(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getHandleList: created " + connectionHan...
[ "HandleList", "getHandleList", "(", "boolean", "create", ")", "// d662032", "{", "if", "(", "connectionHandleList", "==", "null", "&&", "create", ")", "{", "connectionHandleList", "=", "new", "HandleList", "(", ")", ";", "if", "(", "TraceComponent", ".", "isAn...
Gets the handle list associated with this bean, optionally creating one if the bean does not have a handle list yet. @param create true if a handle list should be created if the bean does not already have a handle list
[ "Gets", "the", "handle", "list", "associated", "with", "this", "bean", "optionally", "creating", "one", "if", "the", "bean", "does", "not", "have", "a", "handle", "list", "yet", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanO.java#L1764-L1774
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanO.java
BeanO.reAssociateHandleList
HandleListInterface reAssociateHandleList() // d662032 throws CSIException { HandleListInterface hl; if (connectionHandleList == null) { hl = HandleListProxy.INSTANCE; } else { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled(...
java
HandleListInterface reAssociateHandleList() // d662032 throws CSIException { HandleListInterface hl; if (connectionHandleList == null) { hl = HandleListProxy.INSTANCE; } else { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled(...
[ "HandleListInterface", "reAssociateHandleList", "(", ")", "// d662032", "throws", "CSIException", "{", "HandleListInterface", "hl", ";", "if", "(", "connectionHandleList", "==", "null", ")", "{", "hl", "=", "HandleListProxy", ".", "INSTANCE", ";", "}", "else", "{"...
Reassociates handles in the handle list associated with this bean, and returns a handle list to be pushed onto the thread handle list stack. @return the handle list to push onto the thread stack
[ "Reassociates", "handles", "in", "the", "handle", "list", "associated", "with", "this", "bean", "and", "returns", "a", "handle", "list", "to", "be", "pushed", "onto", "the", "thread", "handle", "list", "stack", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanO.java#L1782-L1807
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanO.java
BeanO.parkHandleList
void parkHandleList() // d662032 { if (connectionHandleList != null) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isDebugEnabled()) Tr.debug(tc, "parkHandleList: " + connectionHandleList); try {...
java
void parkHandleList() // d662032 { if (connectionHandleList != null) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isDebugEnabled()) Tr.debug(tc, "parkHandleList: " + connectionHandleList); try {...
[ "void", "parkHandleList", "(", ")", "// d662032", "{", "if", "(", "connectionHandleList", "!=", "null", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isD...
Parks handles in the handle list associated with this bean.
[ "Parks", "handles", "in", "the", "handle", "list", "associated", "with", "this", "bean", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanO.java#L1812-L1829
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanO.java
BeanO.destroyHandleList
protected final void destroyHandleList() // d662032 { if (connectionHandleList != null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "destroyHandleList: destroying " + connectionHandleList); connectionHandleList.componentDest...
java
protected final void destroyHandleList() // d662032 { if (connectionHandleList != null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "destroyHandleList: destroying " + connectionHandleList); connectionHandleList.componentDest...
[ "protected", "final", "void", "destroyHandleList", "(", ")", "// d662032", "{", "if", "(", "connectionHandleList", "!=", "null", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "T...
Destroy the handle list associated with this bean if necessary.
[ "Destroy", "the", "handle", "list", "associated", "with", "this", "bean", "if", "necessary", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanO.java#L1834-L1843
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanO.java
BeanO.callDispatchEventListeners
protected BeanOCallDispatchToken callDispatchEventListeners (int dispatchEventCode, BeanOCallDispatchToken token) { DispatchEventListenerManager dispatchEventListenerManager = container.ivDispatchEventListenerManager; // d646413.2 DispatchEventListenerCookie[...
java
protected BeanOCallDispatchToken callDispatchEventListeners (int dispatchEventCode, BeanOCallDispatchToken token) { DispatchEventListenerManager dispatchEventListenerManager = container.ivDispatchEventListenerManager; // d646413.2 DispatchEventListenerCookie[...
[ "protected", "BeanOCallDispatchToken", "callDispatchEventListeners", "(", "int", "dispatchEventCode", ",", "BeanOCallDispatchToken", "token", ")", "{", "DispatchEventListenerManager", "dispatchEventListenerManager", "=", "container", ".", "ivDispatchEventListenerManager", ";", "/...
LIDB2775-23.1
[ "LIDB2775", "-", "23", ".", "1" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanO.java#L1869-L1958
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanO.java
BeanO.createCalendarTimer
@Override public Timer createCalendarTimer(ScheduleExpression schedule, TimerConfig timerConfig) { Serializable info = timerConfig == null ? null : timerConfig.getInfo(); boolean persistent = timerConfig == null || timerConfig.isPersistent(); boolean isTraceOn = TraceComponent.isAnyTrac...
java
@Override public Timer createCalendarTimer(ScheduleExpression schedule, TimerConfig timerConfig) { Serializable info = timerConfig == null ? null : timerConfig.getInfo(); boolean persistent = timerConfig == null || timerConfig.isPersistent(); boolean isTraceOn = TraceComponent.isAnyTrac...
[ "@", "Override", "public", "Timer", "createCalendarTimer", "(", "ScheduleExpression", "schedule", ",", "TimerConfig", "timerConfig", ")", "{", "Serializable", "info", "=", "timerConfig", "==", "null", "?", "null", ":", "timerConfig", ".", "getInfo", "(", ")", ";...
F7437591.codRev
[ "F7437591", ".", "codRev" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanO.java#L2040-L2091
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageHandleRestorerImpl.java
JsMessageHandleRestorerImpl.restoreFromString
public SIMessageHandle restoreFromString(String data) throws IllegalArgumentException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "restoreFromString"); if ((data == null) || data.equals("")) { String badValueType; if (data==null) {badValueType = "NUL...
java
public SIMessageHandle restoreFromString(String data) throws IllegalArgumentException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "restoreFromString"); if ((data == null) || data.equals("")) { String badValueType; if (data==null) {badValueType = "NUL...
[ "public", "SIMessageHandle", "restoreFromString", "(", "String", "data", ")", "throws", "IllegalArgumentException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "...
Restore a JsMessageHandle from a String. @param data The String containing the flattened JsMessageHandle. @return SIMessageHandle The restored MessageHandle (the object returned is guaranteed to actually be a JsMessageHandle). @exception IllegalArgumentException Thrown if the parameter is null or contai...
[ "Restore", "a", "JsMessageHandle", "from", "a", "String", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageHandleRestorerImpl.java#L170-L194
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/core/ConvertDelegateHandler.java
ConvertDelegateHandler.createConverter
protected Converter createConverter(FaceletContext ctx) throws FacesException, ELException, FaceletException { return ctx.getFacesContext().getApplication().createConverter(this.getConverterId(ctx)); }
java
protected Converter createConverter(FaceletContext ctx) throws FacesException, ELException, FaceletException { return ctx.getFacesContext().getApplication().createConverter(this.getConverterId(ctx)); }
[ "protected", "Converter", "createConverter", "(", "FaceletContext", "ctx", ")", "throws", "FacesException", ",", "ELException", ",", "FaceletException", "{", "return", "ctx", ".", "getFacesContext", "(", ")", ".", "getApplication", "(", ")", ".", "createConverter", ...
Uses the specified "converterId" to pull an instance from the Application @see javax.faces.application.Application#createComponent(java.lang.String) @see org.apache.myfaces.view.facelets.tag.jsf.ConverterHandler#createConverter(javax.faces.view.facelets.FaceletContext)
[ "Uses", "the", "specified", "converterId", "to", "pull", "an", "instance", "from", "the", "Application" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/core/ConvertDelegateHandler.java#L65-L68
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/JmsBodyType.java
JmsBodyType.getBodyType
public static JmsBodyType getBodyType(String format) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getBodyType"); JmsBodyType result = null; if (format.equals(SIApiConstants.JMS_FORMAT_BYTES)) result = BYTES; else if (format.equals(SIApiConstants.JMS_FORMAT_T...
java
public static JmsBodyType getBodyType(String format) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getBodyType"); JmsBodyType result = null; if (format.equals(SIApiConstants.JMS_FORMAT_BYTES)) result = BYTES; else if (format.equals(SIApiConstants.JMS_FORMAT_T...
[ "public", "static", "JmsBodyType", "getBodyType", "(", "String", "format", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getBodyType\""...
Return the appropriate JMSBodyType for a specific format string @param format A String corresponding to the SDO format of a JMS Message @return JmsBodyType The JmsBodyType singleton which maps to the given format string
[ "Return", "the", "appropriate", "JMSBodyType", "for", "a", "specific", "format", "string" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/JmsBodyType.java#L84-L103
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/JmsBodyType.java
JmsBodyType.getJmsBodyType
public final static JmsBodyType getJmsBodyType(Byte aValue) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc,"Value = " + aValue); return set[aValue.intValue()]; }
java
public final static JmsBodyType getJmsBodyType(Byte aValue) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc,"Value = " + aValue); return set[aValue.intValue()]; }
[ "public", "final", "static", "JmsBodyType", "getJmsBodyType", "(", "Byte", "aValue", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "SibTr", ".", "debug", "(", "tc", ",", "\"Va...
Returns the corresponding JmsBodyType for a given Byte. This method should NOT be called by any code outside the TEXT component. It is only public so that it can be accessed by sub-packages. @param aValue The Byte for which an JmsBodyType is required. @return The corresponding JmsBodyType
[ "Returns", "the", "corresponding", "JmsBodyType", "for", "a", "given", "Byte", ".", "This", "method", "should", "NOT", "be", "called", "by", "any", "code", "outside", "the", "TEXT", "component", ".", "It", "is", "only", "public", "so", "that", "it", "can",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/JmsBodyType.java#L114-L117
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/MCWrapper.java
MCWrapper.delistRRSXAResource
final void delistRRSXAResource(XAResource xaResource) throws Exception { RRSXAResourceFactory xaFactory = (RRSXAResourceFactory) pm.connectorSvc.rrsXAResFactorySvcRef.getService(); // Make sure that the bundle is active. if (xaFactory == null) { throw new IllegalStateException("Nati...
java
final void delistRRSXAResource(XAResource xaResource) throws Exception { RRSXAResourceFactory xaFactory = (RRSXAResourceFactory) pm.connectorSvc.rrsXAResFactorySvcRef.getService(); // Make sure that the bundle is active. if (xaFactory == null) { throw new IllegalStateException("Nati...
[ "final", "void", "delistRRSXAResource", "(", "XAResource", "xaResource", ")", "throws", "Exception", "{", "RRSXAResourceFactory", "xaFactory", "=", "(", "RRSXAResourceFactory", ")", "pm", ".", "connectorSvc", ".", "rrsXAResFactorySvcRef", ".", "getService", "(", ")", ...
Delists a RRS XA resource information with the transaction manager. @param xaResource The XA resource to delist. @throws Exception if an error occurred during the enlistment process.
[ "Delists", "a", "RRS", "XA", "resource", "information", "with", "the", "transaction", "manager", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/MCWrapper.java#L441-L461
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/MCWrapper.java
MCWrapper.enlistRRSXAResource
final XAResource enlistRRSXAResource(int recoveryId, int branchCoupling) throws Exception { RRSXAResourceFactory xaFactory = (RRSXAResourceFactory) pm.connectorSvc.rrsXAResFactorySvcRef.getService(); // Make sure that the bundle is active. if (xaFactory == null) { throw new IllegalS...
java
final XAResource enlistRRSXAResource(int recoveryId, int branchCoupling) throws Exception { RRSXAResourceFactory xaFactory = (RRSXAResourceFactory) pm.connectorSvc.rrsXAResFactorySvcRef.getService(); // Make sure that the bundle is active. if (xaFactory == null) { throw new IllegalS...
[ "final", "XAResource", "enlistRRSXAResource", "(", "int", "recoveryId", ",", "int", "branchCoupling", ")", "throws", "Exception", "{", "RRSXAResourceFactory", "xaFactory", "=", "(", "RRSXAResourceFactory", ")", "pm", ".", "connectorSvc", ".", "rrsXAResFactorySvcRef", ...
Enlists a RRS XA resource with the transaction manager. @param recoveryId The recovery id representing the registration of the resource with the transaction manager. @param branchCoupling The resource's branch coupling support indicator. @return The XA resource enlisted with the transaction manager. @throws Exce...
[ "Enlists", "a", "RRS", "XA", "resource", "with", "the", "transaction", "manager", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/MCWrapper.java#L474-L508
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/MCWrapper.java
MCWrapper.getConnectionManager
public ConnectionManager getConnectionManager() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(this, tc, "Connection manager is " + cm + " for managed connection " + this); if (cm == null && pm != null) { Tr.debug(this, tc, "Connection pool ...
java
public ConnectionManager getConnectionManager() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(this, tc, "Connection manager is " + cm + " for managed connection " + this); if (cm == null && pm != null) { Tr.debug(this, tc, "Connection pool ...
[ "public", "ConnectionManager", "getConnectionManager", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "this", ",", "tc", ",", "\"Connection man...
Get the reference to the Current CM instance associated with this MCWrapper.
[ "Get", "the", "reference", "to", "the", "Current", "CM", "instance", "associated", "with", "this", "MCWrapper", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/MCWrapper.java#L787-L801
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/MCWrapper.java
MCWrapper.transactionComplete
protected void transactionComplete() { if (state != STATE_TRAN_WRAPPER_INUSE) { IllegalStateException e = new IllegalStateException("transactionComplete: illegal state exception. State = " + getStateString() + " MCW = " + mcWrapperObje...
java
protected void transactionComplete() { if (state != STATE_TRAN_WRAPPER_INUSE) { IllegalStateException e = new IllegalStateException("transactionComplete: illegal state exception. State = " + getStateString() + " MCW = " + mcWrapperObje...
[ "protected", "void", "transactionComplete", "(", ")", "{", "if", "(", "state", "!=", "STATE_TRAN_WRAPPER_INUSE", ")", "{", "IllegalStateException", "e", "=", "new", "IllegalStateException", "(", "\"transactionComplete: illegal state exception. State = \"", "+", "getStateStr...
Called by the TranWrapper during afterCompletion.
[ "Called", "by", "the", "TranWrapper", "during", "afterCompletion", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/MCWrapper.java#L1257-L1268
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/MCWrapper.java
MCWrapper.involvedInTransaction
protected boolean involvedInTransaction() { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); if (state == STATE_TRAN_WRAPPER_INUSE) { if (isTracingEnabled && tc.isDebugEnabled()) { Tr.debug(this, tc, "involvedInTransaction: true"); } ...
java
protected boolean involvedInTransaction() { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); if (state == STATE_TRAN_WRAPPER_INUSE) { if (isTracingEnabled && tc.isDebugEnabled()) { Tr.debug(this, tc, "involvedInTransaction: true"); } ...
[ "protected", "boolean", "involvedInTransaction", "(", ")", "{", "final", "boolean", "isTracingEnabled", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "state", "==", "STATE_TRAN_WRAPPER_INUSE", ")", "{", "if", "(", "isTracingEnabled", ...
Called by the Connection manager during reassociate to check if an unshared connection is currently involved in a transaction.
[ "Called", "by", "the", "Connection", "manager", "during", "reassociate", "to", "check", "if", "an", "unshared", "connection", "is", "currently", "involved", "in", "a", "transaction", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/MCWrapper.java#L1279-L1299
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/MCWrapper.java
MCWrapper.hasFatalErrorNotificationOccurred
@Override public boolean hasFatalErrorNotificationOccurred(int fatalErrorNotificationTime) { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); /* * I have changed this from using a long based on a currentTimeMillis * to an int value. * * By ...
java
@Override public boolean hasFatalErrorNotificationOccurred(int fatalErrorNotificationTime) { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); /* * I have changed this from using a long based on a currentTimeMillis * to an int value. * * By ...
[ "@", "Override", "public", "boolean", "hasFatalErrorNotificationOccurred", "(", "int", "fatalErrorNotificationTime", ")", "{", "final", "boolean", "isTracingEnabled", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "/*\n * I have changed this from us...
Fatal Error Notification Occurred When a connection is created it will be assigned a free pools fatal error notification value + 1. When a fatal error occurs, the free pools fatal error notification value is incremented by 1. Any connection with a fatal error notification value less than or = to free pools fatal error...
[ "Fatal", "Error", "Notification", "Occurred" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/MCWrapper.java#L2367-L2391
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/MCWrapper.java
MCWrapper.setDestroyConnectionOnReturn
@Override public void setDestroyConnectionOnReturn() { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); if (isTracingEnabled && tc.isEntryEnabled()) { Tr.entry(this, tc, "setDestroyConnectionOnReturn"); } --fatalErrorValue; if (isTracingEn...
java
@Override public void setDestroyConnectionOnReturn() { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); if (isTracingEnabled && tc.isEntryEnabled()) { Tr.entry(this, tc, "setDestroyConnectionOnReturn"); } --fatalErrorValue; if (isTracingEn...
[ "@", "Override", "public", "void", "setDestroyConnectionOnReturn", "(", ")", "{", "final", "boolean", "isTracingEnabled", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTracingEnabled", "&&", "tc", ".", "isEntryEnabled", "(", ")", ...
This method is used for marking a connection to destroy. The connection state does not matter. The connection still can be useable. When the connection is returned to the free pool, this connection will be cleaned up and destroyed. This method may be called when total connection count is being decreased.
[ "This", "method", "is", "used", "for", "marking", "a", "connection", "to", "destroy", ".", "The", "connection", "state", "does", "not", "matter", ".", "The", "connection", "still", "can", "be", "useable", ".", "When", "the", "connection", "is", "returned", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/MCWrapper.java#L2931-L2945
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/MCWrapper.java
MCWrapper.resetCoordinator
public void resetCoordinator() { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); if (isTracingEnabled && tc.isDebugEnabled()) { Tr.debug(this, tc, "Resetting uow coordinator to null"); } uowCoord = null; }
java
public void resetCoordinator() { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); if (isTracingEnabled && tc.isDebugEnabled()) { Tr.debug(this, tc, "Resetting uow coordinator to null"); } uowCoord = null; }
[ "public", "void", "resetCoordinator", "(", ")", "{", "final", "boolean", "isTracingEnabled", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTracingEnabled", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "d...
Reset the coordinator value to null
[ "Reset", "the", "coordinator", "value", "to", "null" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/MCWrapper.java#L2970-L2980
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/MCWrapper.java
MCWrapper.markTransactionError
public void markTransactionError() { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); if (isTracingEnabled && tc.isDebugEnabled()) { Tr.debug(this, tc, "TransactionError occurred on MCWrapper:" + toString()); } _transactionErrorOccurred = true; }
java
public void markTransactionError() { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); if (isTracingEnabled && tc.isDebugEnabled()) { Tr.debug(this, tc, "TransactionError occurred on MCWrapper:" + toString()); } _transactionErrorOccurred = true; }
[ "public", "void", "markTransactionError", "(", ")", "{", "final", "boolean", "isTracingEnabled", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTracingEnabled", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", ...
Indicates that an error has occurred from the transaction service. At which point we know that the MCWrapper is no longer usable and will be destroyed when the MCWrapper is returned to the pool. If the pool needs to be purged as a result of the transaction error, we rely on the ResourceAdapter to fire a ConnectionErro...
[ "Indicates", "that", "an", "error", "has", "occurred", "from", "the", "transaction", "service", ".", "At", "which", "point", "we", "know", "that", "the", "MCWrapper", "is", "no", "longer", "usable", "and", "will", "be", "destroyed", "when", "the", "MCWrapper...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/MCWrapper.java#L3086-L3096
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/MCWrapper.java
MCWrapper.clearHandleList
public void clearHandleList() { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); if (isTracingEnabled && tc.isDebugEnabled()) { Tr.debug(this, tc, "Clear the McWrapper handlelist for the following MCWrapper: " + this); } // since we know we are only ...
java
public void clearHandleList() { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); if (isTracingEnabled && tc.isDebugEnabled()) { Tr.debug(this, tc, "Clear the McWrapper handlelist for the following MCWrapper: " + this); } // since we know we are only ...
[ "public", "void", "clearHandleList", "(", ")", "{", "final", "boolean", "isTracingEnabled", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTracingEnabled", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "de...
clear the handle list
[ "clear", "the", "handle", "list" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/MCWrapper.java#L3182-L3200
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/MCWrapper.java
MCWrapper.abortMC
public boolean abortMC() { boolean trace = TraceComponent.isAnyTracingEnabled(); if (!(mc instanceof WSManagedConnection)) { if (trace && tc.isDebugEnabled()) Tr.debug(tc, "abortMC", "Skipping MC abort because MC is not an instance of WSManagedConnection"); return...
java
public boolean abortMC() { boolean trace = TraceComponent.isAnyTracingEnabled(); if (!(mc instanceof WSManagedConnection)) { if (trace && tc.isDebugEnabled()) Tr.debug(tc, "abortMC", "Skipping MC abort because MC is not an instance of WSManagedConnection"); return...
[ "public", "boolean", "abortMC", "(", ")", "{", "boolean", "trace", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "!", "(", "mc", "instanceof", "WSManagedConnection", ")", ")", "{", "if", "(", "trace", "&&", "tc", ".", "isDe...
Abort the manage connection associated with this MCWrapper. @return whether or not the connection was successfully aborted.
[ "Abort", "the", "manage", "connection", "associated", "with", "this", "MCWrapper", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/MCWrapper.java#L3255-L3284
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/util/cache/Cache.java
Cache.getOrCreateBucketForKey
private Bucket getOrCreateBucketForKey(Object key) { int index = getBucketIndexForKey(key); // Double-checked locking. Safe since buckets do not initialize any state // until they are synchronized by the caller. d739870 Bucket bucket = buckets[index]; i...
java
private Bucket getOrCreateBucketForKey(Object key) { int index = getBucketIndexForKey(key); // Double-checked locking. Safe since buckets do not initialize any state // until they are synchronized by the caller. d739870 Bucket bucket = buckets[index]; i...
[ "private", "Bucket", "getOrCreateBucketForKey", "(", "Object", "key", ")", "{", "int", "index", "=", "getBucketIndexForKey", "(", "key", ")", ";", "// Double-checked locking. Safe since buckets do not initialize any state", "// until they are synchronized by the caller. ...
Returns the bucket which the specified key hashes to, or creates it if it does not exist. @param key key for the object to get a bucket for. @return the bucket which the specified key hashes to.
[ "Returns", "the", "bucket", "which", "the", "specified", "key", "hashes", "to", "or", "creates", "it", "if", "it", "does", "not", "exist", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/util/cache/Cache.java#L1032-L1056
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.getProp
private String getProp(Map<Object, Object> props, String key) { String value = (String) props.get(key); if (null == value) { value = (String) props.get(key.toLowerCase()); } return (null != value) ? value.trim() : null; }
java
private String getProp(Map<Object, Object> props, String key) { String value = (String) props.get(key); if (null == value) { value = (String) props.get(key.toLowerCase()); } return (null != value) ? value.trim() : null; }
[ "private", "String", "getProp", "(", "Map", "<", "Object", ",", "Object", ">", "props", ",", "String", "key", ")", "{", "String", "value", "=", "(", "String", ")", "props", ".", "get", "(", "key", ")", ";", "if", "(", "null", "==", "value", ")", ...
Access the property that may or may not exist for the given key. @param props @param key @return String
[ "Access", "the", "property", "that", "may", "or", "may", "not", "exist", "for", "the", "given", "key", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L462-L468
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parsePersistence
private void parsePersistence(Map<Object, Object> props) { parseKeepAliveEnabled(props); if (isKeepAliveEnabled()) { parseMaxPersist(props); } }
java
private void parsePersistence(Map<Object, Object> props) { parseKeepAliveEnabled(props); if (isKeepAliveEnabled()) { parseMaxPersist(props); } }
[ "private", "void", "parsePersistence", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "parseKeepAliveEnabled", "(", "props", ")", ";", "if", "(", "isKeepAliveEnabled", "(", ")", ")", "{", "parseMaxPersist", "(", "props", ")", ";", "}", ...
Method to handle parsing all of the persistence related configuration values. @param props
[ "Method", "to", "handle", "parsing", "all", "of", "the", "persistence", "related", "configuration", "values", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L476-L481
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseMaxPersist
private void parseMaxPersist(Map<Object, Object> props) { // -1 means unlimited // 0..1 means 1 // X means X Object value = props.get(HttpConfigConstants.PROPNAME_MAX_PERSIST); if (null != value) { try { this.maxPersistRequest = minLimit(convertInteger...
java
private void parseMaxPersist(Map<Object, Object> props) { // -1 means unlimited // 0..1 means 1 // X means X Object value = props.get(HttpConfigConstants.PROPNAME_MAX_PERSIST); if (null != value) { try { this.maxPersistRequest = minLimit(convertInteger...
[ "private", "void", "parseMaxPersist", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "// -1 means unlimited", "// 0..1 means 1", "// X means X", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_MAX_PERSIST", ...
Check the input configuration for the maximum allowed requests per socket setting. @param props
[ "Check", "the", "input", "configuration", "for", "the", "maximum", "allowed", "requests", "per", "socket", "setting", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L508-L526
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseOutgoingVersion
private void parseOutgoingVersion(Map<Object, Object> props) { String value = getProp(props, HttpConfigConstants.PROPNAME_OUTGOING_VERSION); if ("1.0".equals(value)) { this.outgoingHttpVersion = VersionValues.V10; if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {...
java
private void parseOutgoingVersion(Map<Object, Object> props) { String value = getProp(props, HttpConfigConstants.PROPNAME_OUTGOING_VERSION); if ("1.0".equals(value)) { this.outgoingHttpVersion = VersionValues.V10; if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {...
[ "private", "void", "parseOutgoingVersion", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "String", "value", "=", "getProp", "(", "props", ",", "HttpConfigConstants", ".", "PROPNAME_OUTGOING_VERSION", ")", ";", "if", "(", "\"1.0\"", ".", "...
Check the input configuration for the default outgoing HTTP version setting. @param props
[ "Check", "the", "input", "configuration", "for", "the", "default", "outgoing", "HTTP", "version", "setting", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L534-L542
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseBufferType
private void parseBufferType(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_DIRECT_BUFF); if (null != value) { this.bDirectBuffers = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.ev...
java
private void parseBufferType(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_DIRECT_BUFF); if (null != value) { this.bDirectBuffers = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.ev...
[ "private", "void", "parseBufferType", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_DIRECT_BUFF", ")", ";", "if", "(", "null", "!=", "value", ")", ...
Check the input configuration for the type of ByteBuffer to use, direct or indirect. @param props
[ "Check", "the", "input", "configuration", "for", "the", "type", "of", "ByteBuffer", "to", "use", "direct", "or", "indirect", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L550-L558
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseOutgoingBufferSize
private void parseOutgoingBufferSize(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_OUTGOING_HDR_BUFFSIZE); if (null != value) { try { this.outgoingHdrBuffSize = rangeLimit(convertInteger(value), HttpConfigConstants.MIN_BUFFER_SIZE, HttpCon...
java
private void parseOutgoingBufferSize(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_OUTGOING_HDR_BUFFSIZE); if (null != value) { try { this.outgoingHdrBuffSize = rangeLimit(convertInteger(value), HttpConfigConstants.MIN_BUFFER_SIZE, HttpCon...
[ "private", "void", "parseOutgoingBufferSize", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_OUTGOING_HDR_BUFFSIZE", ")", ";", "if", "(", "null", "!=", ...
Check the input configuration for the maximum buffer size allowed for marshalling headers outbound. @param props
[ "Check", "the", "input", "configuration", "for", "the", "maximum", "buffer", "size", "allowed", "for", "marshalling", "headers", "outbound", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L566-L581
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseIncomingHdrBufferSize
private void parseIncomingHdrBufferSize(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_INCOMING_HDR_BUFFSIZE); if (null != value) { try { this.incomingHdrBuffSize = rangeLimit(convertInteger(value), HttpConfigConstants.MIN_BUFFER_SIZE, Http...
java
private void parseIncomingHdrBufferSize(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_INCOMING_HDR_BUFFSIZE); if (null != value) { try { this.incomingHdrBuffSize = rangeLimit(convertInteger(value), HttpConfigConstants.MIN_BUFFER_SIZE, Http...
[ "private", "void", "parseIncomingHdrBufferSize", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_INCOMING_HDR_BUFFSIZE", ")", ";", "if", "(", "null", "!="...
Check the input configuration for the buffer size to use when parsing the incoming headers. @param props
[ "Check", "the", "input", "configuration", "for", "the", "buffer", "size", "to", "use", "when", "parsing", "the", "incoming", "headers", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L589-L604
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseIncomingBodyBufferSize
private void parseIncomingBodyBufferSize(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_INCOMING_BODY_BUFFSIZE); if (null != value) { try { this.incomingBodyBuffSize = rangeLimit(convertInteger(value), HttpConfigConstants.MIN_BUFFER_SIZE, H...
java
private void parseIncomingBodyBufferSize(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_INCOMING_BODY_BUFFSIZE); if (null != value) { try { this.incomingBodyBuffSize = rangeLimit(convertInteger(value), HttpConfigConstants.MIN_BUFFER_SIZE, H...
[ "private", "void", "parseIncomingBodyBufferSize", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_INCOMING_BODY_BUFFSIZE", ")", ";", "if", "(", "null", "!...
Check the input configuration for the buffer size to use when reading the incoming body. @param props
[ "Check", "the", "input", "configuration", "for", "the", "buffer", "size", "to", "use", "when", "reading", "the", "incoming", "body", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L612-L627
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parsePersistTimeout
private void parsePersistTimeout(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_PERSIST_TIMEOUT); if (null != value) { try { this.persistTimeout = TIMEOUT_MODIFIER * minLimit(convertInteger(value), HttpConfigConstants.MIN_TIMEOUT); ...
java
private void parsePersistTimeout(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_PERSIST_TIMEOUT); if (null != value) { try { this.persistTimeout = TIMEOUT_MODIFIER * minLimit(convertInteger(value), HttpConfigConstants.MIN_TIMEOUT); ...
[ "private", "void", "parsePersistTimeout", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_PERSIST_TIMEOUT", ")", ";", "if", "(", "null", "!=", "value", ...
Check the input configuration for the timeout to use in between persistent requests. @param props
[ "Check", "the", "input", "configuration", "for", "the", "timeout", "to", "use", "in", "between", "persistent", "requests", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L635-L650
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseReadTimeout
private void parseReadTimeout(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_READ_TIMEOUT); if (null != value) { try { this.readTimeout = TIMEOUT_MODIFIER * minLimit(convertInteger(value), HttpConfigConstants.MIN_TIMEOUT); i...
java
private void parseReadTimeout(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_READ_TIMEOUT); if (null != value) { try { this.readTimeout = TIMEOUT_MODIFIER * minLimit(convertInteger(value), HttpConfigConstants.MIN_TIMEOUT); i...
[ "private", "void", "parseReadTimeout", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_READ_TIMEOUT", ")", ";", "if", "(", "null", "!=", "value", ")",...
Check the input configuration for the timeout to use when doing any read during a connection. @param props
[ "Check", "the", "input", "configuration", "for", "the", "timeout", "to", "use", "when", "doing", "any", "read", "during", "a", "connection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L658-L673
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseWriteTimeout
private void parseWriteTimeout(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_WRITE_TIMEOUT); if (null != value) { try { this.writeTimeout = TIMEOUT_MODIFIER * minLimit(convertInteger(value), HttpConfigConstants.MIN_TIMEOUT); ...
java
private void parseWriteTimeout(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_WRITE_TIMEOUT); if (null != value) { try { this.writeTimeout = TIMEOUT_MODIFIER * minLimit(convertInteger(value), HttpConfigConstants.MIN_TIMEOUT); ...
[ "private", "void", "parseWriteTimeout", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_WRITE_TIMEOUT", ")", ";", "if", "(", "null", "!=", "value", ")...
Check the input configuration for the timeout to use when writing data during the connection. @param props
[ "Check", "the", "input", "configuration", "for", "the", "timeout", "to", "use", "when", "writing", "data", "during", "the", "connection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L681-L696
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseByteCacheSize
private void parseByteCacheSize(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_BYTE_CACHE_SIZE); if (null != value) { try { this.byteCacheSize = rangeLimit(convertInteger(value), HttpConfigConstants.MIN_BYTE_CACHE_SIZE, HttpConfigConstants....
java
private void parseByteCacheSize(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_BYTE_CACHE_SIZE); if (null != value) { try { this.byteCacheSize = rangeLimit(convertInteger(value), HttpConfigConstants.MIN_BYTE_CACHE_SIZE, HttpConfigConstants....
[ "private", "void", "parseByteCacheSize", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_BYTE_CACHE_SIZE", ")", ";", "if", "(", "null", "!=", "value", ...
Check the input configuration for the size of the parse byte cache to use. @param props
[ "Check", "the", "input", "configuration", "for", "the", "size", "of", "the", "parse", "byte", "cache", "to", "use", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L758-L773
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseDelayedExtract
private void parseDelayedExtract(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_EXTRACT_VALUE); if (null != value) { this.bExtractValue = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { ...
java
private void parseDelayedExtract(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_EXTRACT_VALUE); if (null != value) { this.bExtractValue = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { ...
[ "private", "void", "parseDelayedExtract", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_EXTRACT_VALUE", ")", ";", "if", "(", "null", "!=", "value", ...
Check the input configuration for the flag on whether to immediately extract header values during the parsing stage or not. @param props
[ "Check", "the", "input", "configuration", "for", "the", "flag", "on", "whether", "to", "immediately", "extract", "header", "values", "during", "the", "parsing", "stage", "or", "not", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L781-L789
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseBinaryTransport
private void parseBinaryTransport(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_BINARY_TRANSPORT); if (null != value) { this.bBinaryTransport = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { ...
java
private void parseBinaryTransport(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_BINARY_TRANSPORT); if (null != value) { this.bBinaryTransport = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { ...
[ "private", "void", "parseBinaryTransport", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_BINARY_TRANSPORT", ")", ";", "if", "(", "null", "!=", "value"...
Check the input configuration for whether the parsing and marshalling should use the binary transport mode or not. @param props
[ "Check", "the", "input", "configuration", "for", "whether", "the", "parsing", "and", "marshalling", "should", "use", "the", "binary", "transport", "mode", "or", "not", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L797-L805
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseLimitFieldSize
private void parseLimitFieldSize(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_LIMIT_FIELDSIZE); if (null != value) { try { this.limitFieldSize = rangeLimit(convertInteger(value), HttpConfigConstants.MIN_LIMIT_FIELDSIZE, HttpConfigConstant...
java
private void parseLimitFieldSize(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_LIMIT_FIELDSIZE); if (null != value) { try { this.limitFieldSize = rangeLimit(convertInteger(value), HttpConfigConstants.MIN_LIMIT_FIELDSIZE, HttpConfigConstant...
[ "private", "void", "parseLimitFieldSize", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_LIMIT_FIELDSIZE", ")", ";", "if", "(", "null", "!=", "value", ...
Check the input configuration for a maximum size allowed for HTTP fields. @param props
[ "Check", "the", "input", "configuration", "for", "a", "maximum", "size", "allowed", "for", "HTTP", "fields", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L812-L827
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseLimitNumberHeaders
private void parseLimitNumberHeaders(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_LIMIT_NUMHEADERS); if (null != value) { try { this.limitNumHeaders = rangeLimit(convertInteger(value), HttpConfigConstants.MIN_LIMIT_NUMHEADERS, HttpConfigC...
java
private void parseLimitNumberHeaders(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_LIMIT_NUMHEADERS); if (null != value) { try { this.limitNumHeaders = rangeLimit(convertInteger(value), HttpConfigConstants.MIN_LIMIT_NUMHEADERS, HttpConfigC...
[ "private", "void", "parseLimitNumberHeaders", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_LIMIT_NUMHEADERS", ")", ";", "if", "(", "null", "!=", "val...
Check the input configuration for a maximum limit on the number of headers allowed per message. @param props
[ "Check", "the", "input", "configuration", "for", "a", "maximum", "limit", "on", "the", "number", "of", "headers", "allowed", "per", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L835-L850
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseLimitNumberResponses
private void parseLimitNumberResponses(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_LIMIT_NUMBER_RESPONSES); if (null != value) { try { int size = convertInteger(value); if (HttpConfigConstants.UNLIMITED == size) { ...
java
private void parseLimitNumberResponses(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_LIMIT_NUMBER_RESPONSES); if (null != value) { try { int size = convertInteger(value); if (HttpConfigConstants.UNLIMITED == size) { ...
[ "private", "void", "parseLimitNumberResponses", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_LIMIT_NUMBER_RESPONSES", ")", ";", "if", "(", "null", "!="...
Check the input configuration for a maximum limit on the number of temporary responses that will be read and skipped past. @param props
[ "Check", "the", "input", "configuration", "for", "a", "maximum", "limit", "on", "the", "number", "of", "temporary", "responses", "that", "will", "be", "read", "and", "skipped", "past", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L858-L878
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseLimitMessageSize
private void parseLimitMessageSize(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_MSG_SIZE_LIMIT); if (null != value) { try { this.limitMessageSize = convertLong(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEvent...
java
private void parseLimitMessageSize(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_MSG_SIZE_LIMIT); if (null != value) { try { this.limitMessageSize = convertLong(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEvent...
[ "private", "void", "parseLimitMessageSize", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_MSG_SIZE_LIMIT", ")", ";", "if", "(", "null", "!=", "value",...
Parse the possible configuration limit on the incoming message body. size. @param props
[ "Parse", "the", "possible", "configuration", "limit", "on", "the", "incoming", "message", "body", ".", "size", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L886-L901
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseAccessLog
private void parseAccessLog(Map<Object, Object> props) { String id = (String) props.get(HttpConfigConstants.PROPNAME_ACCESSLOG_ID); if (id != null) { AtomicReference<AccessLog> aLog = HttpEndpointImpl.getAccessLogger(id); if (aLog != null) { this.accessLogger = a...
java
private void parseAccessLog(Map<Object, Object> props) { String id = (String) props.get(HttpConfigConstants.PROPNAME_ACCESSLOG_ID); if (id != null) { AtomicReference<AccessLog> aLog = HttpEndpointImpl.getAccessLogger(id); if (aLog != null) { this.accessLogger = a...
[ "private", "void", "parseAccessLog", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "String", "id", "=", "(", "String", ")", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_ACCESSLOG_ID", ")", ";", "if", "(", "id", "!="...
Parse the NCSA access log information from the property map. @param props
[ "Parse", "the", "NCSA", "access", "log", "information", "from", "the", "property", "map", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L918-L931
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseRemoteIp
private void parseRemoteIp(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_REMOTE_IP); if (null != value) { this.useForwardingHeaders = convertBoolean(value); if (this.useForwardingHeaders && (TraceComponent.isAnyTracingEnabled()) && (tc.isEve...
java
private void parseRemoteIp(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_REMOTE_IP); if (null != value) { this.useForwardingHeaders = convertBoolean(value); if (this.useForwardingHeaders && (TraceComponent.isAnyTracingEnabled()) && (tc.isEve...
[ "private", "void", "parseRemoteIp", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_REMOTE_IP", ")", ";", "if", "(", "null", "!=", "value", ")", "{"...
Check the configuration to see if the remoteIp element has been configured to consider forwarding header values in the NCSA Access Log @param props
[ "Check", "the", "configuration", "to", "see", "if", "the", "remoteIp", "element", "has", "been", "configured", "to", "consider", "forwarding", "header", "values", "in", "the", "NCSA", "Access", "Log" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L939-L950
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseAllowRetries
private void parseAllowRetries(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_ALLOW_RETRIES); if (null != value) { this.bAllowRetries = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr...
java
private void parseAllowRetries(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_ALLOW_RETRIES); if (null != value) { this.bAllowRetries = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr...
[ "private", "void", "parseAllowRetries", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_ALLOW_RETRIES", ")", ";", "if", "(", "null", "!=", "value", ")...
Parse the input configuration for the flag on whether to allow retries or not. @param props
[ "Parse", "the", "input", "configuration", "for", "the", "flag", "on", "whether", "to", "allow", "retries", "or", "not", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L998-L1006
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseHeaderValidation
private void parseHeaderValidation(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_HEADER_VALIDATION); if (null != value) { this.bHeaderValidation = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { ...
java
private void parseHeaderValidation(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_HEADER_VALIDATION); if (null != value) { this.bHeaderValidation = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { ...
[ "private", "void", "parseHeaderValidation", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_HEADER_VALIDATION", ")", ";", "if", "(", "null", "!=", "valu...
Parse the configuration on whether to perform header validation or not. @param props
[ "Parse", "the", "configuration", "on", "whether", "to", "perform", "header", "validation", "or", "not", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L1013-L1021
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseJITOnlyReads
private void parseJITOnlyReads(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_JIT_ONLY_READS); if (null != value) { this.bJITOnlyReads = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { T...
java
private void parseJITOnlyReads(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_JIT_ONLY_READS); if (null != value) { this.bJITOnlyReads = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { T...
[ "private", "void", "parseJITOnlyReads", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_JIT_ONLY_READS", ")", ";", "if", "(", "null", "!=", "value", "...
Parse the configuration on whether to perform JIT allocate only reads or leave it to the default behavior. @param props
[ "Parse", "the", "configuration", "on", "whether", "to", "perform", "JIT", "allocate", "only", "reads", "or", "leave", "it", "to", "the", "default", "behavior", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L1029-L1037
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseStrictURLFormat
private void parseStrictURLFormat(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_STRICT_URL_FORMAT); if (null != value) { this.bStrictURLFormat = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { ...
java
private void parseStrictURLFormat(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_STRICT_URL_FORMAT); if (null != value) { this.bStrictURLFormat = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { ...
[ "private", "void", "parseStrictURLFormat", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_STRICT_URL_FORMAT", ")", ";", "if", "(", "null", "!=", "value...
Check the input configuration to decide whether to enforce a strict RFC compliance while parsing URLs. @param props
[ "Check", "the", "input", "configuration", "to", "decide", "whether", "to", "enforce", "a", "strict", "RFC", "compliance", "while", "parsing", "URLs", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L1045-L1053
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseServerHeader
private void parseServerHeader(Map<Object, Object> props) { // @PK15848 String value = getProp(props, HttpConfigConstants.PROPNAME_SERVER_HEADER_VALUE); if (null == value || "".equals(value)) { // due to security change, do not default value in Server header. // PM87013 Start ...
java
private void parseServerHeader(Map<Object, Object> props) { // @PK15848 String value = getProp(props, HttpConfigConstants.PROPNAME_SERVER_HEADER_VALUE); if (null == value || "".equals(value)) { // due to security change, do not default value in Server header. // PM87013 Start ...
[ "private", "void", "parseServerHeader", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "// @PK15848", "String", "value", "=", "getProp", "(", "props", ",", "HttpConfigConstants", ".", "PROPNAME_SERVER_HEADER_VALUE", ")", ";", "if", "(", "nul...
Check the input configuration map for the parameters that control the Server header value. @param props
[ "Check", "the", "input", "configuration", "map", "for", "the", "parameters", "that", "control", "the", "Server", "header", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L1061-L1084
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseDateHeaderRange
private void parseDateHeaderRange(Map<Object, Object> props) { // @313642 Object value = props.get(HttpConfigConstants.PROPNAME_DATE_HEADER_RANGE); if (null != value) { try { this.lDateHeaderRange = minLimit(convertLong(value), 0L); if (TraceComponent....
java
private void parseDateHeaderRange(Map<Object, Object> props) { // @313642 Object value = props.get(HttpConfigConstants.PROPNAME_DATE_HEADER_RANGE); if (null != value) { try { this.lDateHeaderRange = minLimit(convertLong(value), 0L); if (TraceComponent....
[ "private", "void", "parseDateHeaderRange", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "// @313642", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_DATE_HEADER_RANGE", ")", ";", "if", "(", "null", ...
Parse the date header range value from the input properties. @param props
[ "Parse", "the", "date", "header", "range", "value", "from", "the", "input", "properties", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L1091-L1107
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseCookieUpdate
private void parseCookieUpdate(Map<Object, Object> props) { //This property needed to be documented using a new name because //the original property contains a banned word for metatype: 'config' //This change will verify if either (or both) original/documented properties //are set. The i...
java
private void parseCookieUpdate(Map<Object, Object> props) { //This property needed to be documented using a new name because //the original property contains a banned word for metatype: 'config' //This change will verify if either (or both) original/documented properties //are set. The i...
[ "private", "void", "parseCookieUpdate", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "//This property needed to be documented using a new name because", "//the original property contains a banned word for metatype: 'config'", "//This change will verify if either (o...
Check the configuration map for the Set-Cookie updating no-cache value. @param props
[ "Check", "the", "configuration", "map", "for", "the", "Set", "-", "Cookie", "updating", "no", "-", "cache", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L1114-L1140
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseHeaderChangeLimit
private void parseHeaderChangeLimit(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_HEADER_CHANGE_LIMIT); if (null != value) { try { this.headerChangeLimit = convertInteger(value); if (TraceComponent.isAnyTracingEnabled() && ...
java
private void parseHeaderChangeLimit(Map<Object, Object> props) { Object value = props.get(HttpConfigConstants.PROPNAME_HEADER_CHANGE_LIMIT); if (null != value) { try { this.headerChangeLimit = convertInteger(value); if (TraceComponent.isAnyTracingEnabled() && ...
[ "private", "void", "parseHeaderChangeLimit", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_HEADER_CHANGE_LIMIT", ")", ";", "if", "(", "null", "!=", "v...
Parse the header change limit property. @param props
[ "Parse", "the", "header", "change", "limit", "property", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L1147-L1162
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseRequestSmugglingProtection
private void parseRequestSmugglingProtection(Map<Object, Object> props) { // PK53193 - allow this to be disabled Object value = props.get(HttpConfigConstants.PROPNAME_ENABLE_SMUGGLING_PROTECTION); if (null != value) { this.bEnableSmugglingProtection = convertBoolean(value); ...
java
private void parseRequestSmugglingProtection(Map<Object, Object> props) { // PK53193 - allow this to be disabled Object value = props.get(HttpConfigConstants.PROPNAME_ENABLE_SMUGGLING_PROTECTION); if (null != value) { this.bEnableSmugglingProtection = convertBoolean(value); ...
[ "private", "void", "parseRequestSmugglingProtection", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "// PK53193 - allow this to be disabled", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_ENABLE_SMUGGLING_PRO...
Check whether or not the request smuggling protection has been changed. @param props
[ "Check", "whether", "or", "not", "the", "request", "smuggling", "protection", "has", "been", "changed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L1169-L1178
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseAutoDecompression
private void parseAutoDecompression(Map<Object, Object> props) { // PK41619 - allow this to be turned off Object value = props.get(HttpConfigConstants.PROPNAME_AUTODECOMPRESSION); if (null != value) { this.bAutoDecompression = convertBoolean(value); if (TraceComponent.isA...
java
private void parseAutoDecompression(Map<Object, Object> props) { // PK41619 - allow this to be turned off Object value = props.get(HttpConfigConstants.PROPNAME_AUTODECOMPRESSION); if (null != value) { this.bAutoDecompression = convertBoolean(value); if (TraceComponent.isA...
[ "private", "void", "parseAutoDecompression", "(", "Map", "<", "Object", ",", "Object", ">", "props", ")", "{", "// PK41619 - allow this to be turned off", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_AUTODECOMPRESSION", ")", ...
Check the configuration map for the property turning on or off the body autodecompression code. @param props
[ "Check", "the", "configuration", "map", "for", "the", "property", "turning", "on", "or", "off", "the", "body", "autodecompression", "code", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L1195-L1204
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parsev0CookieDateRFC1123compat
private void parsev0CookieDateRFC1123compat(Map<?, ?> props) { Object value = props.get(HttpConfigConstants.PROPNAME_V0_COOKIE_RFC1123_COMPAT); if (null != value) { this.v0CookieDateRFC1123compat = convertBoolean(value); } if (TraceComponent.isAnyTracingEnabled() && tc.isEv...
java
private void parsev0CookieDateRFC1123compat(Map<?, ?> props) { Object value = props.get(HttpConfigConstants.PROPNAME_V0_COOKIE_RFC1123_COMPAT); if (null != value) { this.v0CookieDateRFC1123compat = convertBoolean(value); } if (TraceComponent.isAnyTracingEnabled() && tc.isEv...
[ "private", "void", "parsev0CookieDateRFC1123compat", "(", "Map", "<", "?", ",", "?", ">", "props", ")", "{", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_V0_COOKIE_RFC1123_COMPAT", ")", ";", "if", "(", "null", "!=", ...
Check the for the property v0CookieDateRFC1123compat @param props
[ "Check", "the", "for", "the", "property", "v0CookieDateRFC1123compat" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L1211-L1221
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseSkipCookiePathQuotes
private void parseSkipCookiePathQuotes(Map<?, ?> props) { //738893 - Skip adding the quotes to the cookie path attribute String value = (String) props.get(HttpConfigConstants.PROPNAME_SKIP_PATH_QUOTE); if (null != value) { this.skipCookiePathQuotes = convertBoolean(value); ...
java
private void parseSkipCookiePathQuotes(Map<?, ?> props) { //738893 - Skip adding the quotes to the cookie path attribute String value = (String) props.get(HttpConfigConstants.PROPNAME_SKIP_PATH_QUOTE); if (null != value) { this.skipCookiePathQuotes = convertBoolean(value); ...
[ "private", "void", "parseSkipCookiePathQuotes", "(", "Map", "<", "?", ",", "?", ">", "props", ")", "{", "//738893 - Skip adding the quotes to the cookie path attribute", "String", "value", "=", "(", "String", ")", "props", ".", "get", "(", "HttpConfigConstants", "."...
Check the configuration map for if we should skip adding the quote to the cookie path attribute @ param props
[ "Check", "the", "configuration", "map", "for", "if", "we", "should", "skip", "adding", "the", "quote", "to", "the", "cookie", "path", "attribute" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L1229-L1238
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseDoNotAllowDuplicateSetCookies
private void parseDoNotAllowDuplicateSetCookies(Map<?, ?> props) { //PI31734 - prevent multiple Set-Cookies with the same name String value = (String) props.get(HttpConfigConstants.PROPNAME_DO_NOT_ALLOW_DUPLICATE_SET_COOKIES); if (null != value) { this.doNotAllowDuplicateSetCookies =...
java
private void parseDoNotAllowDuplicateSetCookies(Map<?, ?> props) { //PI31734 - prevent multiple Set-Cookies with the same name String value = (String) props.get(HttpConfigConstants.PROPNAME_DO_NOT_ALLOW_DUPLICATE_SET_COOKIES); if (null != value) { this.doNotAllowDuplicateSetCookies =...
[ "private", "void", "parseDoNotAllowDuplicateSetCookies", "(", "Map", "<", "?", ",", "?", ">", "props", ")", "{", "//PI31734 - prevent multiple Set-Cookies with the same name", "String", "value", "=", "(", "String", ")", "props", ".", "get", "(", "HttpConfigConstants",...
Check the configuration map for the property to tell us if we should prevent multiple set-cookies with the same name @ param props
[ "Check", "the", "configuration", "map", "for", "the", "property", "to", "tell", "us", "if", "we", "should", "prevent", "multiple", "set", "-", "cookies", "with", "the", "same", "name" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L1245-L1254
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseWaitForEndOfMessage
private void parseWaitForEndOfMessage(Map props) { //PI11176 String value = (String) props.get(HttpConfigConstants.PROPNAME_WAIT_FOR_END_OF_MESSAGE); if (null != value) { this.waitForEndOfMessage = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEv...
java
private void parseWaitForEndOfMessage(Map props) { //PI11176 String value = (String) props.get(HttpConfigConstants.PROPNAME_WAIT_FOR_END_OF_MESSAGE); if (null != value) { this.waitForEndOfMessage = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEv...
[ "private", "void", "parseWaitForEndOfMessage", "(", "Map", "props", ")", "{", "//PI11176", "String", "value", "=", "(", "String", ")", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_WAIT_FOR_END_OF_MESSAGE", ")", ";", "if", "(", "null", "!=", ...
Check the configuration map for using WaitForEndOfMessage @param props
[ "Check", "the", "configuration", "map", "for", "using", "WaitForEndOfMessage" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L1261-L1270
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseRemoveCLHeaderInTempStatusRespRFC7230compat
private void parseRemoveCLHeaderInTempStatusRespRFC7230compat(Map props) { //PI35277 String value = (String) props.get(HttpConfigConstants.REMOVE_CLHEADER_IN_TEMP_STATUS_RFC7230_COMPAT); if (null != value) { this.removeCLHeaderInTempStatusRespRFC7230compat = convertBoolean(value); ...
java
private void parseRemoveCLHeaderInTempStatusRespRFC7230compat(Map props) { //PI35277 String value = (String) props.get(HttpConfigConstants.REMOVE_CLHEADER_IN_TEMP_STATUS_RFC7230_COMPAT); if (null != value) { this.removeCLHeaderInTempStatusRespRFC7230compat = convertBoolean(value); ...
[ "private", "void", "parseRemoveCLHeaderInTempStatusRespRFC7230compat", "(", "Map", "props", ")", "{", "//PI35277", "String", "value", "=", "(", "String", ")", "props", ".", "get", "(", "HttpConfigConstants", ".", "REMOVE_CLHEADER_IN_TEMP_STATUS_RFC7230_COMPAT", ")", ";"...
Check the configuration map for to see if we should send or not content-length on 1xx and 204 responses @ param props
[ "Check", "the", "configuration", "map", "for", "to", "see", "if", "we", "should", "send", "or", "not", "content", "-", "length", "on", "1xx", "and", "204", "responses" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L1277-L1287
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parsePreventResponseSplit
private void parsePreventResponseSplit(Map<?, ?> props) { //PI45266 String value = (String) props.get(HttpConfigConstants.PROPNAME_PREVENT_RESPONSE_SPLIT); if (null != value) { this.preventResponseSplit = convertBoolean(value); if ((TraceComponent.isAnyTracingEnabled()) &...
java
private void parsePreventResponseSplit(Map<?, ?> props) { //PI45266 String value = (String) props.get(HttpConfigConstants.PROPNAME_PREVENT_RESPONSE_SPLIT); if (null != value) { this.preventResponseSplit = convertBoolean(value); if ((TraceComponent.isAnyTracingEnabled()) &...
[ "private", "void", "parsePreventResponseSplit", "(", "Map", "<", "?", ",", "?", ">", "props", ")", "{", "//PI45266", "String", "value", "=", "(", "String", ")", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_PREVENT_RESPONSE_SPLIT", ")", ";", ...
Check the configuration map for if we should prevent response splitting @ param props
[ "Check", "the", "configuration", "map", "for", "if", "we", "should", "prevent", "response", "splitting" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L1294-L1303
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseAttemptPurgeData
private void parseAttemptPurgeData(Map props) { //PI11176 String value = (String) props.get(HttpConfigConstants.PROPNAME_PURGE_DATA_DURING_CLOSE); if (null != value) { this.attemptPurgeData = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEna...
java
private void parseAttemptPurgeData(Map props) { //PI11176 String value = (String) props.get(HttpConfigConstants.PROPNAME_PURGE_DATA_DURING_CLOSE); if (null != value) { this.attemptPurgeData = convertBoolean(value); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEna...
[ "private", "void", "parseAttemptPurgeData", "(", "Map", "props", ")", "{", "//PI11176", "String", "value", "=", "(", "String", ")", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_PURGE_DATA_DURING_CLOSE", ")", ";", "if", "(", "null", "!=", "va...
Check the configuration map for using purge behavior at the close of the connection @ param props
[ "Check", "the", "configuration", "map", "for", "using", "purge", "behavior", "at", "the", "close", "of", "the", "connection" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L1310-L1319
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseThrowIOEForInboundConnections
private void parseThrowIOEForInboundConnections(Map<?, ?> props) { //PI57542 Object value = props.get(HttpConfigConstants.PROPNAME_THROW_IOE_FOR_INBOUND_CONNECTIONS); if (null != value) { this.throwIOEForInboundConnections = convertBoolean(value); if ((TraceComponent.isAn...
java
private void parseThrowIOEForInboundConnections(Map<?, ?> props) { //PI57542 Object value = props.get(HttpConfigConstants.PROPNAME_THROW_IOE_FOR_INBOUND_CONNECTIONS); if (null != value) { this.throwIOEForInboundConnections = convertBoolean(value); if ((TraceComponent.isAn...
[ "private", "void", "parseThrowIOEForInboundConnections", "(", "Map", "<", "?", ",", "?", ">", "props", ")", "{", "//PI57542", "Object", "value", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_THROW_IOE_FOR_INBOUND_CONNECTIONS", ")", ";", "if"...
Check the configuration map for if we should swallow inbound connections IOEs @ param props
[ "Check", "the", "configuration", "map", "for", "if", "we", "should", "swallow", "inbound", "connections", "IOEs" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L1326-L1335
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parsePurgeRemainingResponseBody
private void parsePurgeRemainingResponseBody(Map<?, ?> props) { String purgeRemainingResponseProperty = AccessController.doPrivileged(new java.security.PrivilegedAction<String>() { @Override public String run() { return (System.getProperty(HttpConfigConstants.PROPNAME_PU...
java
private void parsePurgeRemainingResponseBody(Map<?, ?> props) { String purgeRemainingResponseProperty = AccessController.doPrivileged(new java.security.PrivilegedAction<String>() { @Override public String run() { return (System.getProperty(HttpConfigConstants.PROPNAME_PU...
[ "private", "void", "parsePurgeRemainingResponseBody", "(", "Map", "<", "?", ",", "?", ">", "props", ")", "{", "String", "purgeRemainingResponseProperty", "=", "AccessController", ".", "doPrivileged", "(", "new", "java", ".", "security", ".", "PrivilegedAction", "<...
Check the configuration if we should purge the remaining response data This is a JVM custom property as it's intended for outbound scenarios PI81572 @ param props
[ "Check", "the", "configuration", "if", "we", "should", "purge", "the", "remaining", "response", "data", "This", "is", "a", "JVM", "custom", "property", "as", "it", "s", "intended", "for", "outbound", "scenarios" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L1388-L1403
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.parseProtocolVersion
private void parseProtocolVersion(Map<?, ?> props) { Object protocolVersionProperty = props.get(HttpConfigConstants.PROPNAME_PROTOCOL_VERSION); if (null != protocolVersionProperty) { String protocolVersion = ((String) protocolVersionProperty).toLowerCase(); if (HttpConfigConstan...
java
private void parseProtocolVersion(Map<?, ?> props) { Object protocolVersionProperty = props.get(HttpConfigConstants.PROPNAME_PROTOCOL_VERSION); if (null != protocolVersionProperty) { String protocolVersion = ((String) protocolVersionProperty).toLowerCase(); if (HttpConfigConstan...
[ "private", "void", "parseProtocolVersion", "(", "Map", "<", "?", ",", "?", ">", "props", ")", "{", "Object", "protocolVersionProperty", "=", "props", ".", "get", "(", "HttpConfigConstants", ".", "PROPNAME_PROTOCOL_VERSION", ")", ";", "if", "(", "null", "!=", ...
Check the configuration to see if there is a desired http protocol version that has been provided for this HTTP Channel @param props
[ "Check", "the", "configuration", "to", "see", "if", "there", "is", "a", "desired", "http", "protocol", "version", "that", "has", "been", "provided", "for", "this", "HTTP", "Channel" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L1411-L1429
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.convertBoolean
private boolean convertBoolean(Object o) { if (o instanceof Boolean) return (Boolean) o; return "true".equalsIgnoreCase(o.toString().trim()); }
java
private boolean convertBoolean(Object o) { if (o instanceof Boolean) return (Boolean) o; return "true".equalsIgnoreCase(o.toString().trim()); }
[ "private", "boolean", "convertBoolean", "(", "Object", "o", ")", "{", "if", "(", "o", "instanceof", "Boolean", ")", "return", "(", "Boolean", ")", "o", ";", "return", "\"true\"", ".", "equalsIgnoreCase", "(", "o", ".", "toString", "(", ")", ".", "trim", ...
Convert a String to a boolean value. If the string does not match "true", then it defaults to false. @param s @return boolean
[ "Convert", "a", "String", "to", "a", "boolean", "value", ".", "If", "the", "string", "does", "not", "match", "true", "then", "it", "defaults", "to", "false", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L1459-L1463
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.rangeLimit
private int rangeLimit(int size, int min, int max) { if (size < min) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Config: " + size + " too small"); } return min; } else if (size > max) { if (TraceCompon...
java
private int rangeLimit(int size, int min, int max) { if (size < min) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Config: " + size + " too small"); } return min; } else if (size > max) { if (TraceCompon...
[ "private", "int", "rangeLimit", "(", "int", "size", ",", "int", "min", ",", "int", "max", ")", "{", "if", "(", "size", "<", "min", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")...
Take the user input size variable and make sure it is inside the given range of min and max. If it is outside the range, then set the value to the closest limit. @param size @param min @param max @return int
[ "Take", "the", "user", "input", "size", "variable", "and", "make", "sure", "it", "is", "inside", "the", "given", "range", "of", "min", "and", "max", ".", "If", "it", "is", "outside", "the", "range", "then", "set", "the", "value", "to", "the", "closest"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L1487-L1500
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.minLimit
private int minLimit(int input, int min) { if (input < min) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Config: " + input + " too small."); } return min; } return input; }
java
private int minLimit(int input, int min) { if (input < min) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Config: " + input + " too small."); } return min; } return input; }
[ "private", "int", "minLimit", "(", "int", "input", ",", "int", "min", ")", "{", "if", "(", "input", "<", "min", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ...
Return the larger value of either the input int or the minimum limit. @param input @param min @return int
[ "Return", "the", "larger", "value", "of", "either", "the", "input", "int", "or", "the", "minimum", "limit", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L1510-L1518
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java
HttpChannelConfig.throwIOEForInboundConnections
public boolean throwIOEForInboundConnections() { //If the httpOption throwIOEForInboundConnections is defined, return that value if (this.throwIOEForInboundConnections != null) return this.throwIOEForInboundConnections; //PI57542 //Otherwise, verify if a declarative service has been...
java
public boolean throwIOEForInboundConnections() { //If the httpOption throwIOEForInboundConnections is defined, return that value if (this.throwIOEForInboundConnections != null) return this.throwIOEForInboundConnections; //PI57542 //Otherwise, verify if a declarative service has been...
[ "public", "boolean", "throwIOEForInboundConnections", "(", ")", "{", "//If the httpOption throwIOEForInboundConnections is defined, return that value", "if", "(", "this", ".", "throwIOEForInboundConnections", "!=", "null", ")", "return", "this", ".", "throwIOEForInboundConnection...
Query whether or not the HTTP Channel should swallow inbound connections IOE @return boolean
[ "Query", "whether", "or", "not", "the", "HTTP", "Channel", "should", "swallow", "inbound", "connections", "IOE" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpChannelConfig.java#L1918-L1929
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.reactive.streams.operators/src/com/ibm/ws/microprofile/reactive/streams/operators/spi/impl/WASReactiveStreamsEngineImpl.java
WASReactiveStreamsEngineImpl.activate
public void activate(ComponentContext cc) { executorServiceRef.activate(cc); contextServiceRef.activate(cc); ReactiveStreamsFactoryResolver.setInstance(new ReactiveStreamsFactoryImpl()); ReactiveStreamsEngineResolver.setInstance(this); singleton = this; }
java
public void activate(ComponentContext cc) { executorServiceRef.activate(cc); contextServiceRef.activate(cc); ReactiveStreamsFactoryResolver.setInstance(new ReactiveStreamsFactoryImpl()); ReactiveStreamsEngineResolver.setInstance(this); singleton = this; }
[ "public", "void", "activate", "(", "ComponentContext", "cc", ")", "{", "executorServiceRef", ".", "activate", "(", "cc", ")", ";", "contextServiceRef", ".", "activate", "(", "cc", ")", ";", "ReactiveStreamsFactoryResolver", ".", "setInstance", "(", "new", "React...
The OSGi component active call @param cc the OSGi component context
[ "The", "OSGi", "component", "active", "call" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.reactive.streams.operators/src/com/ibm/ws/microprofile/reactive/streams/operators/spi/impl/WASReactiveStreamsEngineImpl.java#L61-L67
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.reactive.streams.operators/src/com/ibm/ws/microprofile/reactive/streams/operators/spi/impl/WASReactiveStreamsEngineImpl.java
WASReactiveStreamsEngineImpl.deactivate
public void deactivate(ComponentContext cc) { singleton = null; ReactiveStreamsEngineResolver.setInstance(null); ReactiveStreamsFactoryResolver.setInstance(null); executorServiceRef.deactivate(cc); contextServiceRef.deactivate(cc); }
java
public void deactivate(ComponentContext cc) { singleton = null; ReactiveStreamsEngineResolver.setInstance(null); ReactiveStreamsFactoryResolver.setInstance(null); executorServiceRef.deactivate(cc); contextServiceRef.deactivate(cc); }
[ "public", "void", "deactivate", "(", "ComponentContext", "cc", ")", "{", "singleton", "=", "null", ";", "ReactiveStreamsEngineResolver", ".", "setInstance", "(", "null", ")", ";", "ReactiveStreamsFactoryResolver", ".", "setInstance", "(", "null", ")", ";", "execut...
The OSGi component deactive call @param cc the OSGi component context
[ "The", "OSGi", "component", "deactive", "call" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.reactive.streams.operators/src/com/ibm/ws/microprofile/reactive/streams/operators/spi/impl/WASReactiveStreamsEngineImpl.java#L74-L80
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ListPool.java
ListPool.getList
public synchronized List getList() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getList"); // Remove a List from the pool List list = (List) listPool.remove(); // If the list is null then there was none available in the pool // So create a new one if (list ==...
java
public synchronized List getList() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getList"); // Remove a List from the pool List list = (List) listPool.remove(); // If the list is null then there was none available in the pool // So create a new one if (list ==...
[ "public", "synchronized", "List", "getList", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getList\"", ")", ";", "// Remove a List from the pool", "List", "list", "=", "(", "List", ")", "l...
Gets a list from the pool. @return List
[ "Gets", "a", "list", "from", "the", "pool", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ListPool.java#L56-L77
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ListPool.java
ListPool.returnList
public synchronized void returnList(List list) { if (tc.isEntryEnabled()) SibTr.entry(tc, "returnList"); list.clear(); listPool.add(list); if (tc.isEntryEnabled()) SibTr.exit(tc, "returnList"); }
java
public synchronized void returnList(List list) { if (tc.isEntryEnabled()) SibTr.entry(tc, "returnList"); list.clear(); listPool.add(list); if (tc.isEntryEnabled()) SibTr.exit(tc, "returnList"); }
[ "public", "synchronized", "void", "returnList", "(", "List", "list", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"returnList\"", ")", ";", "list", ".", "clear", "(", ")", ";", "listPool", ...
Returns a list back to the pool so that it can be re-used @param list
[ "Returns", "a", "list", "back", "to", "the", "pool", "so", "that", "it", "can", "be", "re", "-", "used" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ListPool.java#L84-L93
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSMessageData.java
JSMessageData.setParent
void setParent(JMFMessageData parent) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) JmfTr.entry(this, tc, "setParent", new Object[] { parent }); synchronized (getMessageLockArtefact()) { // If the parent is a JSMessageData then this is straight forward ...
java
void setParent(JMFMessageData parent) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) JmfTr.entry(this, tc, "setParent", new Object[] { parent }); synchronized (getMessageLockArtefact()) { // If the parent is a JSMessageData then this is straight forward ...
[ "void", "setParent", "(", "JMFMessageData", "parent", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "JmfTr", ".", "entry", "(", "this", ",", "tc", ",", "\"setParent\"", ",", ...
method is not private & we're somewhat paranoid.
[ "method", "is", "not", "private", "&", "we", "re", "somewhat", "paranoid", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSMessageData.java#L260-L285
train