예제 #1
0
 protected void initNet() {
   if (httpModule == null) {
     httpModule = new BaseHttpModule(this);
     httpModule.init();
     httpModule.setRequestListener(requestListener);
     httpModule.setServiceNameSpace(RequestParamConfig.serviceNameSpace);
     httpModule.setServiceUrl(RequestParamConfig.ServerUrl);
   }
 }
예제 #2
0
 @Override
 public void onSuccess(Response response) {
   if (progressDialog != null && progressDialog.isShowing()) progressDialog.dismiss();
   httpModule.processResponse(
       httpModule, response, getXmlParser(response), httpModule.getResponseProcess());
 }
예제 #3
0
 protected BaseXmlParser getXmlParser(Response response) {
   response.setResponseAsString(response.getResponseAsString().replace("&", "#"));
   return httpModule.getBaseXmlParser(response, httpModule.getParseHandler());
 }