id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
122,300
Erudika/para
para-client/src/main/java/com/erudika/para/client/ParaClient.java
ParaClient.voteDown
public boolean voteDown(ParaObject obj, String voterid) { if (obj == null || StringUtils.isBlank(voterid)) { return false; } return getEntity(invokePatch(obj.getType().concat("/").concat(obj.getId()), Entity.json(Collections.singletonMap("_votedown", voterid))), Boolean.class); }
java
public boolean voteDown(ParaObject obj, String voterid) { if (obj == null || StringUtils.isBlank(voterid)) { return false; } return getEntity(invokePatch(obj.getType().concat("/").concat(obj.getId()), Entity.json(Collections.singletonMap("_votedown", voterid))), Boolean.class); }
[ "public", "boolean", "voteDown", "(", "ParaObject", "obj", ",", "String", "voterid", ")", "{", "if", "(", "obj", "==", "null", "||", "StringUtils", ".", "isBlank", "(", "voterid", ")", ")", "{", "return", "false", ";", "}", "return", "getEntity", "(", ...
Downvote an object and register the vote in DB. @param obj the object to receive -1 votes @param voterid the userid of the voter @return true if vote was successful
[ "Downvote", "an", "object", "and", "register", "the", "vote", "in", "DB", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-client/src/main/java/com/erudika/para/client/ParaClient.java#L1322-L1328
122,301
Erudika/para
para-client/src/main/java/com/erudika/para/client/ParaClient.java
ParaClient.rebuildIndex
public Map<String, Object> rebuildIndex(String destinationIndex) { MultivaluedMap<String, String> params = new MultivaluedHashMap<>(); params.putSingle("destinationIndex", destinationIndex); return getEntity(invokeSignedRequest(getApiClient(), accessKey, key(true), POST, getEndpoint(), getFullPath("_reindex")...
java
public Map<String, Object> rebuildIndex(String destinationIndex) { MultivaluedMap<String, String> params = new MultivaluedHashMap<>(); params.putSingle("destinationIndex", destinationIndex); return getEntity(invokeSignedRequest(getApiClient(), accessKey, key(true), POST, getEndpoint(), getFullPath("_reindex")...
[ "public", "Map", "<", "String", ",", "Object", ">", "rebuildIndex", "(", "String", "destinationIndex", ")", "{", "MultivaluedMap", "<", "String", ",", "String", ">", "params", "=", "new", "MultivaluedHashMap", "<>", "(", ")", ";", "params", ".", "putSingle",...
Rebuilds the entire search index. @param destinationIndex an existing index as destination @return a response object with properties "tookMillis" and "reindexed"
[ "Rebuilds", "the", "entire", "search", "index", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-client/src/main/java/com/erudika/para/client/ParaClient.java#L1343-L1348
122,302
Erudika/para
para-client/src/main/java/com/erudika/para/client/ParaClient.java
ParaClient.addValidationConstraint
public Map<String, Map<String, Map<String, Map<String, ?>>>> addValidationConstraint(String type, String field, Constraint c) { if (StringUtils.isBlank(type) || StringUtils.isBlank(field) || c == null) { return Collections.emptyMap(); } return getEntity(invokePut(Utils.formatMessage("_constraints/{0}/{1}/{2...
java
public Map<String, Map<String, Map<String, Map<String, ?>>>> addValidationConstraint(String type, String field, Constraint c) { if (StringUtils.isBlank(type) || StringUtils.isBlank(field) || c == null) { return Collections.emptyMap(); } return getEntity(invokePut(Utils.formatMessage("_constraints/{0}/{1}/{2...
[ "public", "Map", "<", "String", ",", "Map", "<", "String", ",", "Map", "<", "String", ",", "Map", "<", "String", ",", "?", ">", ">", ">", ">", "addValidationConstraint", "(", "String", "type", ",", "String", "field", ",", "Constraint", "c", ")", "{",...
Add a new constraint for a given field. @param type a type @param field a field name @param c the constraint @return a map containing all validation constraints for this type.
[ "Add", "a", "new", "constraint", "for", "a", "given", "field", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-client/src/main/java/com/erudika/para/client/ParaClient.java#L1378-L1385
122,303
Erudika/para
para-client/src/main/java/com/erudika/para/client/ParaClient.java
ParaClient.removeValidationConstraint
public Map<String, Map<String, Map<String, Map<String, ?>>>> removeValidationConstraint(String type, String field, String constraintName) { if (StringUtils.isBlank(type) || StringUtils.isBlank(field) || StringUtils.isBlank(constraintName)) { return Collections.emptyMap(); } return getEntity(invokeDelete(Uti...
java
public Map<String, Map<String, Map<String, Map<String, ?>>>> removeValidationConstraint(String type, String field, String constraintName) { if (StringUtils.isBlank(type) || StringUtils.isBlank(field) || StringUtils.isBlank(constraintName)) { return Collections.emptyMap(); } return getEntity(invokeDelete(Uti...
[ "public", "Map", "<", "String", ",", "Map", "<", "String", ",", "Map", "<", "String", ",", "Map", "<", "String", ",", "?", ">", ">", ">", ">", "removeValidationConstraint", "(", "String", "type", ",", "String", "field", ",", "String", "constraintName", ...
Removes a validation constraint for a given field. @param type a type @param field a field name @param constraintName the name of the constraint to remove @return a map containing all validation constraints for this type.
[ "Removes", "a", "validation", "constraint", "for", "a", "given", "field", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-client/src/main/java/com/erudika/para/client/ParaClient.java#L1394-L1401
122,304
Erudika/para
para-client/src/main/java/com/erudika/para/client/ParaClient.java
ParaClient.resourcePermissions
public Map<String, Map<String, List<String>>> resourcePermissions() { return getEntity(invokeGet("_permissions", null), Map.class); }
java
public Map<String, Map<String, List<String>>> resourcePermissions() { return getEntity(invokeGet("_permissions", null), Map.class); }
[ "public", "Map", "<", "String", ",", "Map", "<", "String", ",", "List", "<", "String", ">", ">", ">", "resourcePermissions", "(", ")", "{", "return", "getEntity", "(", "invokeGet", "(", "\"_permissions\"", ",", "null", ")", ",", "Map", ".", "class", ")...
Returns the permissions for all subjects and resources for current app. @return a map of subject ids to resource names to a list of allowed methods
[ "Returns", "the", "permissions", "for", "all", "subjects", "and", "resources", "for", "current", "app", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-client/src/main/java/com/erudika/para/client/ParaClient.java#L1411-L1413
122,305
Erudika/para
para-client/src/main/java/com/erudika/para/client/ParaClient.java
ParaClient.revokeResourcePermission
public Map<String, Map<String, List<String>>> revokeResourcePermission(String subjectid, String resourcePath) { if (StringUtils.isBlank(subjectid) || StringUtils.isBlank(resourcePath)) { return Collections.emptyMap(); } resourcePath = Utils.urlEncode(resourcePath); return getEntity(invokeDelete(Utils.formatM...
java
public Map<String, Map<String, List<String>>> revokeResourcePermission(String subjectid, String resourcePath) { if (StringUtils.isBlank(subjectid) || StringUtils.isBlank(resourcePath)) { return Collections.emptyMap(); } resourcePath = Utils.urlEncode(resourcePath); return getEntity(invokeDelete(Utils.formatM...
[ "public", "Map", "<", "String", ",", "Map", "<", "String", ",", "List", "<", "String", ">", ">", ">", "revokeResourcePermission", "(", "String", "subjectid", ",", "String", "resourcePath", ")", "{", "if", "(", "StringUtils", ".", "isBlank", "(", "subjectid...
Revokes a permission for a subject, meaning they no longer will be able to access the given resource. @param subjectid subject id (user id) @param resourcePath resource path or object type @return a map of the permissions for this subject id
[ "Revokes", "a", "permission", "for", "a", "subject", "meaning", "they", "no", "longer", "will", "be", "able", "to", "access", "the", "given", "resource", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-client/src/main/java/com/erudika/para/client/ParaClient.java#L1463-L1470
122,306
Erudika/para
para-client/src/main/java/com/erudika/para/client/ParaClient.java
ParaClient.revokeAllResourcePermissions
public Map<String, Map<String, List<String>>> revokeAllResourcePermissions(String subjectid) { if (StringUtils.isBlank(subjectid)) { return Collections.emptyMap(); } return getEntity(invokeDelete(Utils.formatMessage("_permissions/{0}", subjectid), null), Map.class); }
java
public Map<String, Map<String, List<String>>> revokeAllResourcePermissions(String subjectid) { if (StringUtils.isBlank(subjectid)) { return Collections.emptyMap(); } return getEntity(invokeDelete(Utils.formatMessage("_permissions/{0}", subjectid), null), Map.class); }
[ "public", "Map", "<", "String", ",", "Map", "<", "String", ",", "List", "<", "String", ">", ">", ">", "revokeAllResourcePermissions", "(", "String", "subjectid", ")", "{", "if", "(", "StringUtils", ".", "isBlank", "(", "subjectid", ")", ")", "{", "return...
Revokes all permission for a subject. @param subjectid subject id (user id) @return a map of the permissions for this subject id
[ "Revokes", "all", "permission", "for", "a", "subject", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-client/src/main/java/com/erudika/para/client/ParaClient.java#L1477-L1482
122,307
Erudika/para
para-client/src/main/java/com/erudika/para/client/ParaClient.java
ParaClient.addAppSetting
public void addAppSetting(String key, Object value) { if (!StringUtils.isBlank(key) && value != null) { invokePut(Utils.formatMessage("_settings/{0}", key), Entity.json(Collections.singletonMap("value", value))); } }
java
public void addAppSetting(String key, Object value) { if (!StringUtils.isBlank(key) && value != null) { invokePut(Utils.formatMessage("_settings/{0}", key), Entity.json(Collections.singletonMap("value", value))); } }
[ "public", "void", "addAppSetting", "(", "String", "key", ",", "Object", "value", ")", "{", "if", "(", "!", "StringUtils", ".", "isBlank", "(", "key", ")", "&&", "value", "!=", "null", ")", "{", "invokePut", "(", "Utils", ".", "formatMessage", "(", "\"_...
Adds or overwrites an app-specific setting. @param key a key @param value a value
[ "Adds", "or", "overwrites", "an", "app", "-", "specific", "setting", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-client/src/main/java/com/erudika/para/client/ParaClient.java#L1530-L1534
122,308
Erudika/para
para-client/src/main/java/com/erudika/para/client/ParaClient.java
ParaClient.removeAppSetting
public void removeAppSetting(String key) { if (!StringUtils.isBlank(key)) { invokeDelete(Utils.formatMessage("_settings/{0}", key), null); } }
java
public void removeAppSetting(String key) { if (!StringUtils.isBlank(key)) { invokeDelete(Utils.formatMessage("_settings/{0}", key), null); } }
[ "public", "void", "removeAppSetting", "(", "String", "key", ")", "{", "if", "(", "!", "StringUtils", ".", "isBlank", "(", "key", ")", ")", "{", "invokeDelete", "(", "Utils", ".", "formatMessage", "(", "\"_settings/{0}\"", ",", "key", ")", ",", "null", ")...
Removes an app-specific setting. @param key a key
[ "Removes", "an", "app", "-", "specific", "setting", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-client/src/main/java/com/erudika/para/client/ParaClient.java#L1550-L1554
122,309
Erudika/para
para-core/src/main/java/com/erudika/para/utils/RegistryUtils.java
RegistryUtils.putValue
public static void putValue(String registryName, String key, Object value) { if (StringUtils.isBlank(registryName) || StringUtils.isBlank(key) || value == null) { return; } Sysprop registryObject = readRegistryObject(registryName); if (registryObject == null) { registryObject = new Sysprop(getRegistryID(r...
java
public static void putValue(String registryName, String key, Object value) { if (StringUtils.isBlank(registryName) || StringUtils.isBlank(key) || value == null) { return; } Sysprop registryObject = readRegistryObject(registryName); if (registryObject == null) { registryObject = new Sysprop(getRegistryID(r...
[ "public", "static", "void", "putValue", "(", "String", "registryName", ",", "String", "key", ",", "Object", "value", ")", "{", "if", "(", "StringUtils", ".", "isBlank", "(", "registryName", ")", "||", "StringUtils", ".", "isBlank", "(", "key", ")", "||", ...
Add a specific value to a registry. If the registry doesn't exist yet, create it. @param registryName the name of the registry. @param key the unique key corresponding to the value to insert (typically an appid). @param value the value to add to the registry.
[ "Add", "a", "specific", "value", "to", "a", "registry", ".", "If", "the", "registry", "doesn", "t", "exist", "yet", "create", "it", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-core/src/main/java/com/erudika/para/utils/RegistryUtils.java#L44-L57
122,310
Erudika/para
para-core/src/main/java/com/erudika/para/utils/RegistryUtils.java
RegistryUtils.getValue
public static Object getValue(String registryName, String key) { Map<String, Object> registry = getRegistry(registryName); if (registry == null || StringUtils.isBlank(key)) { return null; } return registry.get(key); }
java
public static Object getValue(String registryName, String key) { Map<String, Object> registry = getRegistry(registryName); if (registry == null || StringUtils.isBlank(key)) { return null; } return registry.get(key); }
[ "public", "static", "Object", "getValue", "(", "String", "registryName", ",", "String", "key", ")", "{", "Map", "<", "String", ",", "Object", ">", "registry", "=", "getRegistry", "(", "registryName", ")", ";", "if", "(", "registry", "==", "null", "||", "...
Retrieve one specific value from a registry. @param registryName the name of the registry. @param key the unique key corresponding to the value to retrieve (typically an appid). @return the value corresponding to the registry key, null if no value is found for the specified key.
[ "Retrieve", "one", "specific", "value", "from", "a", "registry", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-core/src/main/java/com/erudika/para/utils/RegistryUtils.java#L65-L71
122,311
Erudika/para
para-core/src/main/java/com/erudika/para/utils/RegistryUtils.java
RegistryUtils.removeValue
public static void removeValue(String registryName, String key) { Sysprop registryObject = readRegistryObject(registryName); if (registryObject == null || StringUtils.isBlank(key)) { return; } if (registryObject.hasProperty(key)) { registryObject.removeProperty(key); CoreUtils.getInstance().getDao().up...
java
public static void removeValue(String registryName, String key) { Sysprop registryObject = readRegistryObject(registryName); if (registryObject == null || StringUtils.isBlank(key)) { return; } if (registryObject.hasProperty(key)) { registryObject.removeProperty(key); CoreUtils.getInstance().getDao().up...
[ "public", "static", "void", "removeValue", "(", "String", "registryName", ",", "String", "key", ")", "{", "Sysprop", "registryObject", "=", "readRegistryObject", "(", "registryName", ")", ";", "if", "(", "registryObject", "==", "null", "||", "StringUtils", ".", ...
Remove a specific value from a registry. @param registryName the name of the registry. @param key the unique key corresponding to the value to remove (typically an appid).
[ "Remove", "a", "specific", "value", "from", "a", "registry", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-core/src/main/java/com/erudika/para/utils/RegistryUtils.java#L78-L87
122,312
Erudika/para
para-core/src/main/java/com/erudika/para/utils/RegistryUtils.java
RegistryUtils.getRegistry
public static Map<String, Object> getRegistry(String registryName) { if (StringUtils.isBlank(registryName)) { return null; } Sysprop registryObject = readRegistryObject(registryName); return registryObject == null ? null : registryObject.getProperties(); }
java
public static Map<String, Object> getRegistry(String registryName) { if (StringUtils.isBlank(registryName)) { return null; } Sysprop registryObject = readRegistryObject(registryName); return registryObject == null ? null : registryObject.getProperties(); }
[ "public", "static", "Map", "<", "String", ",", "Object", ">", "getRegistry", "(", "String", "registryName", ")", "{", "if", "(", "StringUtils", ".", "isBlank", "(", "registryName", ")", ")", "{", "return", "null", ";", "}", "Sysprop", "registryObject", "="...
Retrieve an entire registry. @param registryName the name of the registry. @return the map of all registry values, null if no registry is found by the specified name.
[ "Retrieve", "an", "entire", "registry", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-core/src/main/java/com/erudika/para/utils/RegistryUtils.java#L94-L100
122,313
Erudika/para
para-server/src/main/java/com/erudika/para/security/RestAuthFilter.java
RestAuthFilter.doFilter
@Override public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { // We must wrap the request in order to read the InputStream twice: // - first read - used to calculate the signature // - second read - used as request payload BufferedRequestWr...
java
@Override public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { // We must wrap the request in order to read the InputStream twice: // - first read - used to calculate the signature // - second read - used as request payload BufferedRequestWr...
[ "@", "Override", "public", "void", "doFilter", "(", "ServletRequest", "req", ",", "ServletResponse", "res", ",", "FilterChain", "chain", ")", "throws", "IOException", ",", "ServletException", "{", "// We must wrap the request in order to read the InputStream twice:", "// - ...
Authenticates an application or user or guest. @param req a request @param res a response @param chain filter chain @throws IOException ex @throws ServletException ex
[ "Authenticates", "an", "application", "or", "user", "or", "guest", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-server/src/main/java/com/erudika/para/security/RestAuthFilter.java#L66-L95
122,314
Erudika/para
para-server/src/main/java/com/erudika/para/queue/AWSQueueUtils.java
AWSQueueUtils.getClient
public static AmazonSQS getClient() { if (sqsClient != null) { return sqsClient; } if (Config.IN_PRODUCTION) { sqsClient = AmazonSQSClientBuilder.standard().build(); } else { sqsClient = AmazonSQSClientBuilder.standard(). withCredentials(new AWSStaticCredentialsProvider(new BasicAWSCredentials("x"...
java
public static AmazonSQS getClient() { if (sqsClient != null) { return sqsClient; } if (Config.IN_PRODUCTION) { sqsClient = AmazonSQSClientBuilder.standard().build(); } else { sqsClient = AmazonSQSClientBuilder.standard(). withCredentials(new AWSStaticCredentialsProvider(new BasicAWSCredentials("x"...
[ "public", "static", "AmazonSQS", "getClient", "(", ")", "{", "if", "(", "sqsClient", "!=", "null", ")", "{", "return", "sqsClient", ";", "}", "if", "(", "Config", ".", "IN_PRODUCTION", ")", "{", "sqsClient", "=", "AmazonSQSClientBuilder", ".", "standard", ...
Returns a client instance for AWS SQS. @return a client that talks to SQS
[ "Returns", "a", "client", "instance", "for", "AWS", "SQS", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-server/src/main/java/com/erudika/para/queue/AWSQueueUtils.java#L76-L94
122,315
Erudika/para
para-server/src/main/java/com/erudika/para/queue/AWSQueueUtils.java
AWSQueueUtils.createQueue
public static String createQueue(String name) { if (StringUtils.isBlank(name)) { return null; } String queueURL = getQueueURL(name); if (queueURL == null) { try { queueURL = getClient().createQueue(new CreateQueueRequest(name)).getQueueUrl(); } catch (AmazonServiceException ase) { logException(...
java
public static String createQueue(String name) { if (StringUtils.isBlank(name)) { return null; } String queueURL = getQueueURL(name); if (queueURL == null) { try { queueURL = getClient().createQueue(new CreateQueueRequest(name)).getQueueUrl(); } catch (AmazonServiceException ase) { logException(...
[ "public", "static", "String", "createQueue", "(", "String", "name", ")", "{", "if", "(", "StringUtils", ".", "isBlank", "(", "name", ")", ")", "{", "return", "null", ";", "}", "String", "queueURL", "=", "getQueueURL", "(", "name", ")", ";", "if", "(", ...
Creates a new SQS queue on AWS. @param name queue name @return the queue URL or null
[ "Creates", "a", "new", "SQS", "queue", "on", "AWS", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-server/src/main/java/com/erudika/para/queue/AWSQueueUtils.java#L101-L116
122,316
Erudika/para
para-server/src/main/java/com/erudika/para/queue/AWSQueueUtils.java
AWSQueueUtils.deleteQueue
public static void deleteQueue(String queueURL) { if (!StringUtils.isBlank(queueURL)) { try { getClient().deleteQueue(new DeleteQueueRequest(queueURL)); } catch (AmazonServiceException ase) { logException(ase); } catch (AmazonClientException ace) { logger.error("Could not reach SQS. {0}", ace.toS...
java
public static void deleteQueue(String queueURL) { if (!StringUtils.isBlank(queueURL)) { try { getClient().deleteQueue(new DeleteQueueRequest(queueURL)); } catch (AmazonServiceException ase) { logException(ase); } catch (AmazonClientException ace) { logger.error("Could not reach SQS. {0}", ace.toS...
[ "public", "static", "void", "deleteQueue", "(", "String", "queueURL", ")", "{", "if", "(", "!", "StringUtils", ".", "isBlank", "(", "queueURL", ")", ")", "{", "try", "{", "getClient", "(", ")", ".", "deleteQueue", "(", "new", "DeleteQueueRequest", "(", "...
Deletes an SQS queue on AWS. @param queueURL URL of the SQS queue
[ "Deletes", "an", "SQS", "queue", "on", "AWS", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-server/src/main/java/com/erudika/para/queue/AWSQueueUtils.java#L122-L132
122,317
Erudika/para
para-server/src/main/java/com/erudika/para/queue/AWSQueueUtils.java
AWSQueueUtils.getQueueURL
public static String getQueueURL(String name) { try { return getClient().getQueueUrl(name).getQueueUrl(); } catch (Exception e) { logger.info("Queue '{}' could not be found: {}", name, e.getMessage()); return null; } }
java
public static String getQueueURL(String name) { try { return getClient().getQueueUrl(name).getQueueUrl(); } catch (Exception e) { logger.info("Queue '{}' could not be found: {}", name, e.getMessage()); return null; } }
[ "public", "static", "String", "getQueueURL", "(", "String", "name", ")", "{", "try", "{", "return", "getClient", "(", ")", ".", "getQueueUrl", "(", "name", ")", ".", "getQueueUrl", "(", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "logger",...
Returns the SQS queue URL. @param name queue name @return the URL of the queue
[ "Returns", "the", "SQS", "queue", "URL", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-server/src/main/java/com/erudika/para/queue/AWSQueueUtils.java#L139-L146
122,318
Erudika/para
para-server/src/main/java/com/erudika/para/queue/AWSQueueUtils.java
AWSQueueUtils.listQueues
public static List<String> listQueues() { List<String> list = new ArrayList<>(); try { list = getClient().listQueues().getQueueUrls(); } catch (AmazonServiceException ase) { logException(ase); } catch (AmazonClientException ace) { logger.error("Could not reach SQS. {0}", ace.toString()); } return l...
java
public static List<String> listQueues() { List<String> list = new ArrayList<>(); try { list = getClient().listQueues().getQueueUrls(); } catch (AmazonServiceException ase) { logException(ase); } catch (AmazonClientException ace) { logger.error("Could not reach SQS. {0}", ace.toString()); } return l...
[ "public", "static", "List", "<", "String", ">", "listQueues", "(", ")", "{", "List", "<", "String", ">", "list", "=", "new", "ArrayList", "<>", "(", ")", ";", "try", "{", "list", "=", "getClient", "(", ")", ".", "listQueues", "(", ")", ".", "getQue...
Returns a list of URLs for all available queues on SQS. @return a list or queue URLs
[ "Returns", "a", "list", "of", "URLs", "for", "all", "available", "queues", "on", "SQS", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-server/src/main/java/com/erudika/para/queue/AWSQueueUtils.java#L152-L162
122,319
Erudika/para
para-server/src/main/java/com/erudika/para/queue/AWSQueueUtils.java
AWSQueueUtils.pushMessages
public static void pushMessages(String queueURL, List<String> messages) { if (!StringUtils.isBlank(queueURL) && messages != null) { // only allow strings - ie JSON try { int j = 0; List<SendMessageBatchRequestEntry> msgs = new ArrayList<>(MAX_MESSAGES); for (int i = 0; i < messages.size(); i++) { ...
java
public static void pushMessages(String queueURL, List<String> messages) { if (!StringUtils.isBlank(queueURL) && messages != null) { // only allow strings - ie JSON try { int j = 0; List<SendMessageBatchRequestEntry> msgs = new ArrayList<>(MAX_MESSAGES); for (int i = 0; i < messages.size(); i++) { ...
[ "public", "static", "void", "pushMessages", "(", "String", "queueURL", ",", "List", "<", "String", ">", "messages", ")", "{", "if", "(", "!", "StringUtils", ".", "isBlank", "(", "queueURL", ")", "&&", "messages", "!=", "null", ")", "{", "// only allow stri...
Pushes a number of messages in batch to an SQS queue. @param queueURL the URL of the SQS queue @param messages the massage bodies
[ "Pushes", "a", "number", "of", "messages", "in", "batch", "to", "an", "SQS", "queue", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-server/src/main/java/com/erudika/para/queue/AWSQueueUtils.java#L169-L196
122,320
Erudika/para
para-server/src/main/java/com/erudika/para/queue/AWSQueueUtils.java
AWSQueueUtils.pullMessages
public static List<String> pullMessages(String queueURL, int numberOfMessages) { List<String> messages = new ArrayList<>(); if (!StringUtils.isBlank(queueURL)) { try { int batchSteps = 1; int maxForBatch = numberOfMessages; if ((numberOfMessages > MAX_MESSAGES)) { batchSteps = (numberOfMessages ...
java
public static List<String> pullMessages(String queueURL, int numberOfMessages) { List<String> messages = new ArrayList<>(); if (!StringUtils.isBlank(queueURL)) { try { int batchSteps = 1; int maxForBatch = numberOfMessages; if ((numberOfMessages > MAX_MESSAGES)) { batchSteps = (numberOfMessages ...
[ "public", "static", "List", "<", "String", ">", "pullMessages", "(", "String", "queueURL", ",", "int", "numberOfMessages", ")", "{", "List", "<", "String", ">", "messages", "=", "new", "ArrayList", "<>", "(", ")", ";", "if", "(", "!", "StringUtils", ".",...
Pulls a number of messages from an SQS queue. @param queueURL the URL of the SQS queue @param numberOfMessages the number of messages to pull @return a list of messages
[ "Pulls", "a", "number", "of", "messages", "from", "an", "SQS", "queue", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-server/src/main/java/com/erudika/para/queue/AWSQueueUtils.java#L204-L234
122,321
Erudika/para
para-server/src/main/java/com/erudika/para/queue/AWSQueueUtils.java
AWSQueueUtils.startPollingForMessages
public static void startPollingForMessages(final String queueURL) { if (!StringUtils.isBlank(queueURL) && !POLLING_THREADS.containsKey(queueURL)) { logger.info("Starting SQS river using queue {} (polling interval: {}s)", queueURL, POLLING_INTERVAL); POLLING_THREADS.putIfAbsent(queueURL, Para.getExecutorService(...
java
public static void startPollingForMessages(final String queueURL) { if (!StringUtils.isBlank(queueURL) && !POLLING_THREADS.containsKey(queueURL)) { logger.info("Starting SQS river using queue {} (polling interval: {}s)", queueURL, POLLING_INTERVAL); POLLING_THREADS.putIfAbsent(queueURL, Para.getExecutorService(...
[ "public", "static", "void", "startPollingForMessages", "(", "final", "String", "queueURL", ")", "{", "if", "(", "!", "StringUtils", ".", "isBlank", "(", "queueURL", ")", "&&", "!", "POLLING_THREADS", ".", "containsKey", "(", "queueURL", ")", ")", "{", "logge...
Starts polling for messages from SQS in a separate thread. @param queueURL a queue URL
[ "Starts", "polling", "for", "messages", "from", "SQS", "in", "a", "separate", "thread", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-server/src/main/java/com/erudika/para/queue/AWSQueueUtils.java#L240-L250
122,322
Erudika/para
para-server/src/main/java/com/erudika/para/queue/AWSQueueUtils.java
AWSQueueUtils.stopPollingForMessages
public static void stopPollingForMessages(String queueURL) { if (!StringUtils.isBlank(queueURL) && POLLING_THREADS.containsKey(queueURL)) { logger.info("Stopping SQS river on queue {} ...", queueURL); POLLING_THREADS.get(queueURL).cancel(true); POLLING_THREADS.remove(queueURL); } }
java
public static void stopPollingForMessages(String queueURL) { if (!StringUtils.isBlank(queueURL) && POLLING_THREADS.containsKey(queueURL)) { logger.info("Stopping SQS river on queue {} ...", queueURL); POLLING_THREADS.get(queueURL).cancel(true); POLLING_THREADS.remove(queueURL); } }
[ "public", "static", "void", "stopPollingForMessages", "(", "String", "queueURL", ")", "{", "if", "(", "!", "StringUtils", ".", "isBlank", "(", "queueURL", ")", "&&", "POLLING_THREADS", ".", "containsKey", "(", "queueURL", ")", ")", "{", "logger", ".", "info"...
Stops the thread that has been polling for messages. @param queueURL the queue URL
[ "Stops", "the", "thread", "that", "has", "been", "polling", "for", "messages", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-server/src/main/java/com/erudika/para/queue/AWSQueueUtils.java#L256-L262
122,323
Erudika/para
para-core/src/main/java/com/erudika/para/core/Linker.java
Linker.getNstd
public List<Map<String, Object>> getNstd() { if (nstd == null) { nstd = new ArrayList<>(); } return nstd; }
java
public List<Map<String, Object>> getNstd() { if (nstd == null) { nstd = new ArrayList<>(); } return nstd; }
[ "public", "List", "<", "Map", "<", "String", ",", "Object", ">", ">", "getNstd", "(", ")", "{", "if", "(", "nstd", "==", "null", ")", "{", "nstd", "=", "new", "ArrayList", "<>", "(", ")", ";", "}", "return", "nstd", ";", "}" ]
Get the nested objects that are linked by this link. @return a 2-element array of objects or null
[ "Get", "the", "nested", "objects", "that", "are", "linked", "by", "this", "link", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-core/src/main/java/com/erudika/para/core/Linker.java#L212-L217
122,324
Erudika/para
para-core/src/main/java/com/erudika/para/core/Linker.java
Linker.addNestedObject
public void addNestedObject(ParaObject obj) { if (obj != null) { getNstd().add(ParaObjectUtils.getAnnotatedFields(obj, false)); } }
java
public void addNestedObject(ParaObject obj) { if (obj != null) { getNstd().add(ParaObjectUtils.getAnnotatedFields(obj, false)); } }
[ "public", "void", "addNestedObject", "(", "ParaObject", "obj", ")", "{", "if", "(", "obj", "!=", "null", ")", "{", "getNstd", "(", ")", ".", "add", "(", "ParaObjectUtils", ".", "getAnnotatedFields", "(", "obj", ",", "false", ")", ")", ";", "}", "}" ]
Add an object to nest inside the linker object. Used for joining queries when searching objects in a many-to-many relationship. @param obj object
[ "Add", "an", "object", "to", "nest", "inside", "the", "linker", "object", ".", "Used", "for", "joining", "queries", "when", "searching", "objects", "in", "a", "many", "-", "to", "-", "many", "relationship", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-core/src/main/java/com/erudika/para/core/Linker.java#L232-L236
122,325
Erudika/para
para-server/src/main/java/com/erudika/para/security/CachedCsrfTokenRepository.java
CachedCsrfTokenRepository.saveToken
public void saveToken(CsrfToken t, HttpServletRequest request, HttpServletResponse response) { String ident = getIdentifierFromCookie(request); if (ident != null) { String key = ident.concat(parameterName); CsrfToken token = loadToken(request); if (token == null) { token = generateToken(null); if (...
java
public void saveToken(CsrfToken t, HttpServletRequest request, HttpServletResponse response) { String ident = getIdentifierFromCookie(request); if (ident != null) { String key = ident.concat(parameterName); CsrfToken token = loadToken(request); if (token == null) { token = generateToken(null); if (...
[ "public", "void", "saveToken", "(", "CsrfToken", "t", ",", "HttpServletRequest", "request", ",", "HttpServletResponse", "response", ")", "{", "String", "ident", "=", "getIdentifierFromCookie", "(", "request", ")", ";", "if", "(", "ident", "!=", "null", ")", "{...
Saves a CSRF token in cache. @param t (ignored) @param request HTTP request @param response HTTP response
[ "Saves", "a", "CSRF", "token", "in", "cache", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-server/src/main/java/com/erudika/para/security/CachedCsrfTokenRepository.java#L76-L91
122,326
Erudika/para
para-server/src/main/java/com/erudika/para/security/CachedCsrfTokenRepository.java
CachedCsrfTokenRepository.loadToken
public CsrfToken loadToken(HttpServletRequest request) { CsrfToken token = null; String ident = getIdentifierFromCookie(request); if (ident != null) { String key = ident.concat(parameterName); if (Config.isCacheEnabled()) { token = cache.get(Config.getRootAppIdentifier(), key); } else { Object[] ...
java
public CsrfToken loadToken(HttpServletRequest request) { CsrfToken token = null; String ident = getIdentifierFromCookie(request); if (ident != null) { String key = ident.concat(parameterName); if (Config.isCacheEnabled()) { token = cache.get(Config.getRootAppIdentifier(), key); } else { Object[] ...
[ "public", "CsrfToken", "loadToken", "(", "HttpServletRequest", "request", ")", "{", "CsrfToken", "token", "=", "null", ";", "String", "ident", "=", "getIdentifierFromCookie", "(", "request", ")", ";", "if", "(", "ident", "!=", "null", ")", "{", "String", "ke...
Loads a CSRF token from cache. @param request HTTP request @return the token
[ "Loads", "a", "CSRF", "token", "from", "cache", "." ]
5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9
https://github.com/Erudika/para/blob/5ba096c477042ea7b18e9a0e8b5b1ee0f5bd6ce9/para-server/src/main/java/com/erudika/para/security/CachedCsrfTokenRepository.java#L98-L118
122,327
flipkart-incubator/zjsonpatch
src/main/java/com/flipkart/zjsonpatch/JsonDiff.java
JsonDiff.computeRelativePath
private static JsonPointer computeRelativePath(JsonPointer path, int startIdx, int endIdx, List<Diff> diffs) { List<Integer> counters = new ArrayList<Integer>(path.size()); for (int i = 0; i < path.size(); i++) { counters.add(0); } for (int i = startIdx; i <= endIdx; i++) { ...
java
private static JsonPointer computeRelativePath(JsonPointer path, int startIdx, int endIdx, List<Diff> diffs) { List<Integer> counters = new ArrayList<Integer>(path.size()); for (int i = 0; i < path.size(); i++) { counters.add(0); } for (int i = startIdx; i <= endIdx; i++) { ...
[ "private", "static", "JsonPointer", "computeRelativePath", "(", "JsonPointer", "path", ",", "int", "startIdx", ",", "int", "endIdx", ",", "List", "<", "Diff", ">", "diffs", ")", "{", "List", "<", "Integer", ">", "counters", "=", "new", "ArrayList", "<", "I...
Finds the longest common Ancestor ending at Array
[ "Finds", "the", "longest", "common", "Ancestor", "ending", "at", "Array" ]
797278e24d8a3fb0481f0aa581f08b66c010020f
https://github.com/flipkart-incubator/zjsonpatch/blob/797278e24d8a3fb0481f0aa581f08b66c010020f/src/main/java/com/flipkart/zjsonpatch/JsonDiff.java#L215-L229
122,328
flipkart-incubator/zjsonpatch
src/main/java/com/flipkart/zjsonpatch/JsonPointer.java
JsonPointer.parse
public static JsonPointer parse(String path) throws IllegalArgumentException { StringBuilder reftoken = null; List<RefToken> result = new ArrayList<RefToken>(); for (int i = 0; i < path.length(); ++i) { char c = path.charAt(i); // Require leading slash if (i...
java
public static JsonPointer parse(String path) throws IllegalArgumentException { StringBuilder reftoken = null; List<RefToken> result = new ArrayList<RefToken>(); for (int i = 0; i < path.length(); ++i) { char c = path.charAt(i); // Require leading slash if (i...
[ "public", "static", "JsonPointer", "parse", "(", "String", "path", ")", "throws", "IllegalArgumentException", "{", "StringBuilder", "reftoken", "=", "null", ";", "List", "<", "RefToken", ">", "result", "=", "new", "ArrayList", "<", "RefToken", ">", "(", ")", ...
Parses a valid string representation of a JSON Pointer. @param path The string representation to be parsed. @return An instance of {@link JsonPointer} conforming to the specified string representation. @throws IllegalArgumentException The specified JSON Pointer is invalid.
[ "Parses", "a", "valid", "string", "representation", "of", "a", "JSON", "Pointer", "." ]
797278e24d8a3fb0481f0aa581f08b66c010020f
https://github.com/flipkart-incubator/zjsonpatch/blob/797278e24d8a3fb0481f0aa581f08b66c010020f/src/main/java/com/flipkart/zjsonpatch/JsonPointer.java#L67-L109
122,329
flipkart-incubator/zjsonpatch
src/main/java/com/flipkart/zjsonpatch/JsonPointer.java
JsonPointer.append
JsonPointer append(String field) { RefToken[] newTokens = Arrays.copyOf(tokens, tokens.length + 1); newTokens[tokens.length] = new RefToken(field); return new JsonPointer(newTokens); }
java
JsonPointer append(String field) { RefToken[] newTokens = Arrays.copyOf(tokens, tokens.length + 1); newTokens[tokens.length] = new RefToken(field); return new JsonPointer(newTokens); }
[ "JsonPointer", "append", "(", "String", "field", ")", "{", "RefToken", "[", "]", "newTokens", "=", "Arrays", ".", "copyOf", "(", "tokens", ",", "tokens", ".", "length", "+", "1", ")", ";", "newTokens", "[", "tokens", ".", "length", "]", "=", "new", "...
Creates a new JSON pointer to the specified field of the object referenced by this instance. @param field The desired field name, or any valid JSON Pointer reference token @return The new {@link JsonPointer} instance.
[ "Creates", "a", "new", "JSON", "pointer", "to", "the", "specified", "field", "of", "the", "object", "referenced", "by", "this", "instance", "." ]
797278e24d8a3fb0481f0aa581f08b66c010020f
https://github.com/flipkart-incubator/zjsonpatch/blob/797278e24d8a3fb0481f0aa581f08b66c010020f/src/main/java/com/flipkart/zjsonpatch/JsonPointer.java#L125-L129
122,330
flipkart-incubator/zjsonpatch
src/main/java/com/flipkart/zjsonpatch/JsonPointer.java
JsonPointer.get
public RefToken get(int index) throws IndexOutOfBoundsException { if (index < 0 || index >= tokens.length) throw new IndexOutOfBoundsException("Illegal index: " + index); return tokens[index]; }
java
public RefToken get(int index) throws IndexOutOfBoundsException { if (index < 0 || index >= tokens.length) throw new IndexOutOfBoundsException("Illegal index: " + index); return tokens[index]; }
[ "public", "RefToken", "get", "(", "int", "index", ")", "throws", "IndexOutOfBoundsException", "{", "if", "(", "index", "<", "0", "||", "index", ">=", "tokens", ".", "length", ")", "throw", "new", "IndexOutOfBoundsException", "(", "\"Illegal index: \"", "+", "i...
Retrieves the reference token at the specified index. @param index The desired reference token index. @return The specified instance of {@link RefToken}. @throws IndexOutOfBoundsException The specified index is illegal.
[ "Retrieves", "the", "reference", "token", "at", "the", "specified", "index", "." ]
797278e24d8a3fb0481f0aa581f08b66c010020f
https://github.com/flipkart-incubator/zjsonpatch/blob/797278e24d8a3fb0481f0aa581f08b66c010020f/src/main/java/com/flipkart/zjsonpatch/JsonPointer.java#L178-L181
122,331
flipkart-incubator/zjsonpatch
src/main/java/com/flipkart/zjsonpatch/JsonPointer.java
JsonPointer.evaluate
public JsonNode evaluate(final JsonNode document) throws JsonPointerEvaluationException { JsonNode current = document; for (int idx = 0; idx < tokens.length; ++idx) { final RefToken token = tokens[idx]; if (current.isArray()) { if (!token.isArrayIndex()) ...
java
public JsonNode evaluate(final JsonNode document) throws JsonPointerEvaluationException { JsonNode current = document; for (int idx = 0; idx < tokens.length; ++idx) { final RefToken token = tokens[idx]; if (current.isArray()) { if (!token.isArrayIndex()) ...
[ "public", "JsonNode", "evaluate", "(", "final", "JsonNode", "document", ")", "throws", "JsonPointerEvaluationException", "{", "JsonNode", "current", "=", "document", ";", "for", "(", "int", "idx", "=", "0", ";", "idx", "<", "tokens", ".", "length", ";", "++"...
Takes a target document and resolves the node represented by this instance. The evaluation semantics are described in <a href="https://tools.ietf.org/html/rfc6901#section-4">RFC 6901 sectino 4</a>. @param document The target document against which to evaluate the JSON pointer. @return The {@link JsonNode} resolved by...
[ "Takes", "a", "target", "document", "and", "resolves", "the", "node", "represented", "by", "this", "instance", "." ]
797278e24d8a3fb0481f0aa581f08b66c010020f
https://github.com/flipkart-incubator/zjsonpatch/blob/797278e24d8a3fb0481f0aa581f08b66c010020f/src/main/java/com/flipkart/zjsonpatch/JsonPointer.java#L222-L245
122,332
spring-projects/spring-data-solr
src/main/java/org/springframework/data/solr/core/query/StatsOptions.java
StatsOptions.addField
public FieldStatsOptions addField(Field field) { Assert.notNull(field, "Field for statistics must not be 'null'."); state.fields.add(field); return new FieldStatsOptions(field, state); }
java
public FieldStatsOptions addField(Field field) { Assert.notNull(field, "Field for statistics must not be 'null'."); state.fields.add(field); return new FieldStatsOptions(field, state); }
[ "public", "FieldStatsOptions", "addField", "(", "Field", "field", ")", "{", "Assert", ".", "notNull", "(", "field", ",", "\"Field for statistics must not be 'null'.\"", ")", ";", "state", ".", "fields", ".", "add", "(", "field", ")", ";", "return", "new", "Fie...
Adds a field to the statistics to be requested. @param field @return
[ "Adds", "a", "field", "to", "the", "statistics", "to", "be", "requested", "." ]
20be5cb82498b70134dfda6c1a91ad21f8e657e0
https://github.com/spring-projects/spring-data-solr/blob/20be5cb82498b70134dfda6c1a91ad21f8e657e0/src/main/java/org/springframework/data/solr/core/query/StatsOptions.java#L53-L59
122,333
spring-projects/spring-data-solr
src/main/java/org/springframework/data/solr/core/query/StatsOptions.java
StatsOptions.addField
public FieldStatsOptions addField(String fieldName) { Assert.hasText(fieldName, "Fieldname for statistics must not be blank."); return addField(new SimpleField(fieldName)); }
java
public FieldStatsOptions addField(String fieldName) { Assert.hasText(fieldName, "Fieldname for statistics must not be blank."); return addField(new SimpleField(fieldName)); }
[ "public", "FieldStatsOptions", "addField", "(", "String", "fieldName", ")", "{", "Assert", ".", "hasText", "(", "fieldName", ",", "\"Fieldname for statistics must not be blank.\"", ")", ";", "return", "addField", "(", "new", "SimpleField", "(", "fieldName", ")", ")"...
Adds a field via its name to the statistics to be requested. @param fieldName @return
[ "Adds", "a", "field", "via", "its", "name", "to", "the", "statistics", "to", "be", "requested", "." ]
20be5cb82498b70134dfda6c1a91ad21f8e657e0
https://github.com/spring-projects/spring-data-solr/blob/20be5cb82498b70134dfda6c1a91ad21f8e657e0/src/main/java/org/springframework/data/solr/core/query/StatsOptions.java#L67-L72
122,334
spring-projects/spring-data-solr
src/main/java/org/springframework/data/solr/core/query/SimpleQuery.java
SimpleQuery.addGroupByField
@Deprecated public final <T extends Query> T addGroupByField(String fieldname) { return addGroupByField(new SimpleField(fieldname)); }
java
@Deprecated public final <T extends Query> T addGroupByField(String fieldname) { return addGroupByField(new SimpleField(fieldname)); }
[ "@", "Deprecated", "public", "final", "<", "T", "extends", "Query", ">", "T", "addGroupByField", "(", "String", "fieldname", ")", "{", "return", "addGroupByField", "(", "new", "SimpleField", "(", "fieldname", ")", ")", ";", "}" ]
add grouping on field name @param fieldname must not be null @return @deprecated in favor of {@link GroupOptions} @see GroupOptions
[ "add", "grouping", "on", "field", "name" ]
20be5cb82498b70134dfda6c1a91ad21f8e657e0
https://github.com/spring-projects/spring-data-solr/blob/20be5cb82498b70134dfda6c1a91ad21f8e657e0/src/main/java/org/springframework/data/solr/core/query/SimpleQuery.java#L224-L227
122,335
spring-projects/spring-data-solr
src/main/java/org/springframework/data/solr/core/query/SpellcheckOptions.java
SpellcheckOptions.collateParam
public SpellcheckOptions collateParam(String param, Object value) { return potentiallySetCollate().createNewAndAppend(SpellingParams.SPELLCHECK_COLLATE_PARAM_OVERRIDE + param, value); }
java
public SpellcheckOptions collateParam(String param, Object value) { return potentiallySetCollate().createNewAndAppend(SpellingParams.SPELLCHECK_COLLATE_PARAM_OVERRIDE + param, value); }
[ "public", "SpellcheckOptions", "collateParam", "(", "String", "param", ",", "Object", "value", ")", "{", "return", "potentiallySetCollate", "(", ")", ".", "createNewAndAppend", "(", "SpellingParams", ".", "SPELLCHECK_COLLATE_PARAM_OVERRIDE", "+", "param", ",", "value"...
This parameter prefix can be used to specify any additional parameters that you wish to the Spellchecker to use when internally validating collation queries. @param param @param value @return
[ "This", "parameter", "prefix", "can", "be", "used", "to", "specify", "any", "additional", "parameters", "that", "you", "wish", "to", "the", "Spellchecker", "to", "use", "when", "internally", "validating", "collation", "queries", "." ]
20be5cb82498b70134dfda6c1a91ad21f8e657e0
https://github.com/spring-projects/spring-data-solr/blob/20be5cb82498b70134dfda6c1a91ad21f8e657e0/src/main/java/org/springframework/data/solr/core/query/SpellcheckOptions.java#L232-L234
122,336
spring-projects/spring-data-solr
src/main/java/org/springframework/data/solr/core/query/HighlightOptions.java
HighlightOptions.addField
public HighlightOptions addField(Field field) { Assert.notNull(field, "Field must not be null!"); this.fields.add(field); return this; }
java
public HighlightOptions addField(Field field) { Assert.notNull(field, "Field must not be null!"); this.fields.add(field); return this; }
[ "public", "HighlightOptions", "addField", "(", "Field", "field", ")", "{", "Assert", ".", "notNull", "(", "field", ",", "\"Field must not be null!\"", ")", ";", "this", ".", "fields", ".", "add", "(", "field", ")", ";", "return", "this", ";", "}" ]
Add field to highlight @param field @return
[ "Add", "field", "to", "highlight" ]
20be5cb82498b70134dfda6c1a91ad21f8e657e0
https://github.com/spring-projects/spring-data-solr/blob/20be5cb82498b70134dfda6c1a91ad21f8e657e0/src/main/java/org/springframework/data/solr/core/query/HighlightOptions.java#L48-L52
122,337
spring-projects/spring-data-solr
src/main/java/org/springframework/data/solr/core/query/HighlightOptions.java
HighlightOptions.addField
public HighlightOptions addField(String fieldname) { Assert.hasText(fieldname, "Fieldname must not be null nor empty!"); return addField(new SimpleField(fieldname)); }
java
public HighlightOptions addField(String fieldname) { Assert.hasText(fieldname, "Fieldname must not be null nor empty!"); return addField(new SimpleField(fieldname)); }
[ "public", "HighlightOptions", "addField", "(", "String", "fieldname", ")", "{", "Assert", ".", "hasText", "(", "fieldname", ",", "\"Fieldname must not be null nor empty!\"", ")", ";", "return", "addField", "(", "new", "SimpleField", "(", "fieldname", ")", ")", ";"...
Add name of field to highlight on @param fieldname @return
[ "Add", "name", "of", "field", "to", "highlight", "on" ]
20be5cb82498b70134dfda6c1a91ad21f8e657e0
https://github.com/spring-projects/spring-data-solr/blob/20be5cb82498b70134dfda6c1a91ad21f8e657e0/src/main/java/org/springframework/data/solr/core/query/HighlightOptions.java#L60-L63
122,338
spring-projects/spring-data-solr
src/main/java/org/springframework/data/solr/core/query/HighlightOptions.java
HighlightOptions.addHighlightParameter
public HighlightOptions addHighlightParameter(String parameterName, Object value) { return addHighlightParameter(new HighlightParameter(parameterName, value)); }
java
public HighlightOptions addHighlightParameter(String parameterName, Object value) { return addHighlightParameter(new HighlightParameter(parameterName, value)); }
[ "public", "HighlightOptions", "addHighlightParameter", "(", "String", "parameterName", ",", "Object", "value", ")", "{", "return", "addHighlightParameter", "(", "new", "HighlightParameter", "(", "parameterName", ",", "value", ")", ")", ";", "}" ]
Add parameter by name @param parameterName must not be null @param value @return
[ "Add", "parameter", "by", "name" ]
20be5cb82498b70134dfda6c1a91ad21f8e657e0
https://github.com/spring-projects/spring-data-solr/blob/20be5cb82498b70134dfda6c1a91ad21f8e657e0/src/main/java/org/springframework/data/solr/core/query/HighlightOptions.java#L224-L226
122,339
spring-projects/spring-data-solr
src/main/java/org/springframework/data/solr/core/query/HighlightOptions.java
HighlightOptions.getFieldsWithHighlightParameters
public Collection<FieldWithHighlightParameters> getFieldsWithHighlightParameters() { List<FieldWithHighlightParameters> result = new ArrayList<>(); for (Field candidate : fields) { if (candidate instanceof FieldWithHighlightParameters) { result.add((FieldWithHighlightParameters) candidate); } } ret...
java
public Collection<FieldWithHighlightParameters> getFieldsWithHighlightParameters() { List<FieldWithHighlightParameters> result = new ArrayList<>(); for (Field candidate : fields) { if (candidate instanceof FieldWithHighlightParameters) { result.add((FieldWithHighlightParameters) candidate); } } ret...
[ "public", "Collection", "<", "FieldWithHighlightParameters", ">", "getFieldsWithHighlightParameters", "(", ")", "{", "List", "<", "FieldWithHighlightParameters", ">", "result", "=", "new", "ArrayList", "<>", "(", ")", ";", "for", "(", "Field", "candidate", ":", "f...
Get Collection of fields that have field specific highlight options. @return
[ "Get", "Collection", "of", "fields", "that", "have", "field", "specific", "highlight", "options", "." ]
20be5cb82498b70134dfda6c1a91ad21f8e657e0
https://github.com/spring-projects/spring-data-solr/blob/20be5cb82498b70134dfda6c1a91ad21f8e657e0/src/main/java/org/springframework/data/solr/core/query/HighlightOptions.java#L256-L267
122,340
spring-projects/spring-data-solr
src/main/java/org/springframework/data/solr/core/convert/SolrConverterBase.java
SolrConverterBase.convert
@Nullable protected <T> T convert(Object source, Class<T> targetType) { return this.conversionService.convert(source, targetType); }
java
@Nullable protected <T> T convert(Object source, Class<T> targetType) { return this.conversionService.convert(source, targetType); }
[ "@", "Nullable", "protected", "<", "T", ">", "T", "convert", "(", "Object", "source", ",", "Class", "<", "T", ">", "targetType", ")", "{", "return", "this", ".", "conversionService", ".", "convert", "(", "source", ",", "targetType", ")", ";", "}" ]
Convert given object into target type @param source @param targetType @return
[ "Convert", "given", "object", "into", "target", "type" ]
20be5cb82498b70134dfda6c1a91ad21f8e657e0
https://github.com/spring-projects/spring-data-solr/blob/20be5cb82498b70134dfda6c1a91ad21f8e657e0/src/main/java/org/springframework/data/solr/core/convert/SolrConverterBase.java#L160-L163
122,341
spring-projects/spring-data-solr
src/main/java/org/springframework/data/solr/core/query/ParameterHolder.java
ParameterHolder.add
public void add(T queryParameter) { Assert.notNull(queryParameter, "QueryParameter must not be null!"); this.parameters.put(queryParameter.getName(), queryParameter); }
java
public void add(T queryParameter) { Assert.notNull(queryParameter, "QueryParameter must not be null!"); this.parameters.put(queryParameter.getName(), queryParameter); }
[ "public", "void", "add", "(", "T", "queryParameter", ")", "{", "Assert", ".", "notNull", "(", "queryParameter", ",", "\"QueryParameter must not be null!\"", ")", ";", "this", ".", "parameters", ".", "put", "(", "queryParameter", ".", "getName", "(", ")", ",", ...
add a query parameter @param queryParameter must not be null
[ "add", "a", "query", "parameter" ]
20be5cb82498b70134dfda6c1a91ad21f8e657e0
https://github.com/spring-projects/spring-data-solr/blob/20be5cb82498b70134dfda6c1a91ad21f8e657e0/src/main/java/org/springframework/data/solr/core/query/ParameterHolder.java#L52-L55
122,342
spring-projects/spring-data-solr
src/main/java/org/springframework/data/solr/core/query/FacetOptions.java
FacetOptions.addFacetOnField
public final FacetOptions addFacetOnField(Field field) { Assert.notNull(field, "Cannot facet on null field."); Assert.hasText(field.getName(), "Cannot facet on field with null/empty fieldname."); this.facetOnFields.add(field); return this; }
java
public final FacetOptions addFacetOnField(Field field) { Assert.notNull(field, "Cannot facet on null field."); Assert.hasText(field.getName(), "Cannot facet on field with null/empty fieldname."); this.facetOnFields.add(field); return this; }
[ "public", "final", "FacetOptions", "addFacetOnField", "(", "Field", "field", ")", "{", "Assert", ".", "notNull", "(", "field", ",", "\"Cannot facet on null field.\"", ")", ";", "Assert", ".", "hasText", "(", "field", ".", "getName", "(", ")", ",", "\"Cannot fa...
Append additional field for faceting @param field @return
[ "Append", "additional", "field", "for", "faceting" ]
20be5cb82498b70134dfda6c1a91ad21f8e657e0
https://github.com/spring-projects/spring-data-solr/blob/20be5cb82498b70134dfda6c1a91ad21f8e657e0/src/main/java/org/springframework/data/solr/core/query/FacetOptions.java#L106-L112
122,343
spring-projects/spring-data-solr
src/main/java/org/springframework/data/solr/core/query/FacetOptions.java
FacetOptions.addFacetByRange
public final FacetOptions addFacetByRange(FieldWithRangeParameters<?, ?, ?> field) { Assert.notNull(field, "Cannot range facet on null field."); Assert.hasText(field.getName(), "Cannot range facet on field with null/empty fieldname."); this.facetRangeOnFields.add(field); return this; }
java
public final FacetOptions addFacetByRange(FieldWithRangeParameters<?, ?, ?> field) { Assert.notNull(field, "Cannot range facet on null field."); Assert.hasText(field.getName(), "Cannot range facet on field with null/empty fieldname."); this.facetRangeOnFields.add(field); return this; }
[ "public", "final", "FacetOptions", "addFacetByRange", "(", "FieldWithRangeParameters", "<", "?", ",", "?", ",", "?", ">", "field", ")", "{", "Assert", ".", "notNull", "(", "field", ",", "\"Cannot range facet on null field.\"", ")", ";", "Assert", ".", "hasText",...
Append additional field for range faceting @param field the {@link Field} to be appended to range faceting fields @return this @since 1.5
[ "Append", "additional", "field", "for", "range", "faceting" ]
20be5cb82498b70134dfda6c1a91ad21f8e657e0
https://github.com/spring-projects/spring-data-solr/blob/20be5cb82498b70134dfda6c1a91ad21f8e657e0/src/main/java/org/springframework/data/solr/core/query/FacetOptions.java#L132-L138
122,344
spring-projects/spring-data-solr
src/main/java/org/springframework/data/solr/core/query/FacetOptions.java
FacetOptions.addFacetOnFlieldnames
public final FacetOptions addFacetOnFlieldnames(Collection<String> fieldnames) { Assert.notNull(fieldnames, "Fieldnames must not be null!"); for (String fieldname : fieldnames) { addFacetOnField(fieldname); } return this; }
java
public final FacetOptions addFacetOnFlieldnames(Collection<String> fieldnames) { Assert.notNull(fieldnames, "Fieldnames must not be null!"); for (String fieldname : fieldnames) { addFacetOnField(fieldname); } return this; }
[ "public", "final", "FacetOptions", "addFacetOnFlieldnames", "(", "Collection", "<", "String", ">", "fieldnames", ")", "{", "Assert", ".", "notNull", "(", "fieldnames", ",", "\"Fieldnames must not be null!\"", ")", ";", "for", "(", "String", "fieldname", ":", "fiel...
Append all fieldnames for faceting @param fieldnames @return
[ "Append", "all", "fieldnames", "for", "faceting" ]
20be5cb82498b70134dfda6c1a91ad21f8e657e0
https://github.com/spring-projects/spring-data-solr/blob/20be5cb82498b70134dfda6c1a91ad21f8e657e0/src/main/java/org/springframework/data/solr/core/query/FacetOptions.java#L178-L185
122,345
spring-projects/spring-data-solr
src/main/java/org/springframework/data/solr/core/QueryParserBase.java
QueryParserBase.createQueryStringFromNode
@Deprecated public String createQueryStringFromNode(Node node, int position) { return createQueryStringFromNode(node, position, null); }
java
@Deprecated public String createQueryStringFromNode(Node node, int position) { return createQueryStringFromNode(node, position, null); }
[ "@", "Deprecated", "public", "String", "createQueryStringFromNode", "(", "Node", "node", ",", "int", "position", ")", "{", "return", "createQueryStringFromNode", "(", "node", ",", "position", ",", "null", ")", ";", "}" ]
Create the plain query string representation of the given node. @param node @return @deprecated since 4.0. Use {@link #createQueryStringFromNode(Node, int, Class)} instead.
[ "Create", "the", "plain", "query", "string", "representation", "of", "the", "given", "node", "." ]
20be5cb82498b70134dfda6c1a91ad21f8e657e0
https://github.com/spring-projects/spring-data-solr/blob/20be5cb82498b70134dfda6c1a91ad21f8e657e0/src/main/java/org/springframework/data/solr/core/QueryParserBase.java#L174-L177
122,346
spring-projects/spring-data-solr
src/main/java/org/springframework/data/solr/core/query/AbstractQuery.java
AbstractQuery.addCriteria
@SuppressWarnings("unchecked") public final <T extends SolrDataQuery> T addCriteria(Criteria criteria) { Assert.notNull(criteria, "Cannot add null criteria."); if (this.criteria == null) { this.criteria = criteria; } else { if (this.criteria instanceof Crotch) { ((Crotch) this.criteria).add(criteria)...
java
@SuppressWarnings("unchecked") public final <T extends SolrDataQuery> T addCriteria(Criteria criteria) { Assert.notNull(criteria, "Cannot add null criteria."); if (this.criteria == null) { this.criteria = criteria; } else { if (this.criteria instanceof Crotch) { ((Crotch) this.criteria).add(criteria)...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "final", "<", "T", "extends", "SolrDataQuery", ">", "T", "addCriteria", "(", "Criteria", "criteria", ")", "{", "Assert", ".", "notNull", "(", "criteria", ",", "\"Cannot add null criteria.\"", ")", ";"...
Add an criteria to the query. The criteria will be connected using 'AND'. @param criteria must not be {@literal null}. @return
[ "Add", "an", "criteria", "to", "the", "query", ".", "The", "criteria", "will", "be", "connected", "using", "AND", "." ]
20be5cb82498b70134dfda6c1a91ad21f8e657e0
https://github.com/spring-projects/spring-data-solr/blob/20be5cb82498b70134dfda6c1a91ad21f8e657e0/src/main/java/org/springframework/data/solr/core/query/AbstractQuery.java#L45-L63
122,347
spring-projects/spring-data-solr
src/main/java/org/springframework/data/solr/core/query/result/DelegatingCursor.java
DelegatingCursor.doClose
protected void doClose() { this.delegate = Collections.<T> emptyList().iterator(); this.referenceQuery.clear(); this.position = -1; this.cursorMark = null; }
java
protected void doClose() { this.delegate = Collections.<T> emptyList().iterator(); this.referenceQuery.clear(); this.position = -1; this.cursorMark = null; }
[ "protected", "void", "doClose", "(", ")", "{", "this", ".", "delegate", "=", "Collections", ".", "<", "T", ">", "emptyList", "(", ")", ".", "iterator", "(", ")", ";", "this", ".", "referenceQuery", ".", "clear", "(", ")", ";", "this", ".", "position"...
Customization hook for clean up operations
[ "Customization", "hook", "for", "clean", "up", "operations" ]
20be5cb82498b70134dfda6c1a91ad21f8e657e0
https://github.com/spring-projects/spring-data-solr/blob/20be5cb82498b70134dfda6c1a91ad21f8e657e0/src/main/java/org/springframework/data/solr/core/query/result/DelegatingCursor.java#L188-L193
122,348
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/configuration/ArtifactHelpers.java
ArtifactHelpers.setupExcludedArtifacts
public static Set<Exclusion> setupExcludedArtifacts(List<String> excludedArtifacts) throws MojoExecutionException { Set<Exclusion> exclusionSet = new HashSet<>(); for (String artifact : Optional.ofNullable(excludedArtifacts).orElse(Collections.emptyList())) { exclusionSet.add(convertExclusio...
java
public static Set<Exclusion> setupExcludedArtifacts(List<String> excludedArtifacts) throws MojoExecutionException { Set<Exclusion> exclusionSet = new HashSet<>(); for (String artifact : Optional.ofNullable(excludedArtifacts).orElse(Collections.emptyList())) { exclusionSet.add(convertExclusio...
[ "public", "static", "Set", "<", "Exclusion", ">", "setupExcludedArtifacts", "(", "List", "<", "String", ">", "excludedArtifacts", ")", "throws", "MojoExecutionException", "{", "Set", "<", "Exclusion", ">", "exclusionSet", "=", "new", "HashSet", "<>", "(", ")", ...
Build up an exclusion set @param excludedArtifacts List of artifact coords patterns in the format <groupId>:<artifactId>[:<extension>][:<classifier>] @return Set<Exclusion> @throws MojoExecutionException if any patterns are invalid
[ "Build", "up", "an", "exclusion", "set" ]
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/configuration/ArtifactHelpers.java#L65-L75
122,349
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/configuration/ArtifactHelpers.java
ArtifactHelpers.convertExclusionPatternIntoExclusion
static Exclusion convertExclusionPatternIntoExclusion(String exceptionPattern) throws MojoExecutionException { Matcher matcher = COORDINATE_PATTERN.matcher(exceptionPattern); if (!matcher.matches()) { throw new MojoExecutionException(String.format("Bad artifact coordinates %s, expected forma...
java
static Exclusion convertExclusionPatternIntoExclusion(String exceptionPattern) throws MojoExecutionException { Matcher matcher = COORDINATE_PATTERN.matcher(exceptionPattern); if (!matcher.matches()) { throw new MojoExecutionException(String.format("Bad artifact coordinates %s, expected forma...
[ "static", "Exclusion", "convertExclusionPatternIntoExclusion", "(", "String", "exceptionPattern", ")", "throws", "MojoExecutionException", "{", "Matcher", "matcher", "=", "COORDINATE_PATTERN", ".", "matcher", "(", "exceptionPattern", ")", ";", "if", "(", "!", "matcher",...
Convert an exclusion pattern into an Exclusion object @param exceptionPattern coords pattern in the format <groupId>:<artifactId>[:<extension>][:<classifier>] @return Exclusion object @throws MojoExecutionException if coords pattern is invalid
[ "Convert", "an", "exclusion", "pattern", "into", "an", "Exclusion", "object" ]
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/configuration/ArtifactHelpers.java#L84-L91
122,350
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/configuration/ArtifactHelpers.java
ArtifactHelpers.artifactIsNotExcluded
public static boolean artifactIsNotExcluded(Collection<Exclusion> exclusions, Artifact artifact) { return Optional.ofNullable(exclusions).orElse(Collections.emptyList()) .stream().noneMatch(selectedExclusion -> null != artifact && selectedExclusion.getGroupId().equals(art...
java
public static boolean artifactIsNotExcluded(Collection<Exclusion> exclusions, Artifact artifact) { return Optional.ofNullable(exclusions).orElse(Collections.emptyList()) .stream().noneMatch(selectedExclusion -> null != artifact && selectedExclusion.getGroupId().equals(art...
[ "public", "static", "boolean", "artifactIsNotExcluded", "(", "Collection", "<", "Exclusion", ">", "exclusions", ",", "Artifact", "artifact", ")", "{", "return", "Optional", ".", "ofNullable", "(", "exclusions", ")", ".", "orElse", "(", "Collections", ".", "empty...
Check that an artifact is not excluded @param exclusions Collection of exclusions @param artifact Specific artifact to search through collection for @return boolean
[ "Check", "that", "an", "artifact", "is", "not", "excluded" ]
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/configuration/ArtifactHelpers.java#L124-L130
122,351
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/configuration/ArtifactHelpers.java
ArtifactHelpers.createDefaultJmeterArtifactsArray
public static List<String> createDefaultJmeterArtifactsArray(String jmeterVersion) { List<String> artifacts = new ArrayList<>(); JMETER_ARTIFACT_NAMES.forEach(artifactName -> artifacts.add(String.format("%s:%s:%s", JMETER_GROUP_ID, artifactName, jmeterVersion)) ); return...
java
public static List<String> createDefaultJmeterArtifactsArray(String jmeterVersion) { List<String> artifacts = new ArrayList<>(); JMETER_ARTIFACT_NAMES.forEach(artifactName -> artifacts.add(String.format("%s:%s:%s", JMETER_GROUP_ID, artifactName, jmeterVersion)) ); return...
[ "public", "static", "List", "<", "String", ">", "createDefaultJmeterArtifactsArray", "(", "String", "jmeterVersion", ")", "{", "List", "<", "String", ">", "artifacts", "=", "new", "ArrayList", "<>", "(", ")", ";", "JMETER_ARTIFACT_NAMES", ".", "forEach", "(", ...
Create a default Array of JMeter artifact coordinates @param jmeterVersion JMeter version for artifacts @return List<String> of artifact coords
[ "Create", "a", "default", "Array", "of", "JMeter", "artifact", "coordinates" ]
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/configuration/ArtifactHelpers.java#L138-L145
122,352
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/configuration/ArtifactHelpers.java
ArtifactHelpers.isArtifactIsOlderThanArtifact
public static boolean isArtifactIsOlderThanArtifact(Artifact artifact, Artifact comparisonArtifact) throws InvalidVersionSpecificationException { GenericVersionScheme genericVersionScheme = new GenericVersionScheme(); Version firstArtifactVersion = genericVersionScheme.parseVersion(artifact.getVersion()...
java
public static boolean isArtifactIsOlderThanArtifact(Artifact artifact, Artifact comparisonArtifact) throws InvalidVersionSpecificationException { GenericVersionScheme genericVersionScheme = new GenericVersionScheme(); Version firstArtifactVersion = genericVersionScheme.parseVersion(artifact.getVersion()...
[ "public", "static", "boolean", "isArtifactIsOlderThanArtifact", "(", "Artifact", "artifact", ",", "Artifact", "comparisonArtifact", ")", "throws", "InvalidVersionSpecificationException", "{", "GenericVersionScheme", "genericVersionScheme", "=", "new", "GenericVersionScheme", "(...
Check to see if a specified artifact is the same version, or a newer version that the comparative artifact @param artifact An artifact @param comparisonArtifact another Artifact to compare with. @return true if artifact is the same or a higher version. False if the artifact is a lower version @throws MojoEx...
[ "Check", "to", "see", "if", "a", "specified", "artifact", "is", "the", "same", "version", "or", "a", "newer", "version", "that", "the", "comparative", "artifact" ]
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/configuration/ArtifactHelpers.java#L165-L172
122,353
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/mojo/ConfigureJMeterMojo.java
ConfigureJMeterMojo.doExecute
@Override public void doExecute() throws MojoExecutionException { getLog().info(" "); getLog().info(LINE_SEPARATOR); getLog().info("C O N F I G U R I N G J M E T E R"); getLog().info(LINE_SEPARATOR); getLog().info(" "); processedArtifacts.clear(); JMeterCon...
java
@Override public void doExecute() throws MojoExecutionException { getLog().info(" "); getLog().info(LINE_SEPARATOR); getLog().info("C O N F I G U R I N G J M E T E R"); getLog().info(LINE_SEPARATOR); getLog().info(" "); processedArtifacts.clear(); JMeterCon...
[ "@", "Override", "public", "void", "doExecute", "(", ")", "throws", "MojoExecutionException", "{", "getLog", "(", ")", ".", "info", "(", "\" \"", ")", ";", "getLog", "(", ")", ".", "info", "(", "LINE_SEPARATOR", ")", ";", "getLog", "(", ")", ".", "info...
Configure a local instance of JMeter @throws MojoExecutionException Exception
[ "Configure", "a", "local", "instance", "of", "JMeter" ]
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/mojo/ConfigureJMeterMojo.java#L284-L323
122,354
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/mojo/ConfigureJMeterMojo.java
ConfigureJMeterMojo.generateJMeterDirectoryTree
private void generateJMeterDirectoryTree() { File workingDirectory = new File(jmeterDirectory, "bin"); workingDirectory.mkdirs(); JMeterConfigurationHolder.getInstance().setWorkingDirectory(workingDirectory); customPropertiesDirectory = new File(jmeterDirectory, "custom_properties"); ...
java
private void generateJMeterDirectoryTree() { File workingDirectory = new File(jmeterDirectory, "bin"); workingDirectory.mkdirs(); JMeterConfigurationHolder.getInstance().setWorkingDirectory(workingDirectory); customPropertiesDirectory = new File(jmeterDirectory, "custom_properties"); ...
[ "private", "void", "generateJMeterDirectoryTree", "(", ")", "{", "File", "workingDirectory", "=", "new", "File", "(", "jmeterDirectory", ",", "\"bin\"", ")", ";", "workingDirectory", ".", "mkdirs", "(", ")", ";", "JMeterConfigurationHolder", ".", "getInstance", "(...
Generate the directory tree utilised by JMeter.
[ "Generate", "the", "directory", "tree", "utilised", "by", "JMeter", "." ]
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/mojo/ConfigureJMeterMojo.java#L328-L345
122,355
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/mojo/ConfigureJMeterMojo.java
ConfigureJMeterMojo.configureJMeterArtifacts
private void configureJMeterArtifacts() { if (jmeterArtifacts.isEmpty()) { jmeterArtifacts = createDefaultJmeterArtifactsArray(jmeterVersion); } getLog().debug("JMeter Artifact List:"); jmeterArtifacts.forEach(artifact -> getLog().debug(artifact) ); ...
java
private void configureJMeterArtifacts() { if (jmeterArtifacts.isEmpty()) { jmeterArtifacts = createDefaultJmeterArtifactsArray(jmeterVersion); } getLog().debug("JMeter Artifact List:"); jmeterArtifacts.forEach(artifact -> getLog().debug(artifact) ); ...
[ "private", "void", "configureJMeterArtifacts", "(", ")", "{", "if", "(", "jmeterArtifacts", ".", "isEmpty", "(", ")", ")", "{", "jmeterArtifacts", "=", "createDefaultJmeterArtifactsArray", "(", "jmeterVersion", ")", ";", "}", "getLog", "(", ")", ".", "debug", ...
This sets the default list of artifacts that we use to set up a local instance of JMeter. We only use this default list if &lt;jmeterArtifacts&gt; has not been overridden in the POM.
[ "This", "sets", "the", "default", "list", "of", "artifacts", "that", "we", "use", "to", "set", "up", "a", "local", "instance", "of", "JMeter", ".", "We", "only", "use", "this", "default", "list", "if", "&lt", ";", "jmeterArtifacts&gt", ";", "has", "not",...
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/mojo/ConfigureJMeterMojo.java#L415-L424
122,356
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/mojo/ConfigureJMeterMojo.java
ConfigureJMeterMojo.copyExplicitLibraries
private void copyExplicitLibraries(List<String> desiredArtifacts, File destination, boolean downloadDependencies) throws MojoExecutionException { for (String desiredArtifact : desiredArtifacts) { copyExplicitLibrary(desiredArtifact, destination, downloadDependencies); } }
java
private void copyExplicitLibraries(List<String> desiredArtifacts, File destination, boolean downloadDependencies) throws MojoExecutionException { for (String desiredArtifact : desiredArtifacts) { copyExplicitLibrary(desiredArtifact, destination, downloadDependencies); } }
[ "private", "void", "copyExplicitLibraries", "(", "List", "<", "String", ">", "desiredArtifacts", ",", "File", "destination", ",", "boolean", "downloadDependencies", ")", "throws", "MojoExecutionException", "{", "for", "(", "String", "desiredArtifact", ":", "desiredArt...
Copy a list of libraries to a specific folder. @param desiredArtifacts A list of artifacts @param destination A destination folder to copy these artifacts to @param downloadDependencies Do we download dependencies @throws MojoExecutionException MojoExecutionException
[ "Copy", "a", "list", "of", "libraries", "to", "a", "specific", "folder", "." ]
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/mojo/ConfigureJMeterMojo.java#L464-L468
122,357
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/mojo/ConfigureJMeterMojo.java
ConfigureJMeterMojo.getArtifactResult
private Artifact getArtifactResult(Artifact desiredArtifact) throws MojoExecutionException {// NOSONAR ArtifactRequest artifactRequest = new ArtifactRequest(); artifactRequest.setArtifact(desiredArtifact); artifactRequest.setRepositories(repositoryList); try { return reposito...
java
private Artifact getArtifactResult(Artifact desiredArtifact) throws MojoExecutionException {// NOSONAR ArtifactRequest artifactRequest = new ArtifactRequest(); artifactRequest.setArtifact(desiredArtifact); artifactRequest.setRepositories(repositoryList); try { return reposito...
[ "private", "Artifact", "getArtifactResult", "(", "Artifact", "desiredArtifact", ")", "throws", "MojoExecutionException", "{", "// NOSONAR", "ArtifactRequest", "artifactRequest", "=", "new", "ArtifactRequest", "(", ")", ";", "artifactRequest", ".", "setArtifact", "(", "d...
Find a specific artifact in a remote repository @param desiredArtifact The artifact that we want to find @return Will return an ArtifactResult object @throws MojoExecutionException MojoExecutionException
[ "Find", "a", "specific", "artifact", "in", "a", "remote", "repository" ]
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/mojo/ConfigureJMeterMojo.java#L492-L501
122,358
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/mojo/ConfigureJMeterMojo.java
ConfigureJMeterMojo.copyArtifactIfRequired
private boolean copyArtifactIfRequired(Artifact artifactToCopy, Path destinationDirectory) throws MojoExecutionException { for (String ignoredArtifact : ignoredArtifacts) { Artifact artifactToIgnore = getArtifactResult(new DefaultArtifact(ignoredArtifact)); if (artifactToCopy.getFile().g...
java
private boolean copyArtifactIfRequired(Artifact artifactToCopy, Path destinationDirectory) throws MojoExecutionException { for (String ignoredArtifact : ignoredArtifacts) { Artifact artifactToIgnore = getArtifactResult(new DefaultArtifact(ignoredArtifact)); if (artifactToCopy.getFile().g...
[ "private", "boolean", "copyArtifactIfRequired", "(", "Artifact", "artifactToCopy", ",", "Path", "destinationDirectory", ")", "throws", "MojoExecutionException", "{", "for", "(", "String", "ignoredArtifact", ":", "ignoredArtifacts", ")", "{", "Artifact", "artifactToIgnore"...
Copy an Artifact to a directory @param artifactToCopy Artifact that needs to be copied. @param destinationDirectory Directory to copy the artifact to @return true if artifact copied, false if artifact not copied @throws MojoExecutionException Unable to copy file or resolve dependency, or unable to find artifact ...
[ "Copy", "an", "Artifact", "to", "a", "directory" ]
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/mojo/ConfigureJMeterMojo.java#L630-L665
122,359
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/configuration/JMeterArgumentsArray.java
JMeterArgumentsArray.buildArgumentsArray
public List<String> buildArgumentsArray() throws MojoExecutionException { if (!argumentList.contains(TESTFILE_OPT) && !disableTests) { throw new MojoExecutionException("No test(s) specified!"); } List<String> argumentsArray = new ArrayList<>(); for (JMeterCommandLineArgument...
java
public List<String> buildArgumentsArray() throws MojoExecutionException { if (!argumentList.contains(TESTFILE_OPT) && !disableTests) { throw new MojoExecutionException("No test(s) specified!"); } List<String> argumentsArray = new ArrayList<>(); for (JMeterCommandLineArgument...
[ "public", "List", "<", "String", ">", "buildArgumentsArray", "(", ")", "throws", "MojoExecutionException", "{", "if", "(", "!", "argumentList", ".", "contains", "(", "TESTFILE_OPT", ")", "&&", "!", "disableTests", ")", "{", "throw", "new", "MojoExecutionExceptio...
Generate an arguments array representing the command line options you want to send to JMeter. The order of the array is determined by the order the values in JMeterCommandLineArguments are defined. @return An array representing the command line sent to JMeter @throws MojoExecutionException Exception
[ "Generate", "an", "arguments", "array", "representing", "the", "command", "line", "options", "you", "want", "to", "send", "to", "JMeter", ".", "The", "order", "of", "the", "array", "is", "determined", "by", "the", "order", "the", "values", "in", "JMeterComma...
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/configuration/JMeterArgumentsArray.java#L242-L332
122,360
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/mojo/RunJMeterServerMojo.java
RunJMeterServerMojo.doExecute
@Override public void doExecute() throws MojoExecutionException { getLog().info(" "); getLog().info(LINE_SEPARATOR); getLog().info(" S T A R T I N G J M E T E R S E R V E R "); getLog().info(LINE_SEPARATOR); getLog().info(String.format(" Host: %s", exportedRmiHostname))...
java
@Override public void doExecute() throws MojoExecutionException { getLog().info(" "); getLog().info(LINE_SEPARATOR); getLog().info(" S T A R T I N G J M E T E R S E R V E R "); getLog().info(LINE_SEPARATOR); getLog().info(String.format(" Host: %s", exportedRmiHostname))...
[ "@", "Override", "public", "void", "doExecute", "(", ")", "throws", "MojoExecutionException", "{", "getLog", "(", ")", ".", "info", "(", "\" \"", ")", ";", "getLog", "(", ")", ".", "info", "(", "LINE_SEPARATOR", ")", ";", "getLog", "(", ")", ".", "info...
Load the JMeter server @throws MojoExecutionException MojoExecutionException
[ "Load", "the", "JMeter", "server" ]
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/mojo/RunJMeterServerMojo.java#L49-L58
122,361
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/mojo/RunJMeterMojo.java
RunJMeterMojo.doExecute
@Override public void doExecute() throws MojoExecutionException { getLog().info(" "); getLog().info(LINE_SEPARATOR); getLog().info(" P E R F O R M A N C E T E S T S"); getLog().info(LINE_SEPARATOR); getLog().info(" "); if (!testFilesDirectory.exists()) { ...
java
@Override public void doExecute() throws MojoExecutionException { getLog().info(" "); getLog().info(LINE_SEPARATOR); getLog().info(" P E R F O R M A N C E T E S T S"); getLog().info(LINE_SEPARATOR); getLog().info(" "); if (!testFilesDirectory.exists()) { ...
[ "@", "Override", "public", "void", "doExecute", "(", ")", "throws", "MojoExecutionException", "{", "getLog", "(", ")", ".", "info", "(", "\" \"", ")", ";", "getLog", "(", ")", ".", "info", "(", "LINE_SEPARATOR", ")", ";", "getLog", "(", ")", ".", "info...
Run all the JMeter tests. @throws MojoExecutionException MojoExecutionException
[ "Run", "all", "the", "JMeter", "tests", "." ]
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/mojo/RunJMeterMojo.java#L23-L62
122,362
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/mojo/AbstractJMeterMojo.java
AbstractJMeterMojo.computeJMeterArgumentsArray
protected JMeterArgumentsArray computeJMeterArgumentsArray(boolean disableGUI, boolean isCSVFormat) throws MojoExecutionException { JMeterArgumentsArray testArgs = new JMeterArgumentsArray(disableGUI, jmeterDirectory.getAbsolutePath()) .setResultsDirectory(resultsDirectory.getAbsolutePath()) ...
java
protected JMeterArgumentsArray computeJMeterArgumentsArray(boolean disableGUI, boolean isCSVFormat) throws MojoExecutionException { JMeterArgumentsArray testArgs = new JMeterArgumentsArray(disableGUI, jmeterDirectory.getAbsolutePath()) .setResultsDirectory(resultsDirectory.getAbsolutePath()) ...
[ "protected", "JMeterArgumentsArray", "computeJMeterArgumentsArray", "(", "boolean", "disableGUI", ",", "boolean", "isCSVFormat", ")", "throws", "MojoExecutionException", "{", "JMeterArgumentsArray", "testArgs", "=", "new", "JMeterArgumentsArray", "(", "disableGUI", ",", "jm...
Generate the initial JMeter Arguments array that is used to create the command line that we pass to JMeter. @throws MojoExecutionException
[ "Generate", "the", "initial", "JMeter", "Arguments", "array", "that", "is", "used", "to", "create", "the", "command", "line", "that", "we", "pass", "to", "JMeter", "." ]
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/mojo/AbstractJMeterMojo.java#L235-L253
122,363
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/mojo/AbstractJMeterMojo.java
AbstractJMeterMojo.loadMavenProxy
protected void loadMavenProxy() { if (null == settings) { return; } Proxy mvnProxy = settings.getActiveProxy(); if (mvnProxy != null) { ProxyConfiguration newProxyConfiguration = new ProxyConfiguration(); newProxyConfiguration.setHost(mvnProxy.getHost...
java
protected void loadMavenProxy() { if (null == settings) { return; } Proxy mvnProxy = settings.getActiveProxy(); if (mvnProxy != null) { ProxyConfiguration newProxyConfiguration = new ProxyConfiguration(); newProxyConfiguration.setHost(mvnProxy.getHost...
[ "protected", "void", "loadMavenProxy", "(", ")", "{", "if", "(", "null", "==", "settings", ")", "{", "return", ";", "}", "Proxy", "mvnProxy", "=", "settings", ".", "getActiveProxy", "(", ")", ";", "if", "(", "mvnProxy", "!=", "null", ")", "{", "ProxyCo...
Try to load the active maven proxy.
[ "Try", "to", "load", "the", "active", "maven", "proxy", "." ]
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/mojo/AbstractJMeterMojo.java#L258-L276
122,364
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/utility/UtilityFunctions.java
UtilityFunctions.humanReadableCommandLineOutput
public static String humanReadableCommandLineOutput(List<String> arguments) { //TODO investigate removing this, only used in tests StringBuilder debugOutput = new StringBuilder(); for (String argument : arguments) { debugOutput.append(argument).append(" "); } return d...
java
public static String humanReadableCommandLineOutput(List<String> arguments) { //TODO investigate removing this, only used in tests StringBuilder debugOutput = new StringBuilder(); for (String argument : arguments) { debugOutput.append(argument).append(" "); } return d...
[ "public", "static", "String", "humanReadableCommandLineOutput", "(", "List", "<", "String", ">", "arguments", ")", "{", "//TODO investigate removing this, only used in tests", "StringBuilder", "debugOutput", "=", "new", "StringBuilder", "(", ")", ";", "for", "(", "Strin...
Build a human readable command line from the arguments set by the plugin @param arguments Array of String @return String
[ "Build", "a", "human", "readable", "command", "line", "from", "the", "arguments", "set", "by", "the", "plugin" ]
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/utility/UtilityFunctions.java#L27-L34
122,365
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/utility/UtilityFunctions.java
UtilityFunctions.isNotSet
public static Boolean isNotSet(String value) { return null == value || value.isEmpty() || value.trim().length() == 0; }
java
public static Boolean isNotSet(String value) { return null == value || value.isEmpty() || value.trim().length() == 0; }
[ "public", "static", "Boolean", "isNotSet", "(", "String", "value", ")", "{", "return", "null", "==", "value", "||", "value", ".", "isEmpty", "(", ")", "||", "value", ".", "trim", "(", ")", ".", "length", "(", ")", "==", "0", ";", "}" ]
Utility function to check if a String is defined and not empty @param value String @return boolean
[ "Utility", "function", "to", "check", "if", "a", "String", "is", "defined", "and", "not", "empty" ]
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/utility/UtilityFunctions.java#L72-L74
122,366
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/utility/UtilityFunctions.java
UtilityFunctions.isNotSet
public static Boolean isNotSet(File value) { return null == value || value.toString().isEmpty() || value.toString().trim().length() == 0; }
java
public static Boolean isNotSet(File value) { return null == value || value.toString().isEmpty() || value.toString().trim().length() == 0; }
[ "public", "static", "Boolean", "isNotSet", "(", "File", "value", ")", "{", "return", "null", "==", "value", "||", "value", ".", "toString", "(", ")", ".", "isEmpty", "(", ")", "||", "value", ".", "toString", "(", ")", ".", "trim", "(", ")", ".", "l...
Utility function to check if File is defined and not empty @param value File @return boolean
[ "Utility", "function", "to", "check", "if", "File", "is", "defined", "and", "not", "empty" ]
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/utility/UtilityFunctions.java#L92-L94
122,367
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/mojo/RunJMeterGUIMojo.java
RunJMeterGUIMojo.doExecute
@Override public void doExecute() throws MojoExecutionException { getLog().info(" "); getLog().info(LINE_SEPARATOR); getLog().info(" S T A R T I N G J M E T E R G U I "); getLog().info(LINE_SEPARATOR); startJMeterGUI(initialiseJMeterArgumentsArray()); }
java
@Override public void doExecute() throws MojoExecutionException { getLog().info(" "); getLog().info(LINE_SEPARATOR); getLog().info(" S T A R T I N G J M E T E R G U I "); getLog().info(LINE_SEPARATOR); startJMeterGUI(initialiseJMeterArgumentsArray()); }
[ "@", "Override", "public", "void", "doExecute", "(", ")", "throws", "MojoExecutionException", "{", "getLog", "(", ")", ".", "info", "(", "\" \"", ")", ";", "getLog", "(", ")", ".", "info", "(", "LINE_SEPARATOR", ")", ";", "getLog", "(", ")", ".", "info...
Load the JMeter GUI @throws MojoExecutionException MojoExecutionException
[ "Load", "the", "JMeter", "GUI" ]
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/mojo/RunJMeterGUIMojo.java#L44-L51
122,368
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/properties/PropertiesFile.java
PropertiesFile.loadPropertiesFile
private Properties loadPropertiesFile(File propertiesFile) throws MojoExecutionException { // NOSONAR try (FileInputStream propertiesFileInputStream = new FileInputStream(propertiesFile)) { Properties loadedProperties = new Properties(); loadedProperties.load(propertiesFileInputStream); ...
java
private Properties loadPropertiesFile(File propertiesFile) throws MojoExecutionException { // NOSONAR try (FileInputStream propertiesFileInputStream = new FileInputStream(propertiesFile)) { Properties loadedProperties = new Properties(); loadedProperties.load(propertiesFileInputStream); ...
[ "private", "Properties", "loadPropertiesFile", "(", "File", "propertiesFile", ")", "throws", "MojoExecutionException", "{", "// NOSONAR", "try", "(", "FileInputStream", "propertiesFileInputStream", "=", "new", "FileInputStream", "(", "propertiesFile", ")", ")", "{", "Pr...
Take a properties file and load it into a Properties Object @param propertiesFile The file to try and load @return A properties object @throws MojoExecutionException MojoExecutionException
[ "Take", "a", "properties", "file", "and", "load", "it", "into", "a", "Properties", "Object" ]
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/properties/PropertiesFile.java#L65-L73
122,369
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/properties/PropertiesFile.java
PropertiesFile.loadProvidedPropertiesIfAvailable
public void loadProvidedPropertiesIfAvailable(File providedPropertiesFile, boolean replaceAllProperties) throws MojoExecutionException { if (providedPropertiesFile.exists()) { Properties providedPropertySet = loadPropertiesFile(providedPropertiesFile); if (replaceAllProperties) { ...
java
public void loadProvidedPropertiesIfAvailable(File providedPropertiesFile, boolean replaceAllProperties) throws MojoExecutionException { if (providedPropertiesFile.exists()) { Properties providedPropertySet = loadPropertiesFile(providedPropertiesFile); if (replaceAllProperties) { ...
[ "public", "void", "loadProvidedPropertiesIfAvailable", "(", "File", "providedPropertiesFile", ",", "boolean", "replaceAllProperties", ")", "throws", "MojoExecutionException", "{", "if", "(", "providedPropertiesFile", ".", "exists", "(", ")", ")", "{", "Properties", "pro...
Check if a file exists. If it does calculate if we need to merge it with existing properties, or replace all existing properties. @param providedPropertiesFile A properties file that will be check to see if it exists @param replaceAllProperties If we should replace all properties, or just merge them @throws MojoExe...
[ "Check", "if", "a", "file", "exists", ".", "If", "it", "does", "calculate", "if", "we", "need", "to", "merge", "it", "with", "existing", "properties", "or", "replace", "all", "existing", "properties", "." ]
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/properties/PropertiesFile.java#L82-L91
122,370
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/properties/PropertiesFile.java
PropertiesFile.addAndOverwriteProperties
public void addAndOverwriteProperties(Map<String, String> additionalProperties) { additionalProperties.values().removeAll(Collections.singleton(null)); for (Map.Entry<String, String> additionalPropertiesMap : additionalProperties.entrySet()) { if (!additionalPropertiesMap.getValue().trim().i...
java
public void addAndOverwriteProperties(Map<String, String> additionalProperties) { additionalProperties.values().removeAll(Collections.singleton(null)); for (Map.Entry<String, String> additionalPropertiesMap : additionalProperties.entrySet()) { if (!additionalPropertiesMap.getValue().trim().i...
[ "public", "void", "addAndOverwriteProperties", "(", "Map", "<", "String", ",", "String", ">", "additionalProperties", ")", "{", "additionalProperties", ".", "values", "(", ")", ".", "removeAll", "(", "Collections", ".", "singleton", "(", "null", ")", ")", ";",...
Merge a Map of properties into our Properties object The additions will overwrite any existing properties @param additionalProperties Map to merge into our Properties object
[ "Merge", "a", "Map", "of", "properties", "into", "our", "Properties", "object", "The", "additions", "will", "overwrite", "any", "existing", "properties" ]
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/properties/PropertiesFile.java#L99-L107
122,371
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/properties/PropertiesFile.java
PropertiesFile.writePropertiesToFile
public void writePropertiesToFile(File outputFile) throws MojoExecutionException {// NOSONAR stripOutReservedProperties(); //TODO if jmeter.properties write properties that are required for plugin if (properties.isEmpty()) { return; } try { try (FileOutput...
java
public void writePropertiesToFile(File outputFile) throws MojoExecutionException {// NOSONAR stripOutReservedProperties(); //TODO if jmeter.properties write properties that are required for plugin if (properties.isEmpty()) { return; } try { try (FileOutput...
[ "public", "void", "writePropertiesToFile", "(", "File", "outputFile", ")", "throws", "MojoExecutionException", "{", "// NOSONAR", "stripOutReservedProperties", "(", ")", ";", "//TODO if jmeter.properties write properties that are required for plugin", "if", "(", "properties", "...
Strip out any reserved properties and then write properties object to a file. @param outputFile The file that our properties object will be written to
[ "Strip", "out", "any", "reserved", "properties", "and", "then", "write", "properties", "object", "to", "a", "file", "." ]
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/properties/PropertiesFile.java#L114-L128
122,372
jmeter-maven-plugin/jmeter-maven-plugin
src/main/java/com/lazerycode/jmeter/properties/PropertiesFile.java
PropertiesFile.warnUserOfPossibleErrors
private void warnUserOfPossibleErrors(String newKey, Properties baseProperties) { for (String key : baseProperties.stringPropertyNames()) { if (!key.equals(newKey) && key.equalsIgnoreCase(newKey)) { LOGGER.warn("You have set a property called '{}' which is very similar to '{}'!", ...
java
private void warnUserOfPossibleErrors(String newKey, Properties baseProperties) { for (String key : baseProperties.stringPropertyNames()) { if (!key.equals(newKey) && key.equalsIgnoreCase(newKey)) { LOGGER.warn("You have set a property called '{}' which is very similar to '{}'!", ...
[ "private", "void", "warnUserOfPossibleErrors", "(", "String", "newKey", ",", "Properties", "baseProperties", ")", "{", "for", "(", "String", "key", ":", "baseProperties", ".", "stringPropertyNames", "(", ")", ")", "{", "if", "(", "!", "key", ".", "equals", "...
Print a warning out to the user to highlight potential typos in the properties they have set. @param newKey Property Value @param baseProperties Properties
[ "Print", "a", "warning", "out", "to", "the", "user", "to", "highlight", "potential", "typos", "in", "the", "properties", "they", "have", "set", "." ]
63dc8b49cc6b9542deb681e25a2ada6025ddbf6b
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/blob/63dc8b49cc6b9542deb681e25a2ada6025ddbf6b/src/main/java/com/lazerycode/jmeter/properties/PropertiesFile.java#L136-L143
122,373
wg/scrypt
src/main/java/com/lambdaworks/jni/JarLibraryLoader.java
JarLibraryLoader.load
public boolean load(String name, boolean verify) { boolean loaded = false; try { Platform platform = Platform.detect(); JarFile jar = new JarFile(codeSource.getLocation().getPath(), verify); try { for (String path : libCandidates(platform, name)) { ...
java
public boolean load(String name, boolean verify) { boolean loaded = false; try { Platform platform = Platform.detect(); JarFile jar = new JarFile(codeSource.getLocation().getPath(), verify); try { for (String path : libCandidates(platform, name)) { ...
[ "public", "boolean", "load", "(", "String", "name", ",", "boolean", "verify", ")", "{", "boolean", "loaded", "=", "false", ";", "try", "{", "Platform", "platform", "=", "Platform", ".", "detect", "(", ")", ";", "JarFile", "jar", "=", "new", "JarFile", ...
Load a shared library, and optionally verify the jar signatures. @param name Name of the library to load. @param verify Verify the jar file if signed. @return true if the library was successfully loaded.
[ "Load", "a", "shared", "library", "and", "optionally", "verify", "the", "jar", "signatures", "." ]
0675236370458e819ee21e4427c5f7f3f9485d33
https://github.com/wg/scrypt/blob/0675236370458e819ee21e4427c5f7f3f9485d33/src/main/java/com/lambdaworks/jni/JarLibraryLoader.java#L54-L80
122,374
wg/scrypt
src/main/java/com/lambdaworks/jni/JarLibraryLoader.java
JarLibraryLoader.extract
private static File extract(String name, InputStream is) throws IOException { byte[] buf = new byte[4096]; int len; File lib = File.createTempFile(name, "lib"); FileOutputStream os = new FileOutputStream(lib); try { while ((len = is.read(buf)) > 0) { ...
java
private static File extract(String name, InputStream is) throws IOException { byte[] buf = new byte[4096]; int len; File lib = File.createTempFile(name, "lib"); FileOutputStream os = new FileOutputStream(lib); try { while ((len = is.read(buf)) > 0) { ...
[ "private", "static", "File", "extract", "(", "String", "name", ",", "InputStream", "is", ")", "throws", "IOException", "{", "byte", "[", "]", "buf", "=", "new", "byte", "[", "4096", "]", ";", "int", "len", ";", "File", "lib", "=", "File", ".", "creat...
Extract a jar entry to a temp file. @param name Name prefix for temp file. @param is Jar entry input stream. @return A temporary file. @throws IOException when an IO error occurs.
[ "Extract", "a", "jar", "entry", "to", "a", "temp", "file", "." ]
0675236370458e819ee21e4427c5f7f3f9485d33
https://github.com/wg/scrypt/blob/0675236370458e819ee21e4427c5f7f3f9485d33/src/main/java/com/lambdaworks/jni/JarLibraryLoader.java#L92-L112
122,375
wg/scrypt
src/main/java/com/lambdaworks/jni/JarLibraryLoader.java
JarLibraryLoader.libCandidates
private List<String> libCandidates(Platform platform, String name) { List<String> candidates = new ArrayList<String>(); StringBuilder sb = new StringBuilder(); sb.append(libraryPath).append("/"); sb.append(platform.arch).append("/"); sb.append(platform.os).append("/"); s...
java
private List<String> libCandidates(Platform platform, String name) { List<String> candidates = new ArrayList<String>(); StringBuilder sb = new StringBuilder(); sb.append(libraryPath).append("/"); sb.append(platform.arch).append("/"); sb.append(platform.os).append("/"); s...
[ "private", "List", "<", "String", ">", "libCandidates", "(", "Platform", "platform", ",", "String", "name", ")", "{", "List", "<", "String", ">", "candidates", "=", "new", "ArrayList", "<", "String", ">", "(", ")", ";", "StringBuilder", "sb", "=", "new",...
Generate a list of candidate libraries for the supplied library name and suitable for the current platform. @param platform Current platform. @param name Library name. @return List of potential library names.
[ "Generate", "a", "list", "of", "candidate", "libraries", "for", "the", "supplied", "library", "name", "and", "suitable", "for", "the", "current", "platform", "." ]
0675236370458e819ee21e4427c5f7f3f9485d33
https://github.com/wg/scrypt/blob/0675236370458e819ee21e4427c5f7f3f9485d33/src/main/java/com/lambdaworks/jni/JarLibraryLoader.java#L123-L144
122,376
wg/scrypt
src/main/java/com/lambdaworks/codec/Base64.java
Base64.decode
public static byte[] decode(char[] src, int[] table, char pad) { int len = src.length; if (len == 0) return new byte[0]; int padCount = (src[len - 1] == pad ? (src[len - 2] == pad ? 2 : 1) : 0); int bytes = (len * 6 >> 3) - padCount; int blocks = (bytes / 3) * 3; ...
java
public static byte[] decode(char[] src, int[] table, char pad) { int len = src.length; if (len == 0) return new byte[0]; int padCount = (src[len - 1] == pad ? (src[len - 2] == pad ? 2 : 1) : 0); int bytes = (len * 6 >> 3) - padCount; int blocks = (bytes / 3) * 3; ...
[ "public", "static", "byte", "[", "]", "decode", "(", "char", "[", "]", "src", ",", "int", "[", "]", "table", ",", "char", "pad", ")", "{", "int", "len", "=", "src", ".", "length", ";", "if", "(", "len", "==", "0", ")", "return", "new", "byte", ...
Decode base64 chars to bytes using the supplied decode table and padding character. @param src Base64 encoded data. @param table Decode table. @param pad Padding character. @return Decoded bytes.
[ "Decode", "base64", "chars", "to", "bytes", "using", "the", "supplied", "decode", "table", "and", "padding", "character", "." ]
0675236370458e819ee21e4427c5f7f3f9485d33
https://github.com/wg/scrypt/blob/0675236370458e819ee21e4427c5f7f3f9485d33/src/main/java/com/lambdaworks/codec/Base64.java#L75-L108
122,377
wg/scrypt
src/main/java/com/lambdaworks/codec/Base64.java
Base64.encode
public static char[] encode(byte[] src, char[] table, char pad) { int len = src.length; if (len == 0) return new char[0]; int blocks = (len / 3) * 3; int chars = ((len - 1) / 3 + 1) << 2; int tail = len - blocks; if (pad == 0 && tail > 0) chars -= 3 - tail; ...
java
public static char[] encode(byte[] src, char[] table, char pad) { int len = src.length; if (len == 0) return new char[0]; int blocks = (len / 3) * 3; int chars = ((len - 1) / 3 + 1) << 2; int tail = len - blocks; if (pad == 0 && tail > 0) chars -= 3 - tail; ...
[ "public", "static", "char", "[", "]", "encode", "(", "byte", "[", "]", "src", ",", "char", "[", "]", "table", ",", "char", "pad", ")", "{", "int", "len", "=", "src", ".", "length", ";", "if", "(", "len", "==", "0", ")", "return", "new", "char",...
Encode bytes to base64 chars using the supplied encode table and with optional padding. @param src Bytes to encode. @param table Encoding table. @param pad Padding character, or 0 for no padding. @return Encoded chars.
[ "Encode", "bytes", "to", "base64", "chars", "using", "the", "supplied", "encode", "table", "and", "with", "optional", "padding", "." ]
0675236370458e819ee21e4427c5f7f3f9485d33
https://github.com/wg/scrypt/blob/0675236370458e819ee21e4427c5f7f3f9485d33/src/main/java/com/lambdaworks/codec/Base64.java#L120-L156
122,378
wg/scrypt
src/main/java/com/lambdaworks/jni/SysLibraryLoader.java
SysLibraryLoader.load
public boolean load(String name, boolean verify) { boolean loaded; try { System.loadLibrary(name); loaded = true; } catch (Throwable e) { loaded = false; } return loaded; }
java
public boolean load(String name, boolean verify) { boolean loaded; try { System.loadLibrary(name); loaded = true; } catch (Throwable e) { loaded = false; } return loaded; }
[ "public", "boolean", "load", "(", "String", "name", ",", "boolean", "verify", ")", "{", "boolean", "loaded", ";", "try", "{", "System", ".", "loadLibrary", "(", "name", ")", ";", "loaded", "=", "true", ";", "}", "catch", "(", "Throwable", "e", ")", "...
Load a shared library. @param name Name of the library to load. @param verify Ignored, no verification is done. @return true if the library was successfully loaded.
[ "Load", "a", "shared", "library", "." ]
0675236370458e819ee21e4427c5f7f3f9485d33
https://github.com/wg/scrypt/blob/0675236370458e819ee21e4427c5f7f3f9485d33/src/main/java/com/lambdaworks/jni/SysLibraryLoader.java#L20-L31
122,379
spring-projects/spring-boot
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/IndexedElementsBinder.java
IndexedElementsBinder.bindIndexed
protected final void bindIndexed(ConfigurationPropertyName name, Bindable<?> target, AggregateElementBinder elementBinder, ResolvableType aggregateType, ResolvableType elementType, IndexedCollectionSupplier result) { for (ConfigurationPropertySource source : getContext().getSources()) { bindIndexed(source, n...
java
protected final void bindIndexed(ConfigurationPropertyName name, Bindable<?> target, AggregateElementBinder elementBinder, ResolvableType aggregateType, ResolvableType elementType, IndexedCollectionSupplier result) { for (ConfigurationPropertySource source : getContext().getSources()) { bindIndexed(source, n...
[ "protected", "final", "void", "bindIndexed", "(", "ConfigurationPropertyName", "name", ",", "Bindable", "<", "?", ">", "target", ",", "AggregateElementBinder", "elementBinder", ",", "ResolvableType", "aggregateType", ",", "ResolvableType", "elementType", ",", "IndexedCo...
Bind indexed elements to the supplied collection. @param name the name of the property to bind @param target the target bindable @param elementBinder the binder to use for elements @param aggregateType the aggregate type, may be a collection or an array @param elementType the element type @param result the destination ...
[ "Bind", "indexed", "elements", "to", "the", "supplied", "collection", "." ]
0b27f7c70e164b2b1a96477f1d9c1acba56790c1
https://github.com/spring-projects/spring-boot/blob/0b27f7c70e164b2b1a96477f1d9c1acba56790c1/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/IndexedElementsBinder.java#L67-L77
122,380
spring-projects/spring-boot
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/AbstractFilterRegistrationBean.java
AbstractFilterRegistrationBean.setServletNames
public void setServletNames(Collection<String> servletNames) { Assert.notNull(servletNames, "ServletNames must not be null"); this.servletNames = new LinkedHashSet<>(servletNames); }
java
public void setServletNames(Collection<String> servletNames) { Assert.notNull(servletNames, "ServletNames must not be null"); this.servletNames = new LinkedHashSet<>(servletNames); }
[ "public", "void", "setServletNames", "(", "Collection", "<", "String", ">", "servletNames", ")", "{", "Assert", ".", "notNull", "(", "servletNames", ",", "\"ServletNames must not be null\"", ")", ";", "this", ".", "servletNames", "=", "new", "LinkedHashSet", "<>",...
Set servlet names that the filter will be registered against. This will replace any previously specified servlet names. @param servletNames the servlet names @see #setServletRegistrationBeans @see #setUrlPatterns
[ "Set", "servlet", "names", "that", "the", "filter", "will", "be", "registered", "against", ".", "This", "will", "replace", "any", "previously", "specified", "servlet", "names", "." ]
0b27f7c70e164b2b1a96477f1d9c1acba56790c1
https://github.com/spring-projects/spring-boot/blob/0b27f7c70e164b2b1a96477f1d9c1acba56790c1/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/AbstractFilterRegistrationBean.java#L112-L115
122,381
spring-projects/spring-boot
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/AbstractFilterRegistrationBean.java
AbstractFilterRegistrationBean.addServletNames
public void addServletNames(String... servletNames) { Assert.notNull(servletNames, "ServletNames must not be null"); this.servletNames.addAll(Arrays.asList(servletNames)); }
java
public void addServletNames(String... servletNames) { Assert.notNull(servletNames, "ServletNames must not be null"); this.servletNames.addAll(Arrays.asList(servletNames)); }
[ "public", "void", "addServletNames", "(", "String", "...", "servletNames", ")", "{", "Assert", ".", "notNull", "(", "servletNames", ",", "\"ServletNames must not be null\"", ")", ";", "this", ".", "servletNames", ".", "addAll", "(", "Arrays", ".", "asList", "(",...
Add servlet names for the filter. @param servletNames the servlet names to add
[ "Add", "servlet", "names", "for", "the", "filter", "." ]
0b27f7c70e164b2b1a96477f1d9c1acba56790c1
https://github.com/spring-projects/spring-boot/blob/0b27f7c70e164b2b1a96477f1d9c1acba56790c1/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/AbstractFilterRegistrationBean.java#L130-L133
122,382
spring-projects/spring-boot
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/AbstractFilterRegistrationBean.java
AbstractFilterRegistrationBean.setUrlPatterns
public void setUrlPatterns(Collection<String> urlPatterns) { Assert.notNull(urlPatterns, "UrlPatterns must not be null"); this.urlPatterns = new LinkedHashSet<>(urlPatterns); }
java
public void setUrlPatterns(Collection<String> urlPatterns) { Assert.notNull(urlPatterns, "UrlPatterns must not be null"); this.urlPatterns = new LinkedHashSet<>(urlPatterns); }
[ "public", "void", "setUrlPatterns", "(", "Collection", "<", "String", ">", "urlPatterns", ")", "{", "Assert", ".", "notNull", "(", "urlPatterns", ",", "\"UrlPatterns must not be null\"", ")", ";", "this", ".", "urlPatterns", "=", "new", "LinkedHashSet", "<>", "(...
Set the URL patterns that the filter will be registered against. This will replace any previously specified URL patterns. @param urlPatterns the URL patterns @see #setServletRegistrationBeans @see #setServletNames
[ "Set", "the", "URL", "patterns", "that", "the", "filter", "will", "be", "registered", "against", ".", "This", "will", "replace", "any", "previously", "specified", "URL", "patterns", "." ]
0b27f7c70e164b2b1a96477f1d9c1acba56790c1
https://github.com/spring-projects/spring-boot/blob/0b27f7c70e164b2b1a96477f1d9c1acba56790c1/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/AbstractFilterRegistrationBean.java#L142-L145
122,383
spring-projects/spring-boot
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/AbstractFilterRegistrationBean.java
AbstractFilterRegistrationBean.addUrlPatterns
public void addUrlPatterns(String... urlPatterns) { Assert.notNull(urlPatterns, "UrlPatterns must not be null"); Collections.addAll(this.urlPatterns, urlPatterns); }
java
public void addUrlPatterns(String... urlPatterns) { Assert.notNull(urlPatterns, "UrlPatterns must not be null"); Collections.addAll(this.urlPatterns, urlPatterns); }
[ "public", "void", "addUrlPatterns", "(", "String", "...", "urlPatterns", ")", "{", "Assert", ".", "notNull", "(", "urlPatterns", ",", "\"UrlPatterns must not be null\"", ")", ";", "Collections", ".", "addAll", "(", "this", ".", "urlPatterns", ",", "urlPatterns", ...
Add URL patterns, as defined in the Servlet specification, that the filter will be registered against. @param urlPatterns the URL patterns
[ "Add", "URL", "patterns", "as", "defined", "in", "the", "Servlet", "specification", "that", "the", "filter", "will", "be", "registered", "against", "." ]
0b27f7c70e164b2b1a96477f1d9c1acba56790c1
https://github.com/spring-projects/spring-boot/blob/0b27f7c70e164b2b1a96477f1d9c1acba56790c1/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/AbstractFilterRegistrationBean.java#L161-L164
122,384
spring-projects/spring-boot
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/system/ApplicationTemp.java
ApplicationTemp.getDir
public File getDir(String subDir) { File dir = new File(getDir(), subDir); dir.mkdirs(); return dir; }
java
public File getDir(String subDir) { File dir = new File(getDir(), subDir); dir.mkdirs(); return dir; }
[ "public", "File", "getDir", "(", "String", "subDir", ")", "{", "File", "dir", "=", "new", "File", "(", "getDir", "(", ")", ",", "subDir", ")", ";", "dir", ".", "mkdirs", "(", ")", ";", "return", "dir", ";", "}" ]
Return a sub-directory of the application temp. @param subDir the sub-directory name @return a sub-directory
[ "Return", "a", "sub", "-", "directory", "of", "the", "application", "temp", "." ]
0b27f7c70e164b2b1a96477f1d9c1acba56790c1
https://github.com/spring-projects/spring-boot/blob/0b27f7c70e164b2b1a96477f1d9c1acba56790c1/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/system/ApplicationTemp.java#L66-L70
122,385
spring-projects/spring-boot
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/system/ApplicationTemp.java
ApplicationTemp.getDir
public File getDir() { if (this.dir == null) { synchronized (this) { byte[] hash = generateHash(this.sourceClass); this.dir = new File(getTempDirectory(), toHexString(hash)); this.dir.mkdirs(); Assert.state(this.dir.exists(), () -> "Unable to create temp directory " + this.dir); } } re...
java
public File getDir() { if (this.dir == null) { synchronized (this) { byte[] hash = generateHash(this.sourceClass); this.dir = new File(getTempDirectory(), toHexString(hash)); this.dir.mkdirs(); Assert.state(this.dir.exists(), () -> "Unable to create temp directory " + this.dir); } } re...
[ "public", "File", "getDir", "(", ")", "{", "if", "(", "this", ".", "dir", "==", "null", ")", "{", "synchronized", "(", "this", ")", "{", "byte", "[", "]", "hash", "=", "generateHash", "(", "this", ".", "sourceClass", ")", ";", "this", ".", "dir", ...
Return the directory to be used for application specific temp files. @return the application temp directory
[ "Return", "the", "directory", "to", "be", "used", "for", "application", "specific", "temp", "files", "." ]
0b27f7c70e164b2b1a96477f1d9c1acba56790c1
https://github.com/spring-projects/spring-boot/blob/0b27f7c70e164b2b1a96477f1d9c1acba56790c1/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/system/ApplicationTemp.java#L76-L87
122,386
spring-projects/spring-boot
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/info/InfoPropertiesInfoContributor.java
InfoPropertiesInfoContributor.generateContent
protected Map<String, Object> generateContent() { Map<String, Object> content = extractContent(toPropertySource()); postProcessContent(content); return content; }
java
protected Map<String, Object> generateContent() { Map<String, Object> content = extractContent(toPropertySource()); postProcessContent(content); return content; }
[ "protected", "Map", "<", "String", ",", "Object", ">", "generateContent", "(", ")", "{", "Map", "<", "String", ",", "Object", ">", "content", "=", "extractContent", "(", "toPropertySource", "(", ")", ")", ";", "postProcessContent", "(", "content", ")", ";"...
Extract the content to contribute to the info endpoint. @return the content to expose @see #extractContent(PropertySource) @see #postProcessContent(Map)
[ "Extract", "the", "content", "to", "contribute", "to", "the", "info", "endpoint", "." ]
0b27f7c70e164b2b1a96477f1d9c1acba56790c1
https://github.com/spring-projects/spring-boot/blob/0b27f7c70e164b2b1a96477f1d9c1acba56790c1/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/info/InfoPropertiesInfoContributor.java#L83-L87
122,387
spring-projects/spring-boot
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/info/InfoPropertiesInfoContributor.java
InfoPropertiesInfoContributor.getNestedMap
@SuppressWarnings("unchecked") protected Map<String, Object> getNestedMap(Map<String, Object> map, String key) { Object value = map.get(key); if (value == null) { return Collections.emptyMap(); } return (Map<String, Object>) value; }
java
@SuppressWarnings("unchecked") protected Map<String, Object> getNestedMap(Map<String, Object> map, String key) { Object value = map.get(key); if (value == null) { return Collections.emptyMap(); } return (Map<String, Object>) value; }
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "protected", "Map", "<", "String", ",", "Object", ">", "getNestedMap", "(", "Map", "<", "String", ",", "Object", ">", "map", ",", "String", "key", ")", "{", "Object", "value", "=", "map", ".", "get", ...
Return the nested map with the specified key or empty map if the specified map contains no mapping for the key. @param map the content @param key the key of a nested map @return the nested map
[ "Return", "the", "nested", "map", "with", "the", "specified", "key", "or", "empty", "map", "if", "the", "specified", "map", "contains", "no", "mapping", "for", "the", "key", "." ]
0b27f7c70e164b2b1a96477f1d9c1acba56790c1
https://github.com/spring-projects/spring-boot/blob/0b27f7c70e164b2b1a96477f1d9c1acba56790c1/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/info/InfoPropertiesInfoContributor.java#L149-L156
122,388
spring-projects/spring-boot
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/util/LambdaSafe.java
LambdaSafe.callback
public static <C, A> Callback<C, A> callback(Class<C> callbackType, C callbackInstance, A argument, Object... additionalArguments) { Assert.notNull(callbackType, "CallbackType must not be null"); Assert.notNull(callbackInstance, "CallbackInstance must not be null"); return new Callback<>(callbackType, callback...
java
public static <C, A> Callback<C, A> callback(Class<C> callbackType, C callbackInstance, A argument, Object... additionalArguments) { Assert.notNull(callbackType, "CallbackType must not be null"); Assert.notNull(callbackInstance, "CallbackInstance must not be null"); return new Callback<>(callbackType, callback...
[ "public", "static", "<", "C", ",", "A", ">", "Callback", "<", "C", ",", "A", ">", "callback", "(", "Class", "<", "C", ">", "callbackType", ",", "C", "callbackInstance", ",", "A", "argument", ",", "Object", "...", "additionalArguments", ")", "{", "Asser...
Start a call to a single callback instance, dealing with common generic type concerns and exceptions. @param callbackType the callback type (a {@link FunctionalInterface functional interface}) @param callbackInstance the callback instance (may be a lambda) @param argument the primary argument passed to the callback @pa...
[ "Start", "a", "call", "to", "a", "single", "callback", "instance", "dealing", "with", "common", "generic", "type", "concerns", "and", "exceptions", "." ]
0b27f7c70e164b2b1a96477f1d9c1acba56790c1
https://github.com/spring-projects/spring-boot/blob/0b27f7c70e164b2b1a96477f1d9c1acba56790c1/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/util/LambdaSafe.java#L72-L78
122,389
spring-projects/spring-boot
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/util/LambdaSafe.java
LambdaSafe.callbacks
public static <C, A> Callbacks<C, A> callbacks(Class<C> callbackType, Collection<? extends C> callbackInstances, A argument, Object... additionalArguments) { Assert.notNull(callbackType, "CallbackType must not be null"); Assert.notNull(callbackInstances, "CallbackInstances must not be null"); return new Cal...
java
public static <C, A> Callbacks<C, A> callbacks(Class<C> callbackType, Collection<? extends C> callbackInstances, A argument, Object... additionalArguments) { Assert.notNull(callbackType, "CallbackType must not be null"); Assert.notNull(callbackInstances, "CallbackInstances must not be null"); return new Cal...
[ "public", "static", "<", "C", ",", "A", ">", "Callbacks", "<", "C", ",", "A", ">", "callbacks", "(", "Class", "<", "C", ">", "callbackType", ",", "Collection", "<", "?", "extends", "C", ">", "callbackInstances", ",", "A", "argument", ",", "Object", "...
Start a call to callback instances, dealing with common generic type concerns and exceptions. @param callbackType the callback type (a {@link FunctionalInterface functional interface}) @param callbackInstances the callback instances (elements may be lambdas) @param argument the primary argument passed to the callbacks ...
[ "Start", "a", "call", "to", "callback", "instances", "dealing", "with", "common", "generic", "type", "concerns", "and", "exceptions", "." ]
0b27f7c70e164b2b1a96477f1d9c1acba56790c1
https://github.com/spring-projects/spring-boot/blob/0b27f7c70e164b2b1a96477f1d9c1acba56790c1/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/util/LambdaSafe.java#L92-L99
122,390
spring-projects/spring-boot
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/util/LambdaSafe.java
LambdaSafe.invokeAnd
public <R> Stream<R> invokeAnd(Function<C, R> invoker) { Function<C, InvocationResult<R>> mapper = (callbackInstance) -> invoke( callbackInstance, () -> invoker.apply(callbackInstance)); return this.callbackInstances.stream().map(mapper) .filter(InvocationResult::hasResult).map(InvocationResult::get); ...
java
public <R> Stream<R> invokeAnd(Function<C, R> invoker) { Function<C, InvocationResult<R>> mapper = (callbackInstance) -> invoke( callbackInstance, () -> invoker.apply(callbackInstance)); return this.callbackInstances.stream().map(mapper) .filter(InvocationResult::hasResult).map(InvocationResult::get); ...
[ "public", "<", "R", ">", "Stream", "<", "R", ">", "invokeAnd", "(", "Function", "<", "C", ",", "R", ">", "invoker", ")", "{", "Function", "<", "C", ",", "InvocationResult", "<", "R", ">", ">", "mapper", "=", "(", "callbackInstance", ")", "-", ">", ...
Invoke the callback instances where the callback method returns a result. @param invoker the invoker used to invoke the callback @param <R> the result type @return the results of the invocation (may be an empty stream if no callbacks could be called)
[ "Invoke", "the", "callback", "instances", "where", "the", "callback", "method", "returns", "a", "result", "." ]
0b27f7c70e164b2b1a96477f1d9c1acba56790c1
https://github.com/spring-projects/spring-boot/blob/0b27f7c70e164b2b1a96477f1d9c1acba56790c1/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/util/LambdaSafe.java#L315-L320
122,391
spring-projects/spring-boot
spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/LiveReloadServer.java
LiveReloadServer.start
public int start() throws IOException { synchronized (this.monitor) { Assert.state(!isStarted(), "Server already started"); logger.debug("Starting live reload server on port " + this.port); this.serverSocket = new ServerSocket(this.port); int localPort = this.serverSocket.getLocalPort(); this.listenThr...
java
public int start() throws IOException { synchronized (this.monitor) { Assert.state(!isStarted(), "Server already started"); logger.debug("Starting live reload server on port " + this.port); this.serverSocket = new ServerSocket(this.port); int localPort = this.serverSocket.getLocalPort(); this.listenThr...
[ "public", "int", "start", "(", ")", "throws", "IOException", "{", "synchronized", "(", "this", ".", "monitor", ")", "{", "Assert", ".", "state", "(", "!", "isStarted", "(", ")", ",", "\"Server already started\"", ")", ";", "logger", ".", "debug", "(", "\...
Start the livereload server and accept incoming connections. @return the port on which the server is listening @throws IOException in case of I/O errors
[ "Start", "the", "livereload", "server", "and", "accept", "incoming", "connections", "." ]
0b27f7c70e164b2b1a96477f1d9c1acba56790c1
https://github.com/spring-projects/spring-boot/blob/0b27f7c70e164b2b1a96477f1d9c1acba56790c1/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/LiveReloadServer.java#L111-L123
122,392
spring-projects/spring-boot
spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/LiveReloadServer.java
LiveReloadServer.stop
public void stop() throws IOException { synchronized (this.monitor) { if (this.listenThread != null) { closeAllConnections(); try { this.executor.shutdown(); this.executor.awaitTermination(1, TimeUnit.MINUTES); } catch (InterruptedException ex) { Thread.currentThread().interrupt(); ...
java
public void stop() throws IOException { synchronized (this.monitor) { if (this.listenThread != null) { closeAllConnections(); try { this.executor.shutdown(); this.executor.awaitTermination(1, TimeUnit.MINUTES); } catch (InterruptedException ex) { Thread.currentThread().interrupt(); ...
[ "public", "void", "stop", "(", ")", "throws", "IOException", "{", "synchronized", "(", "this", ".", "monitor", ")", "{", "if", "(", "this", ".", "listenThread", "!=", "null", ")", "{", "closeAllConnections", "(", ")", ";", "try", "{", "this", ".", "exe...
Gracefully stop the livereload server. @throws IOException in case of I/O errors
[ "Gracefully", "stop", "the", "livereload", "server", "." ]
0b27f7c70e164b2b1a96477f1d9c1acba56790c1
https://github.com/spring-projects/spring-boot/blob/0b27f7c70e164b2b1a96477f1d9c1acba56790c1/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/LiveReloadServer.java#L166-L188
122,393
spring-projects/spring-boot
spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/LiveReloadServer.java
LiveReloadServer.triggerReload
public void triggerReload() { synchronized (this.monitor) { synchronized (this.connections) { for (Connection connection : this.connections) { try { connection.triggerReload(); } catch (Exception ex) { logger.debug("Unable to send reload message", ex); } } } } }
java
public void triggerReload() { synchronized (this.monitor) { synchronized (this.connections) { for (Connection connection : this.connections) { try { connection.triggerReload(); } catch (Exception ex) { logger.debug("Unable to send reload message", ex); } } } } }
[ "public", "void", "triggerReload", "(", ")", "{", "synchronized", "(", "this", ".", "monitor", ")", "{", "synchronized", "(", "this", ".", "connections", ")", "{", "for", "(", "Connection", "connection", ":", "this", ".", "connections", ")", "{", "try", ...
Trigger livereload of all connected clients.
[ "Trigger", "livereload", "of", "all", "connected", "clients", "." ]
0b27f7c70e164b2b1a96477f1d9c1acba56790c1
https://github.com/spring-projects/spring-boot/blob/0b27f7c70e164b2b1a96477f1d9c1acba56790c1/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/LiveReloadServer.java#L201-L214
122,394
spring-projects/spring-boot
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java
SpringApplicationBuilder.child
public SpringApplicationBuilder child(Class<?>... sources) { SpringApplicationBuilder child = new SpringApplicationBuilder(); child.sources(sources); // Copy environment stuff from parent to child child.properties(this.defaultProperties).environment(this.environment) .additionalProfiles(this.additionalProf...
java
public SpringApplicationBuilder child(Class<?>... sources) { SpringApplicationBuilder child = new SpringApplicationBuilder(); child.sources(sources); // Copy environment stuff from parent to child child.properties(this.defaultProperties).environment(this.environment) .additionalProfiles(this.additionalProf...
[ "public", "SpringApplicationBuilder", "child", "(", "Class", "<", "?", ">", "...", "sources", ")", "{", "SpringApplicationBuilder", "child", "=", "new", "SpringApplicationBuilder", "(", ")", ";", "child", ".", "sources", "(", "sources", ")", ";", "// Copy enviro...
Create a child application with the provided sources. Default args and environment are copied down into the child, but everything else is a clean sheet. @param sources the sources for the application (Spring configuration) @return the child application builder
[ "Create", "a", "child", "application", "with", "the", "provided", "sources", ".", "Default", "args", "and", "environment", "are", "copied", "down", "into", "the", "child", "but", "everything", "else", "is", "a", "clean", "sheet", "." ]
0b27f7c70e164b2b1a96477f1d9c1acba56790c1
https://github.com/spring-projects/spring-boot/blob/0b27f7c70e164b2b1a96477f1d9c1acba56790c1/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java#L182-L203
122,395
spring-projects/spring-boot
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java
SpringApplicationBuilder.parent
public SpringApplicationBuilder parent(Class<?>... sources) { if (this.parent == null) { this.parent = new SpringApplicationBuilder(sources) .web(WebApplicationType.NONE).properties(this.defaultProperties) .environment(this.environment); } else { this.parent.sources(sources); } return this.par...
java
public SpringApplicationBuilder parent(Class<?>... sources) { if (this.parent == null) { this.parent = new SpringApplicationBuilder(sources) .web(WebApplicationType.NONE).properties(this.defaultProperties) .environment(this.environment); } else { this.parent.sources(sources); } return this.par...
[ "public", "SpringApplicationBuilder", "parent", "(", "Class", "<", "?", ">", "...", "sources", ")", "{", "if", "(", "this", ".", "parent", "==", "null", ")", "{", "this", ".", "parent", "=", "new", "SpringApplicationBuilder", "(", "sources", ")", ".", "w...
Add a parent application with the provided sources. Default args and environment are copied up into the parent, but everything else is a clean sheet. @param sources the sources for the application (Spring configuration) @return the parent builder
[ "Add", "a", "parent", "application", "with", "the", "provided", "sources", ".", "Default", "args", "and", "environment", "are", "copied", "up", "into", "the", "parent", "but", "everything", "else", "is", "a", "clean", "sheet", "." ]
0b27f7c70e164b2b1a96477f1d9c1acba56790c1
https://github.com/spring-projects/spring-boot/blob/0b27f7c70e164b2b1a96477f1d9c1acba56790c1/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java#L211-L221
122,396
spring-projects/spring-boot
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java
SpringApplicationBuilder.parent
public SpringApplicationBuilder parent(ConfigurableApplicationContext parent) { this.parent = new SpringApplicationBuilder(); this.parent.context = parent; this.parent.running.set(true); return this; }
java
public SpringApplicationBuilder parent(ConfigurableApplicationContext parent) { this.parent = new SpringApplicationBuilder(); this.parent.context = parent; this.parent.running.set(true); return this; }
[ "public", "SpringApplicationBuilder", "parent", "(", "ConfigurableApplicationContext", "parent", ")", "{", "this", ".", "parent", "=", "new", "SpringApplicationBuilder", "(", ")", ";", "this", ".", "parent", ".", "context", "=", "parent", ";", "this", ".", "pare...
Add an already running parent context to an existing application. @param parent the parent context @return the current builder (not the parent)
[ "Add", "an", "already", "running", "parent", "context", "to", "an", "existing", "application", "." ]
0b27f7c70e164b2b1a96477f1d9c1acba56790c1
https://github.com/spring-projects/spring-boot/blob/0b27f7c70e164b2b1a96477f1d9c1acba56790c1/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java#L239-L244
122,397
spring-projects/spring-boot
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java
SpringApplicationBuilder.properties
public SpringApplicationBuilder properties(Map<String, Object> defaults) { this.defaultProperties.putAll(defaults); this.application.setDefaultProperties(this.defaultProperties); if (this.parent != null) { this.parent.properties(this.defaultProperties); this.parent.environment(this.environment); } retur...
java
public SpringApplicationBuilder properties(Map<String, Object> defaults) { this.defaultProperties.putAll(defaults); this.application.setDefaultProperties(this.defaultProperties); if (this.parent != null) { this.parent.properties(this.defaultProperties); this.parent.environment(this.environment); } retur...
[ "public", "SpringApplicationBuilder", "properties", "(", "Map", "<", "String", ",", "Object", ">", "defaults", ")", "{", "this", ".", "defaultProperties", ".", "putAll", "(", "defaults", ")", ";", "this", ".", "application", ".", "setDefaultProperties", "(", "...
Default properties for the environment. Multiple calls to this method are cumulative. @param defaults the default properties @return the current builder @see SpringApplicationBuilder#properties(String...)
[ "Default", "properties", "for", "the", "environment", ".", "Multiple", "calls", "to", "this", "method", "are", "cumulative", "." ]
0b27f7c70e164b2b1a96477f1d9c1acba56790c1
https://github.com/spring-projects/spring-boot/blob/0b27f7c70e164b2b1a96477f1d9c1acba56790c1/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java#L456-L464
122,398
spring-projects/spring-boot
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/convert/ApplicationConversionService.java
ApplicationConversionService.addApplicationConverters
public static void addApplicationConverters(ConverterRegistry registry) { addDelimitedStringConverters(registry); registry.addConverter(new StringToDurationConverter()); registry.addConverter(new DurationToStringConverter()); registry.addConverter(new NumberToDurationConverter()); registry.addConverter(new Du...
java
public static void addApplicationConverters(ConverterRegistry registry) { addDelimitedStringConverters(registry); registry.addConverter(new StringToDurationConverter()); registry.addConverter(new DurationToStringConverter()); registry.addConverter(new NumberToDurationConverter()); registry.addConverter(new Du...
[ "public", "static", "void", "addApplicationConverters", "(", "ConverterRegistry", "registry", ")", "{", "addDelimitedStringConverters", "(", "registry", ")", ";", "registry", ".", "addConverter", "(", "new", "StringToDurationConverter", "(", ")", ")", ";", "registry",...
Add converters useful for most Spring Boot applications. @param registry the registry of converters to add to (must also be castable to ConversionService, e.g. being a {@link ConfigurableConversionService}) @throws ClassCastException if the given ConverterRegistry could not be cast to a ConversionService
[ "Add", "converters", "useful", "for", "most", "Spring", "Boot", "applications", "." ]
0b27f7c70e164b2b1a96477f1d9c1acba56790c1
https://github.com/spring-projects/spring-boot/blob/0b27f7c70e164b2b1a96477f1d9c1acba56790c1/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/convert/ApplicationConversionService.java#L101-L110
122,399
spring-projects/spring-boot
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/convert/ApplicationConversionService.java
ApplicationConversionService.addDelimitedStringConverters
public static void addDelimitedStringConverters(ConverterRegistry registry) { ConversionService service = (ConversionService) registry; registry.addConverter(new ArrayToDelimitedStringConverter(service)); registry.addConverter(new CollectionToDelimitedStringConverter(service)); registry.addConverter(new Delimit...
java
public static void addDelimitedStringConverters(ConverterRegistry registry) { ConversionService service = (ConversionService) registry; registry.addConverter(new ArrayToDelimitedStringConverter(service)); registry.addConverter(new CollectionToDelimitedStringConverter(service)); registry.addConverter(new Delimit...
[ "public", "static", "void", "addDelimitedStringConverters", "(", "ConverterRegistry", "registry", ")", "{", "ConversionService", "service", "=", "(", "ConversionService", ")", "registry", ";", "registry", ".", "addConverter", "(", "new", "ArrayToDelimitedStringConverter",...
Add converters to support delimited strings. @param registry the registry of converters to add to (must also be castable to ConversionService, e.g. being a {@link ConfigurableConversionService}) @throws ClassCastException if the given ConverterRegistry could not be cast to a ConversionService
[ "Add", "converters", "to", "support", "delimited", "strings", "." ]
0b27f7c70e164b2b1a96477f1d9c1acba56790c1
https://github.com/spring-projects/spring-boot/blob/0b27f7c70e164b2b1a96477f1d9c1acba56790c1/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/convert/ApplicationConversionService.java#L119-L125