Deprecated API


Contents
Deprecated Classes
org.apache.http.util.ExceptionUtils
          (4.2) no longer used 
org.apache.http.impl.io.HttpRequestParser
          (4.2) use DefaultHttpRequestParser 
org.apache.http.impl.io.HttpResponseParser
          (4.2) use DefaultHttpResponseParser 
org.apache.http.protocol.SyncBasicHttpContext
          (4.2) HttpContext instances may not be shared by multiple threads 
 

Deprecated Fields
org.apache.http.protocol.HTTP.ASCII
          (4.2) 
org.apache.http.protocol.HTTP.CHARSET_PARAM
          (4.2) 
org.apache.http.entity.ByteArrayEntity.content
          (4.2) 
org.apache.http.protocol.HTTP.DEFAULT_CONTENT_CHARSET
          (4.2) 
org.apache.http.protocol.HTTP.DEFAULT_CONTENT_TYPE
          (4.2) 
org.apache.http.protocol.HTTP.DEFAULT_PROTOCOL_CHARSET
          (4.2) 
org.apache.http.protocol.HTTP.ISO_8859_1
          (4.2) 
org.apache.http.protocol.HTTP.OCTET_STREAM_TYPE
          (4.2) 
org.apache.http.protocol.HTTP.PLAIN_TEXT_TYPE
          (4.2) 
org.apache.http.protocol.HTTP.US_ASCII
          (4.2) 
org.apache.http.protocol.HTTP.UTF_16
          (4.2) 
org.apache.http.protocol.HTTP.UTF_8
          (4.2) 
 

Deprecated Methods
org.apache.http.HttpEntity.consumeContent()
          (4.1) Use EntityUtils.consume(HttpEntity) 
org.apache.http.entity.InputStreamEntity.consumeContent()
          (4.1) Either use InputStreamEntity.getContent() and call InputStream.close() on that; otherwise call InputStreamEntity.writeTo(OutputStream) which is required to free the resources. 
org.apache.http.entity.BasicHttpEntity.consumeContent()
          (4.1) Either use BasicHttpEntity.getContent() and call InputStream.close() on that; otherwise call BasicHttpEntity.writeTo(OutputStream) which is required to free the resources. 
org.apache.http.entity.HttpEntityWrapper.consumeContent()
          (4.1) Either use HttpEntityWrapper.getContent() and call InputStream.close() on that; otherwise call HttpEntityWrapper.writeTo(OutputStream) which is required to free the resources. 
org.apache.http.entity.AbstractHttpEntity.consumeContent()
          (4.1) Either use HttpEntity.getContent() and call InputStream.close() on that; otherwise call HttpEntity.writeTo(OutputStream) which is required to free the resources. 
org.apache.http.params.BasicHttpParams.copy()
          (4.1) 
org.apache.http.params.DefaultedHttpParams.copy()
          (4.1) 
org.apache.http.params.HttpParams.copy()
          (4.1) 
org.apache.http.util.EntityUtils.getContentCharSet(HttpEntity)
          (4.1.3) use ContentType.getOrDefault(HttpEntity) 
org.apache.http.util.EntityUtils.getContentMimeType(HttpEntity)
          (4.1.3) use ContentType.getOrDefault(HttpEntity) 
org.apache.http.params.DefaultedHttpParams.getDefaults()
          (4.1.1) do not use, will be removed in a later version 
org.apache.http.protocol.HttpService.setConnReuseStrategy(ConnectionReuseStrategy)
          (4.1) set ConnectionReuseStrategy using constructor 
org.apache.http.protocol.HttpService.setExpectationVerifier(HttpExpectationVerifier)
          (4.1) set HttpExpectationVerifier using constructor 
org.apache.http.protocol.HttpService.setHandlerResolver(HttpRequestHandlerResolver)
          (4.1) set HttpRequestHandlerResolver using constructor 
org.apache.http.protocol.UriPatternMatcher.setHandlers(Map)
          (4.1) use UriPatternMatcher.setObjects(Map) 
org.apache.http.protocol.HttpService.setHttpProcessor(HttpProcessor)
          (4.1) set HttpProcessor using constructor 
org.apache.http.protocol.HttpService.setParams(HttpParams)
          (4.1) set HttpResponseFactory using constructor 
org.apache.http.protocol.HttpService.setResponseFactory(HttpResponseFactory)
          (4.1) set HttpResponseFactory using constructor 
 

Deprecated Constructors
org.apache.http.entity.FileEntity(File, String)
          (4.1.3) FileEntity.FileEntity(File, ContentType) 
org.apache.http.protocol.HttpService(HttpProcessor, ConnectionReuseStrategy, HttpResponseFactory)
          (4.1) use HttpService.HttpService(HttpProcessor, ConnectionReuseStrategy, HttpResponseFactory, HttpRequestHandlerResolver, HttpParams) 
org.apache.http.entity.StringEntity(String, String, String)
          (4.1.3) use StringEntity.StringEntity(String, ContentType) 
 



Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.