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.params.NIOReactorPNames
          use IOReactorConfig 
org.apache.http.impl.nio.reactor.SSLIOSessionHandler
          Use SSLSetupHandler 
 

Deprecated Classes
org.apache.http.nio.entity.ConsumingNHttpEntityTemplate
          use custom ConsumingNHttpEntity 
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.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.entity.SkipContentListener
            
org.apache.http.impl.nio.SSLClientIOEventDispatch
          use SSLClientIOEventDispatch 
org.apache.http.impl.nio.SSLServerIOEventDispatch
          use SSLServerIOEventDispatch 
org.apache.http.nio.protocol.ThrottlingHttpClientHandler
          Use AsyncNHttpClientHandler 
org.apache.http.nio.protocol.ThrottlingHttpServiceHandler
          Use AsyncNHttpServiceHandler 
 

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.impl.nio.reactor.SSLIOSession(IOSession, SSLContext, SSLIOSessionHandler)
            
org.apache.http.entity.StringEntity(String, String, String)
          use StringEntity.StringEntity(String, ContentType) 
 



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