在Android中处理请求的Http核心

在Android中处理请求的Http核心,android,http,apache-httpcomponents,Android,Http,Apache Httpcomponents,安卓系统中的服务器工作吗 当我尝试使用构造函数时 HttpService(HttpProcessor processor, ConnectionReuseStrategy connStrategy, HttpResponseFactory responseFactory, HttpRequestHandlerResolver handlerResolver, HttpParams params) Eclipse说没有定义构造函数。Eclipse提供了一个快速修复,将构造函数更改为: HttpS

安卓系统中的服务器工作吗

当我尝试使用构造函数时

HttpService(HttpProcessor processor, ConnectionReuseStrategy connStrategy, HttpResponseFactory responseFactory, HttpRequestHandlerResolver handlerResolver, HttpParams params)
Eclipse说没有定义构造函数。Eclipse提供了一个快速修复,将构造函数更改为:

HttpService(HttpProcessor proc, ConnectionReuseStrategy connStrategy, HttpResponseFactory responseFactory) 
在这种情况下,如何注册请求的处理程序


提前谢谢

使用
setHandlerResolver
方法设置处理程序