0

链接中的服务器是否在 Android 中工作?

当我尝试使用构造函数时,

HttpService(HttpProcessor processor, ConnectionReuseStrategy connStrategy, HttpResponseFactory responseFactory, HttpRequestHandlerResolver handlerResolver, HttpParams params)

Eclipse 说没有定义构造函数。Eclipse 提供了一个快速修复来将构造函数更改为:

HttpService(HttpProcessor proc, ConnectionReuseStrategy connStrategy, HttpResponseFactory responseFactory) 

在这种情况下,我将如何为我的请求注册处理程序?

提前致谢!

4

1 回答 1

0

使用setHandlerResolver方法设置处理程序。关联

于 2012-12-27T11:19:32.777 回答