com.atlassian.httpclient.api.HttpClient类的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(4.4k)|赞(0)|评价(0)|浏览(188)

本文整理了Java中com.atlassian.httpclient.api.HttpClient类的一些代码示例,展示了HttpClient类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpClient类的具体详情如下:
包路径:com.atlassian.httpclient.api.HttpClient
类名称:HttpClient

HttpClient介绍

[英]A service providing asynchronous HTTP request creation and execution.

To use this service, first create a Request instance with one of the newRequest() methods. Then, populate the request with any additional options, and finally call one of its HTTP verb methods to execute the request. See the Request class for finer control over the construction of the HTTP requests to be executed.
[中]提供异步HTTP请求创建和执行的服务。
要使用此服务,请首先使用newRequest()方法之一创建请求实例。然后,使用任何附加选项填充请求,最后调用其中一个HTTP谓词方法来执行请求。有关对要执行的HTTP请求构造的更精细控制,请参见请求类。

代码示例

代码示例来源:origin: org.openengsb.wrapped/jira-rest-java-client-core

public Request newRequest(String uri, String contentType, String entity) {
    return httpClient.newRequest(uri, contentType, entity);
  }
}

代码示例来源:origin: com.atlassian.plugins/atlassian-connect-core

@Override
public void flushCacheByUriPattern(Pattern urlPattern) {
  httpClient.flushCacheByUriPattern(urlPattern);
}

代码示例来源:origin: com.atlassian.jira/jira-rest-java-client-core

@Override
public ResponsePromise execute(Request request) {
  return httpClient.execute(request);
}

代码示例来源:origin: com.atlassian.plugins/atlassian-connect-server-core

Request.Builder request = httpClient.newRequest(getFullUrl(method, url, parameters));
request = request.setAttributes(getAttributes(addonKey));
Optional<String> authHeaderValue = getAuthHeaderValue(authorizationGenerator, method, url, parameters);
ResponseTransformation<String> responseTransformation = httpClient.<String>transformation()
    .ok(new OkFunction(url))
    .forbidden(new ForbiddenFunction(url))

代码示例来源:origin: com.atlassian.jira/jira-rest-java-client-core

@Override
public <A> ResponseTransformation.Builder<A> transformation() {
  return httpClient.transformation();
}

代码示例来源:origin: com.atlassian.plugins/atlassian-connect-core

ResponseTransformation<Response> responseTransformation = httpClient.<Response>transformation()
    .ok(new OkFunction(url))
    .forbidden(new ForbiddenFunction(url))

代码示例来源:origin: org.openengsb.wrapped/jira-rest-java-client-core

public Request newRequest(URI uri) {
  return httpClient.newRequest(uri);
}

代码示例来源:origin: com.atlassian.plugins/atlassian-connect-server-core

@Override
public void flushCacheByUriPattern(Pattern urlPattern) {
  httpClient.flushCacheByUriPattern(urlPattern);
}

代码示例来源:origin: com.atlassian.httpclient/atlassian-httpclient-library

@Override
public ResponsePromise execute(Method method) {
  checkNotNull(method, "HTTP method must not be null");
  setMethod(method);
  return httpClient.execute(build().validate());
}

代码示例来源:origin: org.openengsb.wrapped/jira-rest-java-client-core

public Request newRequest(String uri) {
  return httpClient.newRequest(uri);
}

代码示例来源:origin: org.openengsb.wrapped/jira-rest-java-client-core

public void flushCacheByUriPattern(Pattern urlPattern) {
  httpClient.flushCacheByUriPattern(urlPattern);
}

代码示例来源:origin: jenkinsci/jira-plugin

@Override
public ResponsePromise execute(Method method)
{
  checkNotNull(method, "HTTP method must not be null");
  setMethod(method);
  return httpClient.execute(build().validate());
}

代码示例来源:origin: org.openengsb.wrapped/jira-rest-java-client-core

public Request newRequest() {
  return httpClient.newRequest();
}

代码示例来源:origin: com.atlassian.jira/jira-rest-java-client-core

public void flushCacheByUriPattern(Pattern urlPattern) {
  httpClient.flushCacheByUriPattern(urlPattern);
}

代码示例来源:origin: org.openengsb.wrapped/jira-rest-java-client-core

public Request newRequest(URI uri, String contentType, String entity) {
  return httpClient.newRequest(uri, contentType, entity);
}

代码示例来源:origin: com.atlassian.httpclient/atlassian-httpclient-api

@Override
  public void flushCacheByUriPattern(Pattern uriPattern) {
    delegate().flushCacheByUriPattern(uriPattern);
  }
}

代码示例来源:origin: com.atlassian.httpclient/atlassian-httpclient-api

@Override
public Request.Builder newRequest(String uri) {
  return delegate().newRequest(uri);
}

代码示例来源:origin: com.atlassian.httpclient/atlassian-httpclient-api

@Override
public Request.Builder newRequest(String uri, String contentType, String entity) {
  return delegate().newRequest(uri, contentType, entity);
}

代码示例来源:origin: com.atlassian.httpclient/atlassian-httpclient-api

@Override
public Request.Builder newRequest() {
  return delegate().newRequest();
}

代码示例来源:origin: com.atlassian.httpclient/atlassian-httpclient-api

@Override
public Request.Builder newRequest(URI uri) {
  return delegate().newRequest(uri);
}

相关文章