title: Making Apache http client threadsafe
body: <p>I am on Scala 2.10.2 and want to implement a thread-safe http provider using Apache http client 4.2.5, here's what I have done</p>
  
  <pre><code>import net.liftweb.json._
  import net.liftweb.json.JsonDSL._
  import scala.concurrent.Future
  
  object AsyncHttpProvider {
    import org.apache.http.client._
    import org.apache.http.client.methods._
    import org.apache.http.impl.client._
  
    val httpclient = new DefaultHttpClient
  
    private def get(query: String) = {
      val httpget = new HttpGet(query)
      val brh = new BasicResponseHandler
      httpclient.execute(httpget, brh)
    }
  
    def getResponseBodyAsJValue(query: String): Future[JValue] = Future(parse(get(query)))
    def getResponseBodyAsJsonString(query: String): Future[String] = Future(get(query))
  }
  </code></pre>
  
  <p>Since I am using <code>Future</code>, I want to make sure that the code is thread-safe, is it?</p>