org.apache.wink.client
Class ApacheHttpClientConfig

java.lang.Object
  extended by org.apache.wink.client.ClientConfig
      extended by org.apache.wink.client.httpclient.ApacheHttpClientConfig
          extended by org.apache.wink.client.ApacheHttpClientConfig
All Implemented Interfaces:
Cloneable, org.apache.wink.common.internal.WinkConfiguration

Deprecated.

@Deprecated
public class ApacheHttpClientConfig
extends ApacheHttpClientConfig

Configuration object that wraps Apache HttpClient as underling Http client. The following code snippet, demonstrates the typical usage:

      // create the client that uses Apache DefaultHttpClient as underling Http client. 
      RestClient client = new RestClient(new ApacheHttpClientConfig(new DefaultHttpClient()));
      
      // create the resource to make invocations on
      Resource resource = client.resource("http://myhost:80/my/service");
      
      // invoke GET on the resource and receive the response entity as a string
      String entity = resource.get(String.class);
      ...
 

Move to org.apache.wink.client.httpclient to avoid OSGi split package issues


Field Summary
 
Fields inherited from class org.apache.wink.client.httpclient.ApacheHttpClientConfig
chunked, client, maxPooledConnections
 
Constructor Summary
ApacheHttpClientConfig()
          Deprecated.  
ApacheHttpClientConfig(org.apache.http.client.HttpClient client)
          Deprecated.  
 
Method Summary
 
Methods inherited from class org.apache.wink.client.httpclient.ApacheHttpClientConfig
getConnectionHandler, getMaxPooledConnections, isChunked, setChunked, setMaxPooledConnections
 
Methods inherited from class org.apache.wink.client.ClientConfig
acceptHeaderAutoSet, applications, clone, connectTimeout, followRedirects, getApplications, getBypassHostnameVerification, getConnectTimeout, getHandlers, getProperties, getProxyHost, getProxyPort, getReadTimeout, handlers, isAcceptHeaderAutoSet, isFollowRedirects, isLoadWinkApplications, isSupportDTDExpansion, proxyHost, proxyPort, readTimeout, setBypassHostnameVerification, setLoadWinkApplications, setProperties, supportDTDExpansion
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApacheHttpClientConfig

public ApacheHttpClientConfig()
Deprecated. 

ApacheHttpClientConfig

public ApacheHttpClientConfig(org.apache.http.client.HttpClient client)
Deprecated. 


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.