public class HttpClientTrustedRequest extends HttpClientRequest implements TrustedRequest
Request.MethodTypehttpClientContext| Constructor and Description |
|---|
HttpClientTrustedRequest(UserManager userManager,
CertificateFactory certificateFactory,
org.apache.http.impl.client.CloseableHttpClient httpClient,
org.apache.http.client.protocol.HttpClientContext httpClientContext,
Request.MethodType initialMethodType,
String initialUrl) |
| Modifier and Type | Method and Description |
|---|---|
HttpClientTrustedRequest |
addTrustedTokenAuthentication(String hostname)
Adds TrustedTokenAuthentication to the request.
|
HttpClientTrustedRequest |
addTrustedTokenAuthentication(String hostname,
String username)
Adds TrustedTokenAuthentication to the request.
|
void |
execute(ResponseHandler responseHandler)
Executes the request.
|
Object |
executeAndReturn(ReturningResponseHandler responseHandler)
Executes the request and returns a result value.
|
addBasicAuthentication, addHeader, addRequestParameters, execute, getHeaders, setConnectionTimeout, setEntity, setFiles, setFollowRedirects, setHeader, setRequestBody, setRequestBody, setSoTimeout, setUrlclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddBasicAuthentication, addHeader, addRequestParameters, execute, getHeaders, setConnectionTimeout, setEntity, setFiles, setFollowRedirects, setHeader, setRequestBody, setRequestBody, setSoTimeout, setUrlpublic HttpClientTrustedRequest(UserManager userManager, CertificateFactory certificateFactory, org.apache.http.impl.client.CloseableHttpClient httpClient, org.apache.http.client.protocol.HttpClientContext httpClientContext, Request.MethodType initialMethodType, String initialUrl)
public HttpClientTrustedRequest addTrustedTokenAuthentication(String hostname)
TrustedRequestaddTrustedTokenAuthentication in interface TrustedRequesthostname - Hostname that this authentication applies topublic HttpClientTrustedRequest addTrustedTokenAuthentication(String hostname, String username)
TrustedRequestaddTrustedTokenAuthentication in interface TrustedRequesthostname - Hostname that this authentication applies tousername - The user to make the request withpublic void execute(ResponseHandler responseHandler) throws ResponseException
Requestexecute in interface Requestexecute in class HttpClientRequestresponseHandler - Callback handler of the response.ResponseProtocolException - If the server returned a malformed responseResponseTimeoutException - If a connection timeout or read timeout occurredResponseTransportException - If an I/O error occurred in request transportResponseException - For all errors not otherwise specifiedpublic Object executeAndReturn(ReturningResponseHandler responseHandler) throws ResponseException
RequestexecuteAndReturn in interface RequestexecuteAndReturn in class HttpClientRequestresponseHandler - Callback handler of the response.ResponseProtocolException - If the server returned a malformed responseResponseTimeoutException - If a connection timeout or read timeout occurredResponseTransportException - If an I/O error occurred in request transportResponseException - For all errors not otherwise specifiedCopyright © 2018 Atlassian. All rights reserved.