public interface HttpClient
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.
| Modifier and Type | Method and Description |
|---|---|
ResponsePromise |
execute(Request request) |
void |
flushCacheByUriPattern(Pattern uriPattern)
Flush the cache entries by matching the URI using a regular expression
|
Request.Builder |
newRequest()
Constructs a new request.
|
Request.Builder |
newRequest(String uri)
Constructs a new Request with the specified URI.
|
Request.Builder |
newRequest(String uri,
String contentType,
String entity)
Constructs a new Request with the specified URI, contentType, and entity.
|
Request.Builder |
newRequest(URI uri)
Constructs a new Request with the specified URI.
|
Request.Builder |
newRequest(URI uri,
String contentType,
String entity)
Constructs a new Request with the specified URI, contentType, and entity.
|
<A> ResponseTransformation.Builder<A> |
transformation() |
Request.Builder newRequest()
Request.Builder newRequest(URI uri)
uri - The endpoint URI for this requestRequest.Builder newRequest(String uri)
uri - The endpoint URI for this requestRequest.Builder newRequest(URI uri, String contentType, String entity)
uri - The endpoint URI for this requestcontentType - A textual IANA media typeentity - A string entity to send as this request's message bodyRequest.Builder newRequest(String uri, String contentType, String entity)
uri - The endpoint URI for this requestcontentType - A textual IANA media typeentity - A string entity to send as this request's message bodyvoid flushCacheByUriPattern(Pattern uriPattern)
uriPattern - The regular expression to match<A> ResponseTransformation.Builder<A> transformation()
ResponsePromise execute(Request request)
Copyright © 2012–2018 Atlassian. All rights reserved.