public class HttpClient42 extends Object implements HttpClient
This class implements methods to work with httpclient version 4.2
Constructor and Description |
---|
HttpClient42(org.apache.http.impl.client.DecompressingHttpClient client) |
HttpClient42(org.apache.http.impl.client.DefaultHttpClient client) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close http connection
|
org.apache.http.HttpResponse |
execute(org.apache.http.client.methods.HttpUriRequest request)
This method will send http request
|
public HttpClient42(org.apache.http.impl.client.DefaultHttpClient client)
public HttpClient42(org.apache.http.impl.client.DecompressingHttpClient client)
public org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request) throws Exception
HttpClient
This method will send http request
execute
in interface HttpClient
request
- request which should be send to hostException
public void close() throws Exception
HttpClient
Close http connection
close
in interface HttpClient
Exception
Copyright © 2016. All rights reserved.