1 /**
2 * 处理数据,在各自档案service实现逻辑3 *@param
4 *@return
5 */
6 public abstract MapsyncData (String result);7
8
9
10 /**
11 * 返回请求参数12 *@return
13 */
14 public abstractJsonArray getRequestData();15
16 /**
17 * 调用查询接口18 *@return
19 */
20 publicString getQueryAdress(){21 returnbaseProperties.getBillQueryUrl();22 }23
24
25 public boolean login() throwsException {26
27 boolean bResult = false;28 JsonArray jParas = newJsonArray();29 jParas.add(baseProperties.getDbId());30 jParas.add(baseProperties.getUserName());31 jParas.add(baseProperties.getPwd());32 jParas.add(baseProperties.getLang());33 HttpURLConnection connection =initUrlConn(baseProperties.getLoginUrl(), jParas);34 String key = null;35 for (int i = 1; (key = connection.getHeaderFieldKey(i)) != null; i&