title: How override default value of socket timeout or connect timeout in apache camel?
body: <p>While using apache camel version 2.12.4 with java, I am facing a socketTimeoutException: read time out when once of the restful web service when I dont receive respons within <strong>30 seconds</strong>. I want to change the default sockeTimeout and connectTimeout values in RestletEndpoint class which is a part of camel jar. </p>
  
  <p>I am using restlet in my camel router as below</p>
  
  <pre><code>routeDefinition = from(
                  "restlet:/AccountInfo/getAccountDetails?socketTimeout=900000&amp;connectTimeout=900000&amp;threadMaxIdleTimeMs=900000&amp;restletMethods=POST&amp;restletBinding=#queryStringToHeadersRestletBinding")
                  .process(getAccountDetailsFromProcessor);
  </code></pre>
  
  <p>I tried setting <strong>socketTimeout</strong> and <strong>connectTimeout</strong> values in the parameters as above.</p>
  
  <p>I have found below is a class in camel jar but do not know how to override these default values.</p>
  
  <pre><code>public class RestletEndpoint extends DefaultEndpoint implements HeaderFilterStrategyAware {
  
      private static final int DEFAULT_PORT = 80;
      private static final String DEFAULT_PROTOCOL = "http";
      private static final String DEFAULT_HOST = "localhost";
      private static final int DEFAULT_SOCKET_TIMEOUT = 30000;
      private static final int DEFAULT_CONNECT_TIMEOUT = 30000;
  </code></pre>