Results 1 to 3 of 3
  1. #1
    divakarnvs is offline Member
    Join Date
    Nov 2009
    Posts
    8
    Rep Power
    0

    Default AndroidHttpClient and DefaultHttpClient

    Hi

    What is the difference between AndroidHttpClient and DefaultHttpClient?
    Is there any retry capability built into those classes for Connection Timeout?

    Can any one please give some information about this..

    Regards,
    Divakar

  2. #2
    Java Tip's Avatar
    Java Tip is offline Moderator
    Join Date
    Nov 2007
    Posts
    1,694
    Blog Entries
    430
    Rep Power
    10

    Default

    This is from the javadoc of AndroidHttpClient:

    Subclass of the Apache DefaultHttpClient that is configured with reasonable default settings and registered schemes for Android, and also lets the user add HttpRequestInterceptor classes. Don't create this directly, use the newInstance(String) factory method.
    It seems that it simplifies the task of creating an http client by having default settings for common usage. But it is kept flexible enough by using HttpRequestInterceptor mechanism.

  3. #3
    divakarnvs is offline Member
    Join Date
    Nov 2009
    Posts
    8
    Rep Power
    0

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •