Deprecated API


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

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

Deprecated Enums
org.apache.http.impl.nio.reactor.SSLMode
           
 

Deprecated Fields
org.apache.http.nio.entity.NByteArrayEntity.buffer
           
org.apache.http.nio.entity.NStringEntity.buffer
           
org.apache.http.entity.ByteArrayEntity.content
           
org.apache.http.nio.entity.NByteArrayEntity.content
           
org.apache.http.nio.entity.NStringEntity.content
           
org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.params
           
 

Deprecated Methods
org.apache.http.HttpEntity.consumeContent()
          Use EntityUtils.consume(HttpEntity) 
org.apache.http.entity.InputStreamEntity.consumeContent()
          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.HttpEntityWrapper.consumeContent()
          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()
          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.entity.BasicHttpEntity.consumeContent()
          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.params.BasicHttpParams.copy()
            
org.apache.http.params.DefaultedHttpParams.copy()
            
org.apache.http.params.HttpParams.copy()
            
org.apache.http.nio.entity.NByteArrayEntity.finish()
          use NByteArrayEntity.close() 
org.apache.http.nio.entity.NFileEntity.finish()
          use NFileEntity.close() 
org.apache.http.nio.entity.NStringEntity.finish()
          use NStringEntity.close() 
org.apache.http.nio.util.ContentOutputBuffer.flush()
          No longer used. 
org.apache.http.util.EntityUtils.getContentCharSet(HttpEntity)
          use ContentType.getOrDefault(HttpEntity) 
org.apache.http.util.EntityUtils.getContentMimeType(HttpEntity)
          use ContentType.getOrDefault(HttpEntity) 
org.apache.http.params.DefaultedHttpParams.getDefaults()
          (4.2) do not use, will be removed in a later version 
org.apache.http.nio.protocol.AsyncNHttpServiceHandler.ServerConnState.getHttpExepction()
           
org.apache.http.nio.protocol.AsyncNHttpServiceHandler.ServerConnState.getIOExepction()
           
org.apache.http.protocol.HttpService.setConnReuseStrategy(ConnectionReuseStrategy)
          set ConnectionReuseStrategy using constructor 
org.apache.http.protocol.HttpService.setExpectationVerifier(HttpExpectationVerifier)
          set HttpExpectationVerifier using constructor 
org.apache.http.protocol.HttpService.setHandlerResolver(HttpRequestHandlerResolver)
          set HttpRequestHandlerResolver using constructor 
org.apache.http.protocol.UriPatternMatcher.setHandlers(Map)
          use UriPatternMatcher.setObjects(Map) 
org.apache.http.nio.protocol.AsyncNHttpServiceHandler.ServerConnState.setHttpExepction(HttpException)
           
org.apache.http.protocol.HttpService.setHttpProcessor(HttpProcessor)
          set HttpProcessor using constructor 
org.apache.http.nio.protocol.AsyncNHttpServiceHandler.ServerConnState.setIOExepction(IOException)
           
org.apache.http.protocol.HttpService.setParams(HttpParams)
          set HttpResponseFactory using constructor 
org.apache.http.protocol.HttpService.setResponseFactory(HttpResponseFactory)
          set HttpResponseFactory using constructor 
 

Deprecated Constructors
org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor(int, ThreadFactory, HttpParams)
          use AbstractMultiworkerIOReactor.AbstractMultiworkerIOReactor(IOReactorConfig, ThreadFactory) 
org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor(int, HttpParams)
          use DefaultConnectingIOReactor.DefaultConnectingIOReactor(IOReactorConfig) 
org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor(int, ThreadFactory, HttpParams)
          use DefaultConnectingIOReactor.DefaultConnectingIOReactor(IOReactorConfig, ThreadFactory) 
org.apache.http.impl.nio.reactor.DefaultListeningIOReactor(int, HttpParams)
          use DefaultListeningIOReactor.DefaultListeningIOReactor(IOReactorConfig) 
org.apache.http.impl.nio.reactor.DefaultListeningIOReactor(int, ThreadFactory, HttpParams)
          use DefaultListeningIOReactor.DefaultListeningIOReactor(IOReactorConfig, ThreadFactory) 
org.apache.http.entity.FileEntity(File, String)
          FileEntity.FileEntity(File, ContentType) 
org.apache.http.protocol.HttpService(HttpProcessor, ConnectionReuseStrategy, HttpResponseFactory)
          use HttpService.HttpService(HttpProcessor, ConnectionReuseStrategy, HttpResponseFactory, HttpRequestHandlerResolver, HttpParams) 
org.apache.http.nio.entity.NFileEntity(File, String)
          use NFileEntity.NFileEntity(File, ContentType) 
org.apache.http.nio.entity.NFileEntity(File, String, boolean)
          use NFileEntity.NFileEntity(File, ContentType, boolean) 
org.apache.http.entity.StringEntity(String, String, String)
          use StringEntity.StringEntity(String, ContentType) 
 



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