本文整理了Java中com.atlassian.sal.api.net.Request.addRequestParameters
方法的一些代码示例,展示了Request.addRequestParameters
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.addRequestParameters
方法的具体详情如下:
包路径:com.atlassian.sal.api.net.Request
类名称:Request
方法名:addRequestParameters
暂无
代码示例来源:origin: com.atlassian.plugins.rest/atlassian-rest-module
@Override
public JerseyRequest addRequestParameters(final String... strings) {
delegateRequest.addRequestParameters(strings);
return this;
}
代码示例来源:origin: com.atlassian.applinks/applinks-common
public ApplicationLinkRequest addRequestParameters(final String... params) {
return setDelegate(request.addRequestParameters(params));
}
代码示例来源:origin: com.atlassian.applinks/applinks-plugin-core
public ApplicationLinkRequest addRequestParameters(final String... params)
{
return setDelegate(request.addRequestParameters(params));
}
代码示例来源:origin: com.atlassian.labs/speakeasy-plugin
params.add(req.getParameter(name));
request.addRequestParameters((String[]) params.toArray(new String[params.size()]));
代码示例来源:origin: com.atlassian.notifier/notifier-core
request.addRequestParameters(
"os_username", subscription.getUsername(),
"os_password", subscription.getPassword()
代码示例来源:origin: com.atlassian.applinks/applinks-oauth-plugin
public ConsumerToken getRequestToken(ServiceProvider serviceProvider, final String consumerKey, String callback) throws ResponseException {
final Request oAuthRequest = new Request(Request.HttpMethod.POST, serviceProvider.getRequestTokenUri(),
Collections.singleton(new Request.Parameter(OAuth.OAUTH_CALLBACK, callback)));
final Request signedRequest = consumerService.sign(oAuthRequest, consumerKey, serviceProvider);
final com.atlassian.sal.api.net.Request tokenRequest = requestFactory.createRequest(
com.atlassian.sal.api.net.Request.MethodType.POST, serviceProvider.getRequestTokenUri().toString());
tokenRequest.addRequestParameters(parameterToStringArray(signedRequest.getParameters()));
final TokenAndSecret tokenAndSecret = requestToken(serviceProvider.getRequestTokenUri().toString(), signedRequest);
final ConsumerToken requestToken = ConsumerToken.newRequestToken(tokenAndSecret.token)
.tokenSecret(tokenAndSecret.secret)
.consumer(getConsumer(consumerKey))
.build();
assert (requestToken.isRequestToken());
return requestToken;
}
代码示例来源:origin: com.atlassian.studio/studio-jira-fisheye-plugin
request.addRequestParameters("url", baseUrl + JIRA_NOTIFICIATION_URL);
代码示例来源:origin: com.atlassian.applinks/applinks-oauth-plugin
private TokenAndSecret requestToken(String url, Request signedRequest)
throws ResponseException {
final com.atlassian.sal.api.net.Request tokenRequest = requestFactory.createRequest(com.atlassian.sal.api.net.Request.MethodType.POST, url);
tokenRequest.addRequestParameters(parameterToStringArray(signedRequest.getParameters()));
代码示例来源:origin: com.atlassian.studio/studio-jira-fisheye-plugin
final Request<?> request = requestFactory.createRequest(Request.MethodType.POST,
appLink.getUrl() + FISHEYE_SUBSCRIPTION_URL + appLink.getRemoteKey() + "/commit");
request.addRequestParameters("url", JIRA_NOTIFICIATION_URL, "authenticationType",
"TRUSTED_APPS", "username", ctx.getUser().getName());
request.addTrustedTokenAuthentication();
代码示例来源:origin: com.atlassian.studio/studio-jira-fisheye-plugin
appLink.getUrl() + FISHEYE_SUBSCRIPTION_URL + appLink.getRemoteKey() + "/commit");
final String baseUrl = ComponentLocator.getComponent(ApplicationProperties.class).getBaseUrl();
request.addRequestParameters("url", baseUrl + JIRA_NOTIFICIATION_URL);
request.addTrustedTokenAuthentication();
try
代码示例来源:origin: com.atlassian.studio/studio-theme-jira-plugin
final Request request = requestFactory.createRequest(MethodType.POST, fullUrl);
request.addTrustedTokenAuthentication();
request.addRequestParameters("key", projectKey, "name", projectName, "description", description,
"CRUCIBLE_key", AppLinksManager.CR_PREFIX + projectKey);
if (validateonly)
request.addRequestParameters("validateonly", "true");
内容来源于网络,如有侵权,请联系作者删除!