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

    Constructors
    Constructor
    Description
     
    RestClient(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 Type
    Method
    Description
    void
     
    execute(org.apache.commons.httpclient.HttpMethod method)
     
    protected static org.apache.commons.httpclient.protocol.ProtocolSocketFactory
     
    static RestClient
    of()
     
    static RestClient
    of(int connectTimeoutMillis, int readTimeoutMillis)
     
    static RestClient
    of(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public RestResponse execute(org.apache.commons.httpclient.HttpMethod method) throws Exception
      Throws:
      Exception
    • close

      public void close()
    • of

      public static RestClient of(org.apache.commons.httpclient.HttpConnectionManager connectionManager, int connectTimeoutMillis, int readTimeoutMillis)
    • of

      public static RestClient of(int connectTimeoutMillis, int readTimeoutMillis)
    • of

      public static RestClient of()