Package jetbrains.buildServer.http
Class HttpClientBasedHttpApi
- java.lang.Object
-
- jetbrains.buildServer.http.HttpClientBasedHttpApi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.http.HttpApi
HttpApi.HeaderPair, HttpApi.Response
-
-
Constructor Summary
Constructors Constructor Description HttpClientBasedHttpApi(int connectionTimeout, String userAgent, SSLTrustStoreProvider sslTrustStoreProvider)
HttpClientBasedHttpApi(String userAgent, SSLTrustStoreProvider sslTrustStoreProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCookie(String cookieName, String cookieValue, String domain, int maxAge)
HttpApi.Response
get(String uri, HttpApi.HeaderPair... headers)
HttpApi.Response
post(String uri, String body, String contentType, String charset, HttpApi.HeaderPair... headers)
void
setProxy(String proxyHost, int proxyPort, SimpleCredentials credentials)
-
-
-
Constructor Detail
-
HttpClientBasedHttpApi
public HttpClientBasedHttpApi(int connectionTimeout, @NotNull String userAgent, @NotNull SSLTrustStoreProvider sslTrustStoreProvider)
-
HttpClientBasedHttpApi
public HttpClientBasedHttpApi(@NotNull String userAgent, @NotNull SSLTrustStoreProvider sslTrustStoreProvider)
-
-
Method Detail
-
setProxy
public void setProxy(@NotNull String proxyHost, int proxyPort, @Nullable SimpleCredentials credentials)
-
get
@NotNull public HttpApi.Response get(@NotNull String uri, @NotNull HttpApi.HeaderPair... headers) throws IOException
- Specified by:
get
in interfaceHttpApi
- Throws:
IOException
-
post
@NotNull public HttpApi.Response post(@NotNull String uri, @NotNull String body, @NotNull String contentType, @NotNull String charset, @NotNull HttpApi.HeaderPair... headers) throws IOException
- Specified by:
post
in interfaceHttpApi
- Throws:
IOException
-
-