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
116,800
nats-io/java-nats
src/main/java/io/nats/client/impl/NatsSubscription.java
NatsSubscription.unsubscribe
public void unsubscribe() { if (this.dispatcher != null) { throw new IllegalStateException( "Subscriptions that belong to a dispatcher cannot respond to unsubscribe directly."); } else if (this.incoming == null) { throw new IllegalStateException("This subscrip...
java
public void unsubscribe() { if (this.dispatcher != null) { throw new IllegalStateException( "Subscriptions that belong to a dispatcher cannot respond to unsubscribe directly."); } else if (this.incoming == null) { throw new IllegalStateException("This subscrip...
[ "public", "void", "unsubscribe", "(", ")", "{", "if", "(", "this", ".", "dispatcher", "!=", "null", ")", "{", "throw", "new", "IllegalStateException", "(", "\"Subscriptions that belong to a dispatcher cannot respond to unsubscribe directly.\"", ")", ";", "}", "else", ...
Unsubscribe this subscription and stop listening for messages. <p>Messages are stopped locally and the server is notified.</p>
[ "Unsubscribe", "this", "subscription", "and", "stop", "listening", "for", "messages", "." ]
5f291048fd30192ba39b3fe2925ecd60aaad6b48
https://github.com/nats-io/java-nats/blob/5f291048fd30192ba39b3fe2925ecd60aaad6b48/src/main/java/io/nats/client/impl/NatsSubscription.java#L122-L135
116,801
nats-io/java-nats
src/main/java/io/nats/client/impl/NatsSubscription.java
NatsSubscription.unsubscribe
public Subscription unsubscribe(int after) { if (this.dispatcher != null) { throw new IllegalStateException( "Subscriptions that belong to a dispatcher cannot respond to unsubscribe directly."); } else if (this.incoming == null) { throw new IllegalStateExcepti...
java
public Subscription unsubscribe(int after) { if (this.dispatcher != null) { throw new IllegalStateException( "Subscriptions that belong to a dispatcher cannot respond to unsubscribe directly."); } else if (this.incoming == null) { throw new IllegalStateExcepti...
[ "public", "Subscription", "unsubscribe", "(", "int", "after", ")", "{", "if", "(", "this", ".", "dispatcher", "!=", "null", ")", "{", "throw", "new", "IllegalStateException", "(", "\"Subscriptions that belong to a dispatcher cannot respond to unsubscribe directly.\"", ")"...
Unsubscribe this subscription and stop listening for messages, after the specified number of messages. <p>If the subscription has already received <code>after</code> messages, it will not receive more. The provided limit is a lifetime total for the subscription, with the caveat that if the subscription already receive...
[ "Unsubscribe", "this", "subscription", "and", "stop", "listening", "for", "messages", "after", "the", "specified", "number", "of", "messages", "." ]
5f291048fd30192ba39b3fe2925ecd60aaad6b48
https://github.com/nats-io/java-nats/blob/5f291048fd30192ba39b3fe2925ecd60aaad6b48/src/main/java/io/nats/client/impl/NatsSubscription.java#L155-L169
116,802
nats-io/java-nats
src/main/java/io/nats/client/Nats.java
Nats.connectAsynchronously
public static void connectAsynchronously(Options options, boolean reconnectOnConnect) throws InterruptedException { if (options.getConnectionListener() == null) { throw new IllegalArgumentException("Connection Listener required in connectAsynchronously"); } Thread t = n...
java
public static void connectAsynchronously(Options options, boolean reconnectOnConnect) throws InterruptedException { if (options.getConnectionListener() == null) { throw new IllegalArgumentException("Connection Listener required in connectAsynchronously"); } Thread t = n...
[ "public", "static", "void", "connectAsynchronously", "(", "Options", "options", ",", "boolean", "reconnectOnConnect", ")", "throws", "InterruptedException", "{", "if", "(", "options", ".", "getConnectionListener", "(", ")", "==", "null", ")", "{", "throw", "new", ...
Try to connect in another thread, a connection listener is required to get the connection. <p>Normally connect will loop through the available servers one time. If reconnectOnConnect is true, the connection attempt will repeat based on the settings in options, including indefinitely. <p>If there is an exception befor...
[ "Try", "to", "connect", "in", "another", "thread", "a", "connection", "listener", "is", "required", "to", "get", "the", "connection", "." ]
5f291048fd30192ba39b3fe2925ecd60aaad6b48
https://github.com/nats-io/java-nats/blob/5f291048fd30192ba39b3fe2925ecd60aaad6b48/src/main/java/io/nats/client/Nats.java#L171-L189
116,803
nats-io/java-nats
src/main/java/io/nats/client/Nats.java
Nats.credentials
public static AuthHandler credentials(String jwtFile, String nkeyFile) { return NatsImpl.credentials(jwtFile, nkeyFile); }
java
public static AuthHandler credentials(String jwtFile, String nkeyFile) { return NatsImpl.credentials(jwtFile, nkeyFile); }
[ "public", "static", "AuthHandler", "credentials", "(", "String", "jwtFile", ",", "String", "nkeyFile", ")", "{", "return", "NatsImpl", ".", "credentials", "(", "jwtFile", ",", "nkeyFile", ")", ";", "}" ]
Create an authhandler from a jwt file and an nkey file. The handler will read the files each time it needs to respond to a request and clear the memory after. This has a small price, but will only be encountered during connect or reconnect. @param jwtFile a file containing a user JWT, may or may not contain separators...
[ "Create", "an", "authhandler", "from", "a", "jwt", "file", "and", "an", "nkey", "file", ".", "The", "handler", "will", "read", "the", "files", "each", "time", "it", "needs", "to", "respond", "to", "a", "request", "and", "clear", "the", "memory", "after",...
5f291048fd30192ba39b3fe2925ecd60aaad6b48
https://github.com/nats-io/java-nats/blob/5f291048fd30192ba39b3fe2925ecd60aaad6b48/src/main/java/io/nats/client/Nats.java#L212-L214
116,804
nats-io/java-nats
src/main/java/io/nats/client/impl/FileAuthHandler.java
FileAuthHandler.sign
public byte[] sign(byte[] nonce) { try { char[] keyChars = this.readKeyChars(); NKey nkey = NKey.fromSeed(keyChars); byte[] sig = nkey.sign(nonce); nkey.clear(); return sig; } catch (Exception exp) { throw new IllegalStateException...
java
public byte[] sign(byte[] nonce) { try { char[] keyChars = this.readKeyChars(); NKey nkey = NKey.fromSeed(keyChars); byte[] sig = nkey.sign(nonce); nkey.clear(); return sig; } catch (Exception exp) { throw new IllegalStateException...
[ "public", "byte", "[", "]", "sign", "(", "byte", "[", "]", "nonce", ")", "{", "try", "{", "char", "[", "]", "keyChars", "=", "this", ".", "readKeyChars", "(", ")", ";", "NKey", "nkey", "=", "NKey", ".", "fromSeed", "(", "keyChars", ")", ";", "byt...
Sign is called by the library when the server sends a nonce. The client's NKey should be used to sign the provided value. @param nonce the nonce to sign @return the signature for the nonce
[ "Sign", "is", "called", "by", "the", "library", "when", "the", "server", "sends", "a", "nonce", ".", "The", "client", "s", "NKey", "should", "be", "used", "to", "sign", "the", "provided", "value", "." ]
5f291048fd30192ba39b3fe2925ecd60aaad6b48
https://github.com/nats-io/java-nats/blob/5f291048fd30192ba39b3fe2925ecd60aaad6b48/src/main/java/io/nats/client/impl/FileAuthHandler.java#L152-L162
116,805
nats-io/java-nats
src/main/java/io/nats/client/impl/FileAuthHandler.java
FileAuthHandler.getID
public char[] getID() { try { char[] keyChars = this.readKeyChars(); NKey nkey = NKey.fromSeed(keyChars); char[] pubKey = nkey.getPublicKey(); nkey.clear(); return pubKey; } catch (Exception exp) { throw new IllegalStateException("...
java
public char[] getID() { try { char[] keyChars = this.readKeyChars(); NKey nkey = NKey.fromSeed(keyChars); char[] pubKey = nkey.getPublicKey(); nkey.clear(); return pubKey; } catch (Exception exp) { throw new IllegalStateException("...
[ "public", "char", "[", "]", "getID", "(", ")", "{", "try", "{", "char", "[", "]", "keyChars", "=", "this", ".", "readKeyChars", "(", ")", ";", "NKey", "nkey", "=", "NKey", ".", "fromSeed", "(", "keyChars", ")", ";", "char", "[", "]", "pubKey", "=...
getID should return a public key associated with a client key known to the server. If the server is not in nonce-mode, this array can be empty. @return the public key as a char array
[ "getID", "should", "return", "a", "public", "key", "associated", "with", "a", "client", "key", "known", "to", "the", "server", ".", "If", "the", "server", "is", "not", "in", "nonce", "-", "mode", "this", "array", "can", "be", "empty", "." ]
5f291048fd30192ba39b3fe2925ecd60aaad6b48
https://github.com/nats-io/java-nats/blob/5f291048fd30192ba39b3fe2925ecd60aaad6b48/src/main/java/io/nats/client/impl/FileAuthHandler.java#L170-L180
116,806
adminfaces/admin-template
src/main/java/com/github/adminfaces/template/session/AdminFilter.java
AdminFilter.skipResource
private boolean skipResource(HttpServletRequest request, HttpServletResponse response) { String path = request.getServletPath(); if (path.contains(".")) { path = path.substring(0, path.lastIndexOf(".")); } boolean skip = path.startsWith(FACES_RESOURCES) || shouldIgnoreResourc...
java
private boolean skipResource(HttpServletRequest request, HttpServletResponse response) { String path = request.getServletPath(); if (path.contains(".")) { path = path.substring(0, path.lastIndexOf(".")); } boolean skip = path.startsWith(FACES_RESOURCES) || shouldIgnoreResourc...
[ "private", "boolean", "skipResource", "(", "HttpServletRequest", "request", ",", "HttpServletResponse", "response", ")", "{", "String", "path", "=", "request", ".", "getServletPath", "(", ")", ";", "if", "(", "path", ".", "contains", "(", "\".\"", ")", ")", ...
skips faces-resources, index, error or logon pages @param request @return true if resource must be skipped by the filter false otherwise
[ "skips", "faces", "-", "resources", "index", "error", "or", "logon", "pages" ]
d631281e10a046ede582f8b57f7f5cf2e253e4da
https://github.com/adminfaces/admin-template/blob/d631281e10a046ede582f8b57f7f5cf2e253e4da/src/main/java/com/github/adminfaces/template/session/AdminFilter.java#L161-L168
116,807
adminfaces/admin-template
src/main/java/com/github/adminfaces/template/session/AdminFilter.java
AdminFilter.isValidRecoveryUrl
private boolean isValidRecoveryUrl(StringBuilder recoveryUrl) { String pageSuffix = adminConfig.getPageSufix(); return !recoveryUrl.toString().contains(Constants.DEFAULT_INDEX_PAGE.replace("xhtml", pageSuffix)) && !recoveryUrl.toString().contains(Constants.DEFAULT_ACCESS_DENIED_PAGE.replace("xhtml", adm...
java
private boolean isValidRecoveryUrl(StringBuilder recoveryUrl) { String pageSuffix = adminConfig.getPageSufix(); return !recoveryUrl.toString().contains(Constants.DEFAULT_INDEX_PAGE.replace("xhtml", pageSuffix)) && !recoveryUrl.toString().contains(Constants.DEFAULT_ACCESS_DENIED_PAGE.replace("xhtml", adm...
[ "private", "boolean", "isValidRecoveryUrl", "(", "StringBuilder", "recoveryUrl", ")", "{", "String", "pageSuffix", "=", "adminConfig", ".", "getPageSufix", "(", ")", ";", "return", "!", "recoveryUrl", ".", "toString", "(", ")", ".", "contains", "(", "Constants",...
Skip error pages, login and index page as recovery url because it doesn't make sense redirecting user to such pages @param recoveryUrl @return
[ "Skip", "error", "pages", "login", "and", "index", "page", "as", "recovery", "url", "because", "it", "doesn", "t", "make", "sense", "redirecting", "user", "to", "such", "pages" ]
d631281e10a046ede582f8b57f7f5cf2e253e4da
https://github.com/adminfaces/admin-template/blob/d631281e10a046ede582f8b57f7f5cf2e253e4da/src/main/java/com/github/adminfaces/template/session/AdminFilter.java#L220-L225
116,808
adminfaces/admin-template
src/main/java/com/github/adminfaces/template/config/AdminConfig.java
AdminConfig.getProperty
private String getProperty(String property) { return has(System.getProperty(property)) ? System.getProperty(property) : has(userConfigFile.getProperty(property)) ? userConfigFile.getProperty(property) : adminConfigFile.getProperty(property); }
java
private String getProperty(String property) { return has(System.getProperty(property)) ? System.getProperty(property) : has(userConfigFile.getProperty(property)) ? userConfigFile.getProperty(property) : adminConfigFile.getProperty(property); }
[ "private", "String", "getProperty", "(", "String", "property", ")", "{", "return", "has", "(", "System", ".", "getProperty", "(", "property", ")", ")", "?", "System", ".", "getProperty", "(", "property", ")", ":", "has", "(", "userConfigFile", ".", "getPro...
First tries to load the property from java system properties secondly looks for the property into user defined admin-config.properties then if not found load defaults from admin-config.properties provided within admin-template @param property name @return
[ "First", "tries", "to", "load", "the", "property", "from", "java", "system", "properties", "secondly", "looks", "for", "the", "property", "into", "user", "defined", "admin", "-", "config", ".", "properties", "then", "if", "not", "found", "load", "defaults", ...
d631281e10a046ede582f8b57f7f5cf2e253e4da
https://github.com/adminfaces/admin-template/blob/d631281e10a046ede582f8b57f7f5cf2e253e4da/src/main/java/com/github/adminfaces/template/config/AdminConfig.java#L136-L140
116,809
adminfaces/admin-template
src/main/java/com/github/adminfaces/template/config/AdminConfig.java
AdminConfig.getPageSufix
public String getPageSufix() { if(has(pageSuffix)) { return pageSuffix; } if(!has(indexPage) && !has(loginPage)) { pageSuffix = Constants.DEFAULT_PAGE_FORMAT; } if(has(indexPage)) { pageSuffix = indexPage.substring(indexPage.lastIndexOf('.')+1)...
java
public String getPageSufix() { if(has(pageSuffix)) { return pageSuffix; } if(!has(indexPage) && !has(loginPage)) { pageSuffix = Constants.DEFAULT_PAGE_FORMAT; } if(has(indexPage)) { pageSuffix = indexPage.substring(indexPage.lastIndexOf('.')+1)...
[ "public", "String", "getPageSufix", "(", ")", "{", "if", "(", "has", "(", "pageSuffix", ")", ")", "{", "return", "pageSuffix", ";", "}", "if", "(", "!", "has", "(", "indexPage", ")", "&&", "!", "has", "(", "loginPage", ")", ")", "{", "pageSuffix", ...
infer page suffix from index and login page configured in admin-config.properties If none is configured then use default suffix: 'xhtml'.
[ "infer", "page", "suffix", "from", "index", "and", "login", "page", "configured", "in", "admin", "-", "config", ".", "properties" ]
d631281e10a046ede582f8b57f7f5cf2e253e4da
https://github.com/adminfaces/admin-template/blob/d631281e10a046ede582f8b57f7f5cf2e253e4da/src/main/java/com/github/adminfaces/template/config/AdminConfig.java#L147-L160
116,810
adminfaces/admin-template
src/main/java/com/github/adminfaces/template/exception/CustomExceptionHandler.java
CustomExceptionHandler.findErrorPage
private String findErrorPage(Throwable exception) { if (exception instanceof EJBException && exception.getCause() != null) { exception = exception.getCause(); } String errorPage = WebXml.INSTANCE.findErrorPageLocation(exception); return errorPage; }
java
private String findErrorPage(Throwable exception) { if (exception instanceof EJBException && exception.getCause() != null) { exception = exception.getCause(); } String errorPage = WebXml.INSTANCE.findErrorPageLocation(exception); return errorPage; }
[ "private", "String", "findErrorPage", "(", "Throwable", "exception", ")", "{", "if", "(", "exception", "instanceof", "EJBException", "&&", "exception", ".", "getCause", "(", ")", "!=", "null", ")", "{", "exception", "=", "exception", ".", "getCause", "(", ")...
Find error page in web.xml @param exception @return
[ "Find", "error", "page", "in", "web", ".", "xml" ]
d631281e10a046ede582f8b57f7f5cf2e253e4da
https://github.com/adminfaces/admin-template/blob/d631281e10a046ede582f8b57f7f5cf2e253e4da/src/main/java/com/github/adminfaces/template/exception/CustomExceptionHandler.java#L122-L129
116,811
adminfaces/admin-template
src/main/java/com/github/adminfaces/template/exception/CustomExceptionHandler.java
CustomExceptionHandler.validationFailed
private void validationFailed(FacesContext context) { Map<Object, Object> callbackParams = (Map<Object, Object>) context.getAttributes().get("CALLBACK_PARAMS"); if(callbackParams == null) { callbackParams = new HashMap<>(); callbackParams.put("CALLBACK_PARAMS",callbackParams); ...
java
private void validationFailed(FacesContext context) { Map<Object, Object> callbackParams = (Map<Object, Object>) context.getAttributes().get("CALLBACK_PARAMS"); if(callbackParams == null) { callbackParams = new HashMap<>(); callbackParams.put("CALLBACK_PARAMS",callbackParams); ...
[ "private", "void", "validationFailed", "(", "FacesContext", "context", ")", "{", "Map", "<", "Object", ",", "Object", ">", "callbackParams", "=", "(", "Map", "<", "Object", ",", "Object", ">", ")", "context", ".", "getAttributes", "(", ")", ".", "get", "...
Set primefaces validationFailled callback param
[ "Set", "primefaces", "validationFailled", "callback", "param" ]
d631281e10a046ede582f8b57f7f5cf2e253e4da
https://github.com/adminfaces/admin-template/blob/d631281e10a046ede582f8b57f7f5cf2e253e4da/src/main/java/com/github/adminfaces/template/exception/CustomExceptionHandler.java#L169-L177
116,812
adminfaces/admin-template
src/main/java/com/github/adminfaces/template/exception/CustomExceptionHandler.java
CustomExceptionHandler.findErrorMessages
private void findErrorMessages(FacesContext context) { if (context.getMessageList().isEmpty() || context.isValidationFailed()) { return; } for (FacesMessage msg : context.getMessageList()) { if (msg.getSeverity().equals(FacesMessage.SEVERITY_ERROR) || msg.getSeverity().eq...
java
private void findErrorMessages(FacesContext context) { if (context.getMessageList().isEmpty() || context.isValidationFailed()) { return; } for (FacesMessage msg : context.getMessageList()) { if (msg.getSeverity().equals(FacesMessage.SEVERITY_ERROR) || msg.getSeverity().eq...
[ "private", "void", "findErrorMessages", "(", "FacesContext", "context", ")", "{", "if", "(", "context", ".", "getMessageList", "(", ")", ".", "isEmpty", "(", ")", "||", "context", ".", "isValidationFailed", "(", ")", ")", "{", "return", ";", "}", "for", ...
If there is any faces message queued add PrimeFaces validation failed @param context
[ "If", "there", "is", "any", "faces", "message", "queued", "add", "PrimeFaces", "validation", "failed" ]
d631281e10a046ede582f8b57f7f5cf2e253e4da
https://github.com/adminfaces/admin-template/blob/d631281e10a046ede582f8b57f7f5cf2e253e4da/src/main/java/com/github/adminfaces/template/exception/CustomExceptionHandler.java#L184-L194
116,813
togglz/togglz
core/src/main/java/org/togglz/core/activation/ParameterBuilder.java
ParameterBuilder.matching
public ParameterBuilder matching(String regex) { Validate.notNull(regex, "regex is required"); this.pattern = Pattern.compile(regex); return this; }
java
public ParameterBuilder matching(String regex) { Validate.notNull(regex, "regex is required"); this.pattern = Pattern.compile(regex); return this; }
[ "public", "ParameterBuilder", "matching", "(", "String", "regex", ")", "{", "Validate", ".", "notNull", "(", "regex", ",", "\"regex is required\"", ")", ";", "this", ".", "pattern", "=", "Pattern", ".", "compile", "(", "regex", ")", ";", "return", "this", ...
Sets a regular expression that must match for parameter values to be considered as valid.
[ "Sets", "a", "regular", "expression", "that", "must", "match", "for", "parameter", "values", "to", "be", "considered", "as", "valid", "." ]
76d3ffbc8e3fac5a6cb566cc4afbd8dd5f06c4e5
https://github.com/togglz/togglz/blob/76d3ffbc8e3fac5a6cb566cc4afbd8dd5f06c4e5/core/src/main/java/org/togglz/core/activation/ParameterBuilder.java#L52-L56
116,814
togglz/togglz
core/src/main/java/org/togglz/core/repository/FeatureState.java
FeatureState.copy
public FeatureState copy() { FeatureState copy = new FeatureState(feature); copy.setEnabled(this.enabled); copy.setStrategyId(this.strategyId); for (Entry<String, String> entry : this.parameters.entrySet()) { copy.setParameter(entry.getKey(), entry.getValue()); } ...
java
public FeatureState copy() { FeatureState copy = new FeatureState(feature); copy.setEnabled(this.enabled); copy.setStrategyId(this.strategyId); for (Entry<String, String> entry : this.parameters.entrySet()) { copy.setParameter(entry.getKey(), entry.getValue()); } ...
[ "public", "FeatureState", "copy", "(", ")", "{", "FeatureState", "copy", "=", "new", "FeatureState", "(", "feature", ")", ";", "copy", ".", "setEnabled", "(", "this", ".", "enabled", ")", ";", "copy", ".", "setStrategyId", "(", "this", ".", "strategyId", ...
Creates a copy of this state object
[ "Creates", "a", "copy", "of", "this", "state", "object" ]
76d3ffbc8e3fac5a6cb566cc4afbd8dd5f06c4e5
https://github.com/togglz/togglz/blob/76d3ffbc8e3fac5a6cb566cc4afbd8dd5f06c4e5/core/src/main/java/org/togglz/core/repository/FeatureState.java#L75-L83
116,815
togglz/togglz
core/src/main/java/org/togglz/core/repository/FeatureState.java
FeatureState.getUsers
@Deprecated public List<String> getUsers() { String value = getParameter(UsernameActivationStrategy.PARAM_USERS); if (Strings.isNotBlank(value)) { return Strings.splitAndTrim(value, ","); } return Collections.emptyList(); }
java
@Deprecated public List<String> getUsers() { String value = getParameter(UsernameActivationStrategy.PARAM_USERS); if (Strings.isNotBlank(value)) { return Strings.splitAndTrim(value, ","); } return Collections.emptyList(); }
[ "@", "Deprecated", "public", "List", "<", "String", ">", "getUsers", "(", ")", "{", "String", "value", "=", "getParameter", "(", "UsernameActivationStrategy", ".", "PARAM_USERS", ")", ";", "if", "(", "Strings", ".", "isNotBlank", "(", "value", ")", ")", "{...
The list of users associated with the feature state. @return The user list, never <code>null</code> @deprecated This method will be removed soon. Use {@link #getParameter(String)} instead to read the corresponding strategy parameter.
[ "The", "list", "of", "users", "associated", "with", "the", "feature", "state", "." ]
76d3ffbc8e3fac5a6cb566cc4afbd8dd5f06c4e5
https://github.com/togglz/togglz/blob/76d3ffbc8e3fac5a6cb566cc4afbd8dd5f06c4e5/core/src/main/java/org/togglz/core/repository/FeatureState.java#L131-L138
116,816
togglz/togglz
core/src/main/java/org/togglz/core/repository/FeatureState.java
FeatureState.addUsers
@Deprecated public FeatureState addUsers(Collection<String> users) { Set<String> set = new LinkedHashSet<>(); set.addAll(this.getUsers()); set.addAll(users); String setAsString = Strings.trimToNull(Strings.join(set, ",")); setParameter(UsernameActivationStrategy.PARAM_USERS, ...
java
@Deprecated public FeatureState addUsers(Collection<String> users) { Set<String> set = new LinkedHashSet<>(); set.addAll(this.getUsers()); set.addAll(users); String setAsString = Strings.trimToNull(Strings.join(set, ",")); setParameter(UsernameActivationStrategy.PARAM_USERS, ...
[ "@", "Deprecated", "public", "FeatureState", "addUsers", "(", "Collection", "<", "String", ">", "users", ")", "{", "Set", "<", "String", ">", "set", "=", "new", "LinkedHashSet", "<>", "(", ")", ";", "set", ".", "addAll", "(", "this", ".", "getUsers", "...
Adds a single user to the list of users @deprecated This method will be removed soon. Use {@link #setParameter(String, String)} instead to modify the corresponding strategy parameter.
[ "Adds", "a", "single", "user", "to", "the", "list", "of", "users" ]
76d3ffbc8e3fac5a6cb566cc4afbd8dd5f06c4e5
https://github.com/togglz/togglz/blob/76d3ffbc8e3fac5a6cb566cc4afbd8dd5f06c4e5/core/src/main/java/org/togglz/core/repository/FeatureState.java#L157-L165
116,817
togglz/togglz
core/src/main/java/org/togglz/core/repository/FeatureState.java
FeatureState.setParameter
public FeatureState setParameter(String name, String value) { if (value != null) { this.parameters.put(name, value); } else { this.parameters.remove(name); } return this; }
java
public FeatureState setParameter(String name, String value) { if (value != null) { this.parameters.put(name, value); } else { this.parameters.remove(name); } return this; }
[ "public", "FeatureState", "setParameter", "(", "String", "name", ",", "String", "value", ")", "{", "if", "(", "value", "!=", "null", ")", "{", "this", ".", "parameters", ".", "put", "(", "name", ",", "value", ")", ";", "}", "else", "{", "this", ".", ...
Sets a new value for the given parameter.
[ "Sets", "a", "new", "value", "for", "the", "given", "parameter", "." ]
76d3ffbc8e3fac5a6cb566cc4afbd8dd5f06c4e5
https://github.com/togglz/togglz/blob/76d3ffbc8e3fac5a6cb566cc4afbd8dd5f06c4e5/core/src/main/java/org/togglz/core/repository/FeatureState.java#L192-L200
116,818
togglz/togglz
servlet/src/main/java/org/togglz/servlet/util/HttpServletRequestHolder.java
HttpServletRequestHolder.bind
public static void bind(HttpServletRequest request) { if (request != null && threadLocal.get() != null) { throw new IllegalStateException("HttpServletRequestHolder.bind() called for a " + "thread that already has a request associated with it. It's likely that the request " ...
java
public static void bind(HttpServletRequest request) { if (request != null && threadLocal.get() != null) { throw new IllegalStateException("HttpServletRequestHolder.bind() called for a " + "thread that already has a request associated with it. It's likely that the request " ...
[ "public", "static", "void", "bind", "(", "HttpServletRequest", "request", ")", "{", "if", "(", "request", "!=", "null", "&&", "threadLocal", ".", "get", "(", ")", "!=", "null", ")", "{", "throw", "new", "IllegalStateException", "(", "\"HttpServletRequestHolder...
Associate the request with the current thread.
[ "Associate", "the", "request", "with", "the", "current", "thread", "." ]
76d3ffbc8e3fac5a6cb566cc4afbd8dd5f06c4e5
https://github.com/togglz/togglz/blob/76d3ffbc8e3fac5a6cb566cc4afbd8dd5f06c4e5/servlet/src/main/java/org/togglz/servlet/util/HttpServletRequestHolder.java#L20-L27
116,819
togglz/togglz
benchmarks/src/main/java/org/togglz/benchmark/TogglzOverheadBenchmark.java
TogglzOverheadBenchmark.toggleEnabledState
@Setup(Level.Iteration) public void toggleEnabledState() { enabled = !enabled; manager.setFeatureState(new FeatureState(OverheadFeature.FEATURE, enabled)); }
java
@Setup(Level.Iteration) public void toggleEnabledState() { enabled = !enabled; manager.setFeatureState(new FeatureState(OverheadFeature.FEATURE, enabled)); }
[ "@", "Setup", "(", "Level", ".", "Iteration", ")", "public", "void", "toggleEnabledState", "(", ")", "{", "enabled", "=", "!", "enabled", ";", "manager", ".", "setFeatureState", "(", "new", "FeatureState", "(", "OverheadFeature", ".", "FEATURE", ",", "enable...
toggle the state between iterations to keep the compiler honest
[ "toggle", "the", "state", "between", "iterations", "to", "keep", "the", "compiler", "honest" ]
76d3ffbc8e3fac5a6cb566cc4afbd8dd5f06c4e5
https://github.com/togglz/togglz/blob/76d3ffbc8e3fac5a6cb566cc4afbd8dd5f06c4e5/benchmarks/src/main/java/org/togglz/benchmark/TogglzOverheadBenchmark.java#L63-L67
116,820
togglz/togglz
spring-boot/autoconfigure/src/main/java/org/togglz/spring/boot/autoconfigure/TogglzProperties.java
TogglzProperties.getFeatureProperties
public Properties getFeatureProperties() { Properties properties = new Properties(); for (String name : features.keySet()) { properties.setProperty(name, features.get(name).spec()); } return properties; }
java
public Properties getFeatureProperties() { Properties properties = new Properties(); for (String name : features.keySet()) { properties.setProperty(name, features.get(name).spec()); } return properties; }
[ "public", "Properties", "getFeatureProperties", "(", ")", "{", "Properties", "properties", "=", "new", "Properties", "(", ")", ";", "for", "(", "String", "name", ":", "features", ".", "keySet", "(", ")", ")", "{", "properties", ".", "setProperty", "(", "na...
The configured features in a format that can be consumed by a PropertyFeatureProvider. @return features in the right format.
[ "The", "configured", "features", "in", "a", "format", "that", "can", "be", "consumed", "by", "a", "PropertyFeatureProvider", "." ]
76d3ffbc8e3fac5a6cb566cc4afbd8dd5f06c4e5
https://github.com/togglz/togglz/blob/76d3ffbc8e3fac5a6cb566cc4afbd8dd5f06c4e5/spring-boot/autoconfigure/src/main/java/org/togglz/spring/boot/autoconfigure/TogglzProperties.java#L431-L437
116,821
togglz/togglz
core/src/main/java/org/togglz/core/util/Services.java
Services.get
public static <E> Collection<E> get(Class<? extends E> service) { Iterator<? extends E> implementations = ServiceLoader.load(service).iterator(); Collection<E> result = new ArrayList<E>(); while (implementations.hasNext()) { result.add(implementations.next()); } ret...
java
public static <E> Collection<E> get(Class<? extends E> service) { Iterator<? extends E> implementations = ServiceLoader.load(service).iterator(); Collection<E> result = new ArrayList<E>(); while (implementations.hasNext()) { result.add(implementations.next()); } ret...
[ "public", "static", "<", "E", ">", "Collection", "<", "E", ">", "get", "(", "Class", "<", "?", "extends", "E", ">", "service", ")", "{", "Iterator", "<", "?", "extends", "E", ">", "implementations", "=", "ServiceLoader", ".", "load", "(", "service", ...
Lookup implementations of the supplied SPI. Please note that the order in which the implementations will occur in the collection is not specified.
[ "Lookup", "implementations", "of", "the", "supplied", "SPI", ".", "Please", "note", "that", "the", "order", "in", "which", "the", "implementations", "will", "occur", "in", "the", "collection", "is", "not", "specified", "." ]
76d3ffbc8e3fac5a6cb566cc4afbd8dd5f06c4e5
https://github.com/togglz/togglz/blob/76d3ffbc8e3fac5a6cb566cc4afbd8dd5f06c4e5/core/src/main/java/org/togglz/core/util/Services.java#L27-L37
116,822
togglz/togglz
core/src/main/java/org/togglz/core/repository/jdbc/SchemaUpdater.java
SchemaUpdater.execute
private void execute(String sql) throws SQLException { Statement statement = connection.createStatement(); try { statement.executeUpdate(substitute(sql)); } finally { DbUtils.closeQuietly(statement); } }
java
private void execute(String sql) throws SQLException { Statement statement = connection.createStatement(); try { statement.executeUpdate(substitute(sql)); } finally { DbUtils.closeQuietly(statement); } }
[ "private", "void", "execute", "(", "String", "sql", ")", "throws", "SQLException", "{", "Statement", "statement", "=", "connection", ".", "createStatement", "(", ")", ";", "try", "{", "statement", ".", "executeUpdate", "(", "substitute", "(", "sql", ")", ")"...
Executes the given statement.
[ "Executes", "the", "given", "statement", "." ]
76d3ffbc8e3fac5a6cb566cc4afbd8dd5f06c4e5
https://github.com/togglz/togglz/blob/76d3ffbc8e3fac5a6cb566cc4afbd8dd5f06c4e5/core/src/main/java/org/togglz/core/repository/jdbc/SchemaUpdater.java#L132-L139
116,823
togglz/togglz
core/src/main/java/org/togglz/core/jndi/FeatureManagerObjectFactory.java
FeatureManagerObjectFactory.createInstance
protected Object createInstance(String classname) { // get the classloader to use ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); if (classLoader == null) { classLoader = this.getClass().getClassLoader(); } // create an instance of the clas...
java
protected Object createInstance(String classname) { // get the classloader to use ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); if (classLoader == null) { classLoader = this.getClass().getClassLoader(); } // create an instance of the clas...
[ "protected", "Object", "createInstance", "(", "String", "classname", ")", "{", "// get the classloader to use", "ClassLoader", "classLoader", "=", "Thread", ".", "currentThread", "(", ")", ".", "getContextClassLoader", "(", ")", ";", "if", "(", "classLoader", "==", ...
Creates an instance of the supplied class.
[ "Creates", "an", "instance", "of", "the", "supplied", "class", "." ]
76d3ffbc8e3fac5a6cb566cc4afbd8dd5f06c4e5
https://github.com/togglz/togglz/blob/76d3ffbc8e3fac5a6cb566cc4afbd8dd5f06c4e5/core/src/main/java/org/togglz/core/jndi/FeatureManagerObjectFactory.java#L78-L99
116,824
code4craft/xsoup
src/main/java/us/codecraft/xsoup/XTokenQueue.java
XTokenQueue.consumeToAny
public String consumeToAny(String... seq) { int start = pos; while (!isEmpty() && !matchesAny(seq)) { pos++; } String data = queue.substring(start, pos); return data; }
java
public String consumeToAny(String... seq) { int start = pos; while (!isEmpty() && !matchesAny(seq)) { pos++; } String data = queue.substring(start, pos); return data; }
[ "public", "String", "consumeToAny", "(", "String", "...", "seq", ")", "{", "int", "start", "=", "pos", ";", "while", "(", "!", "isEmpty", "(", ")", "&&", "!", "matchesAny", "(", "seq", ")", ")", "{", "pos", "++", ";", "}", "String", "data", "=", ...
is is a case sensitive time...
[ "is", "is", "a", "case", "sensitive", "time", "..." ]
8c080c1455813dddff21a683b3c40adee656a491
https://github.com/code4craft/xsoup/blob/8c080c1455813dddff21a683b3c40adee656a491/src/main/java/us/codecraft/xsoup/XTokenQueue.java#L254-L262
116,825
code4craft/xsoup
src/main/java/us/codecraft/xsoup/XTokenQueue.java
XTokenQueue.unescape
public static String unescape(String in) { StringBuilder out = new StringBuilder(); char last = 0; for (char c : in.toCharArray()) { if (c == ESC) { if (last != 0 && last == ESC) out.append(c); } else out.append(c); ...
java
public static String unescape(String in) { StringBuilder out = new StringBuilder(); char last = 0; for (char c : in.toCharArray()) { if (c == ESC) { if (last != 0 && last == ESC) out.append(c); } else out.append(c); ...
[ "public", "static", "String", "unescape", "(", "String", "in", ")", "{", "StringBuilder", "out", "=", "new", "StringBuilder", "(", ")", ";", "char", "last", "=", "0", ";", "for", "(", "char", "c", ":", "in", ".", "toCharArray", "(", ")", ")", "{", ...
Unescaped a \ escaped string. @param in backslash escaped string @return unescaped string
[ "Unescaped", "a", "\\", "escaped", "string", "." ]
8c080c1455813dddff21a683b3c40adee656a491
https://github.com/code4craft/xsoup/blob/8c080c1455813dddff21a683b3c40adee656a491/src/main/java/us/codecraft/xsoup/XTokenQueue.java#L378-L390
116,826
qiniu/android-sdk
library/src/main/java/com/qiniu/android/utils/FastDatePrinter.java
FastDatePrinter.applyRules
@Deprecated protected StringBuffer applyRules(final Calendar calendar, final StringBuffer buf) { return (StringBuffer) applyRules(calendar, (Appendable) buf); }
java
@Deprecated protected StringBuffer applyRules(final Calendar calendar, final StringBuffer buf) { return (StringBuffer) applyRules(calendar, (Appendable) buf); }
[ "@", "Deprecated", "protected", "StringBuffer", "applyRules", "(", "final", "Calendar", "calendar", ",", "final", "StringBuffer", "buf", ")", "{", "return", "(", "StringBuffer", ")", "applyRules", "(", "calendar", ",", "(", "Appendable", ")", "buf", ")", ";", ...
Performs the formatting by applying the rules to the specified calendar. @param calendar the calendar to format @param buf the buffer to format into @return the specified string buffer @deprecated use {@link #format(Calendar)} or {@link #format(Calendar, Appendable)}
[ "Performs", "the", "formatting", "by", "applying", "the", "rules", "to", "the", "specified", "calendar", "." ]
dbd2a01fb3bff7a5e75e8934bbf81713124d8466
https://github.com/qiniu/android-sdk/blob/dbd2a01fb3bff7a5e75e8934bbf81713124d8466/library/src/main/java/com/qiniu/android/utils/FastDatePrinter.java#L625-L628
116,827
qiniu/android-sdk
library/src/main/java/com/qiniu/android/http/Headers.java
Headers.of
public static Headers of(String... namesAndValues) { if (namesAndValues == null) throw new NullPointerException("namesAndValues == null"); if (namesAndValues.length % 2 != 0) { throw new IllegalArgumentException("Expected alternating header names and values"); } // Make a de...
java
public static Headers of(String... namesAndValues) { if (namesAndValues == null) throw new NullPointerException("namesAndValues == null"); if (namesAndValues.length % 2 != 0) { throw new IllegalArgumentException("Expected alternating header names and values"); } // Make a de...
[ "public", "static", "Headers", "of", "(", "String", "...", "namesAndValues", ")", "{", "if", "(", "namesAndValues", "==", "null", ")", "throw", "new", "NullPointerException", "(", "\"namesAndValues == null\"", ")", ";", "if", "(", "namesAndValues", ".", "length"...
Returns headers for the alternating header names and values. There must be an even number of arguments, and they must alternate between header names and values.
[ "Returns", "headers", "for", "the", "alternating", "header", "names", "and", "values", ".", "There", "must", "be", "an", "even", "number", "of", "arguments", "and", "they", "must", "alternate", "between", "header", "names", "and", "values", "." ]
dbd2a01fb3bff7a5e75e8934bbf81713124d8466
https://github.com/qiniu/android-sdk/blob/dbd2a01fb3bff7a5e75e8934bbf81713124d8466/library/src/main/java/com/qiniu/android/http/Headers.java#L78-L102
116,828
qiniu/android-sdk
library/src/main/java/com/qiniu/android/http/Headers.java
Headers.getDate
public Date getDate(String name) { String value = get(name); return value != null ? HttpDate.parse(value) : null; }
java
public Date getDate(String name) { String value = get(name); return value != null ? HttpDate.parse(value) : null; }
[ "public", "Date", "getDate", "(", "String", "name", ")", "{", "String", "value", "=", "get", "(", "name", ")", ";", "return", "value", "!=", "null", "?", "HttpDate", ".", "parse", "(", "value", ")", ":", "null", ";", "}" ]
Returns the last value corresponding to the specified field parsed as an HTTP date, or null if either the field is absent or cannot be parsed as a date.
[ "Returns", "the", "last", "value", "corresponding", "to", "the", "specified", "field", "parsed", "as", "an", "HTTP", "date", "or", "null", "if", "either", "the", "field", "is", "absent", "or", "cannot", "be", "parsed", "as", "a", "date", "." ]
dbd2a01fb3bff7a5e75e8934bbf81713124d8466
https://github.com/qiniu/android-sdk/blob/dbd2a01fb3bff7a5e75e8934bbf81713124d8466/library/src/main/java/com/qiniu/android/http/Headers.java#L139-L142
116,829
qiniu/android-sdk
library/src/main/java/com/qiniu/android/http/Headers.java
Headers.names
public Set<String> names() { TreeSet<String> result = new TreeSet<>(String.CASE_INSENSITIVE_ORDER); for (int i = 0, size = size(); i < size; i++) { result.add(name(i)); } return Collections.unmodifiableSet(result); }
java
public Set<String> names() { TreeSet<String> result = new TreeSet<>(String.CASE_INSENSITIVE_ORDER); for (int i = 0, size = size(); i < size; i++) { result.add(name(i)); } return Collections.unmodifiableSet(result); }
[ "public", "Set", "<", "String", ">", "names", "(", ")", "{", "TreeSet", "<", "String", ">", "result", "=", "new", "TreeSet", "<>", "(", "String", ".", "CASE_INSENSITIVE_ORDER", ")", ";", "for", "(", "int", "i", "=", "0", ",", "size", "=", "size", "...
Returns an immutable case-insensitive set of header names.
[ "Returns", "an", "immutable", "case", "-", "insensitive", "set", "of", "header", "names", "." ]
dbd2a01fb3bff7a5e75e8934bbf81713124d8466
https://github.com/qiniu/android-sdk/blob/dbd2a01fb3bff7a5e75e8934bbf81713124d8466/library/src/main/java/com/qiniu/android/http/Headers.java#L160-L166
116,830
qiniu/android-sdk
library/src/main/java/com/qiniu/android/http/MultipartBody.java
MultipartBody.appendQuotedString
static StringBuilder appendQuotedString(StringBuilder target, String key) { target.append('"'); for (int i = 0, len = key.length(); i < len; i++) { char ch = key.charAt(i); switch (ch) { case '\n': target.append("%0A"); brea...
java
static StringBuilder appendQuotedString(StringBuilder target, String key) { target.append('"'); for (int i = 0, len = key.length(); i < len; i++) { char ch = key.charAt(i); switch (ch) { case '\n': target.append("%0A"); brea...
[ "static", "StringBuilder", "appendQuotedString", "(", "StringBuilder", "target", ",", "String", "key", ")", "{", "target", ".", "append", "(", "'", "'", ")", ";", "for", "(", "int", "i", "=", "0", ",", "len", "=", "key", ".", "length", "(", ")", ";",...
Appends a quoted-string to a StringBuilder. <p>RFC 2388 is rather vague about how one should escape special characters in form-data parameters, and as it turns out Firefox and Chrome actually do rather different things, and both say in their comments that they're not really sure what the right approach is. We go with ...
[ "Appends", "a", "quoted", "-", "string", "to", "a", "StringBuilder", "." ]
dbd2a01fb3bff7a5e75e8934bbf81713124d8466
https://github.com/qiniu/android-sdk/blob/dbd2a01fb3bff7a5e75e8934bbf81713124d8466/library/src/main/java/com/qiniu/android/http/MultipartBody.java#L97-L118
116,831
roskenet/springboot-javafx-support
src/main/java/de/felixroske/jfxsupport/SplashScreen.java
SplashScreen.getParent
public Parent getParent() { final ImageView imageView = new ImageView(getClass().getResource(getImagePath()).toExternalForm()); final ProgressBar splashProgressBar = new ProgressBar(); splashProgressBar.setPrefWidth(imageView.getImage().getWidth()); final VBox vbox = new VBox(); vbox.getChildren().addAll(ima...
java
public Parent getParent() { final ImageView imageView = new ImageView(getClass().getResource(getImagePath()).toExternalForm()); final ProgressBar splashProgressBar = new ProgressBar(); splashProgressBar.setPrefWidth(imageView.getImage().getWidth()); final VBox vbox = new VBox(); vbox.getChildren().addAll(ima...
[ "public", "Parent", "getParent", "(", ")", "{", "final", "ImageView", "imageView", "=", "new", "ImageView", "(", "getClass", "(", ")", ".", "getResource", "(", "getImagePath", "(", ")", ")", ".", "toExternalForm", "(", ")", ")", ";", "final", "ProgressBar"...
Override this to create your own splash pane parent node. @return A standard image
[ "Override", "this", "to", "create", "your", "own", "splash", "pane", "parent", "node", "." ]
aed1da178ecb204eb00508b3ce1e2a11d4fa9619
https://github.com/roskenet/springboot-javafx-support/blob/aed1da178ecb204eb00508b3ce1e2a11d4fa9619/src/main/java/de/felixroske/jfxsupport/SplashScreen.java#L25-L34
116,832
roskenet/springboot-javafx-support
src/main/java/de/felixroske/jfxsupport/AbstractFxmlView.java
AbstractFxmlView.getURLResource
private URL getURLResource(final FXMLView annotation) { if (annotation != null && !annotation.value().equals("")) { return getClass().getResource(annotation.value()); } else { return getClass().getResource(getFxmlPath()); } }
java
private URL getURLResource(final FXMLView annotation) { if (annotation != null && !annotation.value().equals("")) { return getClass().getResource(annotation.value()); } else { return getClass().getResource(getFxmlPath()); } }
[ "private", "URL", "getURLResource", "(", "final", "FXMLView", "annotation", ")", "{", "if", "(", "annotation", "!=", "null", "&&", "!", "annotation", ".", "value", "(", ")", ".", "equals", "(", "\"\"", ")", ")", "{", "return", "getClass", "(", ")", "."...
Gets the URL resource. This will be derived from applied annotation value or from naming convention. @param annotation the annotation as defined by inheriting class. @return the URL resource
[ "Gets", "the", "URL", "resource", ".", "This", "will", "be", "derived", "from", "applied", "annotation", "value", "or", "from", "naming", "convention", "." ]
aed1da178ecb204eb00508b3ce1e2a11d4fa9619
https://github.com/roskenet/springboot-javafx-support/blob/aed1da178ecb204eb00508b3ce1e2a11d4fa9619/src/main/java/de/felixroske/jfxsupport/AbstractFxmlView.java#L91-L97
116,833
roskenet/springboot-javafx-support
src/main/java/de/felixroske/jfxsupport/AbstractFxmlView.java
AbstractFxmlView.loadSynchronously
private FXMLLoader loadSynchronously(final URL resource, final Optional<ResourceBundle> bundle) throws IllegalStateException { final FXMLLoader loader = new FXMLLoader(resource, bundle.orElse(null)); loader.setControllerFactory(this::createControllerForType); try { loader.load(); } catch (final IOException...
java
private FXMLLoader loadSynchronously(final URL resource, final Optional<ResourceBundle> bundle) throws IllegalStateException { final FXMLLoader loader = new FXMLLoader(resource, bundle.orElse(null)); loader.setControllerFactory(this::createControllerForType); try { loader.load(); } catch (final IOException...
[ "private", "FXMLLoader", "loadSynchronously", "(", "final", "URL", "resource", ",", "final", "Optional", "<", "ResourceBundle", ">", "bundle", ")", "throws", "IllegalStateException", "{", "final", "FXMLLoader", "loader", "=", "new", "FXMLLoader", "(", "resource", ...
Load synchronously. @param resource the resource @param bundle the bundle @return the FXML loader @throws IllegalStateException the illegal state exception
[ "Load", "synchronously", "." ]
aed1da178ecb204eb00508b3ce1e2a11d4fa9619
https://github.com/roskenet/springboot-javafx-support/blob/aed1da178ecb204eb00508b3ce1e2a11d4fa9619/src/main/java/de/felixroske/jfxsupport/AbstractFxmlView.java#L153-L165
116,834
roskenet/springboot-javafx-support
src/main/java/de/felixroske/jfxsupport/AbstractFxmlView.java
AbstractFxmlView.ensureFxmlLoaderInitialized
private void ensureFxmlLoaderInitialized() { if (fxmlLoader != null) { return; } fxmlLoader = loadSynchronously(resource, bundle); presenterProperty.set(fxmlLoader.getController()); }
java
private void ensureFxmlLoaderInitialized() { if (fxmlLoader != null) { return; } fxmlLoader = loadSynchronously(resource, bundle); presenterProperty.set(fxmlLoader.getController()); }
[ "private", "void", "ensureFxmlLoaderInitialized", "(", ")", "{", "if", "(", "fxmlLoader", "!=", "null", ")", "{", "return", ";", "}", "fxmlLoader", "=", "loadSynchronously", "(", "resource", ",", "bundle", ")", ";", "presenterProperty", ".", "set", "(", "fxm...
Ensure fxml loader initialized.
[ "Ensure", "fxml", "loader", "initialized", "." ]
aed1da178ecb204eb00508b3ce1e2a11d4fa9619
https://github.com/roskenet/springboot-javafx-support/blob/aed1da178ecb204eb00508b3ce1e2a11d4fa9619/src/main/java/de/felixroske/jfxsupport/AbstractFxmlView.java#L170-L178
116,835
roskenet/springboot-javafx-support
src/main/java/de/felixroske/jfxsupport/AbstractFxmlView.java
AbstractFxmlView.getView
public void getView(final Consumer<Parent> consumer) { CompletableFuture.supplyAsync(this::getView, Platform::runLater).thenAccept(consumer); }
java
public void getView(final Consumer<Parent> consumer) { CompletableFuture.supplyAsync(this::getView, Platform::runLater).thenAccept(consumer); }
[ "public", "void", "getView", "(", "final", "Consumer", "<", "Parent", ">", "consumer", ")", "{", "CompletableFuture", ".", "supplyAsync", "(", "this", "::", "getView", ",", "Platform", "::", "runLater", ")", ".", "thenAccept", "(", "consumer", ")", ";", "}...
Initializes the view synchronously and invokes the consumer with the created parent Node within the FX UI thread. @param consumer - an object interested in received the {@link Parent} as callback
[ "Initializes", "the", "view", "synchronously", "and", "invokes", "the", "consumer", "with", "the", "created", "parent", "Node", "within", "the", "FX", "UI", "thread", "." ]
aed1da178ecb204eb00508b3ce1e2a11d4fa9619
https://github.com/roskenet/springboot-javafx-support/blob/aed1da178ecb204eb00508b3ce1e2a11d4fa9619/src/main/java/de/felixroske/jfxsupport/AbstractFxmlView.java#L300-L302
116,836
roskenet/springboot-javafx-support
src/main/java/de/felixroske/jfxsupport/AbstractFxmlView.java
AbstractFxmlView.addCSSIfAvailable
void addCSSIfAvailable(final Parent parent) { // Read global css when available: final List<String> list = PropertyReaderHelper.get(applicationContext.getEnvironment(), "javafx.css"); if (!list.isEmpty()) { list.forEach(css -> parent.getStylesheets().add(getClass().getResource(css).toExternalForm())); } ...
java
void addCSSIfAvailable(final Parent parent) { // Read global css when available: final List<String> list = PropertyReaderHelper.get(applicationContext.getEnvironment(), "javafx.css"); if (!list.isEmpty()) { list.forEach(css -> parent.getStylesheets().add(getClass().getResource(css).toExternalForm())); } ...
[ "void", "addCSSIfAvailable", "(", "final", "Parent", "parent", ")", "{", "// Read global css when available:", "final", "List", "<", "String", ">", "list", "=", "PropertyReaderHelper", ".", "get", "(", "applicationContext", ".", "getEnvironment", "(", ")", ",", "\...
Adds the CSS if available. @param parent the parent
[ "Adds", "the", "CSS", "if", "available", "." ]
aed1da178ecb204eb00508b3ce1e2a11d4fa9619
https://github.com/roskenet/springboot-javafx-support/blob/aed1da178ecb204eb00508b3ce1e2a11d4fa9619/src/main/java/de/felixroske/jfxsupport/AbstractFxmlView.java#L328-L345
116,837
roskenet/springboot-javafx-support
src/main/java/de/felixroske/jfxsupport/AbstractFxmlView.java
AbstractFxmlView.addCSSFromAnnotation
private void addCSSFromAnnotation(final Parent parent) { if (annotation != null && annotation.css().length > 0) { for (final String cssFile : annotation.css()) { final URL uri = getClass().getResource(cssFile); if (uri != null) { final String uriToCss = uri.toExternalForm(); parent.getStylesheets...
java
private void addCSSFromAnnotation(final Parent parent) { if (annotation != null && annotation.css().length > 0) { for (final String cssFile : annotation.css()) { final URL uri = getClass().getResource(cssFile); if (uri != null) { final String uriToCss = uri.toExternalForm(); parent.getStylesheets...
[ "private", "void", "addCSSFromAnnotation", "(", "final", "Parent", "parent", ")", "{", "if", "(", "annotation", "!=", "null", "&&", "annotation", ".", "css", "(", ")", ".", "length", ">", "0", ")", "{", "for", "(", "final", "String", "cssFile", ":", "a...
Adds the CSS from annotation to parent. @param parent the parent
[ "Adds", "the", "CSS", "from", "annotation", "to", "parent", "." ]
aed1da178ecb204eb00508b3ce1e2a11d4fa9619
https://github.com/roskenet/springboot-javafx-support/blob/aed1da178ecb204eb00508b3ce1e2a11d4fa9619/src/main/java/de/felixroske/jfxsupport/AbstractFxmlView.java#L353-L366
116,838
roskenet/springboot-javafx-support
src/main/java/de/felixroske/jfxsupport/AbstractFxmlView.java
AbstractFxmlView.getBundleName
private String getBundleName() { if (StringUtils.isEmpty(annotation.bundle())) { final String lbundle = getClass().getPackage().getName() + "." + getConventionalName(); LOGGER.debug("Bundle: {} based on conventional name.", lbundle); return lbundle; } final String lbundle = annotation.bundle(); LOGGER...
java
private String getBundleName() { if (StringUtils.isEmpty(annotation.bundle())) { final String lbundle = getClass().getPackage().getName() + "." + getConventionalName(); LOGGER.debug("Bundle: {} based on conventional name.", lbundle); return lbundle; } final String lbundle = annotation.bundle(); LOGGER...
[ "private", "String", "getBundleName", "(", ")", "{", "if", "(", "StringUtils", ".", "isEmpty", "(", "annotation", ".", "bundle", "(", ")", ")", ")", "{", "final", "String", "lbundle", "=", "getClass", "(", ")", ".", "getPackage", "(", ")", ".", "getNam...
Gets the bundle name. @return the bundle name
[ "Gets", "the", "bundle", "name", "." ]
aed1da178ecb204eb00508b3ce1e2a11d4fa9619
https://github.com/roskenet/springboot-javafx-support/blob/aed1da178ecb204eb00508b3ce1e2a11d4fa9619/src/main/java/de/felixroske/jfxsupport/AbstractFxmlView.java#L451-L461
116,839
roskenet/springboot-javafx-support
src/main/java/de/felixroske/jfxsupport/AbstractFxmlView.java
AbstractFxmlView.stripEnding
private static String stripEnding(final String clazz) { if (!clazz.endsWith("view")) { return clazz; } return clazz.substring(0, clazz.lastIndexOf("view")); }
java
private static String stripEnding(final String clazz) { if (!clazz.endsWith("view")) { return clazz; } return clazz.substring(0, clazz.lastIndexOf("view")); }
[ "private", "static", "String", "stripEnding", "(", "final", "String", "clazz", ")", "{", "if", "(", "!", "clazz", ".", "endsWith", "(", "\"view\"", ")", ")", "{", "return", "clazz", ";", "}", "return", "clazz", ".", "substring", "(", "0", ",", "clazz",...
Strip ending. @param clazz the clazz @return the string
[ "Strip", "ending", "." ]
aed1da178ecb204eb00508b3ce1e2a11d4fa9619
https://github.com/roskenet/springboot-javafx-support/blob/aed1da178ecb204eb00508b3ce1e2a11d4fa9619/src/main/java/de/felixroske/jfxsupport/AbstractFxmlView.java#L470-L477
116,840
roskenet/springboot-javafx-support
src/main/java/de/felixroske/jfxsupport/AbstractFxmlView.java
AbstractFxmlView.getFxmlPath
final String getFxmlPath() { final String fxmlPath = fxmlRoot + getConventionalName(".fxml"); LOGGER.debug("Determined fxmlPath: " + fxmlPath); return fxmlPath; }
java
final String getFxmlPath() { final String fxmlPath = fxmlRoot + getConventionalName(".fxml"); LOGGER.debug("Determined fxmlPath: " + fxmlPath); return fxmlPath; }
[ "final", "String", "getFxmlPath", "(", ")", "{", "final", "String", "fxmlPath", "=", "fxmlRoot", "+", "getConventionalName", "(", "\".fxml\"", ")", ";", "LOGGER", ".", "debug", "(", "\"Determined fxmlPath: \"", "+", "fxmlPath", ")", ";", "return", "fxmlPath", ...
Gets the fxml file path. @return the relative path to the fxml file derived from the FXML view. e.g. The name for the AirhacksView is going to be <PATH>/airhacks.fxml.
[ "Gets", "the", "fxml", "file", "path", "." ]
aed1da178ecb204eb00508b3ce1e2a11d4fa9619
https://github.com/roskenet/springboot-javafx-support/blob/aed1da178ecb204eb00508b3ce1e2a11d4fa9619/src/main/java/de/felixroske/jfxsupport/AbstractFxmlView.java#L487-L491
116,841
roskenet/springboot-javafx-support
src/main/java/de/felixroske/jfxsupport/AbstractFxmlView.java
AbstractFxmlView.getResourceBundle
private Optional<ResourceBundle> getResourceBundle(final String name) { try { LOGGER.debug("Resource bundle: " + name); return Optional.of(getBundle(name, new ResourceBundleControl(getResourceBundleCharset()))); } catch (final MissingResourceException ex) { LOGGER.debug("No resource bundle could be det...
java
private Optional<ResourceBundle> getResourceBundle(final String name) { try { LOGGER.debug("Resource bundle: " + name); return Optional.of(getBundle(name, new ResourceBundleControl(getResourceBundleCharset()))); } catch (final MissingResourceException ex) { LOGGER.debug("No resource bundle could be det...
[ "private", "Optional", "<", "ResourceBundle", ">", "getResourceBundle", "(", "final", "String", "name", ")", "{", "try", "{", "LOGGER", ".", "debug", "(", "\"Resource bundle: \"", "+", "name", ")", ";", "return", "Optional", ".", "of", "(", "getBundle", "(",...
Returns a resource bundle if available @param name the name of the resource bundle. @return the resource bundle
[ "Returns", "a", "resource", "bundle", "if", "available" ]
aed1da178ecb204eb00508b3ce1e2a11d4fa9619
https://github.com/roskenet/springboot-javafx-support/blob/aed1da178ecb204eb00508b3ce1e2a11d4fa9619/src/main/java/de/felixroske/jfxsupport/AbstractFxmlView.java#L500-L509
116,842
Netflix/karyon
karyon2-core/src/main/java/netflix/karyon/transport/interceptor/InterceptorExecutor.java
InterceptorExecutor.execute
public Observable<Void> execute(final I request, final O response, C keyEvaluationContext) { final ExecutionContext context = new ExecutionContext(request, keyEvaluationContext); InboundInterceptor<I, O> nextIn = context.nextIn(request); Observable<Void> startingPoint; if (null != nextI...
java
public Observable<Void> execute(final I request, final O response, C keyEvaluationContext) { final ExecutionContext context = new ExecutionContext(request, keyEvaluationContext); InboundInterceptor<I, O> nextIn = context.nextIn(request); Observable<Void> startingPoint; if (null != nextI...
[ "public", "Observable", "<", "Void", ">", "execute", "(", "final", "I", "request", ",", "final", "O", "response", ",", "C", "keyEvaluationContext", ")", "{", "final", "ExecutionContext", "context", "=", "new", "ExecutionContext", "(", "request", ",", "keyEvalu...
Executes the interceptor chain for the passed request and response. @param request Request to be executed. @param response Response to be populated. @param keyEvaluationContext The context for {@link InterceptorKey} evaluation. @return The final result of execution after executing all the inbound and outbound interce...
[ "Executes", "the", "interceptor", "chain", "for", "the", "passed", "request", "and", "response", "." ]
d50bc0ff37693ef3fbda373e90a109d1f92e0b9a
https://github.com/Netflix/karyon/blob/d50bc0ff37693ef3fbda373e90a109d1f92e0b9a/karyon2-core/src/main/java/netflix/karyon/transport/interceptor/InterceptorExecutor.java#L53-L76
116,843
Netflix/karyon
karyon2-core/src/main/java/netflix/karyon/transport/http/SimpleUriRouter.java
SimpleUriRouter.addUri
public SimpleUriRouter<I, O> addUri(String uri, RequestHandler<I, O> handler) { routes.add(new Route(new ServletStyleUriConstraintKey<I>(uri, ""), handler)); return this; }
java
public SimpleUriRouter<I, O> addUri(String uri, RequestHandler<I, O> handler) { routes.add(new Route(new ServletStyleUriConstraintKey<I>(uri, ""), handler)); return this; }
[ "public", "SimpleUriRouter", "<", "I", ",", "O", ">", "addUri", "(", "String", "uri", ",", "RequestHandler", "<", "I", ",", "O", ">", "handler", ")", "{", "routes", ".", "add", "(", "new", "Route", "(", "new", "ServletStyleUriConstraintKey", "<", "I", ...
Add a new URI -&lt; Handler route to this router. @param uri URI to match. @param handler Request handler. @return The updated router.
[ "Add", "a", "new", "URI", "-", "&lt", ";", "Handler", "route", "to", "this", "router", "." ]
d50bc0ff37693ef3fbda373e90a109d1f92e0b9a
https://github.com/Netflix/karyon/blob/d50bc0ff37693ef3fbda373e90a109d1f92e0b9a/karyon2-core/src/main/java/netflix/karyon/transport/http/SimpleUriRouter.java#L50-L53
116,844
Netflix/karyon
karyon2-core/src/main/java/netflix/karyon/transport/http/SimpleUriRouter.java
SimpleUriRouter.addUriRegex
public SimpleUriRouter<I, O> addUriRegex(String uriRegEx, RequestHandler<I, O> handler) { routes.add(new Route(new RegexUriConstraintKey<I>(uriRegEx), handler)); return this; }
java
public SimpleUriRouter<I, O> addUriRegex(String uriRegEx, RequestHandler<I, O> handler) { routes.add(new Route(new RegexUriConstraintKey<I>(uriRegEx), handler)); return this; }
[ "public", "SimpleUriRouter", "<", "I", ",", "O", ">", "addUriRegex", "(", "String", "uriRegEx", ",", "RequestHandler", "<", "I", ",", "O", ">", "handler", ")", "{", "routes", ".", "add", "(", "new", "Route", "(", "new", "RegexUriConstraintKey", "<", "I",...
Add a new URI regex -&lt; Handler route to this router. @param uriRegEx URI regex to match @param handler Request handler. @return The updated router.
[ "Add", "a", "new", "URI", "regex", "-", "&lt", ";", "Handler", "route", "to", "this", "router", "." ]
d50bc0ff37693ef3fbda373e90a109d1f92e0b9a
https://github.com/Netflix/karyon/blob/d50bc0ff37693ef3fbda373e90a109d1f92e0b9a/karyon2-core/src/main/java/netflix/karyon/transport/http/SimpleUriRouter.java#L61-L64
116,845
Netflix/karyon
karyon2-admin-web/src/main/java/netflix/adminresources/resources/jmx/JmxService.java
JmxService.getDomainTree
public DynaTreeNode getDomainTree(String domainName) { DynaTreeNode domainNode = new DynaTreeNode() .setTitle(domainName) .setKey(domainName) .setMode(MODE_DOMAIN); try { // List all objects in the domain ObjectName name = new Objec...
java
public DynaTreeNode getDomainTree(String domainName) { DynaTreeNode domainNode = new DynaTreeNode() .setTitle(domainName) .setKey(domainName) .setMode(MODE_DOMAIN); try { // List all objects in the domain ObjectName name = new Objec...
[ "public", "DynaTreeNode", "getDomainTree", "(", "String", "domainName", ")", "{", "DynaTreeNode", "domainNode", "=", "new", "DynaTreeNode", "(", ")", ".", "setTitle", "(", "domainName", ")", ".", "setKey", "(", "domainName", ")", ".", "setMode", "(", "MODE_DOM...
Return subtree of nodes for a domain
[ "Return", "subtree", "of", "nodes", "for", "a", "domain" ]
d50bc0ff37693ef3fbda373e90a109d1f92e0b9a
https://github.com/Netflix/karyon/blob/d50bc0ff37693ef3fbda373e90a109d1f92e0b9a/karyon2-admin-web/src/main/java/netflix/adminresources/resources/jmx/JmxService.java#L64-L125
116,846
Netflix/karyon
karyon2-admin-web/src/main/java/netflix/adminresources/resources/jmx/JmxService.java
JmxService.getKeysFromRegex
public List<String> getKeysFromRegex(String regex) { List<String> keys = Lists.newArrayList(); try { // List all objects in the domain ObjectName name = new ObjectName(regex); Set<ObjectName> objs = mBeanServer.queryNames(name, null); ...
java
public List<String> getKeysFromRegex(String regex) { List<String> keys = Lists.newArrayList(); try { // List all objects in the domain ObjectName name = new ObjectName(regex); Set<ObjectName> objs = mBeanServer.queryNames(name, null); ...
[ "public", "List", "<", "String", ">", "getKeysFromRegex", "(", "String", "regex", ")", "{", "List", "<", "String", ">", "keys", "=", "Lists", ".", "newArrayList", "(", ")", ";", "try", "{", "// List all objects in the domain", "ObjectName", "name", "=", "new...
Return the list of all keys matching a regex @param regex @return
[ "Return", "the", "list", "of", "all", "keys", "matching", "a", "regex" ]
d50bc0ff37693ef3fbda373e90a109d1f92e0b9a
https://github.com/Netflix/karyon/blob/d50bc0ff37693ef3fbda373e90a109d1f92e0b9a/karyon2-admin-web/src/main/java/netflix/adminresources/resources/jmx/JmxService.java#L141-L159
116,847
Netflix/karyon
karyon2-admin-web/src/main/java/netflix/adminresources/resources/jmx/JmxService.java
JmxService.getMBeanAttributesByRegex
public Map<String, Map<String, String>> getMBeanAttributesByRegex(String regex) throws Exception { Map<String, Map<String, String>> result = Maps.newLinkedHashMap(); ObjectName name = new ObjectName(regex); Set<ObjectName> objs = mBeanServer.queryNames(name, null); // Convert ob...
java
public Map<String, Map<String, String>> getMBeanAttributesByRegex(String regex) throws Exception { Map<String, Map<String, String>> result = Maps.newLinkedHashMap(); ObjectName name = new ObjectName(regex); Set<ObjectName> objs = mBeanServer.queryNames(name, null); // Convert ob...
[ "public", "Map", "<", "String", ",", "Map", "<", "String", ",", "String", ">", ">", "getMBeanAttributesByRegex", "(", "String", "regex", ")", "throws", "Exception", "{", "Map", "<", "String", ",", "Map", "<", "String", ",", "String", ">", ">", "result", ...
Return a map of all attributes for objects matching the regex. @param regex @return @throws Exception
[ "Return", "a", "map", "of", "all", "attributes", "for", "objects", "matching", "the", "regex", "." ]
d50bc0ff37693ef3fbda373e90a109d1f92e0b9a
https://github.com/Netflix/karyon/blob/d50bc0ff37693ef3fbda373e90a109d1f92e0b9a/karyon2-admin-web/src/main/java/netflix/adminresources/resources/jmx/JmxService.java#L167-L178
116,848
Netflix/karyon
karyon2-admin-web/src/main/java/netflix/adminresources/resources/jmx/JmxService.java
JmxService.getMBeanAttributes
public Map<String, String> getMBeanAttributes(String key) throws Exception { return getMBeanAttributes(new ObjectName(key)); }
java
public Map<String, String> getMBeanAttributes(String key) throws Exception { return getMBeanAttributes(new ObjectName(key)); }
[ "public", "Map", "<", "String", ",", "String", ">", "getMBeanAttributes", "(", "String", "key", ")", "throws", "Exception", "{", "return", "getMBeanAttributes", "(", "new", "ObjectName", "(", "key", ")", ")", ";", "}" ]
Get list of all attributes of the specified key @param key @return
[ "Get", "list", "of", "all", "attributes", "of", "the", "specified", "key" ]
d50bc0ff37693ef3fbda373e90a109d1f92e0b9a
https://github.com/Netflix/karyon/blob/d50bc0ff37693ef3fbda373e90a109d1f92e0b9a/karyon2-admin-web/src/main/java/netflix/adminresources/resources/jmx/JmxService.java#L185-L187
116,849
Netflix/karyon
karyon2-admin-web/src/main/java/netflix/adminresources/resources/jmx/JmxService.java
JmxService.getMBeanAttributes
private Map<String, String> getMBeanAttributes(ObjectName objName) throws Exception { Map<String, String> response = Maps.newLinkedHashMap(); // Look for the object MBeanInfo mBeanInfo = mBeanServer.getMBeanInfo(objName); if (mBeanInfo != null) { // Does it have...
java
private Map<String, String> getMBeanAttributes(ObjectName objName) throws Exception { Map<String, String> response = Maps.newLinkedHashMap(); // Look for the object MBeanInfo mBeanInfo = mBeanServer.getMBeanInfo(objName); if (mBeanInfo != null) { // Does it have...
[ "private", "Map", "<", "String", ",", "String", ">", "getMBeanAttributes", "(", "ObjectName", "objName", ")", "throws", "Exception", "{", "Map", "<", "String", ",", "String", ">", "response", "=", "Maps", ".", "newLinkedHashMap", "(", ")", ";", "// Look for ...
Get list of all attributes of an object @param objName @return @throws Exception
[ "Get", "list", "of", "all", "attributes", "of", "an", "object" ]
d50bc0ff37693ef3fbda373e90a109d1f92e0b9a
https://github.com/Netflix/karyon/blob/d50bc0ff37693ef3fbda373e90a109d1f92e0b9a/karyon2-admin-web/src/main/java/netflix/adminresources/resources/jmx/JmxService.java#L195-L247
116,850
Netflix/karyon
karyon2-admin-web/src/main/java/netflix/adminresources/resources/jmx/JmxService.java
JmxService.getMBeanOperations
public MBeanOperationInfo[] getMBeanOperations(String name) throws Exception { MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer(); MBeanInfo mBeanInfo = mBeanServer.getMBeanInfo(new ObjectName(name)); return mBeanInfo.getOperations(); }
java
public MBeanOperationInfo[] getMBeanOperations(String name) throws Exception { MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer(); MBeanInfo mBeanInfo = mBeanServer.getMBeanInfo(new ObjectName(name)); return mBeanInfo.getOperations(); }
[ "public", "MBeanOperationInfo", "[", "]", "getMBeanOperations", "(", "String", "name", ")", "throws", "Exception", "{", "MBeanServer", "mBeanServer", "=", "ManagementFactory", ".", "getPlatformMBeanServer", "(", ")", ";", "MBeanInfo", "mBeanInfo", "=", "mBeanServer", ...
Return all operations for the specified mbean name @param name @return @throws Exception
[ "Return", "all", "operations", "for", "the", "specified", "mbean", "name" ]
d50bc0ff37693ef3fbda373e90a109d1f92e0b9a
https://github.com/Netflix/karyon/blob/d50bc0ff37693ef3fbda373e90a109d1f92e0b9a/karyon2-admin-web/src/main/java/netflix/adminresources/resources/jmx/JmxService.java#L255-L259
116,851
Netflix/karyon
karyon2-admin-web/src/main/java/com/google/inject/grapher/KaryonAbstractInjectorGrapher.java
KaryonAbstractInjectorGrapher.getBindings
private Iterable<Binding<?>> getBindings(Injector injector, Set<Key<?>> root) { Set<Key<?>> keys = Sets.newHashSet(root); Set<Key<?>> visitedKeys = Sets.newHashSet(); List<Binding<?>> bindings = Lists.newArrayList(); TransitiveDependencyVisitor keyVisitor = new TransitiveDependencyVisito...
java
private Iterable<Binding<?>> getBindings(Injector injector, Set<Key<?>> root) { Set<Key<?>> keys = Sets.newHashSet(root); Set<Key<?>> visitedKeys = Sets.newHashSet(); List<Binding<?>> bindings = Lists.newArrayList(); TransitiveDependencyVisitor keyVisitor = new TransitiveDependencyVisito...
[ "private", "Iterable", "<", "Binding", "<", "?", ">", ">", "getBindings", "(", "Injector", "injector", ",", "Set", "<", "Key", "<", "?", ">", ">", "root", ")", "{", "Set", "<", "Key", "<", "?", ">", ">", "keys", "=", "Sets", ".", "newHashSet", "(...
Returns the bindings for the root keys and their transitive dependencies.
[ "Returns", "the", "bindings", "for", "the", "root", "keys", "and", "their", "transitive", "dependencies", "." ]
d50bc0ff37693ef3fbda373e90a109d1f92e0b9a
https://github.com/Netflix/karyon/blob/d50bc0ff37693ef3fbda373e90a109d1f92e0b9a/karyon2-admin-web/src/main/java/com/google/inject/grapher/KaryonAbstractInjectorGrapher.java#L205-L230
116,852
Netflix/karyon
karyon2-admin-web/src/main/java/netflix/adminresources/resources/jmx/JMXResource.java
JMXResource.getMBeans
@GET public Response getMBeans( @QueryParam("key") @DefaultValue("root") String key, @QueryParam("mode") @DefaultValue("") String mode, @QueryParam("jsonp") @DefaultValue("") String jsonp) throws Exception { LOG.info("key" + key); DynaTreeNode root = ...
java
@GET public Response getMBeans( @QueryParam("key") @DefaultValue("root") String key, @QueryParam("mode") @DefaultValue("") String mode, @QueryParam("jsonp") @DefaultValue("") String jsonp) throws Exception { LOG.info("key" + key); DynaTreeNode root = ...
[ "@", "GET", "public", "Response", "getMBeans", "(", "@", "QueryParam", "(", "\"key\"", ")", "@", "DefaultValue", "(", "\"root\"", ")", "String", "key", ",", "@", "QueryParam", "(", "\"mode\"", ")", "@", "DefaultValue", "(", "\"\"", ")", "String", "mode", ...
Return JSON representing the entire tree of MBeans in DynaTree format. @param key @param mode
[ "Return", "JSON", "representing", "the", "entire", "tree", "of", "MBeans", "in", "DynaTree", "format", "." ]
d50bc0ff37693ef3fbda373e90a109d1f92e0b9a
https://github.com/Netflix/karyon/blob/d50bc0ff37693ef3fbda373e90a109d1f92e0b9a/karyon2-admin-web/src/main/java/netflix/adminresources/resources/jmx/JMXResource.java#L79-L105
116,853
Netflix/karyon
karyon2-admin-web/src/main/java/netflix/adminresources/resources/jmx/JMXResource.java
JMXResource.getMBean
@GET @Path("{key}") public Response getMBean(@PathParam("key") String key, @QueryParam("jsonp") @DefaultValue("") String jsonp) throws Exception { LOG.info("key: " + key); JSONObject json = new JSONObject(); ObjectName name = new ObjectName(key)...
java
@GET @Path("{key}") public Response getMBean(@PathParam("key") String key, @QueryParam("jsonp") @DefaultValue("") String jsonp) throws Exception { LOG.info("key: " + key); JSONObject json = new JSONObject(); ObjectName name = new ObjectName(key)...
[ "@", "GET", "@", "Path", "(", "\"{key}\"", ")", "public", "Response", "getMBean", "(", "@", "PathParam", "(", "\"key\"", ")", "String", "key", ",", "@", "QueryParam", "(", "\"jsonp\"", ")", "@", "DefaultValue", "(", "\"\"", ")", "String", "jsonp", ")", ...
Return all the attributes and operations for a single mbean @param key Exact object name of MBean in String form @param jsonp
[ "Return", "all", "the", "attributes", "and", "operations", "for", "a", "single", "mbean" ]
d50bc0ff37693ef3fbda373e90a109d1f92e0b9a
https://github.com/Netflix/karyon/blob/d50bc0ff37693ef3fbda373e90a109d1f92e0b9a/karyon2-admin-web/src/main/java/netflix/adminresources/resources/jmx/JMXResource.java#L116-L173
116,854
Netflix/karyon
karyon2-admin-web/src/main/java/netflix/adminresources/resources/jmx/JMXResource.java
JMXResource.invokeMbeanOperation
@POST @Consumes(MediaType.APPLICATION_FORM_URLENCODED) @Path("{key}/{op}") public Response invokeMbeanOperation( MultivaluedMap<String, String> formParams, @PathParam("key") String key, @QueryParam("jsonp") String jsonp, @PathParam("op") String name) throws Exception { ...
java
@POST @Consumes(MediaType.APPLICATION_FORM_URLENCODED) @Path("{key}/{op}") public Response invokeMbeanOperation( MultivaluedMap<String, String> formParams, @PathParam("key") String key, @QueryParam("jsonp") String jsonp, @PathParam("op") String name) throws Exception { ...
[ "@", "POST", "@", "Consumes", "(", "MediaType", ".", "APPLICATION_FORM_URLENCODED", ")", "@", "Path", "(", "\"{key}/{op}\"", ")", "public", "Response", "invokeMbeanOperation", "(", "MultivaluedMap", "<", "String", ",", "String", ">", "formParams", ",", "@", "Pat...
Execute an operation on an mbean. @param formParams @param key @param jsonp @param name
[ "Execute", "an", "operation", "on", "an", "mbean", "." ]
d50bc0ff37693ef3fbda373e90a109d1f92e0b9a
https://github.com/Netflix/karyon/blob/d50bc0ff37693ef3fbda373e90a109d1f92e0b9a/karyon2-admin-web/src/main/java/netflix/adminresources/resources/jmx/JMXResource.java#L183-L236
116,855
Netflix/karyon
karyon2-admin-web/src/main/java/netflix/adminresources/resources/jmx/JMXResource.java
JMXResource.emitAttributes
private JSONObject emitAttributes(ObjectName objName) throws Exception { MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer(); MBeanInfo mBeanInfo = mBeanServer.getMBeanInfo(objName); JSONObject resp = new JSONObject(); if (mBeanInfo != null) { MBeanAttributeI...
java
private JSONObject emitAttributes(ObjectName objName) throws Exception { MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer(); MBeanInfo mBeanInfo = mBeanServer.getMBeanInfo(objName); JSONObject resp = new JSONObject(); if (mBeanInfo != null) { MBeanAttributeI...
[ "private", "JSONObject", "emitAttributes", "(", "ObjectName", "objName", ")", "throws", "Exception", "{", "MBeanServer", "mBeanServer", "=", "ManagementFactory", ".", "getPlatformMBeanServer", "(", ")", ";", "MBeanInfo", "mBeanInfo", "=", "mBeanServer", ".", "getMBean...
Generate JSON for the MBean attributes @return @throws Exception
[ "Generate", "JSON", "for", "the", "MBean", "attributes" ]
d50bc0ff37693ef3fbda373e90a109d1f92e0b9a
https://github.com/Netflix/karyon/blob/d50bc0ff37693ef3fbda373e90a109d1f92e0b9a/karyon2-admin-web/src/main/java/netflix/adminresources/resources/jmx/JMXResource.java#L297-L343
116,856
Netflix/karyon
karyon2-admin-web/src/main/java/netflix/adminresources/resources/jmx/JMXResource.java
JMXResource.emitOperations
private JSONArray emitOperations(ObjectName objName) throws Exception { MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer(); MBeanInfo mBeanInfo = mBeanServer.getMBeanInfo(objName); JSONArray ar = new JSONArray(); MBeanOperationInfo[] operations = mBeanInfo.getOperation...
java
private JSONArray emitOperations(ObjectName objName) throws Exception { MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer(); MBeanInfo mBeanInfo = mBeanServer.getMBeanInfo(objName); JSONArray ar = new JSONArray(); MBeanOperationInfo[] operations = mBeanInfo.getOperation...
[ "private", "JSONArray", "emitOperations", "(", "ObjectName", "objName", ")", "throws", "Exception", "{", "MBeanServer", "mBeanServer", "=", "ManagementFactory", ".", "getPlatformMBeanServer", "(", ")", ";", "MBeanInfo", "mBeanInfo", "=", "mBeanServer", ".", "getMBeanI...
Generate JSON for the MBean operations @param objName @return @throws Exception
[ "Generate", "JSON", "for", "the", "MBean", "operations" ]
d50bc0ff37693ef3fbda373e90a109d1f92e0b9a
https://github.com/Netflix/karyon/blob/d50bc0ff37693ef3fbda373e90a109d1f92e0b9a/karyon2-admin-web/src/main/java/netflix/adminresources/resources/jmx/JMXResource.java#L352-L376
116,857
fusesource/leveldbjni
leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/Util.java
Util.link
public static void link(File source, File target) throws IOException { if( UtilJNI.ON_WINDOWS == 1 ) { if( UtilJNI.CreateHardLinkW(target.getCanonicalPath(), source.getCanonicalPath(), 0) == 0) { throw new IOException("link failed"); } } else { if( Uti...
java
public static void link(File source, File target) throws IOException { if( UtilJNI.ON_WINDOWS == 1 ) { if( UtilJNI.CreateHardLinkW(target.getCanonicalPath(), source.getCanonicalPath(), 0) == 0) { throw new IOException("link failed"); } } else { if( Uti...
[ "public", "static", "void", "link", "(", "File", "source", ",", "File", "target", ")", "throws", "IOException", "{", "if", "(", "UtilJNI", ".", "ON_WINDOWS", "==", "1", ")", "{", "if", "(", "UtilJNI", ".", "CreateHardLinkW", "(", "target", ".", "getCanon...
Creates a hard link from source to target. @param source @param target @return
[ "Creates", "a", "hard", "link", "from", "source", "to", "target", "." ]
e401863b264652a665d402d176b30b56166ef6f1
https://github.com/fusesource/leveldbjni/blob/e401863b264652a665d402d176b30b56166ef6f1/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/Util.java#L115-L125
116,858
dialogflow/dialogflow-android-client
ailib/src/main/java/ai/api/util/BluetoothController.java
BluetoothController.stopBluetooth
private void stopBluetooth() { Log.d(TAG, "stopBluetooth"); if (mIsCountDownOn) { mIsCountDownOn = false; mCountDown.cancel(); } // Need to stop Sco audio connection here when the app // change orientation or close with headset still turns on. mC...
java
private void stopBluetooth() { Log.d(TAG, "stopBluetooth"); if (mIsCountDownOn) { mIsCountDownOn = false; mCountDown.cancel(); } // Need to stop Sco audio connection here when the app // change orientation or close with headset still turns on. mC...
[ "private", "void", "stopBluetooth", "(", ")", "{", "Log", ".", "d", "(", "TAG", ",", "\"stopBluetooth\"", ")", ";", "if", "(", "mIsCountDownOn", ")", "{", "mIsCountDownOn", "=", "false", ";", "mCountDown", ".", "cancel", "(", ")", ";", "}", "// Need to s...
Unregister broadcast receivers and stop Sco audio connection and cancel count down.
[ "Unregister", "broadcast", "receivers", "and", "stop", "Sco", "audio", "connection", "and", "cancel", "count", "down", "." ]
331f3ae8f2e404e245cc6024fdf44ec99feba7ee
https://github.com/dialogflow/dialogflow-android-client/blob/331f3ae8f2e404e245cc6024fdf44ec99feba7ee/ailib/src/main/java/ai/api/util/BluetoothController.java#L154-L167
116,859
dialogflow/dialogflow-android-client
ailib/src/main/java/ai/api/android/AIService.java
AIService.getService
public static AIService getService(final Context context, final AIConfiguration config) { if (config.getRecognitionEngine() == AIConfiguration.RecognitionEngine.Google) { return new GoogleRecognitionServiceImpl(context, config); } if (config.getRecognitionEngine() == AIConfiguration....
java
public static AIService getService(final Context context, final AIConfiguration config) { if (config.getRecognitionEngine() == AIConfiguration.RecognitionEngine.Google) { return new GoogleRecognitionServiceImpl(context, config); } if (config.getRecognitionEngine() == AIConfiguration....
[ "public", "static", "AIService", "getService", "(", "final", "Context", "context", ",", "final", "AIConfiguration", "config", ")", "{", "if", "(", "config", ".", "getRecognitionEngine", "(", ")", "==", "AIConfiguration", ".", "RecognitionEngine", ".", "Google", ...
Use this method to get ready to work instance @param context @param config @return instance of AIService implementation
[ "Use", "this", "method", "to", "get", "ready", "to", "work", "instance" ]
331f3ae8f2e404e245cc6024fdf44ec99feba7ee
https://github.com/dialogflow/dialogflow-android-client/blob/331f3ae8f2e404e245cc6024fdf44ec99feba7ee/ailib/src/main/java/ai/api/android/AIService.java#L58-L70
116,860
dialogflow/dialogflow-android-client
ailib/src/main/java/ai/api/services/GoogleRecognitionServiceImpl.java
GoogleRecognitionServiceImpl.updateStopRunnable
private void updateStopRunnable(final int action) { if (stopRunnable != null) { if (action == 0) { handler.removeCallbacks(stopRunnable); } else if (action == 1) { handler.removeCallbacks(stopRunnable); handler.postDelayed(stopRunnable, STO...
java
private void updateStopRunnable(final int action) { if (stopRunnable != null) { if (action == 0) { handler.removeCallbacks(stopRunnable); } else if (action == 1) { handler.removeCallbacks(stopRunnable); handler.postDelayed(stopRunnable, STO...
[ "private", "void", "updateStopRunnable", "(", "final", "int", "action", ")", "{", "if", "(", "stopRunnable", "!=", "null", ")", "{", "if", "(", "action", "==", "0", ")", "{", "handler", ".", "removeCallbacks", "(", "stopRunnable", ")", ";", "}", "else", ...
Manage recognizer cancellation runnable. @param action (int) (0 - stop, 1 - restart)
[ "Manage", "recognizer", "cancellation", "runnable", "." ]
331f3ae8f2e404e245cc6024fdf44ec99feba7ee
https://github.com/dialogflow/dialogflow-android-client/blob/331f3ae8f2e404e245cc6024fdf44ec99feba7ee/ailib/src/main/java/ai/api/services/GoogleRecognitionServiceImpl.java#L108-L117
116,861
woxblom/DragListView
library/src/main/java/com/woxthebox/draglistview/DragItemRecyclerView.java
DragItemRecyclerView.findChildView
public View findChildView(float x, float y) { final int count = getChildCount(); if (y <= 0 && count > 0) { return getChildAt(0); } for (int i = count - 1; i >= 0; i--) { final View child = getChildAt(i); MarginLayoutParams params = (MarginLayoutParam...
java
public View findChildView(float x, float y) { final int count = getChildCount(); if (y <= 0 && count > 0) { return getChildAt(0); } for (int i = count - 1; i >= 0; i--) { final View child = getChildAt(i); MarginLayoutParams params = (MarginLayoutParam...
[ "public", "View", "findChildView", "(", "float", "x", ",", "float", "y", ")", "{", "final", "int", "count", "=", "getChildCount", "(", ")", ";", "if", "(", "y", "<=", "0", "&&", "count", ">", "0", ")", "{", "return", "getChildAt", "(", "0", ")", ...
Returns the child view under the specific x,y coordinate. This method will take margins of the child into account when finding it.
[ "Returns", "the", "child", "view", "under", "the", "specific", "x", "y", "coordinate", ".", "This", "method", "will", "take", "margins", "of", "the", "child", "into", "account", "when", "finding", "it", "." ]
9823406f21d96035e88d8fd173f64419d0bb89f3
https://github.com/woxblom/DragListView/blob/9823406f21d96035e88d8fd173f64419d0bb89f3/library/src/main/java/com/woxthebox/draglistview/DragItemRecyclerView.java#L251-L267
116,862
woxblom/DragListView
library/src/main/java/com/woxthebox/draglistview/BoardView.java
BoardView.setCustomDragItem
public void setCustomDragItem(DragItem dragItem) { DragItem newDragItem = dragItem != null ? dragItem : new DragItem(getContext()); newDragItem.setSnapToTouch(mDragItem.isSnapToTouch()); mDragItem = newDragItem; mRootLayout.removeViewAt(1); mRootLayout.addView(mDragItem.getDragIt...
java
public void setCustomDragItem(DragItem dragItem) { DragItem newDragItem = dragItem != null ? dragItem : new DragItem(getContext()); newDragItem.setSnapToTouch(mDragItem.isSnapToTouch()); mDragItem = newDragItem; mRootLayout.removeViewAt(1); mRootLayout.addView(mDragItem.getDragIt...
[ "public", "void", "setCustomDragItem", "(", "DragItem", "dragItem", ")", "{", "DragItem", "newDragItem", "=", "dragItem", "!=", "null", "?", "dragItem", ":", "new", "DragItem", "(", "getContext", "(", ")", ")", ";", "newDragItem", ".", "setSnapToTouch", "(", ...
Set a custom drag item to control the visuals and animations when dragging a list item.
[ "Set", "a", "custom", "drag", "item", "to", "control", "the", "visuals", "and", "animations", "when", "dragging", "a", "list", "item", "." ]
9823406f21d96035e88d8fd173f64419d0bb89f3
https://github.com/woxblom/DragListView/blob/9823406f21d96035e88d8fd173f64419d0bb89f3/library/src/main/java/com/woxthebox/draglistview/BoardView.java#L718-L724
116,863
playframework/play-ws
play-ahc-ws-standalone/src/main/java/play/libs/ws/ahc/StandaloneAhcWSResponse.java
StandaloneAhcWSResponse.getHeaders
@Override public Map<String, List<String>> getHeaders() { final Map<String, List<String>> headerMap = new TreeMap<>(String.CASE_INSENSITIVE_ORDER); final HttpHeaders headers = ahcResponse.getHeaders(); for (String name : headers.names()) { final List<String> values = headers.getA...
java
@Override public Map<String, List<String>> getHeaders() { final Map<String, List<String>> headerMap = new TreeMap<>(String.CASE_INSENSITIVE_ORDER); final HttpHeaders headers = ahcResponse.getHeaders(); for (String name : headers.names()) { final List<String> values = headers.getA...
[ "@", "Override", "public", "Map", "<", "String", ",", "List", "<", "String", ">", ">", "getHeaders", "(", ")", "{", "final", "Map", "<", "String", ",", "List", "<", "String", ">", ">", "headerMap", "=", "new", "TreeMap", "<>", "(", "String", ".", "...
Get all the HTTP headers of the response as a case-insensitive map
[ "Get", "all", "the", "HTTP", "headers", "of", "the", "response", "as", "a", "case", "-", "insensitive", "map" ]
fbc25196eb6295281e9b43810e45c252913fbfcf
https://github.com/playframework/play-ws/blob/fbc25196eb6295281e9b43810e45c252913fbfcf/play-ahc-ws-standalone/src/main/java/play/libs/ws/ahc/StandaloneAhcWSResponse.java#L63-L72
116,864
playframework/play-ws
play-ahc-ws-standalone/src/main/java/play/libs/ws/ahc/StandaloneAhcWSResponse.java
StandaloneAhcWSResponse.getCookies
@Override public List<WSCookie> getCookies() { return ahcResponse.getCookies().stream().map(this::asCookie).collect(toList()); }
java
@Override public List<WSCookie> getCookies() { return ahcResponse.getCookies().stream().map(this::asCookie).collect(toList()); }
[ "@", "Override", "public", "List", "<", "WSCookie", ">", "getCookies", "(", ")", "{", "return", "ahcResponse", ".", "getCookies", "(", ")", ".", "stream", "(", ")", ".", "map", "(", "this", "::", "asCookie", ")", ".", "collect", "(", "toList", "(", "...
Get all the cookies.
[ "Get", "all", "the", "cookies", "." ]
fbc25196eb6295281e9b43810e45c252913fbfcf
https://github.com/playframework/play-ws/blob/fbc25196eb6295281e9b43810e45c252913fbfcf/play-ahc-ws-standalone/src/main/java/play/libs/ws/ahc/StandaloneAhcWSResponse.java#L77-L80
116,865
playframework/play-ws
play-ahc-ws-standalone/src/main/java/play/libs/ws/ahc/StandaloneAhcWSResponse.java
StandaloneAhcWSResponse.getCookie
@Override public Optional<WSCookie> getCookie(String name) { for (Cookie ahcCookie : ahcResponse.getCookies()) { // safe -- cookie.getName() will never return null if (ahcCookie.name().equals(name)) { return Optional.of(asCookie(ahcCookie)); } } ...
java
@Override public Optional<WSCookie> getCookie(String name) { for (Cookie ahcCookie : ahcResponse.getCookies()) { // safe -- cookie.getName() will never return null if (ahcCookie.name().equals(name)) { return Optional.of(asCookie(ahcCookie)); } } ...
[ "@", "Override", "public", "Optional", "<", "WSCookie", ">", "getCookie", "(", "String", "name", ")", "{", "for", "(", "Cookie", "ahcCookie", ":", "ahcResponse", ".", "getCookies", "(", ")", ")", "{", "// safe -- cookie.getName() will never return null", "if", "...
Get only one cookie, using the cookie name.
[ "Get", "only", "one", "cookie", "using", "the", "cookie", "name", "." ]
fbc25196eb6295281e9b43810e45c252913fbfcf
https://github.com/playframework/play-ws/blob/fbc25196eb6295281e9b43810e45c252913fbfcf/play-ahc-ws-standalone/src/main/java/play/libs/ws/ahc/StandaloneAhcWSResponse.java#L96-L105
116,866
playframework/play-ws
play-ahc-ws-standalone/src/main/java/play/libs/oauth/OAuth.java
OAuth.retrieveRequestToken
public RequestToken retrieveRequestToken(String callbackURL) { OAuthConsumer consumer = new DefaultOAuthConsumer(info.key.key, info.key.secret); try { provider.retrieveRequestToken(consumer, callbackURL); return new RequestToken(consumer.getToken(), consumer.getTokenSecret()); ...
java
public RequestToken retrieveRequestToken(String callbackURL) { OAuthConsumer consumer = new DefaultOAuthConsumer(info.key.key, info.key.secret); try { provider.retrieveRequestToken(consumer, callbackURL); return new RequestToken(consumer.getToken(), consumer.getTokenSecret()); ...
[ "public", "RequestToken", "retrieveRequestToken", "(", "String", "callbackURL", ")", "{", "OAuthConsumer", "consumer", "=", "new", "DefaultOAuthConsumer", "(", "info", ".", "key", ".", "key", ",", "info", ".", "key", ".", "secret", ")", ";", "try", "{", "pro...
Request the request token and secret. @param callbackURL the URL where the provider should redirect to (usually a URL on the current app) @return A Right(RequestToken) in case of success, Left(OAuthException) otherwise
[ "Request", "the", "request", "token", "and", "secret", "." ]
fbc25196eb6295281e9b43810e45c252913fbfcf
https://github.com/playframework/play-ws/blob/fbc25196eb6295281e9b43810e45c252913fbfcf/play-ahc-ws-standalone/src/main/java/play/libs/oauth/OAuth.java#L44-L52
116,867
playframework/play-ws
play-ahc-ws-standalone/src/main/java/play/libs/oauth/OAuth.java
OAuth.retrieveAccessToken
public RequestToken retrieveAccessToken(RequestToken token, String verifier) { OAuthConsumer consumer = new DefaultOAuthConsumer(info.key.key, info.key.secret); consumer.setTokenWithSecret(token.token, token.secret); try { provider.retrieveAccessToken(consumer, verifier); ...
java
public RequestToken retrieveAccessToken(RequestToken token, String verifier) { OAuthConsumer consumer = new DefaultOAuthConsumer(info.key.key, info.key.secret); consumer.setTokenWithSecret(token.token, token.secret); try { provider.retrieveAccessToken(consumer, verifier); ...
[ "public", "RequestToken", "retrieveAccessToken", "(", "RequestToken", "token", ",", "String", "verifier", ")", "{", "OAuthConsumer", "consumer", "=", "new", "DefaultOAuthConsumer", "(", "info", ".", "key", ".", "key", ",", "info", ".", "key", ".", "secret", ")...
Exchange a request token for an access token. @param token the token/secret pair obtained from a previous call @param verifier a string you got through your user, with redirection @return A Right(RequestToken) in case of success, Left(OAuthException) otherwise
[ "Exchange", "a", "request", "token", "for", "an", "access", "token", "." ]
fbc25196eb6295281e9b43810e45c252913fbfcf
https://github.com/playframework/play-ws/blob/fbc25196eb6295281e9b43810e45c252913fbfcf/play-ahc-ws-standalone/src/main/java/play/libs/oauth/OAuth.java#L61-L70
116,868
playframework/play-ws
play-ahc-ws-standalone/src/main/java/play/libs/oauth/OAuth.java
OAuth.redirectUrl
public String redirectUrl(String token) { return play.shaded.oauth.oauth.signpost.OAuth.addQueryParameters( provider.getAuthorizationWebsiteUrl(), play.shaded.oauth.oauth.signpost.OAuth.OAUTH_TOKEN, token ); }
java
public String redirectUrl(String token) { return play.shaded.oauth.oauth.signpost.OAuth.addQueryParameters( provider.getAuthorizationWebsiteUrl(), play.shaded.oauth.oauth.signpost.OAuth.OAUTH_TOKEN, token ); }
[ "public", "String", "redirectUrl", "(", "String", "token", ")", "{", "return", "play", ".", "shaded", ".", "oauth", ".", "oauth", ".", "signpost", ".", "OAuth", ".", "addQueryParameters", "(", "provider", ".", "getAuthorizationWebsiteUrl", "(", ")", ",", "pl...
The URL where the user needs to be redirected to grant authorization to your application. @param token request token @return the url
[ "The", "URL", "where", "the", "user", "needs", "to", "be", "redirected", "to", "grant", "authorization", "to", "your", "application", "." ]
fbc25196eb6295281e9b43810e45c252913fbfcf
https://github.com/playframework/play-ws/blob/fbc25196eb6295281e9b43810e45c252913fbfcf/play-ahc-ws-standalone/src/main/java/play/libs/oauth/OAuth.java#L78-L84
116,869
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contract/websocket/WebSocketClientConnectorConfig.java
WebSocketClientConnectorConfig.getSubProtocolsAsCSV
public String getSubProtocolsAsCSV() { if (subProtocols == null) { return null; } String subProtocolsAsCSV = ""; for (String subProtocol : subProtocols) { subProtocolsAsCSV = subProtocolsAsCSV.concat(subProtocol + ","); } subProtocolsAsCSV = subPr...
java
public String getSubProtocolsAsCSV() { if (subProtocols == null) { return null; } String subProtocolsAsCSV = ""; for (String subProtocol : subProtocols) { subProtocolsAsCSV = subProtocolsAsCSV.concat(subProtocol + ","); } subProtocolsAsCSV = subPr...
[ "public", "String", "getSubProtocolsAsCSV", "(", ")", "{", "if", "(", "subProtocols", "==", "null", ")", "{", "return", "null", ";", "}", "String", "subProtocolsAsCSV", "=", "\"\"", ";", "for", "(", "String", "subProtocol", ":", "subProtocols", ")", "{", "...
Get sub protocols as a comma separated values string. @return a string of comma separated values of sub protocols.
[ "Get", "sub", "protocols", "as", "a", "comma", "separated", "values", "string", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contract/websocket/WebSocketClientConnectorConfig.java#L56-L67
116,870
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contract/websocket/WebSocketClientConnectorConfig.java
WebSocketClientConnectorConfig.setSubProtocols
public void setSubProtocols(String[] subProtocols) { if (subProtocols == null || subProtocols.length == 0) { this.subProtocols = null; return; } this.subProtocols = Arrays.asList(subProtocols); }
java
public void setSubProtocols(String[] subProtocols) { if (subProtocols == null || subProtocols.length == 0) { this.subProtocols = null; return; } this.subProtocols = Arrays.asList(subProtocols); }
[ "public", "void", "setSubProtocols", "(", "String", "[", "]", "subProtocols", ")", "{", "if", "(", "subProtocols", "==", "null", "||", "subProtocols", ".", "length", "==", "0", ")", "{", "this", ".", "subProtocols", "=", "null", ";", "return", ";", "}", ...
Add sub protocols. @param subProtocols a array of sub protocols.
[ "Add", "sub", "protocols", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contract/websocket/WebSocketClientConnectorConfig.java#L74-L80
116,871
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/certificatevalidation/pathvalidation/PathChecker.java
PathChecker.check
@Override public void check(Certificate cert, Collection<String> unresolvedCritExts) throws CertPathValidatorException { RevocationStatus status; try { status = verifier.checkRevocationStatus((X509Certificate) cert, nextIssuer()); if (LOG.isInfoEnabled()) { ...
java
@Override public void check(Certificate cert, Collection<String> unresolvedCritExts) throws CertPathValidatorException { RevocationStatus status; try { status = verifier.checkRevocationStatus((X509Certificate) cert, nextIssuer()); if (LOG.isInfoEnabled()) { ...
[ "@", "Override", "public", "void", "check", "(", "Certificate", "cert", ",", "Collection", "<", "String", ">", "unresolvedCritExts", ")", "throws", "CertPathValidatorException", "{", "RevocationStatus", "status", ";", "try", "{", "status", "=", "verifier", ".", ...
Used by CertPathValidator to pass the certificates one by one from the certificate chain. @param cert the certificate passed to be checked. @param unresolvedCritExts not used in this method. @throws CertPathValidatorException if any error occurs while verifying the status given by CA.
[ "Used", "by", "CertPathValidator", "to", "pass", "the", "certificates", "one", "by", "one", "from", "the", "certificate", "chain", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/certificatevalidation/pathvalidation/PathChecker.java#L83-L98
116,872
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/message/HttpConnectorUtil.java
HttpConnectorUtil.getSenderConfiguration
public static SenderConfiguration getSenderConfiguration(TransportsConfiguration transportsConfiguration, String scheme) { Map<String, SenderConfiguration> senderConfigurations = transportsConfiguration.getSenderConfigurations().stream...
java
public static SenderConfiguration getSenderConfiguration(TransportsConfiguration transportsConfiguration, String scheme) { Map<String, SenderConfiguration> senderConfigurations = transportsConfiguration.getSenderConfigurations().stream...
[ "public", "static", "SenderConfiguration", "getSenderConfiguration", "(", "TransportsConfiguration", "transportsConfiguration", ",", "String", "scheme", ")", "{", "Map", "<", "String", ",", "SenderConfiguration", ">", "senderConfigurations", "=", "transportsConfiguration", ...
Extract sender configuration from transport configuration. @param transportsConfiguration {@link TransportsConfiguration} which sender configurations should be extracted. @param scheme scheme of the transport. @return extracted {@link SenderConfiguration}.
[ "Extract", "sender", "configuration", "from", "transport", "configuration", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/message/HttpConnectorUtil.java#L27-L36
116,873
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/message/HttpConnectorUtil.java
HttpConnectorUtil.getTransportProperties
public static Map<String, Object> getTransportProperties(TransportsConfiguration transportsConfiguration) { Map<String, Object> transportProperties = new HashMap<>(); Set<TransportProperty> transportPropertiesSet = transportsConfiguration.getTransportProperties(); if (transportPropertiesSet != n...
java
public static Map<String, Object> getTransportProperties(TransportsConfiguration transportsConfiguration) { Map<String, Object> transportProperties = new HashMap<>(); Set<TransportProperty> transportPropertiesSet = transportsConfiguration.getTransportProperties(); if (transportPropertiesSet != n...
[ "public", "static", "Map", "<", "String", ",", "Object", ">", "getTransportProperties", "(", "TransportsConfiguration", "transportsConfiguration", ")", "{", "Map", "<", "String", ",", "Object", ">", "transportProperties", "=", "new", "HashMap", "<>", "(", ")", "...
Extract transport properties from transport configurations. @param transportsConfiguration transportsConfiguration {@link TransportsConfiguration} which transport properties should be extracted. @return Map of transport properties.
[ "Extract", "transport", "properties", "from", "transport", "configurations", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/message/HttpConnectorUtil.java#L45-L54
116,874
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/message/HttpConnectorUtil.java
HttpConnectorUtil.getServerBootstrapConfiguration
public static ServerBootstrapConfiguration getServerBootstrapConfiguration(Set<TransportProperty> transportPropertiesSet) { Map<String, Object> transportProperties = new HashMap<>(); if (transportPropertiesSet != null && !transportPropertiesSet.isEmpty()) { transportProperties =...
java
public static ServerBootstrapConfiguration getServerBootstrapConfiguration(Set<TransportProperty> transportPropertiesSet) { Map<String, Object> transportProperties = new HashMap<>(); if (transportPropertiesSet != null && !transportPropertiesSet.isEmpty()) { transportProperties =...
[ "public", "static", "ServerBootstrapConfiguration", "getServerBootstrapConfiguration", "(", "Set", "<", "TransportProperty", ">", "transportPropertiesSet", ")", "{", "Map", "<", "String", ",", "Object", ">", "transportProperties", "=", "new", "HashMap", "<>", "(", ")"...
Create server bootstrap configuration from given transport property set. @param transportPropertiesSet Set of transport properties which should be converted to {@link ServerBootstrapConfiguration}. @return ServerBootstrapConfiguration which is created from given Set of transport properties.
[ "Create", "server", "bootstrap", "configuration", "from", "given", "transport", "property", "set", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/message/HttpConnectorUtil.java#L63-L73
116,875
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/listener/WebSocketServerHandshakeHandler.java
WebSocketServerHandshakeHandler.containsUpgradeHeaders
private boolean containsUpgradeHeaders(HttpRequest httpRequest) { HttpHeaders headers = httpRequest.headers(); return headers.containsValue(HttpHeaderNames.CONNECTION, HttpHeaderValues.UPGRADE, true) && headers .containsValue(HttpHeaderNames.UPGRADE, HttpHeaderValues.WEBSOCKET, true); ...
java
private boolean containsUpgradeHeaders(HttpRequest httpRequest) { HttpHeaders headers = httpRequest.headers(); return headers.containsValue(HttpHeaderNames.CONNECTION, HttpHeaderValues.UPGRADE, true) && headers .containsValue(HttpHeaderNames.UPGRADE, HttpHeaderValues.WEBSOCKET, true); ...
[ "private", "boolean", "containsUpgradeHeaders", "(", "HttpRequest", "httpRequest", ")", "{", "HttpHeaders", "headers", "=", "httpRequest", ".", "headers", "(", ")", ";", "return", "headers", ".", "containsValue", "(", "HttpHeaderNames", ".", "CONNECTION", ",", "Ht...
Check the basic headers needed for WebSocket upgrade are contained in the request. @param httpRequest {@link HttpRequest} which is checked for WebSocket upgrade. @return true if basic headers needed for WebSocket upgrade are contained in the request.
[ "Check", "the", "basic", "headers", "needed", "for", "WebSocket", "upgrade", "are", "contained", "in", "the", "request", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/listener/WebSocketServerHandshakeHandler.java#L143-L147
116,876
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/listener/WebSocketServerHandshakeHandler.java
WebSocketServerHandshakeHandler.handleWebSocketHandshake
private void handleWebSocketHandshake(FullHttpRequest fullHttpRequest, ChannelHandlerContext ctx) throws WebSocketConnectorException { String extensionsHeader = fullHttpRequest.headers().getAsString(HttpHeaderNames.SEC_WEBSOCKET_EXTENSIONS); DefaultWebSocketHandshaker webSocketHandshaker = ...
java
private void handleWebSocketHandshake(FullHttpRequest fullHttpRequest, ChannelHandlerContext ctx) throws WebSocketConnectorException { String extensionsHeader = fullHttpRequest.headers().getAsString(HttpHeaderNames.SEC_WEBSOCKET_EXTENSIONS); DefaultWebSocketHandshaker webSocketHandshaker = ...
[ "private", "void", "handleWebSocketHandshake", "(", "FullHttpRequest", "fullHttpRequest", ",", "ChannelHandlerContext", "ctx", ")", "throws", "WebSocketConnectorException", "{", "String", "extensionsHeader", "=", "fullHttpRequest", ".", "headers", "(", ")", ".", "getAsStr...
Handle the WebSocket handshake. @param fullHttpRequest {@link HttpRequest} of the request.
[ "Handle", "the", "WebSocket", "handshake", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/listener/WebSocketServerHandshakeHandler.java#L154-L166
116,877
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/sender/channel/pool/ConnectionManager.java
ConnectionManager.borrowTargetChannel
public TargetChannel borrowTargetChannel(HttpRoute httpRoute, SourceHandler sourceHandler, Http2SourceHandler http2SourceHandler, SenderConfiguration senderConfig, BootstrapConfiguration bootstrapConfig, ...
java
public TargetChannel borrowTargetChannel(HttpRoute httpRoute, SourceHandler sourceHandler, Http2SourceHandler http2SourceHandler, SenderConfiguration senderConfig, BootstrapConfiguration bootstrapConfig, ...
[ "public", "TargetChannel", "borrowTargetChannel", "(", "HttpRoute", "httpRoute", ",", "SourceHandler", "sourceHandler", ",", "Http2SourceHandler", "http2SourceHandler", ",", "SenderConfiguration", "senderConfig", ",", "BootstrapConfiguration", "bootstrapConfig", ",", "EventLoop...
Gets the client target channel pool. @param httpRoute Represents the endpoint address @param sourceHandler Represents the HTTP/1.x source handler @param http2SourceHandler Represents the HTTP/2 source handler @param senderConfig Represents the client configurations @param bootstrapConfig Represe...
[ "Gets", "the", "client", "target", "channel", "pool", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/sender/channel/pool/ConnectionManager.java#L70-L99
116,878
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/certificatevalidation/pathvalidation/CertificatePathValidator.java
CertificatePathValidator.validatePath
public void validatePath() throws CertificateVerificationException { Security.addProvider(new BouncyCastleProvider()); CollectionCertStoreParameters params = new CollectionCertStoreParameters(fullCertChain); try { CertStore store = CertStore.getInstance("Collection", params, Co...
java
public void validatePath() throws CertificateVerificationException { Security.addProvider(new BouncyCastleProvider()); CollectionCertStoreParameters params = new CollectionCertStoreParameters(fullCertChain); try { CertStore store = CertStore.getInstance("Collection", params, Co...
[ "public", "void", "validatePath", "(", ")", "throws", "CertificateVerificationException", "{", "Security", ".", "addProvider", "(", "new", "BouncyCastleProvider", "(", ")", ")", ";", "CollectionCertStoreParameters", "params", "=", "new", "CollectionCertStoreParameters", ...
Certificate Path Validation process @throws CertificateVerificationException if validation process fails.
[ "Certificate", "Path", "Validation", "process" ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/certificatevalidation/pathvalidation/CertificatePathValidator.java#L81-L117
116,879
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/message/HttpCarbonMessage.java
HttpCarbonMessage.addHttpContent
public synchronized void addHttpContent(HttpContent httpContent) { contentObservable.notifyAddListener(httpContent); if (messageFuture != null) { if (ioException != null) { blockingEntityCollector.addHttpContent(new DefaultLastHttpContent()); messageFuture.not...
java
public synchronized void addHttpContent(HttpContent httpContent) { contentObservable.notifyAddListener(httpContent); if (messageFuture != null) { if (ioException != null) { blockingEntityCollector.addHttpContent(new DefaultLastHttpContent()); messageFuture.not...
[ "public", "synchronized", "void", "addHttpContent", "(", "HttpContent", "httpContent", ")", "{", "contentObservable", ".", "notifyAddListener", "(", "httpContent", ")", ";", "if", "(", "messageFuture", "!=", "null", ")", "{", "if", "(", "ioException", "!=", "nul...
Add http content to HttpCarbonMessage. @param httpContent chunks of the payload.
[ "Add", "http", "content", "to", "HttpCarbonMessage", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/message/HttpCarbonMessage.java#L97-L125
116,880
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/message/HttpCarbonMessage.java
HttpCarbonMessage.getHttpContent
public HttpContent getHttpContent() { HttpContent httpContent = this.blockingEntityCollector.getHttpContent(); this.contentObservable.notifyGetListener(httpContent); return httpContent; }
java
public HttpContent getHttpContent() { HttpContent httpContent = this.blockingEntityCollector.getHttpContent(); this.contentObservable.notifyGetListener(httpContent); return httpContent; }
[ "public", "HttpContent", "getHttpContent", "(", ")", "{", "HttpContent", "httpContent", "=", "this", ".", "blockingEntityCollector", ".", "getHttpContent", "(", ")", ";", "this", ".", "contentObservable", ".", "notifyGetListener", "(", "httpContent", ")", ";", "re...
Get the available content of HttpCarbonMessage. @return HttpContent.
[ "Get", "the", "available", "content", "of", "HttpCarbonMessage", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/message/HttpCarbonMessage.java#L132-L136
116,881
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/message/HttpCarbonMessage.java
HttpCarbonMessage.setHeader
public void setHeader(String key, Object value) { this.httpMessage.headers().set(key, value); }
java
public void setHeader(String key, Object value) { this.httpMessage.headers().set(key, value); }
[ "public", "void", "setHeader", "(", "String", "key", ",", "Object", "value", ")", "{", "this", ".", "httpMessage", ".", "headers", "(", ")", ".", "set", "(", "key", ",", "value", ")", ";", "}" ]
Set the header value for the given name. @param key header name. @param value header value as object.
[ "Set", "the", "header", "value", "for", "the", "given", "name", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/message/HttpCarbonMessage.java#L228-L230
116,882
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/message/HttpCarbonMessage.java
HttpCarbonMessage.pushResponse
public HttpResponseFuture pushResponse(HttpCarbonMessage httpCarbonMessage, Http2PushPromise pushPromise) throws ServerConnectorException { httpOutboundRespFuture.notifyHttpListener(httpCarbonMessage, pushPromise); return httpOutboundRespStatusFuture; }
java
public HttpResponseFuture pushResponse(HttpCarbonMessage httpCarbonMessage, Http2PushPromise pushPromise) throws ServerConnectorException { httpOutboundRespFuture.notifyHttpListener(httpCarbonMessage, pushPromise); return httpOutboundRespStatusFuture; }
[ "public", "HttpResponseFuture", "pushResponse", "(", "HttpCarbonMessage", "httpCarbonMessage", ",", "Http2PushPromise", "pushPromise", ")", "throws", "ServerConnectorException", "{", "httpOutboundRespFuture", ".", "notifyHttpListener", "(", "httpCarbonMessage", ",", "pushPromis...
Sends a push response message back to the client. @param httpCarbonMessage the push response message @param pushPromise the push promise associated with the push response message @return HttpResponseFuture which gives the status of the operation @throws ServerConnectorException if there is an error occurs while ...
[ "Sends", "a", "push", "response", "message", "back", "to", "the", "client", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/message/HttpCarbonMessage.java#L311-L315
116,883
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/message/HttpCarbonMessage.java
HttpCarbonMessage.cloneCarbonMessageWithOutData
public HttpCarbonMessage cloneCarbonMessageWithOutData() { HttpCarbonMessage newCarbonMessage = getNewHttpCarbonMessage(); Map<String, Object> propertiesMap = this.getProperties(); propertiesMap.forEach(newCarbonMessage::setProperty); return newCarbonMessage; }
java
public HttpCarbonMessage cloneCarbonMessageWithOutData() { HttpCarbonMessage newCarbonMessage = getNewHttpCarbonMessage(); Map<String, Object> propertiesMap = this.getProperties(); propertiesMap.forEach(newCarbonMessage::setProperty); return newCarbonMessage; }
[ "public", "HttpCarbonMessage", "cloneCarbonMessageWithOutData", "(", ")", "{", "HttpCarbonMessage", "newCarbonMessage", "=", "getNewHttpCarbonMessage", "(", ")", ";", "Map", "<", "String", ",", "Object", ">", "propertiesMap", "=", "this", ".", "getProperties", "(", ...
Copy Message properties and transport headers. @return HttpCarbonMessage.
[ "Copy", "Message", "properties", "and", "transport", "headers", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/message/HttpCarbonMessage.java#L335-L342
116,884
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/sender/http2/Http2ClientChannel.java
Http2ClientChannel.putInFlightMessage
public void putInFlightMessage(int streamId, OutboundMsgHolder inFlightMessage) { if (LOG.isDebugEnabled()) { LOG.debug("In flight message added to channel: {} with stream id: {} ", this, streamId); } inFlightMessages.put(streamId, inFlightMessage); }
java
public void putInFlightMessage(int streamId, OutboundMsgHolder inFlightMessage) { if (LOG.isDebugEnabled()) { LOG.debug("In flight message added to channel: {} with stream id: {} ", this, streamId); } inFlightMessages.put(streamId, inFlightMessage); }
[ "public", "void", "putInFlightMessage", "(", "int", "streamId", ",", "OutboundMsgHolder", "inFlightMessage", ")", "{", "if", "(", "LOG", ".", "isDebugEnabled", "(", ")", ")", "{", "LOG", ".", "debug", "(", "\"In flight message added to channel: {} with stream id: {} ...
Adds a in-flight message. @param streamId stream id @param inFlightMessage {@link OutboundMsgHolder} which holds the in-flight message
[ "Adds", "a", "in", "-", "flight", "message", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/sender/http2/Http2ClientChannel.java#L127-L132
116,885
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/sender/http2/Http2ClientChannel.java
Http2ClientChannel.getInFlightMessage
public OutboundMsgHolder getInFlightMessage(int streamId) { if (LOG.isDebugEnabled()) { LOG.debug("Getting in flight message for stream id: {} from channel: {}", streamId, this); } return inFlightMessages.get(streamId); }
java
public OutboundMsgHolder getInFlightMessage(int streamId) { if (LOG.isDebugEnabled()) { LOG.debug("Getting in flight message for stream id: {} from channel: {}", streamId, this); } return inFlightMessages.get(streamId); }
[ "public", "OutboundMsgHolder", "getInFlightMessage", "(", "int", "streamId", ")", "{", "if", "(", "LOG", ".", "isDebugEnabled", "(", ")", ")", "{", "LOG", ".", "debug", "(", "\"Getting in flight message for stream id: {} from channel: {}\"", ",", "streamId", ",", "t...
Gets the in-flight message associated with the a particular stream id. @param streamId stream id @return in-flight message associated with the a particular stream id
[ "Gets", "the", "in", "-", "flight", "message", "associated", "with", "the", "a", "particular", "stream", "id", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/sender/http2/Http2ClientChannel.java#L140-L145
116,886
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/sender/http2/Http2ClientChannel.java
Http2ClientChannel.removeInFlightMessage
public void removeInFlightMessage(int streamId) { if (LOG.isDebugEnabled()) { LOG.debug("In flight message for stream id: {} removed from channel: {}", streamId, this); } inFlightMessages.remove(streamId); }
java
public void removeInFlightMessage(int streamId) { if (LOG.isDebugEnabled()) { LOG.debug("In flight message for stream id: {} removed from channel: {}", streamId, this); } inFlightMessages.remove(streamId); }
[ "public", "void", "removeInFlightMessage", "(", "int", "streamId", ")", "{", "if", "(", "LOG", ".", "isDebugEnabled", "(", ")", ")", "{", "LOG", ".", "debug", "(", "\"In flight message for stream id: {} removed from channel: {}\"", ",", "streamId", ",", "this", ")...
Removes a in-flight message. @param streamId stream id
[ "Removes", "a", "in", "-", "flight", "message", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/sender/http2/Http2ClientChannel.java#L152-L157
116,887
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/sender/http2/Http2ClientChannel.java
Http2ClientChannel.destroy
void destroy() { this.connection.removeListener(streamCloseListener); inFlightMessages.clear(); promisedMessages.clear(); http2ConnectionManager.removeClientChannel(httpRoute, this); }
java
void destroy() { this.connection.removeListener(streamCloseListener); inFlightMessages.clear(); promisedMessages.clear(); http2ConnectionManager.removeClientChannel(httpRoute, this); }
[ "void", "destroy", "(", ")", "{", "this", ".", "connection", ".", "removeListener", "(", "streamCloseListener", ")", ";", "inFlightMessages", ".", "clear", "(", ")", ";", "promisedMessages", ".", "clear", "(", ")", ";", "http2ConnectionManager", ".", "removeCl...
Destroys the Http2 client channel.
[ "Destroys", "the", "Http2", "client", "channel", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/sender/http2/Http2ClientChannel.java#L244-L249
116,888
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/listener/states/SendingEntityBody.java
SendingEntityBody.triggerPipeliningLogic
private void triggerPipeliningLogic(HttpCarbonMessage outboundResponseMsg) { String httpVersion = (String) inboundRequestMsg.getProperty(Constants.HTTP_VERSION); if (outboundResponseMsg.isPipeliningEnabled() && Constants.HTTP_1_1_VERSION.equalsIgnoreCase (httpVersion)) { Queu...
java
private void triggerPipeliningLogic(HttpCarbonMessage outboundResponseMsg) { String httpVersion = (String) inboundRequestMsg.getProperty(Constants.HTTP_VERSION); if (outboundResponseMsg.isPipeliningEnabled() && Constants.HTTP_1_1_VERSION.equalsIgnoreCase (httpVersion)) { Queu...
[ "private", "void", "triggerPipeliningLogic", "(", "HttpCarbonMessage", "outboundResponseMsg", ")", "{", "String", "httpVersion", "=", "(", "String", ")", "inboundRequestMsg", ".", "getProperty", "(", "Constants", ".", "HTTP_VERSION", ")", ";", "if", "(", "outboundRe...
Increment the next expected sequence number and trigger the pipelining logic. @param outboundResponseMsg Represent the outbound response
[ "Increment", "the", "next", "expected", "sequence", "number", "and", "trigger", "the", "pipelining", "logic", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/listener/states/SendingEntityBody.java#L222-L260
116,889
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/sender/websocket/WebSocketClient.java
WebSocketClient.handshake
public ClientHandshakeFuture handshake() { final DefaultClientHandshakeFuture handshakeFuture = new DefaultClientHandshakeFuture(); try { URI uri = new URI(url); String scheme = uri.getScheme(); if (!Constants.WS_SCHEME.equalsIgnoreCase(scheme) && !Constants.WSS_SCHE...
java
public ClientHandshakeFuture handshake() { final DefaultClientHandshakeFuture handshakeFuture = new DefaultClientHandshakeFuture(); try { URI uri = new URI(url); String scheme = uri.getScheme(); if (!Constants.WS_SCHEME.equalsIgnoreCase(scheme) && !Constants.WSS_SCHE...
[ "public", "ClientHandshakeFuture", "handshake", "(", ")", "{", "final", "DefaultClientHandshakeFuture", "handshakeFuture", "=", "new", "DefaultClientHandshakeFuture", "(", ")", ";", "try", "{", "URI", "uri", "=", "new", "URI", "(", "url", ")", ";", "String", "sc...
Handle the handshake with the server. @return handshake future for connection.
[ "Handle", "the", "handshake", "with", "the", "server", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/sender/websocket/WebSocketClient.java#L99-L125
116,890
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/certificatevalidation/crl/CRLCache.java
CRLCache.getNextCacheValue
public synchronized ManageableCacheValue getNextCacheValue() { //changes to the map are reflected on the keySet. And its iterator is weakly consistent. so will never //throw concurrent modification exception. if (iterator.hasNext()) { return hashMap.get(iterator.next().getKey());...
java
public synchronized ManageableCacheValue getNextCacheValue() { //changes to the map are reflected on the keySet. And its iterator is weakly consistent. so will never //throw concurrent modification exception. if (iterator.hasNext()) { return hashMap.get(iterator.next().getKey());...
[ "public", "synchronized", "ManageableCacheValue", "getNextCacheValue", "(", ")", "{", "//changes to the map are reflected on the keySet. And its iterator is weakly consistent. so will never\r", "//throw concurrent modification exception.\r", "if", "(", "iterator", ".", "hasNext", "(", ...
This method is needed by the cache Manager to go through the cache entries to remove invalid values or to remove LRU cache values if the cache has reached its max size. @return next cache value of the cache.
[ "This", "method", "is", "needed", "by", "the", "cache", "Manager", "to", "go", "through", "the", "cache", "entries", "to", "remove", "invalid", "values", "or", "to", "remove", "LRU", "cache", "values", "if", "the", "cache", "has", "reached", "its", "max", ...
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/certificatevalidation/crl/CRLCache.java#L88-L97
116,891
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/certificatevalidation/ocsp/OCSPVerifier.java
OCSPVerifier.generateOCSPRequest
public static OCSPReq generateOCSPRequest(X509Certificate issuerCert, BigInteger serialNumber) throws CertificateVerificationException { //Programatically adding Bouncy Castle as the security provider. So no need to manually set. Once the programme // is over security provider will also...
java
public static OCSPReq generateOCSPRequest(X509Certificate issuerCert, BigInteger serialNumber) throws CertificateVerificationException { //Programatically adding Bouncy Castle as the security provider. So no need to manually set. Once the programme // is over security provider will also...
[ "public", "static", "OCSPReq", "generateOCSPRequest", "(", "X509Certificate", "issuerCert", ",", "BigInteger", "serialNumber", ")", "throws", "CertificateVerificationException", "{", "//Programatically adding Bouncy Castle as the security provider. So no need to manually set. Once the pr...
This method generates an OCSP Request to be sent to an OCSP authority access endpoint. @param issuerCert the Issuer's certificate of the peer certificate we are interested in. @param serialNumber of the peer certificate. @return generated OCSP request. @throws CertificateVerificationException if any error occurs while...
[ "This", "method", "generates", "an", "OCSP", "Request", "to", "be", "sent", "to", "an", "OCSP", "authority", "access", "endpoint", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/certificatevalidation/ocsp/OCSPVerifier.java#L199-L235
116,892
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/ssl/SSLHandlerFactory.java
SSLHandlerFactory.createSSLContextFromKeystores
public SSLContext createSSLContextFromKeystores(boolean isServer) { String protocol = sslConfig.getSSLProtocol(); try { KeyManager[] keyManagers = null; if (sslConfig.getKeyStore() != null) { KeyStore ks = getKeyStore(sslConfig.getKeyStore(), sslConfig.getKeyStore...
java
public SSLContext createSSLContextFromKeystores(boolean isServer) { String protocol = sslConfig.getSSLProtocol(); try { KeyManager[] keyManagers = null; if (sslConfig.getKeyStore() != null) { KeyStore ks = getKeyStore(sslConfig.getKeyStore(), sslConfig.getKeyStore...
[ "public", "SSLContext", "createSSLContextFromKeystores", "(", "boolean", "isServer", ")", "{", "String", "protocol", "=", "sslConfig", ".", "getSSLProtocol", "(", ")", ";", "try", "{", "KeyManager", "[", "]", "keyManagers", "=", "null", ";", "if", "(", "sslCon...
This is uset to create the sslContext from keystores. @return sslContext
[ "This", "is", "uset", "to", "create", "the", "sslContext", "from", "keystores", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/ssl/SSLHandlerFactory.java#L81-L121
116,893
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/ssl/SSLHandlerFactory.java
SSLHandlerFactory.buildServerSSLEngine
public SSLEngine buildServerSSLEngine(SSLContext sslContext) { SSLEngine engine = sslContext.createSSLEngine(); engine.setUseClientMode(false); if (needClientAuth) { engine.setNeedClientAuth(true); } else if (wantClientAuth) { engine.setWantClientAuth(true); ...
java
public SSLEngine buildServerSSLEngine(SSLContext sslContext) { SSLEngine engine = sslContext.createSSLEngine(); engine.setUseClientMode(false); if (needClientAuth) { engine.setNeedClientAuth(true); } else if (wantClientAuth) { engine.setWantClientAuth(true); ...
[ "public", "SSLEngine", "buildServerSSLEngine", "(", "SSLContext", "sslContext", ")", "{", "SSLEngine", "engine", "=", "sslContext", ".", "createSSLEngine", "(", ")", ";", "engine", ".", "setUseClientMode", "(", "false", ")", ";", "if", "(", "needClientAuth", ")"...
Build the server ssl engine using the ssl context. @param sslContext sslContext. @return SSLEngine.
[ "Build", "the", "server", "ssl", "engine", "using", "the", "ssl", "context", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/ssl/SSLHandlerFactory.java#L143-L152
116,894
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/ssl/SSLHandlerFactory.java
SSLHandlerFactory.getServerReferenceCountedOpenSslContext
public ReferenceCountedOpenSslContext getServerReferenceCountedOpenSslContext(boolean enableOcsp) throws SSLException { if (sslConfig.getKeyStore() != null) { sslContextBuilder = serverContextBuilderWithKs(SslProvider.OPENSSL); } else { sslContextBuilder = serverConte...
java
public ReferenceCountedOpenSslContext getServerReferenceCountedOpenSslContext(boolean enableOcsp) throws SSLException { if (sslConfig.getKeyStore() != null) { sslContextBuilder = serverContextBuilderWithKs(SslProvider.OPENSSL); } else { sslContextBuilder = serverConte...
[ "public", "ReferenceCountedOpenSslContext", "getServerReferenceCountedOpenSslContext", "(", "boolean", "enableOcsp", ")", "throws", "SSLException", "{", "if", "(", "sslConfig", ".", "getKeyStore", "(", ")", "!=", "null", ")", "{", "sslContextBuilder", "=", "serverContex...
This used to create the open ssl context when ocsp stapling is enabled for server. @param enableOcsp true/false for enabling ocsp stapling. @return ReferenceCountedOpenSslContext. @throws SSLException if any error occurs while creating the ReferenceCountedOpenSslContext.
[ "This", "used", "to", "create", "the", "open", "ssl", "context", "when", "ocsp", "stapling", "is", "enabled", "for", "server", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/ssl/SSLHandlerFactory.java#L161-L181
116,895
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/ssl/SSLHandlerFactory.java
SSLHandlerFactory.buildClientReferenceCountedOpenSslContext
public ReferenceCountedOpenSslContext buildClientReferenceCountedOpenSslContext() throws SSLException { if (sslConfig.getTrustStore() != null) { sslContextBuilder = clientContextBuilderWithKs(SslProvider.OPENSSL); } else { sslContextBuilder = clientContextBuilderWithCerts(SslProv...
java
public ReferenceCountedOpenSslContext buildClientReferenceCountedOpenSslContext() throws SSLException { if (sslConfig.getTrustStore() != null) { sslContextBuilder = clientContextBuilderWithKs(SslProvider.OPENSSL); } else { sslContextBuilder = clientContextBuilderWithCerts(SslProv...
[ "public", "ReferenceCountedOpenSslContext", "buildClientReferenceCountedOpenSslContext", "(", ")", "throws", "SSLException", "{", "if", "(", "sslConfig", ".", "getTrustStore", "(", ")", "!=", "null", ")", "{", "sslContextBuilder", "=", "clientContextBuilderWithKs", "(", ...
This used to create the open ssl context when ocsp stapling is enabled for client. @return ReferenceCountedOpenSslContext. @throws SSLException if any error occurs while creating the ReferenceCountedOpenSslContext.
[ "This", "used", "to", "create", "the", "open", "ssl", "context", "when", "ocsp", "stapling", "is", "enabled", "for", "client", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/ssl/SSLHandlerFactory.java#L189-L208
116,896
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/ssl/SSLHandlerFactory.java
SSLHandlerFactory.buildClientSSLEngine
public SSLEngine buildClientSSLEngine(String host, int port) { SSLEngine engine = sslContext.createSSLEngine(host, port); engine.setUseClientMode(true); return addCommonConfigs(engine); }
java
public SSLEngine buildClientSSLEngine(String host, int port) { SSLEngine engine = sslContext.createSSLEngine(host, port); engine.setUseClientMode(true); return addCommonConfigs(engine); }
[ "public", "SSLEngine", "buildClientSSLEngine", "(", "String", "host", ",", "int", "port", ")", "{", "SSLEngine", "engine", "=", "sslContext", ".", "createSSLEngine", "(", "host", ",", "port", ")", ";", "engine", ".", "setUseClientMode", "(", "true", ")", ";"...
Build ssl engine for client side. @param host peer host @param port peer port @return client ssl engine
[ "Build", "ssl", "engine", "for", "client", "side", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/ssl/SSLHandlerFactory.java#L217-L221
116,897
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/ssl/SSLHandlerFactory.java
SSLHandlerFactory.addCommonConfigs
public SSLEngine addCommonConfigs(SSLEngine engine) { if (sslConfig.getCipherSuites() != null && sslConfig.getCipherSuites().length > 0) { engine.setEnabledCipherSuites(sslConfig.getCipherSuites()); } if (sslConfig.getEnableProtocols() != null && sslConfig.getEnableProtocols().length...
java
public SSLEngine addCommonConfigs(SSLEngine engine) { if (sslConfig.getCipherSuites() != null && sslConfig.getCipherSuites().length > 0) { engine.setEnabledCipherSuites(sslConfig.getCipherSuites()); } if (sslConfig.getEnableProtocols() != null && sslConfig.getEnableProtocols().length...
[ "public", "SSLEngine", "addCommonConfigs", "(", "SSLEngine", "engine", ")", "{", "if", "(", "sslConfig", ".", "getCipherSuites", "(", ")", "!=", "null", "&&", "sslConfig", ".", "getCipherSuites", "(", ")", ".", "length", ">", "0", ")", "{", "engine", ".", ...
Add common configs for both client and server ssl engines. @param engine client/server ssl engine. @return sslEngine
[ "Add", "common", "configs", "for", "both", "client", "and", "server", "ssl", "engines", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/ssl/SSLHandlerFactory.java#L229-L238
116,898
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/ssl/SSLHandlerFactory.java
SSLHandlerFactory.createHttpTLSContextForServer
public SslContext createHttpTLSContextForServer() throws SSLException { SslProvider provider = SslProvider.JDK; SslContext certsSslContext = serverContextBuilderWithCerts(provider).build(); int sessionTimeout = sslConfig.getSessionTimeOut(); if (sessionTimeout > 0) { certsSsl...
java
public SslContext createHttpTLSContextForServer() throws SSLException { SslProvider provider = SslProvider.JDK; SslContext certsSslContext = serverContextBuilderWithCerts(provider).build(); int sessionTimeout = sslConfig.getSessionTimeOut(); if (sessionTimeout > 0) { certsSsl...
[ "public", "SslContext", "createHttpTLSContextForServer", "(", ")", "throws", "SSLException", "{", "SslProvider", "provider", "=", "SslProvider", ".", "JDK", ";", "SslContext", "certsSslContext", "=", "serverContextBuilderWithCerts", "(", "provider", ")", ".", "build", ...
This method will provide netty ssl context which supports HTTP over TLS using. @return instance of {@link SslContext} @throws SSLException if any error occurred during building SSL context.
[ "This", "method", "will", "provide", "netty", "ssl", "context", "which", "supports", "HTTP", "over", "TLS", "using", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/ssl/SSLHandlerFactory.java#L282-L290
116,899
wso2/transport-http
components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/ssl/SSLHandlerFactory.java
SSLHandlerFactory.createHttpTLSContextForClient
public SslContext createHttpTLSContextForClient() throws SSLException { SslProvider provider = SslProvider.JDK; SslContext certsSslContext = clientContextBuilderWithCerts(provider).build(); int sessionTimeout = sslConfig.getSessionTimeOut(); if (sessionTimeout > 0) { certsSsl...
java
public SslContext createHttpTLSContextForClient() throws SSLException { SslProvider provider = SslProvider.JDK; SslContext certsSslContext = clientContextBuilderWithCerts(provider).build(); int sessionTimeout = sslConfig.getSessionTimeOut(); if (sessionTimeout > 0) { certsSsl...
[ "public", "SslContext", "createHttpTLSContextForClient", "(", ")", "throws", "SSLException", "{", "SslProvider", "provider", "=", "SslProvider", ".", "JDK", ";", "SslContext", "certsSslContext", "=", "clientContextBuilderWithCerts", "(", "provider", ")", ".", "build", ...
This method will provide netty ssl context which supports HTTP over TLS using certificates and keys. @return instance of {@link SslContext} @throws SSLException if any error occurred during building SSL context.
[ "This", "method", "will", "provide", "netty", "ssl", "context", "which", "supports", "HTTP", "over", "TLS", "using", "certificates", "and", "keys", "." ]
c51aa715b473db6c1b82a7d7b22f6e65f74df4c9
https://github.com/wso2/transport-http/blob/c51aa715b473db6c1b82a7d7b22f6e65f74df4c9/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/ssl/SSLHandlerFactory.java#L298-L306