public class HttpClientTrustedRequest extends HttpClientRequest implements TrustedRequest
Request.MethodType
httpClientContext
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, setUrl
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addBasicAuthentication, addHeader, addRequestParameters, execute, getHeaders, setConnectionTimeout, setEntity, setFiles, setFollowRedirects, setHeader, setRequestBody, setRequestBody, setSoTimeout, setUrl
public 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)
TrustedRequest
addTrustedTokenAuthentication
in interface TrustedRequest
hostname
- Hostname that this authentication applies topublic HttpClientTrustedRequest addTrustedTokenAuthentication(String hostname, String username)
TrustedRequest
addTrustedTokenAuthentication
in interface TrustedRequest
hostname
- Hostname that this authentication applies tousername
- The user to make the request withpublic void execute(ResponseHandler responseHandler) throws ResponseException
Request
execute
in interface Request
execute
in class HttpClientRequest
responseHandler
- 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
Request
executeAndReturn
in interface Request
executeAndReturn
in class HttpClientRequest
responseHandler
- 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 © 2015 Atlassian. All rights reserved.
View cookie preferences