Package net.ideahut.springboot.rest
Class RestClient
java.lang.Object
org.apache.commons.httpclient.HttpClient
net.ideahut.springboot.rest.RestClient
public class RestClient
extends org.apache.commons.httpclient.HttpClient
-
Constructor Summary
ConstructorsConstructorDescriptionRestClient(org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager) RestClient(org.apache.commons.httpclient.params.HttpClientParams params) RestClient(org.apache.commons.httpclient.params.HttpClientParams params, org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()execute(org.apache.commons.httpclient.HttpMethod method) protected static org.apache.commons.httpclient.protocol.ProtocolSocketFactorystatic RestClientof()static RestClientof(int connectTimeoutMillis, int readTimeoutMillis) static RestClientof(org.apache.commons.httpclient.HttpConnectionManager connectionManager, int connectTimeoutMillis, int readTimeoutMillis) Methods inherited from class org.apache.commons.httpclient.HttpClient
executeMethod, executeMethod, executeMethod, getHost, getHostConfiguration, getHttpConnectionManager, getParams, getPort, getState, isStrictMode, setConnectionTimeout, setHostConfiguration, setHttpConnectionFactoryTimeout, setHttpConnectionManager, setParams, setState, setStrictMode, setTimeout
-
Constructor Details
-
RestClient
public RestClient() -
RestClient
public RestClient(org.apache.commons.httpclient.params.HttpClientParams params, org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager) -
RestClient
public RestClient(org.apache.commons.httpclient.params.HttpClientParams params) -
RestClient
public RestClient(org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager)
-
-
Method Details
-
getDefaultSSLProtocolSocketFactory
protected static org.apache.commons.httpclient.protocol.ProtocolSocketFactory getDefaultSSLProtocolSocketFactory() -
execute
- Throws:
Exception
-
close
public void close() -
of
public static RestClient of(org.apache.commons.httpclient.HttpConnectionManager connectionManager, int connectTimeoutMillis, int readTimeoutMillis) -
of
-
of
-