Deprecated API


Contents
Deprecated Interfaces
org.apache.http.nio.util.BufferInfo
          Use BufferInfo 
org.apache.http.nio.entity.ContentListener
           
org.apache.http.entity.ContentProducer
           
org.apache.http.nio.protocol.EventListener
          do not use 
org.apache.http.nio.protocol.HttpRequestExecutionHandler
          use HttpAsyncClientProtocolHandler and HttpAsyncRequestExecutor 
org.apache.http.nio.protocol.NHttpRequestExecutionHandler
          use HttpAsyncClientProtocolHandler and HttpAsyncRequestExecutor 
org.apache.http.nio.protocol.NHttpRequestHandler
          use HttpAsyncRequestHandler 
org.apache.http.nio.protocol.NHttpRequestHandlerResolver
          use HttpAsyncRequestHandlerResolver 
org.apache.http.nio.protocol.NHttpResponseTrigger
          use HttpAsyncResponseTrigger 
org.apache.http.nio.params.NIOReactorPNames
          use IOReactorConfig 
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 HttpAsyncClientProtocolHandler and HttpAsyncRequestExecutor 
org.apache.http.nio.protocol.AsyncNHttpServiceHandler
          use HttpAsyncServiceHandler 
org.apache.http.nio.protocol.BufferingHttpClientHandler
          use HttpAsyncClientProtocolHandler and HttpAsyncRequestExecutor 
org.apache.http.nio.protocol.BufferingHttpServiceHandler
          use HttpAsyncServiceHandler 
org.apache.http.nio.entity.ConsumingNHttpEntityTemplate
          use custom ConsumingNHttpEntity 
org.apache.http.impl.nio.DefaultClientIOEventDispatch
          use DefaultClientIODispatch 
org.apache.http.impl.nio.DefaultServerIOEventDispatch
          use DefaultServerIODispatch 
org.apache.http.entity.EntityTemplate
          use custom HttpEntity 
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.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 BufferingAsyncRequestHandler 
org.apache.http.nio.entity.SkipContentListener
            
org.apache.http.impl.nio.SSLClientIOEventDispatch
          use SSLClientIOEventDispatch 
org.apache.http.impl.nio.ssl.SSLClientIOEventDispatch
          use DefaultClientIODispatch 
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 DefaultServerIODispatch 
org.apache.http.nio.protocol.ThrottlingHttpClientHandler
          use HttpAsyncClientProtocolHandler and HttpAsyncRequestExecutor 
org.apache.http.nio.protocol.ThrottlingHttpServiceHandler
          use HttpAsyncServiceHandler 
 

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

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

Deprecated Methods
org.apache.http.HttpEntity.consumeContent()
          Use EntityUtils.consume(HttpEntity) 
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.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.params.HttpParams.copy()
            
org.apache.http.params.BasicHttpParams.copy()
            
org.apache.http.params.DefaultedHttpParams.copy()
            
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-2011 The Apache Software Foundation. All Rights Reserved.