Deprecated API


Contents
Deprecated Interfaces
org.apache.http.nio.util.BufferInfo
          (4.1) Use BufferInfo 
org.apache.http.nio.entity.ConsumingNHttpEntity
          (4.2) use BasicAsyncRequestConsumer or BasicAsyncResponseConsumer 
org.apache.http.nio.entity.ContentListener
          (4.2) 
org.apache.http.nio.protocol.EventListener
          (4.2) do not use 
org.apache.http.nio.protocol.HttpRequestExecutionHandler
          (4.2) use HttpAsyncRequestExecutor and HttpAsyncRequester 
org.apache.http.nio.NHttpClientHandler
          (4.2) use NHttpClientEventHandler 
org.apache.http.nio.NHttpClientIOTarget
          (4.2) no longer used 
org.apache.http.nio.protocol.NHttpRequestExecutionHandler
          (4.2) use HttpAsyncRequestExecutor and HttpAsyncRequester 
org.apache.http.nio.protocol.NHttpRequestHandler
          (4.2) use HttpAsyncRequestHandler 
org.apache.http.nio.protocol.NHttpRequestHandlerResolver
          (4.2) use HttpAsyncRequestHandlerResolver 
org.apache.http.nio.protocol.NHttpResponseTrigger
          (4.2) use HttpAsyncExchange 
org.apache.http.nio.NHttpServerIOTarget
          (4.2) no longer used 
org.apache.http.nio.NHttpServiceHandler
          (4.2) use NHttpServerEventHandler 
org.apache.http.nio.params.NIOReactorPNames
          (4.2) use IOReactorConfig 
org.apache.http.nio.entity.ProducingNHttpEntity
          use (4.2) BasicAsyncRequestProducer or BasicAsyncResponseProducer 
org.apache.http.impl.nio.reactor.SSLIOSessionHandler
          (4.2) Use SSLSetupHandler 
org.apache.http.impl.nio.reactor.SSLSetupHandler
          (4.2) use SSLSetupHandler 
 

Deprecated Classes
org.apache.http.nio.protocol.AsyncNHttpClientHandler
          (4.2) use HttpAsyncRequestExecutor and HttpAsyncRequester 
org.apache.http.nio.protocol.AsyncNHttpServiceHandler
          (4.2) use HttpAsyncService 
org.apache.http.nio.protocol.BufferingHttpClientHandler
          (4.2) use HttpAsyncRequestExecutor and HttpAsyncRequester 
org.apache.http.nio.protocol.BufferingHttpServiceHandler
          (4.2) use HttpAsyncService 
org.apache.http.nio.entity.BufferingNHttpEntity
          (4.2) use BasicAsyncRequestConsumer or BasicAsyncResponseConsumer 
org.apache.http.nio.entity.ConsumingNHttpEntityTemplate
          (4.2) use BasicAsyncRequestConsumer or BasicAsyncResponseConsumer 
org.apache.http.impl.nio.DefaultClientIOEventDispatch
          (4.2) use DefaultHttpClientIODispatch 
org.apache.http.impl.nio.DefaultServerIOEventDispatch
          (4.2) use DefaultHttpServerIODispatch 
org.apache.http.util.ExceptionUtils
          (4.2) no longer used 
org.apache.http.impl.io.HttpRequestParser
          (4.2) use DefaultHttpRequestParser 
org.apache.http.impl.nio.codecs.HttpRequestParser
          (4.1) use DefaultHttpRequestParser 
org.apache.http.impl.nio.codecs.HttpRequestWriter
          (4.1) use DefaultHttpRequestWriter 
org.apache.http.impl.io.HttpResponseParser
          (4.2) use DefaultHttpResponseParser 
org.apache.http.impl.nio.codecs.HttpResponseParser
          (4.1) use DefaultHttpResponseParser 
org.apache.http.impl.nio.codecs.HttpResponseWriter
          (4.1) use DefaultHttpResponseWriter 
org.apache.http.nio.entity.NHttpEntityWrapper
          (4.2) use EntityAsyncContentProducer 
org.apache.http.nio.protocol.NHttpHandlerBase
          (4.2) do not use 
org.apache.http.nio.protocol.NHttpRequestHandlerRegistry
          (4.2) use HttpAsyncRequestHandlerRegistry 
org.apache.http.nio.params.NIOReactorParamBean
          (4.2) use IOReactorConfig 
org.apache.http.nio.params.NIOReactorParams
          (4.2) use IOReactorConfig 
org.apache.http.impl.nio.reactor.SessionHandle
          (4.2) use IOSessionImpl 
org.apache.http.nio.protocol.SimpleNHttpRequestHandler
          (4.2) use BasicAsyncRequestHandler 
org.apache.http.nio.entity.SkipContentListener
          (4.2) 
org.apache.http.impl.nio.SSLClientIOEventDispatch
          (4.2) use SSLClientIOEventDispatch 
org.apache.http.impl.nio.ssl.SSLClientIOEventDispatch
          (4.2) use DefaultHttpClientIODispatch 
org.apache.http.impl.nio.reactor.SSLIOSession
          (4.2) use SSLIOSession 
org.apache.http.impl.nio.SSLServerIOEventDispatch
          (4.2) use SSLServerIOEventDispatch 
org.apache.http.impl.nio.ssl.SSLServerIOEventDispatch
          (4.2) use DefaultHttpServerIODispatch 
org.apache.http.protocol.SyncBasicHttpContext
          (4.2) HttpContext instances may not be shared by multiple threads 
org.apache.http.nio.protocol.ThrottlingHttpClientHandler
          (4.2) use HttpAsyncRequestExecutor and HttpAsyncRequester 
org.apache.http.nio.protocol.ThrottlingHttpServiceHandler
          (4.2) use HttpAsyncService 
 

Deprecated Enums
org.apache.http.impl.nio.reactor.SSLMode
          (4.2) 
 

Deprecated Fields
org.apache.http.protocol.HTTP.ASCII
          (4.2) 
org.apache.http.nio.entity.NStringEntity.buffer
          (4.2) 
org.apache.http.nio.entity.NByteArrayEntity.buffer
          (4.2) 
org.apache.http.protocol.HTTP.CHARSET_PARAM
          (4.2) 
org.apache.http.entity.ByteArrayEntity.content
          (4.2) 
org.apache.http.nio.entity.NStringEntity.content
          (4.2) 
org.apache.http.nio.entity.NByteArrayEntity.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.impl.nio.reactor.AbstractMultiworkerIOReactor.params
          (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.nio.entity.NStringEntity.finish()
          (4.2) use NStringEntity.close() 
org.apache.http.nio.entity.NFileEntity.finish()
          (4.2) use NFileEntity.close() 
org.apache.http.nio.entity.NByteArrayEntity.finish()
          (4.2) use NByteArrayEntity.close() 
org.apache.http.nio.util.ContentOutputBuffer.flush()
          (4.2) No longer used. 
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.impl.nio.reactor.AbstractMultiworkerIOReactor(int, ThreadFactory, HttpParams)
          (4.2) use AbstractMultiworkerIOReactor.AbstractMultiworkerIOReactor(IOReactorConfig, ThreadFactory) 
org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor(int, HttpParams)
          (4.2) use DefaultConnectingIOReactor.DefaultConnectingIOReactor(IOReactorConfig) 
org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor(int, ThreadFactory, HttpParams)
          (4.2) use DefaultConnectingIOReactor.DefaultConnectingIOReactor(IOReactorConfig, ThreadFactory) 
org.apache.http.impl.nio.reactor.DefaultListeningIOReactor(int, HttpParams)
          (4.2) use DefaultListeningIOReactor.DefaultListeningIOReactor(IOReactorConfig) 
org.apache.http.impl.nio.reactor.DefaultListeningIOReactor(int, ThreadFactory, HttpParams)
          (4.2) use DefaultListeningIOReactor.DefaultListeningIOReactor(IOReactorConfig, ThreadFactory) 
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.nio.entity.NFileEntity(File, String)
          (4.2) use NFileEntity.NFileEntity(File, ContentType) 
org.apache.http.nio.entity.NFileEntity(File, String, boolean)
          (4.2) use NFileEntity.NFileEntity(File, ContentType, boolean) 
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.