Class ApacheHttpClientDelegate
- java.lang.Object
-
- io.fabric8.maven.docker.access.hc.ApacheHttpClientDelegate
-
public class ApacheHttpClientDelegate extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApacheHttpClientDelegate.BodyAndStatusResponseHandlerstatic classApacheHttpClientDelegate.BodyResponseHandlerstatic classApacheHttpClientDelegate.HttpBodyAndStatusstatic classApacheHttpClientDelegate.StatusCodeResponseHandler
-
Constructor Summary
Constructors Constructor Description ApacheHttpClientDelegate(ClientBuilder clientBuilder, boolean pooled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.apache.http.impl.client.CloseableHttpClientcreateBasicClient()intdelete(String url, int... statusCodes)<T> Tdelete(String url, org.apache.http.client.ResponseHandler<T> responseHandler, int... statusCodes)Stringget(String url, int... statusCodes)<T> Tget(String url, org.apache.http.client.ResponseHandler<T> responseHandler, int... statusCodes)org.apache.http.impl.client.CloseableHttpClientgetHttpClient()intpost(String url, int... statusCodes)<T> Tpost(String url, Object body, Map<String,String> headers, org.apache.http.client.ResponseHandler<T> responseHandler, int... statusCodes)<T> Tpost(String url, Object body, org.apache.http.client.ResponseHandler<T> responseHandler, int... statusCodes)intput(String url, Object body, int... statusCodes)
-
-
-
Constructor Detail
-
ApacheHttpClientDelegate
public ApacheHttpClientDelegate(ClientBuilder clientBuilder, boolean pooled) throws IOException
- Throws:
IOException
-
-
Method Detail
-
createBasicClient
public org.apache.http.impl.client.CloseableHttpClient createBasicClient()
-
getHttpClient
public org.apache.http.impl.client.CloseableHttpClient getHttpClient()
-
close
public void close() throws IOException- Throws:
IOException
-
delete
public int delete(String url, int... statusCodes) throws IOException
- Throws:
IOException
-
delete
public <T> T delete(String url, org.apache.http.client.ResponseHandler<T> responseHandler, int... statusCodes) throws IOException
- Throws:
IOException
-
get
public String get(String url, int... statusCodes) throws IOException
- Throws:
IOException
-
get
public <T> T get(String url, org.apache.http.client.ResponseHandler<T> responseHandler, int... statusCodes) throws IOException
- Throws:
IOException
-
post
public <T> T post(String url, Object body, Map<String,String> headers, org.apache.http.client.ResponseHandler<T> responseHandler, int... statusCodes) throws IOException
- Throws:
IOException
-
post
public <T> T post(String url, Object body, org.apache.http.client.ResponseHandler<T> responseHandler, int... statusCodes) throws IOException
- Throws:
IOException
-
post
public int post(String url, int... statusCodes) throws IOException
- Throws:
IOException
-
put
public int put(String url, Object body, int... statusCodes) throws IOException
- Throws:
IOException
-
-