提交 72f8dd21 编写于 作者: J jessyan

HttpResultHandler the name changes to GlobeHttpHandler

上级 c562d586
......@@ -63,7 +63,7 @@ public class WEApplication extends BaseApplication {
* @return
*/
@Override
public GlobeHttpHandler getHttpResultHandler() {
public GlobeHttpHandler getHttpHandler() {
return new GlobeHttpHandler() {
@Override
public Response onHttpResultResponse(String httpResult, Interceptor.Chain chain, Response response) {
......
......@@ -41,7 +41,7 @@ public abstract class BaseApplication extends Application {
this.mClientModule = ClientModule//用于提供okhttp和retrofit的单列
.buidler()
.baseurl(getBaseUrl())
.globeHttpResultHandler(getHttpResultHandler())
.globeHttpHandler(getHttpHandler())
.interceptors(getInterceptors())
.responseErroListener(getResponseErroListener())
.build();
......@@ -97,7 +97,7 @@ public abstract class BaseApplication extends Application {
*
* @return
*/
protected GlobeHttpHandler getHttpResultHandler() {
protected GlobeHttpHandler getHttpHandler() {
return null;
}
......
......@@ -205,7 +205,7 @@ public class ClientModule {
return this;
}
public Buidler globeHttpResultHandler(GlobeHttpHandler handler) {//用来处理http响应结果
public Buidler globeHttpHandler(GlobeHttpHandler handler) {//用来处理http响应结果
this.handler = handler;
return this;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册