Commit e4140049 by fz

1.service添加日志注解

2.完成ice的部分功能对接
3.部分无公用的返回实体类修改为map
4.分离open服务和ice服务接口
1 parent a72b9e2e
Showing 185 changed files with 1493 additions and 5960 deletions
...@@ -59,15 +59,22 @@ ...@@ -59,15 +59,22 @@
<!--swagger2--> <!--swagger2-->
<!-- <dependency>-->
<!-- <groupId>io.springfox</groupId>-->
<!-- <artifactId>springfox-swagger2</artifactId>-->
<!-- <version>2.9.2</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>io.springfox</groupId>-->
<!-- <artifactId>springfox-swagger-ui</artifactId>-->
<!-- <version>2.9.2</version>-->
<!-- </dependency>-->
<!--aop日志 -->
<dependency> <dependency>
<groupId>io.springfox</groupId> <groupId>org.aspectj</groupId>
<artifactId>springfox-swagger2</artifactId> <artifactId>aspectjweaver</artifactId>
<version>2.9.2</version> <version>1.7.2</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.9.2</version>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>
\ No newline at end of file \ No newline at end of file
...@@ -4,6 +4,7 @@ import org.oreframework.boot.main.AbsOreBootStarter; ...@@ -4,6 +4,7 @@ import org.oreframework.boot.main.AbsOreBootStarter;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan; import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
/** /**
* @Title: Main.java * @Title: Main.java
...@@ -15,6 +16,7 @@ import org.springframework.boot.web.servlet.ServletComponentScan; ...@@ -15,6 +16,7 @@ import org.springframework.boot.web.servlet.ServletComponentScan;
*/ */
@SpringBootApplication @SpringBootApplication
@ServletComponentScan @ServletComponentScan
@EnableAspectJAutoProxy//启动自动代理
public class Main extends AbsOreBootStarter { public class Main extends AbsOreBootStarter {
@Override @Override
......
package com.glsx.base.aop;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.aspectj.lang.reflect.CodeSignature;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.stereotype.Component;
import java.util.HashMap;
import java.util.Map;
@Component
@Aspect
@Slf4j
public class LogAspect {
/**
* 切点 注解拦截
*/
@Pointcut("@annotation(com.glsx.base.aop.SysLog)")
public void methodAspect() {
}
/**
* @param point
* @return
* @throws Throwable
* @Title:doAround
* @Description: 环绕触发
* @author fengzhi
* @date 2020年12月22日
*/
@Around("methodAspect()")
public Object doAround(ProceedingJoinPoint point) throws Throwable {
//获取类名
String className = point.getTarget().getClass().getName();
//获取方法名
MethodSignature signature = (MethodSignature) point.getSignature();
String methodName = signature.getMethod().getName();
//访问目标方法的参数:
Map<String, Object> params = new HashMap<>();
Object[] paramValues = point.getArgs();
String[] paramNames = ((CodeSignature)point.getSignature()).getParameterNames();
for (int i = 0; i < paramNames.length; i++) {
params.put(paramNames[i], paramValues[i]);
}
log.info(className+"===调用"+methodName+"开始===" + params);
//用改变后的参数执行目标方法
Object returnValue = point.proceed(paramValues);
log.info(className+"==="+methodName+"返回===" + returnValue);
return returnValue;
}
}
package com.glsx.base.aop;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 日志注解
*
* @author fengzhi
*
*/
@Target(ElementType.METHOD) // 方法注解
@Retention(RetentionPolicy.RUNTIME) // 运行时可见
public @interface SysLog {
}
package com.glsx.base.controller; package com.glsx.base.controller;
import com.glsx.config.SystemProperty; import com.glsx.config.SystemProperty;
import com.glsx.model.BO.DeviceStatusBo;
import com.glsx.model.BO.DeviceStayBo;
import com.glsx.model.BO.GpsBsRecordsBo;
import com.glsx.model.BaseMapModel;
import com.glsx.model.Basemodel; import com.glsx.model.Basemodel;
import com.glsx.utils.JwtUtil; import com.glsx.utils.JwtUtil;
import io.jsonwebtoken.Claims; import io.jsonwebtoken.Claims;
...@@ -21,10 +25,17 @@ public class BaseService { ...@@ -21,10 +25,17 @@ public class BaseService {
@Autowired @Autowired
private JwtUtil jwtUtil; private JwtUtil jwtUtil;
/*
* 获取配置中心属性
*/
protected String getProperty(String propertyName){ protected String getProperty(String propertyName){
return systemProperty.getProperty(propertyName); return systemProperty.getProperty(propertyName);
} }
/*
* 日志方法
*/
protected void logd(String message){ protected void logd(String message){
log.debug(message); log.debug(message);
} }
...@@ -37,6 +48,10 @@ public class BaseService { ...@@ -37,6 +48,10 @@ public class BaseService {
log.error(message,e); log.error(message,e);
} }
/*
* jwt方法
*/
private Claims getCustomerFromToken(Basemodel basemodel){ private Claims getCustomerFromToken(Basemodel basemodel){
return jwtUtil.getClaimsFromToken(basemodel.getToken()); return jwtUtil.getClaimsFromToken(basemodel.getToken());
} }
...@@ -48,4 +63,36 @@ public class BaseService { ...@@ -48,4 +63,36 @@ public class BaseService {
public Integer getCustomerID(Basemodel basemodel){ public Integer getCustomerID(Basemodel basemodel){
return Integer.parseInt(getCustomerProperty(basemodel,"appid")); return Integer.parseInt(getCustomerProperty(basemodel,"appid"));
} }
/*
* 公共参数相关方法
*/
public Long getSn(DeviceStatusBo deviceStatusBo){
return Long.parseLong(deviceStatusBo.getSn());
}
public Long getSn(GpsBsRecordsBo gpsBsRecordsBo){
return Long.parseLong(gpsBsRecordsBo.getSn());
}
public Integer getDeviceType(DeviceStatusBo deviceStatusBo){
return deviceStatusBo.getDevice_type();
}
public Integer getDeviceType(GpsBsRecordsBo gpsBsRecordsBo){
return gpsBsRecordsBo.getDevice_type();
}
public Integer getDeviceType(DeviceStayBo deviceStayBo){
return deviceStayBo.getDevice_type();
}
public Float getLat(BaseMapModel mapModel){
return mapModel.getLat().floatValue();
}
public Float getLng(BaseMapModel mapModel){
return mapModel.getLng().floatValue();
}
} }
package com.glsx.enums; package com.glsx.base.enums;
public enum MapTypeEnum { public enum MapTypeEnum {
NONE_TYPE(0, "NONE"), //0:原始坐标
DOUBLE_TYPE(1, "googlebaidu"), NONE_TYPE(0, "原始坐标"),
GOOGLE_TYPE(2, "google"), //1:转换高德和百度坐标
BAIDU_TYPE(3, "baidu"); DOUBLE_TYPE(1, "转换高德和百度坐标"),
//2:转换高德坐标
GAODE_TYPE(2, "转换高德坐标"),
//3:转换百度坐标
BAIDU_TYPE(3, "转换百度坐标");
private Integer id; private Integer id;
private String text; private String text;
......
package com.glsx.config; package com.glsx.config;
import cn.com.glsx.openplatform.service.IceOpenApiService; import cn.com.glsx.openplatform.service.OpenApiService;
import org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory; import org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
...@@ -21,12 +21,12 @@ public class DubboConfig { ...@@ -21,12 +21,12 @@ public class DubboConfig {
private ReferenceBuilderFactory factory; private ReferenceBuilderFactory factory;
/** /**
* 注册远程服务IceOpenApiService * 注册远程服务OpenApiService
* @return * @return
*/ */
@Bean @Bean
public IceOpenApiService rpcApiMethodRemote(){ public OpenApiService rpcApiMethodRemote(){
return factory.builder(IceOpenApiService.class).check(false).timeout(30000).build(); return factory.builder(OpenApiService.class).check(false).timeout(30000).build();
} }
} }
...@@ -4,6 +4,7 @@ import com.glsx.intercepter.ReplaceStreamFilter; ...@@ -4,6 +4,7 @@ import com.glsx.intercepter.ReplaceStreamFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import javax.servlet.Filter; import javax.servlet.Filter;
/** /**
......
...@@ -4,11 +4,15 @@ import com.glsx.model.BO.*; ...@@ -4,11 +4,15 @@ import com.glsx.model.BO.*;
import com.glsx.model.BaseMapModel; import com.glsx.model.BaseMapModel;
import com.glsx.model.DTO.*; import com.glsx.model.DTO.*;
import com.glsx.model.Result; import com.glsx.model.Result;
import com.glsx.service.OpenApiService; import com.glsx.service.IOpenApiICEService;
import com.glsx.service.IOpenApiService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.PostMapping;
import java.util.HashMap; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map; import java.util.Map;
/** /**
...@@ -21,10 +25,19 @@ import java.util.Map; ...@@ -21,10 +25,19 @@ import java.util.Map;
@Slf4j @Slf4j
public class OpenApiController { public class OpenApiController {
/* /*
* 开放平台service接口 * 开放平台接口
*/
@Autowired
IOpenApiService openApiService;
/*
* ice接口
*/ */
@Autowired @Autowired
OpenApiService openApiService; IOpenApiICEService openApiICEService;
/*
* =================================openApiService=====================================
*/
/* /*
* 授权管理 * 授权管理
...@@ -45,32 +58,11 @@ public class OpenApiController { ...@@ -45,32 +58,11 @@ public class OpenApiController {
} }
/* /*
* 下发指令
*/
@PostMapping("postCommands")
public Result postCommands(@RequestBody CommandsBo commandsBo){
openApiService.postCommands(commandsBo);
return Result.ok();
}
/*
* 查询设备状态
*/
@PostMapping("deviceStatus")
public Result getDeviceStatus(@RequestBody DeviceStatusBo deviceStatusBo){
Integer status = openApiService.getDeviceStatus(deviceStatusBo);
HashMap<String,Integer> map = new HashMap<>();
map.put("status",status);
return Result.ok().data(map);
}
/*
* 获取商户下的数据概况信息 * 获取商户下的数据概况信息
*/ */
@PostMapping("dataView") @PostMapping("dataView")
public Result getDataView(@RequestBody DeviceStatusBo deviceStatusBo){ public Result getDataView(@RequestBody DeviceStatusBo deviceStatusBo){
Map<String, Integer> dataView = openApiService.getDataView(deviceStatusBo); Map<String, Integer> dataView = openApiService.getDataView(deviceStatusBo);
log.info("fz===="+dataView.toString());
return Result.ok().data(dataView); return Result.ok().data(dataView);
} }
...@@ -83,12 +75,35 @@ public class OpenApiController { ...@@ -83,12 +75,35 @@ public class OpenApiController {
return Result.ok(); return Result.ok();
} }
/*
* =================================openApiICEService=====================================
*/
/*
* 下发指令
*/
@PostMapping("postCommands")
public Result postCommands(@RequestBody CommandsBo commandsBo){
openApiICEService.postCommands(commandsBo);
return Result.ok();
}
/*
* 查询设备状态
*/
@PostMapping("deviceStatus")
public Result getDeviceStatus(@RequestBody DeviceStatusBo deviceStatusBo){
Map<String,Integer> map = openApiICEService.getDeviceStatus(deviceStatusBo);
return Result.ok().data(map);
}
/* /*
* 查询最新位置点 * 查询最新位置点
*/ */
@PostMapping("latestGpsRecord") @PostMapping("latestGpsRecord")
public Result getLatestGpsRecord(@RequestBody DeviceStatusBo deviceStatusBo){ public Result getLatestGpsRecord(@RequestBody DeviceStatusBo deviceStatusBo){
LatestGpsRecordDto latestGpsRecordDto = openApiService.getLatestGPSRecord(deviceStatusBo); LatestGpsRecordDto latestGpsRecordDto = openApiICEService.getLatestGPSRecord(deviceStatusBo);
return Result.ok().data(latestGpsRecordDto); return Result.ok().data(latestGpsRecordDto);
} }
...@@ -97,7 +112,7 @@ public class OpenApiController { ...@@ -97,7 +112,7 @@ public class OpenApiController {
*/ */
@PostMapping("latestBsRecord") @PostMapping("latestBsRecord")
public Result getLatestBsRecord(@RequestBody DeviceStatusBo deviceStatusBo){ public Result getLatestBsRecord(@RequestBody DeviceStatusBo deviceStatusBo){
LatestBsRecordDto latestGpsRecordDto = openApiService.getLatestBsRecord(deviceStatusBo); LatestBsRecordDto latestGpsRecordDto = openApiICEService.getLatestBsRecord(deviceStatusBo);
return Result.ok().data(latestGpsRecordDto); return Result.ok().data(latestGpsRecordDto);
} }
...@@ -106,7 +121,7 @@ public class OpenApiController { ...@@ -106,7 +121,7 @@ public class OpenApiController {
*/ */
@PostMapping("latestGpsBsRecord") @PostMapping("latestGpsBsRecord")
public Result getLatestGpsBsRecord(@RequestBody DeviceStatusBo deviceStatusBo){ public Result getLatestGpsBsRecord(@RequestBody DeviceStatusBo deviceStatusBo){
LatestGpsBsRecordDto latestGpsBsRecordDto = openApiService.getLatestGpsBsRecord(deviceStatusBo); LatestGpsBsRecordDto latestGpsBsRecordDto = openApiICEService.getLatestGpsBsRecord(deviceStatusBo);
return Result.ok().data(latestGpsBsRecordDto); return Result.ok().data(latestGpsBsRecordDto);
} }
...@@ -115,7 +130,7 @@ public class OpenApiController { ...@@ -115,7 +130,7 @@ public class OpenApiController {
*/ */
@PostMapping("gpsRecords") @PostMapping("gpsRecords")
public Result getGpsRecords(@RequestBody GpsBsRecordsBo gpsRecordsBo){ public Result getGpsRecords(@RequestBody GpsBsRecordsBo gpsRecordsBo){
GpsRecordsDto gpsRecordsDto = openApiService.getGpsRecords(gpsRecordsBo); GpsRecordsDto gpsRecordsDto = openApiICEService.getGpsRecords(gpsRecordsBo);
return Result.ok().data(gpsRecordsDto); return Result.ok().data(gpsRecordsDto);
} }
...@@ -124,7 +139,7 @@ public class OpenApiController { ...@@ -124,7 +139,7 @@ public class OpenApiController {
*/ */
@PostMapping("bsRecords") @PostMapping("bsRecords")
public Result getBsRecords(@RequestBody GpsBsRecordsBo gpsRecordsBo){ public Result getBsRecords(@RequestBody GpsBsRecordsBo gpsRecordsBo){
BsRecordsDto bsRecordsDto = openApiService.getBsRecords(gpsRecordsBo); BsRecordsDto bsRecordsDto = openApiICEService.getBsRecords(gpsRecordsBo);
return Result.ok().data(bsRecordsDto); return Result.ok().data(bsRecordsDto);
} }
...@@ -133,7 +148,7 @@ public class OpenApiController { ...@@ -133,7 +148,7 @@ public class OpenApiController {
*/ */
@PostMapping("firstGpsRecord") @PostMapping("firstGpsRecord")
public Result getFirstGpsRecord(@RequestBody DeviceStatusBo deviceStatusBo){ public Result getFirstGpsRecord(@RequestBody DeviceStatusBo deviceStatusBo){
FirstGpsRecordDto firstGpsRecordDto = openApiService.getFirstGpsRecord(deviceStatusBo); FirstGpsRecordDto firstGpsRecordDto = openApiICEService.getFirstGpsRecord(deviceStatusBo);
return Result.ok().data(firstGpsRecordDto); return Result.ok().data(firstGpsRecordDto);
} }
...@@ -142,7 +157,7 @@ public class OpenApiController { ...@@ -142,7 +157,7 @@ public class OpenApiController {
*/ */
@PostMapping("recentGpsRecords") @PostMapping("recentGpsRecords")
public Result getRecentGpsRecords(@RequestBody DeviceStatusCountBo deviceStatusBo){ public Result getRecentGpsRecords(@RequestBody DeviceStatusCountBo deviceStatusBo){
GpsRecordsDto recentGpsRecords = openApiService.getRecentGpsRecords(deviceStatusBo); GpsRecordsDto recentGpsRecords = openApiICEService.getRecentGpsRecords(deviceStatusBo);
return Result.ok().data(recentGpsRecords); return Result.ok().data(recentGpsRecords);
} }
...@@ -151,7 +166,7 @@ public class OpenApiController { ...@@ -151,7 +166,7 @@ public class OpenApiController {
*/ */
@PostMapping("recentBsRecords") @PostMapping("recentBsRecords")
public Result getRecentBsRecords(@RequestBody DeviceStatusCountBo deviceStatusBo){ public Result getRecentBsRecords(@RequestBody DeviceStatusCountBo deviceStatusBo){
BsRecordsDto recentBsRecords = openApiService.getRecentBsRecords(deviceStatusBo); BsRecordsDto recentBsRecords = openApiICEService.getRecentBsRecords(deviceStatusBo);
return Result.ok().data(recentBsRecords); return Result.ok().data(recentBsRecords);
} }
...@@ -160,7 +175,7 @@ public class OpenApiController { ...@@ -160,7 +175,7 @@ public class OpenApiController {
*/ */
@PostMapping("coordTransForMap") @PostMapping("coordTransForMap")
public Result getCoordTransForMap(@RequestBody CoordTransForMapBo coordTransForMapBo){ public Result getCoordTransForMap(@RequestBody CoordTransForMapBo coordTransForMapBo){
Map<String,Object> res = openApiService.getCoordTransForMap(coordTransForMapBo); Map<String,Object> res = openApiICEService.getCoordTransForMap(coordTransForMapBo);
return Result.ok().data(res); return Result.ok().data(res);
} }
...@@ -169,8 +184,8 @@ public class OpenApiController { ...@@ -169,8 +184,8 @@ public class OpenApiController {
*/ */
@PostMapping("distInfoByPos") @PostMapping("distInfoByPos")
public Result getDistInfoByPos(@RequestBody BaseMapModel mapModel){ public Result getDistInfoByPos(@RequestBody BaseMapModel mapModel){
DistInfoDto distInfo = openApiService.getDistInfoByPos(mapModel); Map<String, Object> map = openApiICEService.getDistInfoByPos(mapModel);
return Result.ok().data(distInfo); return Result.ok().data(map);
} }
/* /*
...@@ -178,8 +193,8 @@ public class OpenApiController { ...@@ -178,8 +193,8 @@ public class OpenApiController {
*/ */
@PostMapping("distDetailByPos") @PostMapping("distDetailByPos")
public Result getDistDetailByPos(@RequestBody BaseMapModel mapModel){ public Result getDistDetailByPos(@RequestBody BaseMapModel mapModel){
DistDetilDto distDetail = openApiService.getDistDetailByPos(mapModel); Map<String, Object> map = openApiICEService.getDistDetailByPos(mapModel);
return Result.ok().data(distDetail); return Result.ok().data(map);
} }
/* /*
...@@ -187,7 +202,7 @@ public class OpenApiController { ...@@ -187,7 +202,7 @@ public class OpenApiController {
*/ */
@PostMapping("geocoding") @PostMapping("geocoding")
public Result getGeocoding(@RequestBody GeocodeBO geocodeBO){ public Result getGeocoding(@RequestBody GeocodeBO geocodeBO){
Map<String, Object> map = openApiService.getGeocoding(geocodeBO); Map<String, Object> map = openApiICEService.getGeocoding(geocodeBO);
return Result.ok().data(map); return Result.ok().data(map);
} }
...@@ -196,7 +211,7 @@ public class OpenApiController { ...@@ -196,7 +211,7 @@ public class OpenApiController {
*/ */
@PostMapping("reverseGeocoding") @PostMapping("reverseGeocoding")
public Result getReverseGeocoding(@RequestBody BaseMapModel mapModel){ public Result getReverseGeocoding(@RequestBody BaseMapModel mapModel){
Map<String,Object> map = openApiService.getReverseGeocoding(mapModel); Map<String,Object> map = openApiICEService.getReverseGeocoding(mapModel);
return Result.ok().data(map); return Result.ok().data(map);
} }
...@@ -205,7 +220,7 @@ public class OpenApiController { ...@@ -205,7 +220,7 @@ public class OpenApiController {
*/ */
@PostMapping("journeyByGpsRecords") @PostMapping("journeyByGpsRecords")
public Result getJourneyByGpsRecords(@RequestBody GpsBsRecordsBo gpsBsRecordsBo){ public Result getJourneyByGpsRecords(@RequestBody GpsBsRecordsBo gpsBsRecordsBo){
Map<String, Object> map = openApiService.getJourneyByGpsRecords(gpsBsRecordsBo); Map<String, Object> map = openApiICEService.getJourneyByGpsRecords(gpsBsRecordsBo);
return Result.ok().data(map); return Result.ok().data(map);
} }
...@@ -214,7 +229,7 @@ public class OpenApiController { ...@@ -214,7 +229,7 @@ public class OpenApiController {
*/ */
@PostMapping("journeyRecords") @PostMapping("journeyRecords")
public Result getJourneyRecords(@RequestBody GpsBsRecordsBo gpsBsRecordsBo){ public Result getJourneyRecords(@RequestBody GpsBsRecordsBo gpsBsRecordsBo){
Map<String, Object> map = openApiService.getJourneyRecords(gpsBsRecordsBo); Map<String, Object> map = openApiICEService.getJourneyRecords(gpsBsRecordsBo);
return Result.ok().data(map); return Result.ok().data(map);
} }
...@@ -223,7 +238,7 @@ public class OpenApiController { ...@@ -223,7 +238,7 @@ public class OpenApiController {
*/ */
@PostMapping("dailyMileageRecords") @PostMapping("dailyMileageRecords")
public Result getDailyMileageRecords(@RequestBody GpsBsRecordsBo gpsBsRecordsBo){ public Result getDailyMileageRecords(@RequestBody GpsBsRecordsBo gpsBsRecordsBo){
Map<String, Object> map = openApiService.getDailyMileageRecords(gpsBsRecordsBo); Map<String, Object> map = openApiICEService.getDailyMileageRecords(gpsBsRecordsBo);
return Result.ok().data(map); return Result.ok().data(map);
} }
...@@ -232,7 +247,7 @@ public class OpenApiController { ...@@ -232,7 +247,7 @@ public class OpenApiController {
*/ */
@PostMapping("totalMileageRecords") @PostMapping("totalMileageRecords")
public Result getTotalMileageRecords(@RequestBody DeviceStatusBo deviceStatusBo){ public Result getTotalMileageRecords(@RequestBody DeviceStatusBo deviceStatusBo){
Map<String, Object> map = openApiService.getTotalMileageRecords(deviceStatusBo); Map<String, Object> map = openApiICEService.getTotalMileageRecords(deviceStatusBo);
return Result.ok().data(map); return Result.ok().data(map);
} }
...@@ -241,7 +256,7 @@ public class OpenApiController { ...@@ -241,7 +256,7 @@ public class OpenApiController {
*/ */
@PostMapping("monthResideRecords") @PostMapping("monthResideRecords")
public Result getMonthResideRecords(@RequestBody DeviceMonthBo deviceMonthBo){ public Result getMonthResideRecords(@RequestBody DeviceMonthBo deviceMonthBo){
Map<String, Object> map = openApiService.getMonthResideRecords(deviceMonthBo); Map<String, Object> map = openApiICEService.getMonthResideRecords(deviceMonthBo);
return Result.ok().data(map); return Result.ok().data(map);
} }
...@@ -250,7 +265,7 @@ public class OpenApiController { ...@@ -250,7 +265,7 @@ public class OpenApiController {
*/ */
@PostMapping("deviceStayRecords") @PostMapping("deviceStayRecords")
public Result getDeviceStayRecords(@RequestBody DeviceStayBo deviceStayBo){ public Result getDeviceStayRecords(@RequestBody DeviceStayBo deviceStayBo){
Map<String, Object> map = openApiService.getDeviceStayRecords(deviceStayBo); Map<String, Object> map = openApiICEService.getDeviceStayRecords(deviceStayBo);
return Result.ok().data(map); return Result.ok().data(map);
} }
} }
...@@ -4,6 +4,7 @@ import com.glsx.model.Result; ...@@ -4,6 +4,7 @@ import com.glsx.model.Result;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice; import org.springframework.web.bind.annotation.RestControllerAdvice;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
/** /**
......
...@@ -23,5 +23,5 @@ package com.glsx.ice.DISTRICT; ...@@ -23,5 +23,5 @@ package com.glsx.ice.DISTRICT;
public interface IDistrictFinder extends Ice.Object, public interface IDistrictFinder extends Ice.Object,
_IDistrictFinderOperations, _IDistrictFinderOperationsNC _IDistrictFinderOperations, _IDistrictFinderOperationsNC
{ {
public static final long serialVersionUID = -5209142945735662650L; public static final long serialVersionUID = 254911430L;
} }
...@@ -135,5 +135,5 @@ public class AlarmGetRequest implements Cloneable, java.io.Serializable ...@@ -135,5 +135,5 @@ public class AlarmGetRequest implements Cloneable, java.io.Serializable
reqCount = __is.readInt(); reqCount = __is.readInt();
} }
public static final long serialVersionUID = -3754636485595147263L; public static final long serialVersionUID = 1600214017L;
} }
...@@ -125,5 +125,5 @@ public class AlarmGetResponse implements Cloneable, java.io.Serializable ...@@ -125,5 +125,5 @@ public class AlarmGetResponse implements Cloneable, java.io.Serializable
lastAlarmTime = __is.readInt(); lastAlarmTime = __is.readInt();
} }
public static final long serialVersionUID = 7054347308621578722L; public static final long serialVersionUID = 1822376418L;
} }
...@@ -105,5 +105,5 @@ public class AlarmRecord implements Cloneable, java.io.Serializable ...@@ -105,5 +105,5 @@ public class AlarmRecord implements Cloneable, java.io.Serializable
alarmState = __is.readInt(); alarmState = __is.readInt();
} }
public static final long serialVersionUID = -4693436816629426831L; public static final long serialVersionUID = 152049009L;
} }
...@@ -115,5 +115,5 @@ public class BatchGpsDevInfoRequest implements Cloneable, java.io.Serializable ...@@ -115,5 +115,5 @@ public class BatchGpsDevInfoRequest implements Cloneable, java.io.Serializable
seqNo = __is.readInt(); seqNo = __is.readInt();
} }
public static final long serialVersionUID = 6287704385978578483L; public static final long serialVersionUID = 1256928819L;
} }
...@@ -111,5 +111,5 @@ public class BatchGpsDevInfoResponse implements Cloneable, java.io.Serializable ...@@ -111,5 +111,5 @@ public class BatchGpsDevInfoResponse implements Cloneable, java.io.Serializable
gpsDevInfos = GpsDevInfoSeqHelper.read(__is); gpsDevInfos = GpsDevInfoSeqHelper.read(__is);
} }
public static final long serialVersionUID = -3834720778168813516L; public static final long serialVersionUID = -59754444L;
} }
...@@ -115,5 +115,5 @@ public class BatteryRecord implements Cloneable, java.io.Serializable ...@@ -115,5 +115,5 @@ public class BatteryRecord implements Cloneable, java.io.Serializable
storeTime = __is.readInt(); storeTime = __is.readInt();
} }
public static final long serialVersionUID = -2067707541108564068L; public static final long serialVersionUID = 1356062620L;
} }
...@@ -138,5 +138,5 @@ public class BsGetRequest implements Cloneable, java.io.Serializable ...@@ -138,5 +138,5 @@ public class BsGetRequest implements Cloneable, java.io.Serializable
reqCount = __is.readInt(); reqCount = __is.readInt();
} }
public static final long serialVersionUID = 3348109610768716323L; public static final long serialVersionUID = -1292840413L;
} }
...@@ -105,5 +105,5 @@ public class BsGetResponse implements Cloneable, java.io.Serializable ...@@ -105,5 +105,5 @@ public class BsGetResponse implements Cloneable, java.io.Serializable
records = BsRecordsHelper.read(__is); records = BsRecordsHelper.read(__is);
} }
public static final long serialVersionUID = -8093956956733053997L; public static final long serialVersionUID = 245359571L;
} }
...@@ -115,5 +115,5 @@ public class BsInfo implements Cloneable, java.io.Serializable ...@@ -115,5 +115,5 @@ public class BsInfo implements Cloneable, java.io.Serializable
signal = __is.readInt(); signal = __is.readInt();
} }
public static final long serialVersionUID = -6141235578307705906L; public static final long serialVersionUID = 2029683662L;
} }
...@@ -135,5 +135,5 @@ public class BsRecord implements Cloneable, java.io.Serializable ...@@ -135,5 +135,5 @@ public class BsRecord implements Cloneable, java.io.Serializable
bsInfos = BsInfoArrayHelper.read(__is); bsInfos = BsInfoArrayHelper.read(__is);
} }
public static final long serialVersionUID = 1328093076371208236L; public static final long serialVersionUID = -842860500L;
} }
...@@ -135,5 +135,5 @@ public class BsWorkModeGetRequest implements Cloneable, java.io.Serializable ...@@ -135,5 +135,5 @@ public class BsWorkModeGetRequest implements Cloneable, java.io.Serializable
reqCount = __is.readInt(); reqCount = __is.readInt();
} }
public static final long serialVersionUID = 4381286516000313377L; public static final long serialVersionUID = -1922543583L;
} }
...@@ -105,5 +105,5 @@ public class BsWorkModeGetResponse implements Cloneable, java.io.Serializable ...@@ -105,5 +105,5 @@ public class BsWorkModeGetResponse implements Cloneable, java.io.Serializable
records = BsWorkModeRecordsHelper.read(__is); records = BsWorkModeRecordsHelper.read(__is);
} }
public static final long serialVersionUID = 8985783764598807953L; public static final long serialVersionUID = -1520280175L;
} }
...@@ -155,5 +155,5 @@ public class BsWorkModeRecord implements Cloneable, java.io.Serializable ...@@ -155,5 +155,5 @@ public class BsWorkModeRecord implements Cloneable, java.io.Serializable
workmode = __is.readInt(); workmode = __is.readInt();
} }
public static final long serialVersionUID = -5017340778083374883L; public static final long serialVersionUID = 893528285L;
} }
...@@ -11,33 +11,33 @@ ...@@ -11,33 +11,33 @@
// //
// <auto-generated> // <auto-generated>
// //
// Generated from file `ipoi.ice' // Generated from file `HDao_gps.ice'
// //
// Warning: do not edit this file. // Warning: do not edit this file.
// //
// </auto-generated> // </auto-generated>
// //
package com.glsx.ice.poisearch; package com.glsx.ice.HDaoGps;
public abstract class Callback_IPOISearchFTR_Geocoding extends Ice.TwowayCallback public abstract class Callback_DaoGpsService_convGeoGps extends Ice.TwowayCallback
{ {
public abstract void response(int __ret, geocoding_result rst); public abstract void response(boolean __ret, ConvResponseResult rsp);
public final void __completed(Ice.AsyncResult __result) public final void __completed(Ice.AsyncResult __result)
{ {
IPOISearchFTRPrx __proxy = (IPOISearchFTRPrx)__result.getProxy(); DaoGpsServicePrx __proxy = (DaoGpsServicePrx)__result.getProxy();
int __ret = 0; boolean __ret = false;
geocoding_resultHolder rst = new geocoding_resultHolder(); ConvResponseResultHolder rsp = new ConvResponseResultHolder();
try try
{ {
__ret = __proxy.end_Geocoding(rst, __result); __ret = __proxy.end_convGeoGps(rsp, __result);
} }
catch(Ice.LocalException __ex) catch(Ice.LocalException __ex)
{ {
exception(__ex); exception(__ex);
return; return;
} }
response(__ret, rst.value); response(__ret, rsp.value);
} }
} }
...@@ -11,53 +11,32 @@ ...@@ -11,53 +11,32 @@
// //
// <auto-generated> // <auto-generated>
// //
// Generated from file `ipoi.ice' // Generated from file `HDao_gps.ice'
// //
// Warning: do not edit this file. // Warning: do not edit this file.
// //
// </auto-generated> // </auto-generated>
// //
package com.glsx.ice.poisearch; package com.glsx.ice.HDaoGps;
public class poi_info_t implements Cloneable, java.io.Serializable public class ConvRequest implements Cloneable, java.io.Serializable
{ {
public int id; public ConvType type;
public float lng; public int lng;
public float lat; public int lat;
public int citycode; public ConvRequest()
public int type;
public String name;
public String addr;
public String tel;
public int weight;
public int distance;
public poi_info_t()
{ {
} }
public poi_info_t(int id, float lng, float lat, int citycode, int type, String name, String addr, String tel, int weight, int distance) public ConvRequest(ConvType type, int lng, int lat)
{ {
this.id = id; this.type = type;
this.lng = lng; this.lng = lng;
this.lat = lat; this.lat = lat;
this.citycode = citycode;
this.type = type;
this.name = name;
this.addr = addr;
this.tel = tel;
this.weight = weight;
this.distance = distance;
} }
public boolean public boolean
...@@ -67,60 +46,26 @@ public class poi_info_t implements Cloneable, java.io.Serializable ...@@ -67,60 +46,26 @@ public class poi_info_t implements Cloneable, java.io.Serializable
{ {
return true; return true;
} }
poi_info_t _r = null; ConvRequest _r = null;
if(rhs instanceof poi_info_t) if(rhs instanceof ConvRequest)
{ {
_r = (poi_info_t)rhs; _r = (ConvRequest)rhs;
} }
if(_r != null) if(_r != null)
{ {
if(id != _r.id)
{
return false;
}
if(lng != _r.lng)
{
return false;
}
if(lat != _r.lat)
{
return false;
}
if(citycode != _r.citycode)
{
return false;
}
if(type != _r.type) if(type != _r.type)
{ {
return false; if(type == null || _r.type == null || !type.equals(_r.type))
}
if(name != _r.name)
{
if(name == null || _r.name == null || !name.equals(_r.name))
{
return false;
}
}
if(addr != _r.addr)
{
if(addr == null || _r.addr == null || !addr.equals(_r.addr))
{
return false;
}
}
if(tel != _r.tel)
{
if(tel == null || _r.tel == null || !tel.equals(_r.tel))
{ {
return false; return false;
} }
} }
if(weight != _r.weight) if(lng != _r.lng)
{ {
return false; return false;
} }
if(distance != _r.distance) if(lat != _r.lat)
{ {
return false; return false;
} }
...@@ -135,17 +80,10 @@ public class poi_info_t implements Cloneable, java.io.Serializable ...@@ -135,17 +80,10 @@ public class poi_info_t implements Cloneable, java.io.Serializable
hashCode() hashCode()
{ {
int __h = 5381; int __h = 5381;
__h = IceInternal.HashUtil.hashAdd(__h, "::POI::poi_info_t"); __h = IceInternal.HashUtil.hashAdd(__h, "::HDaoGps::ConvRequest");
__h = IceInternal.HashUtil.hashAdd(__h, id); __h = IceInternal.HashUtil.hashAdd(__h, type);
__h = IceInternal.HashUtil.hashAdd(__h, lng); __h = IceInternal.HashUtil.hashAdd(__h, lng);
__h = IceInternal.HashUtil.hashAdd(__h, lat); __h = IceInternal.HashUtil.hashAdd(__h, lat);
__h = IceInternal.HashUtil.hashAdd(__h, citycode);
__h = IceInternal.HashUtil.hashAdd(__h, type);
__h = IceInternal.HashUtil.hashAdd(__h, name);
__h = IceInternal.HashUtil.hashAdd(__h, addr);
__h = IceInternal.HashUtil.hashAdd(__h, tel);
__h = IceInternal.HashUtil.hashAdd(__h, weight);
__h = IceInternal.HashUtil.hashAdd(__h, distance);
return __h; return __h;
} }
...@@ -167,32 +105,18 @@ public class poi_info_t implements Cloneable, java.io.Serializable ...@@ -167,32 +105,18 @@ public class poi_info_t implements Cloneable, java.io.Serializable
public void public void
__write(IceInternal.BasicStream __os) __write(IceInternal.BasicStream __os)
{ {
__os.writeInt(id); type.__write(__os);
__os.writeFloat(lng); __os.writeInt(lng);
__os.writeFloat(lat); __os.writeInt(lat);
__os.writeInt(citycode);
__os.writeInt(type);
__os.writeString(name);
__os.writeString(addr);
__os.writeString(tel);
__os.writeInt(weight);
__os.writeInt(distance);
} }
public void public void
__read(IceInternal.BasicStream __is) __read(IceInternal.BasicStream __is)
{ {
id = __is.readInt(); type = ConvType.__read(__is);
lng = __is.readFloat(); lng = __is.readInt();
lat = __is.readFloat(); lat = __is.readInt();
citycode = __is.readInt();
type = __is.readInt();
name = __is.readString();
addr = __is.readString();
tel = __is.readString();
weight = __is.readInt();
distance = __is.readInt();
} }
public static final long serialVersionUID = -2365766525795353480L; public static final long serialVersionUID = -1241051541L;
} }
...@@ -11,27 +11,27 @@ ...@@ -11,27 +11,27 @@
// //
// <auto-generated> // <auto-generated>
// //
// Generated from file `ipoi.ice' // Generated from file `HDao_gps.ice'
// //
// Warning: do not edit this file. // Warning: do not edit this file.
// //
// </auto-generated> // </auto-generated>
// //
package com.glsx.ice.poisearch; package com.glsx.ice.HDaoGps;
public final class IPOISearchFTRPrxHolder public final class ConvRequestHolder
{ {
public public
IPOISearchFTRPrxHolder() ConvRequestHolder()
{ {
} }
public public
IPOISearchFTRPrxHolder(IPOISearchFTRPrx value) ConvRequestHolder(ConvRequest value)
{ {
this.value = value; this.value = value;
} }
public IPOISearchFTRPrx value; public ConvRequest value;
} }
...@@ -11,26 +11,26 @@ ...@@ -11,26 +11,26 @@
// //
// <auto-generated> // <auto-generated>
// //
// Generated from file `ipoi.ice' // Generated from file `HDao_gps.ice'
// //
// Warning: do not edit this file. // Warning: do not edit this file.
// //
// </auto-generated> // </auto-generated>
// //
package com.glsx.ice.poisearch; package com.glsx.ice.HDaoGps;
public class geopoint implements Cloneable, java.io.Serializable public class ConvResponse implements Cloneable, java.io.Serializable
{ {
public float lng; public int lng;
public float lat; public int lat;
public geopoint() public ConvResponse()
{ {
} }
public geopoint(float lng, float lat) public ConvResponse(int lng, int lat)
{ {
this.lng = lng; this.lng = lng;
this.lat = lat; this.lat = lat;
...@@ -43,10 +43,10 @@ public class geopoint implements Cloneable, java.io.Serializable ...@@ -43,10 +43,10 @@ public class geopoint implements Cloneable, java.io.Serializable
{ {
return true; return true;
} }
geopoint _r = null; ConvResponse _r = null;
if(rhs instanceof geopoint) if(rhs instanceof ConvResponse)
{ {
_r = (geopoint)rhs; _r = (ConvResponse)rhs;
} }
if(_r != null) if(_r != null)
...@@ -70,7 +70,7 @@ public class geopoint implements Cloneable, java.io.Serializable ...@@ -70,7 +70,7 @@ public class geopoint implements Cloneable, java.io.Serializable
hashCode() hashCode()
{ {
int __h = 5381; int __h = 5381;
__h = IceInternal.HashUtil.hashAdd(__h, "::POI::geopoint"); __h = IceInternal.HashUtil.hashAdd(__h, "::HDaoGps::ConvResponse");
__h = IceInternal.HashUtil.hashAdd(__h, lng); __h = IceInternal.HashUtil.hashAdd(__h, lng);
__h = IceInternal.HashUtil.hashAdd(__h, lat); __h = IceInternal.HashUtil.hashAdd(__h, lat);
return __h; return __h;
...@@ -94,16 +94,16 @@ public class geopoint implements Cloneable, java.io.Serializable ...@@ -94,16 +94,16 @@ public class geopoint implements Cloneable, java.io.Serializable
public void public void
__write(IceInternal.BasicStream __os) __write(IceInternal.BasicStream __os)
{ {
__os.writeFloat(lng); __os.writeInt(lng);
__os.writeFloat(lat); __os.writeInt(lat);
} }
public void public void
__read(IceInternal.BasicStream __is) __read(IceInternal.BasicStream __is)
{ {
lng = __is.readFloat(); lng = __is.readInt();
lat = __is.readFloat(); lat = __is.readInt();
} }
public static final long serialVersionUID = -8161111944143154880L; public static final long serialVersionUID = -387858138L;
} }
...@@ -11,27 +11,27 @@ ...@@ -11,27 +11,27 @@
// //
// <auto-generated> // <auto-generated>
// //
// Generated from file `ipoi.ice' // Generated from file `HDao_gps.ice'
// //
// Warning: do not edit this file. // Warning: do not edit this file.
// //
// </auto-generated> // </auto-generated>
// //
package com.glsx.ice.poisearch; package com.glsx.ice.HDaoGps;
public final class IPOISearchNearPrxHolder public final class ConvResponseHolder
{ {
public public
IPOISearchNearPrxHolder() ConvResponseHolder()
{ {
} }
public public
IPOISearchNearPrxHolder(IPOISearchNearPrx value) ConvResponseHolder(ConvResponse value)
{ {
this.value = value; this.value = value;
} }
public IPOISearchNearPrx value; public ConvResponse value;
} }
...@@ -11,32 +11,29 @@ ...@@ -11,32 +11,29 @@
// //
// <auto-generated> // <auto-generated>
// //
// Generated from file `ipoi.ice' // Generated from file `HDao_gps.ice'
// //
// Warning: do not edit this file. // Warning: do not edit this file.
// //
// </auto-generated> // </auto-generated>
// //
package com.glsx.ice.poisearch; package com.glsx.ice.HDaoGps;
public class geocoding_result implements Cloneable, java.io.Serializable public class ConvResponseResult implements Cloneable, java.io.Serializable
{ {
public int level; public int oprResult;
public int confidence; public ConvResponse gps;
public geopoint pt; public ConvResponseResult()
public geocoding_result()
{ {
} }
public geocoding_result(int level, int confidence, geopoint pt) public ConvResponseResult(int oprResult, ConvResponse gps)
{ {
this.level = level; this.oprResult = oprResult;
this.confidence = confidence; this.gps = gps;
this.pt = pt;
} }
public boolean public boolean
...@@ -46,25 +43,21 @@ public class geocoding_result implements Cloneable, java.io.Serializable ...@@ -46,25 +43,21 @@ public class geocoding_result implements Cloneable, java.io.Serializable
{ {
return true; return true;
} }
geocoding_result _r = null; ConvResponseResult _r = null;
if(rhs instanceof geocoding_result) if(rhs instanceof ConvResponseResult)
{ {
_r = (geocoding_result)rhs; _r = (ConvResponseResult)rhs;
} }
if(_r != null) if(_r != null)
{ {
if(level != _r.level) if(oprResult != _r.oprResult)
{
return false;
}
if(confidence != _r.confidence)
{ {
return false; return false;
} }
if(pt != _r.pt) if(gps != _r.gps)
{ {
if(pt == null || _r.pt == null || !pt.equals(_r.pt)) if(gps == null || _r.gps == null || !gps.equals(_r.gps))
{ {
return false; return false;
} }
...@@ -80,10 +73,9 @@ public class geocoding_result implements Cloneable, java.io.Serializable ...@@ -80,10 +73,9 @@ public class geocoding_result implements Cloneable, java.io.Serializable
hashCode() hashCode()
{ {
int __h = 5381; int __h = 5381;
__h = IceInternal.HashUtil.hashAdd(__h, "::POI::geocoding_result"); __h = IceInternal.HashUtil.hashAdd(__h, "::HDaoGps::ConvResponseResult");
__h = IceInternal.HashUtil.hashAdd(__h, level); __h = IceInternal.HashUtil.hashAdd(__h, oprResult);
__h = IceInternal.HashUtil.hashAdd(__h, confidence); __h = IceInternal.HashUtil.hashAdd(__h, gps);
__h = IceInternal.HashUtil.hashAdd(__h, pt);
return __h; return __h;
} }
...@@ -105,19 +97,17 @@ public class geocoding_result implements Cloneable, java.io.Serializable ...@@ -105,19 +97,17 @@ public class geocoding_result implements Cloneable, java.io.Serializable
public void public void
__write(IceInternal.BasicStream __os) __write(IceInternal.BasicStream __os)
{ {
__os.writeInt(level); __os.writeInt(oprResult);
__os.writeInt(confidence); gps.__write(__os);
pt.__write(__os);
} }
public void public void
__read(IceInternal.BasicStream __is) __read(IceInternal.BasicStream __is)
{ {
level = __is.readInt(); oprResult = __is.readInt();
confidence = __is.readInt(); gps = new ConvResponse();
pt = new geopoint(); gps.__read(__is);
pt.__read(__is);
} }
public static final long serialVersionUID = 4552966326190683359L; public static final long serialVersionUID = -1479840141L;
} }
...@@ -11,27 +11,27 @@ ...@@ -11,27 +11,27 @@
// //
// <auto-generated> // <auto-generated>
// //
// Generated from file `ipoi.ice' // Generated from file `HDao_gps.ice'
// //
// Warning: do not edit this file. // Warning: do not edit this file.
// //
// </auto-generated> // </auto-generated>
// //
package com.glsx.ice.poisearch; package com.glsx.ice.HDaoGps;
public final class POI_INDEX_TYPE_CONSTANTSHolder public final class ConvResponseResultHolder
{ {
public public
POI_INDEX_TYPE_CONSTANTSHolder() ConvResponseResultHolder()
{ {
} }
public public
POI_INDEX_TYPE_CONSTANTSHolder(POI_INDEX_TYPE_CONSTANTS value) ConvResponseResultHolder(ConvResponseResult value)
{ {
this.value = value; this.value = value;
} }
public POI_INDEX_TYPE_CONSTANTS value; public ConvResponseResult value;
} }
...@@ -11,25 +11,21 @@ ...@@ -11,25 +11,21 @@
// //
// <auto-generated> // <auto-generated>
// //
// Generated from file `ipoi.ice' // Generated from file `HDao_gps.ice'
// //
// Warning: do not edit this file. // Warning: do not edit this file.
// //
// </auto-generated> // </auto-generated>
// //
package com.glsx.ice.poisearch; package com.glsx.ice.HDaoGps;
public enum POI_INDEX_TYPE_CONSTANTS implements java.io.Serializable public enum ConvType implements java.io.Serializable
{ {
emIndexName(0), WGS2GG(0),
emIndexAddr(1), WGS2BD(1);
emIndexCustom(2),
index_type_count(3);
public int public int
value() value()
...@@ -37,25 +33,21 @@ public enum POI_INDEX_TYPE_CONSTANTS implements java.io.Serializable ...@@ -37,25 +33,21 @@ public enum POI_INDEX_TYPE_CONSTANTS implements java.io.Serializable
return __value; return __value;
} }
public static POI_INDEX_TYPE_CONSTANTS public static ConvType
valueOf(int __v) valueOf(int __v)
{ {
switch(__v) switch(__v)
{ {
case 0: case 0:
return emIndexName; return WGS2GG;
case 1: case 1:
return emIndexAddr; return WGS2BD;
case 2:
return emIndexCustom;
case 3:
return index_type_count;
} }
return null; return null;
} }
private private
POI_INDEX_TYPE_CONSTANTS(int __v) ConvType(int __v)
{ {
__value = __v; __value = __v;
} }
...@@ -63,20 +55,20 @@ public enum POI_INDEX_TYPE_CONSTANTS implements java.io.Serializable ...@@ -63,20 +55,20 @@ public enum POI_INDEX_TYPE_CONSTANTS implements java.io.Serializable
public void public void
__write(IceInternal.BasicStream __os) __write(IceInternal.BasicStream __os)
{ {
__os.writeEnum(value(), 3); __os.writeEnum(value(), 1);
} }
public static POI_INDEX_TYPE_CONSTANTS public static ConvType
__read(IceInternal.BasicStream __is) __read(IceInternal.BasicStream __is)
{ {
int __v = __is.readEnum(3); int __v = __is.readEnum(1);
return __validate(__v); return __validate(__v);
} }
private static POI_INDEX_TYPE_CONSTANTS private static ConvType
__validate(int __v) __validate(int __v)
{ {
final POI_INDEX_TYPE_CONSTANTS __e = valueOf(__v); final ConvType __e = valueOf(__v);
if(__e == null) if(__e == null)
{ {
throw new Ice.MarshalException("enumerator value " + __v + " is out of range"); throw new Ice.MarshalException("enumerator value " + __v + " is out of range");
......
...@@ -11,27 +11,27 @@ ...@@ -11,27 +11,27 @@
// //
// <auto-generated> // <auto-generated>
// //
// Generated from file `ipoi.ice' // Generated from file `HDao_gps.ice'
// //
// Warning: do not edit this file. // Warning: do not edit this file.
// //
// </auto-generated> // </auto-generated>
// //
package com.glsx.ice.poisearch; package com.glsx.ice.HDaoGps;
public final class geocoding_resultHolder public final class ConvTypeHolder
{ {
public public
geocoding_resultHolder() ConvTypeHolder()
{ {
} }
public public
geocoding_resultHolder(geocoding_result value) ConvTypeHolder(ConvType value)
{ {
this.value = value; this.value = value;
} }
public geocoding_result value; public ConvType value;
} }
...@@ -23,5 +23,5 @@ package com.glsx.ice.HDaoGps; ...@@ -23,5 +23,5 @@ package com.glsx.ice.HDaoGps;
public interface DaoGpsService extends Ice.Object, public interface DaoGpsService extends Ice.Object,
_DaoGpsServiceOperations, _DaoGpsServiceOperationsNC _DaoGpsServiceOperations, _DaoGpsServiceOperationsNC
{ {
public static final long serialVersionUID = 3050687698509607144L; public static final long serialVersionUID = 1850847464L;
} }
...@@ -561,4 +561,22 @@ public interface DaoGpsServicePrx extends Ice.ObjectPrx ...@@ -561,4 +561,22 @@ public interface DaoGpsServicePrx extends Ice.ObjectPrx
public Ice.AsyncResult begin_getParadeCarAlarmRecords(AlarmGetRequest req, java.util.Map<String, String> __ctx, Callback_DaoGpsService_getParadeCarAlarmRecords __cb); public Ice.AsyncResult begin_getParadeCarAlarmRecords(AlarmGetRequest req, java.util.Map<String, String> __ctx, Callback_DaoGpsService_getParadeCarAlarmRecords __cb);
public boolean end_getParadeCarAlarmRecords(AlarmGetResponseHolder res, Ice.AsyncResult __result); public boolean end_getParadeCarAlarmRecords(AlarmGetResponseHolder res, Ice.AsyncResult __result);
public boolean convGeoGps(ConvRequest req, ConvResponseResultHolder rsp);
public boolean convGeoGps(ConvRequest req, ConvResponseResultHolder rsp, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_convGeoGps(ConvRequest req);
public Ice.AsyncResult begin_convGeoGps(ConvRequest req, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_convGeoGps(ConvRequest req, Ice.Callback __cb);
public Ice.AsyncResult begin_convGeoGps(ConvRequest req, java.util.Map<String, String> __ctx, Ice.Callback __cb);
public Ice.AsyncResult begin_convGeoGps(ConvRequest req, Callback_DaoGpsService_convGeoGps __cb);
public Ice.AsyncResult begin_convGeoGps(ConvRequest req, java.util.Map<String, String> __ctx, Callback_DaoGpsService_convGeoGps __cb);
public boolean end_convGeoGps(ConvResponseResultHolder rsp, Ice.AsyncResult __result);
} }
...@@ -22,6 +22,142 @@ package com.glsx.ice.HDaoGps; ...@@ -22,6 +22,142 @@ package com.glsx.ice.HDaoGps;
public final class DaoGpsServicePrxHelper extends Ice.ObjectPrxHelperBase implements DaoGpsServicePrx public final class DaoGpsServicePrxHelper extends Ice.ObjectPrxHelperBase implements DaoGpsServicePrx
{ {
private static final String __convGeoGps_name = "convGeoGps";
public boolean convGeoGps(ConvRequest req, ConvResponseResultHolder rsp)
{
return convGeoGps(req, rsp, null, false);
}
public boolean convGeoGps(ConvRequest req, ConvResponseResultHolder rsp, java.util.Map<String, String> __ctx)
{
return convGeoGps(req, rsp, __ctx, true);
}
private boolean convGeoGps(ConvRequest req, ConvResponseResultHolder rsp, java.util.Map<String, String> __ctx, boolean __explicitCtx)
{
if(__explicitCtx && __ctx == null)
{
__ctx = _emptyContext;
}
final Ice.Instrumentation.InvocationObserver __observer = IceInternal.ObserverHelper.get(this, "convGeoGps", __ctx);
int __cnt = 0;
try
{
while(true)
{
Ice._ObjectDel __delBase = null;
try
{
__checkTwowayOnly("convGeoGps");
__delBase = __getDelegate(false);
_DaoGpsServiceDel __del = (_DaoGpsServiceDel)__delBase;
return __del.convGeoGps(req, rsp, __ctx, __observer);
}
catch(IceInternal.LocalExceptionWrapper __ex)
{
__handleExceptionWrapper(__delBase, __ex, __observer);
}
catch(Ice.LocalException __ex)
{
__cnt = __handleException(__delBase, __ex, null, __cnt, __observer);
}
}
}
finally
{
if(__observer != null)
{
__observer.detach();
}
}
}
public Ice.AsyncResult begin_convGeoGps(ConvRequest req)
{
return begin_convGeoGps(req, null, false, null);
}
public Ice.AsyncResult begin_convGeoGps(ConvRequest req, java.util.Map<String, String> __ctx)
{
return begin_convGeoGps(req, __ctx, true, null);
}
public Ice.AsyncResult begin_convGeoGps(ConvRequest req, Ice.Callback __cb)
{
return begin_convGeoGps(req, null, false, __cb);
}
public Ice.AsyncResult begin_convGeoGps(ConvRequest req, java.util.Map<String, String> __ctx, Ice.Callback __cb)
{
return begin_convGeoGps(req, __ctx, true, __cb);
}
public Ice.AsyncResult begin_convGeoGps(ConvRequest req, Callback_DaoGpsService_convGeoGps __cb)
{
return begin_convGeoGps(req, null, false, __cb);
}
public Ice.AsyncResult begin_convGeoGps(ConvRequest req, java.util.Map<String, String> __ctx, Callback_DaoGpsService_convGeoGps __cb)
{
return begin_convGeoGps(req, __ctx, true, __cb);
}
private Ice.AsyncResult begin_convGeoGps(ConvRequest req, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
{
__checkAsyncTwowayOnly(__convGeoGps_name);
IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __convGeoGps_name, __cb);
try
{
__result.__prepare(__convGeoGps_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
IceInternal.BasicStream __os = __result.__startWriteParams(Ice.FormatType.DefaultFormat);
req.__write(__os);
__result.__endWriteParams();
__result.__send(true);
}
catch(Ice.LocalException __ex)
{
__result.__exceptionAsync(__ex);
}
return __result;
}
public boolean end_convGeoGps(ConvResponseResultHolder rsp, Ice.AsyncResult __result)
{
Ice.AsyncResult.__check(__result, this, __convGeoGps_name);
boolean __ok = __result.__wait();
try
{
if(!__ok)
{
try
{
__result.__throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __result.__startReadParams();
rsp.value = new ConvResponseResult();
rsp.value.__read(__is);
boolean __ret;
__ret = __is.readBool();
__result.__endReadParams();
return __ret;
}
catch(Ice.LocalException ex)
{
Ice.Instrumentation.InvocationObserver __obsv = __result.__getObserver();
if(__obsv != null)
{
__obsv.failed(ex.ice_name());
}
throw ex;
}
}
private static final String __getBsRecords_name = "getBsRecords"; private static final String __getBsRecords_name = "getBsRecords";
public boolean getBsRecords(BsGetRequest req, BsGetResponseHolder res) public boolean getBsRecords(BsGetRequest req, BsGetResponseHolder res)
......
...@@ -108,5 +108,5 @@ public class DataCardGetRequest implements Cloneable, java.io.Serializable ...@@ -108,5 +108,5 @@ public class DataCardGetRequest implements Cloneable, java.io.Serializable
apType = __is.readInt(); apType = __is.readInt();
} }
public static final long serialVersionUID = -5320113910227661893L; public static final long serialVersionUID = -129758277L;
} }
...@@ -109,5 +109,5 @@ public class DataCardGetResponse implements Cloneable, java.io.Serializable ...@@ -109,5 +109,5 @@ public class DataCardGetResponse implements Cloneable, java.io.Serializable
cardInfo.__read(__is); cardInfo.__read(__is);
} }
public static final long serialVersionUID = -2449752915226477790L; public static final long serialVersionUID = -193807582L;
} }
...@@ -108,5 +108,5 @@ public class DataCardInfo implements Cloneable, java.io.Serializable ...@@ -108,5 +108,5 @@ public class DataCardInfo implements Cloneable, java.io.Serializable
iccid = __is.readString(); iccid = __is.readString();
} }
public static final long serialVersionUID = -7879727172173275118L; public static final long serialVersionUID = -1348575214L;
} }
...@@ -148,5 +148,5 @@ public class DayLastGpsGetRequest implements Cloneable, java.io.Serializable ...@@ -148,5 +148,5 @@ public class DayLastGpsGetRequest implements Cloneable, java.io.Serializable
day = __is.readInt(); day = __is.readInt();
} }
public static final long serialVersionUID = -1810599326986319986L; public static final long serialVersionUID = 1282099086L;
} }
...@@ -109,5 +109,5 @@ public class DayLastGpsGetResponse implements Cloneable, java.io.Serializable ...@@ -109,5 +109,5 @@ public class DayLastGpsGetResponse implements Cloneable, java.io.Serializable
record.__read(__is); record.__read(__is);
} }
public static final long serialVersionUID = 9176182864599859523L; public static final long serialVersionUID = -1501544125L;
} }
...@@ -128,5 +128,5 @@ public class DiffVoltageGetRequest implements Cloneable, java.io.Serializable ...@@ -128,5 +128,5 @@ public class DiffVoltageGetRequest implements Cloneable, java.io.Serializable
endTime = __is.readInt(); endTime = __is.readInt();
} }
public static final long serialVersionUID = -3265145535555248961L; public static final long serialVersionUID = 1430707391L;
} }
...@@ -105,5 +105,5 @@ public class DiffVoltageGetResponse implements Cloneable, java.io.Serializable ...@@ -105,5 +105,5 @@ public class DiffVoltageGetResponse implements Cloneable, java.io.Serializable
maxVolDiff = __is.readInt(); maxVolDiff = __is.readInt();
} }
public static final long serialVersionUID = -7645548518755699457L; public static final long serialVersionUID = 1250784511L;
} }
...@@ -105,5 +105,5 @@ public class GpsBsGetResponse implements Cloneable, java.io.Serializable ...@@ -105,5 +105,5 @@ public class GpsBsGetResponse implements Cloneable, java.io.Serializable
records = GpsBsRecordsHelper.read(__is); records = GpsBsRecordsHelper.read(__is);
} }
public static final long serialVersionUID = 6825863304550196439L; public static final long serialVersionUID = -1323916073L;
} }
...@@ -248,5 +248,5 @@ public class GpsBsRecord implements Cloneable, java.io.Serializable ...@@ -248,5 +248,5 @@ public class GpsBsRecord implements Cloneable, java.io.Serializable
bsInfos = BsInfoArrayHelper.read(__is); bsInfos = BsInfoArrayHelper.read(__is);
} }
public static final long serialVersionUID = -9010859437940285849L; public static final long serialVersionUID = 815259239L;
} }
...@@ -139,5 +139,5 @@ public class GpsDevInfo implements Cloneable, java.io.Serializable ...@@ -139,5 +139,5 @@ public class GpsDevInfo implements Cloneable, java.io.Serializable
onlineState = __is.readShort(); onlineState = __is.readShort();
} }
public static final long serialVersionUID = 8311223133356955085L; public static final long serialVersionUID = -1329588787L;
} }
...@@ -158,5 +158,5 @@ public class GpsGetExRequest implements Cloneable, java.io.Serializable ...@@ -158,5 +158,5 @@ public class GpsGetExRequest implements Cloneable, java.io.Serializable
filterLevel = __is.readInt(); filterLevel = __is.readInt();
} }
public static final long serialVersionUID = -4154489169697349187L; public static final long serialVersionUID = -1862573635L;
} }
...@@ -125,5 +125,5 @@ public class GpsGetExResponse implements Cloneable, java.io.Serializable ...@@ -125,5 +125,5 @@ public class GpsGetExResponse implements Cloneable, java.io.Serializable
lastGpsTime = __is.readInt(); lastGpsTime = __is.readInt();
} }
public static final long serialVersionUID = -8201661562309205121L; public static final long serialVersionUID = 1788191615L;
} }
...@@ -148,5 +148,5 @@ public class GpsGetRequest implements Cloneable, java.io.Serializable ...@@ -148,5 +148,5 @@ public class GpsGetRequest implements Cloneable, java.io.Serializable
reqCount = __is.readInt(); reqCount = __is.readInt();
} }
public static final long serialVersionUID = -250076893586403631L; public static final long serialVersionUID = -415248687L;
} }
...@@ -105,5 +105,5 @@ public class GpsGetResponse implements Cloneable, java.io.Serializable ...@@ -105,5 +105,5 @@ public class GpsGetResponse implements Cloneable, java.io.Serializable
records = GpsRecordsHelper.read(__is); records = GpsRecordsHelper.read(__is);
} }
public static final long serialVersionUID = -3679199104191971258L; public static final long serialVersionUID = 1890828358L;
} }
...@@ -125,5 +125,5 @@ public class GpsParadeCarGetResponse implements Cloneable, java.io.Serializable ...@@ -125,5 +125,5 @@ public class GpsParadeCarGetResponse implements Cloneable, java.io.Serializable
lastGpsTime = __is.readInt(); lastGpsTime = __is.readInt();
} }
public static final long serialVersionUID = 4441480681087103025L; public static final long serialVersionUID = -1057689551L;
} }
...@@ -198,5 +198,5 @@ public class GpsRecord implements Cloneable, java.io.Serializable ...@@ -198,5 +198,5 @@ public class GpsRecord implements Cloneable, java.io.Serializable
storeTime = __is.readInt(); storeTime = __is.readInt();
} }
public static final long serialVersionUID = 2925719264529334661L; public static final long serialVersionUID = -2100706939L;
} }
...@@ -135,5 +135,5 @@ public class GpsWorkModeGetRequest implements Cloneable, java.io.Serializable ...@@ -135,5 +135,5 @@ public class GpsWorkModeGetRequest implements Cloneable, java.io.Serializable
reqCount = __is.readInt(); reqCount = __is.readInt();
} }
public static final long serialVersionUID = 3598298132172006420L; public static final long serialVersionUID = 739271700L;
} }
...@@ -105,5 +105,5 @@ public class GpsWorkModeGetResponse implements Cloneable, java.io.Serializable ...@@ -105,5 +105,5 @@ public class GpsWorkModeGetResponse implements Cloneable, java.io.Serializable
records = GpsWorkModeRecordsHelper.read(__is); records = GpsWorkModeRecordsHelper.read(__is);
} }
public static final long serialVersionUID = -558549772609281276L; public static final long serialVersionUID = -297819388L;
} }
...@@ -158,5 +158,5 @@ public class GpsWorkModeRecord implements Cloneable, java.io.Serializable ...@@ -158,5 +158,5 @@ public class GpsWorkModeRecord implements Cloneable, java.io.Serializable
storeTime = __is.readInt(); storeTime = __is.readInt();
} }
public static final long serialVersionUID = 1393920200726737458L; public static final long serialVersionUID = -1987120590L;
} }
...@@ -118,5 +118,5 @@ public class LatestBatteryGetRequest implements Cloneable, java.io.Serializable ...@@ -118,5 +118,5 @@ public class LatestBatteryGetRequest implements Cloneable, java.io.Serializable
startTime = __is.readInt(); startTime = __is.readInt();
} }
public static final long serialVersionUID = -5586830461623120965L; public static final long serialVersionUID = -1566618693L;
} }
...@@ -109,5 +109,5 @@ public class LatestBatteryGetResponse implements Cloneable, java.io.Serializable ...@@ -109,5 +109,5 @@ public class LatestBatteryGetResponse implements Cloneable, java.io.Serializable
record.__read(__is); record.__read(__is);
} }
public static final long serialVersionUID = -2877914185822174361L; public static final long serialVersionUID = -1140653209L;
} }
...@@ -108,5 +108,5 @@ public class LatestBsGetRequest implements Cloneable, java.io.Serializable ...@@ -108,5 +108,5 @@ public class LatestBsGetRequest implements Cloneable, java.io.Serializable
apType = __is.readInt(); apType = __is.readInt();
} }
public static final long serialVersionUID = 2219610927713197877L; public static final long serialVersionUID = -169107659L;
} }
...@@ -109,5 +109,5 @@ public class LatestBsGetResponse implements Cloneable, java.io.Serializable ...@@ -109,5 +109,5 @@ public class LatestBsGetResponse implements Cloneable, java.io.Serializable
record.__read(__is); record.__read(__is);
} }
public static final long serialVersionUID = -178554664728755429L; public static final long serialVersionUID = 2077917979L;
} }
...@@ -118,5 +118,5 @@ public class LatestGpsGetRequest implements Cloneable, java.io.Serializable ...@@ -118,5 +118,5 @@ public class LatestGpsGetRequest implements Cloneable, java.io.Serializable
extraMapReq = __is.readInt(); extraMapReq = __is.readInt();
} }
public static final long serialVersionUID = 7517151522641986759L; public static final long serialVersionUID = 1977402567L;
} }
...@@ -128,5 +128,5 @@ public class LatestGpsGetRequestWithBindTime implements Cloneable, java.io.Seria ...@@ -128,5 +128,5 @@ public class LatestGpsGetRequestWithBindTime implements Cloneable, java.io.Seria
bindTime = __is.readInt(); bindTime = __is.readInt();
} }
public static final long serialVersionUID = -1042044385408153790L; public static final long serialVersionUID = 126781250L;
} }
...@@ -109,5 +109,5 @@ public class LatestGpsGetResponse implements Cloneable, java.io.Serializable ...@@ -109,5 +109,5 @@ public class LatestGpsGetResponse implements Cloneable, java.io.Serializable
record.__read(__is); record.__read(__is);
} }
public static final long serialVersionUID = 8086121753060878350L; public static final long serialVersionUID = 1841342478L;
} }
...@@ -105,5 +105,5 @@ public class LatestGpsTimeGetResponse implements Cloneable, java.io.Serializable ...@@ -105,5 +105,5 @@ public class LatestGpsTimeGetResponse implements Cloneable, java.io.Serializable
gpsTime = __is.readInt(); gpsTime = __is.readInt();
} }
public static final long serialVersionUID = 5102733147753988679L; public static final long serialVersionUID = 796705351L;
} }
...@@ -118,5 +118,5 @@ public class LatestRgpsGetRequest implements Cloneable, java.io.Serializable ...@@ -118,5 +118,5 @@ public class LatestRgpsGetRequest implements Cloneable, java.io.Serializable
extraMapReq = __is.readInt(); extraMapReq = __is.readInt();
} }
public static final long serialVersionUID = -4501577091573261035L; public static final long serialVersionUID = 1337810197L;
} }
...@@ -109,5 +109,5 @@ public class LatestRgpsGetResponse implements Cloneable, java.io.Serializable ...@@ -109,5 +109,5 @@ public class LatestRgpsGetResponse implements Cloneable, java.io.Serializable
record.__read(__is); record.__read(__is);
} }
public static final long serialVersionUID = 3668854994918965916L; public static final long serialVersionUID = -258997604L;
} }
...@@ -118,5 +118,5 @@ public class LatestVoltageGetRequest implements Cloneable, java.io.Serializable ...@@ -118,5 +118,5 @@ public class LatestVoltageGetRequest implements Cloneable, java.io.Serializable
startTime = __is.readInt(); startTime = __is.readInt();
} }
public static final long serialVersionUID = -9181429822502246412L; public static final long serialVersionUID = -1013749772L;
} }
...@@ -109,5 +109,5 @@ public class LatestVoltageGetResponse implements Cloneable, java.io.Serializable ...@@ -109,5 +109,5 @@ public class LatestVoltageGetResponse implements Cloneable, java.io.Serializable
record.__read(__is); record.__read(__is);
} }
public static final long serialVersionUID = 8821412119478754888L; public static final long serialVersionUID = -1227137464L;
} }
...@@ -208,5 +208,5 @@ public class ParadeCarGpsRecord implements Cloneable, java.io.Serializable ...@@ -208,5 +208,5 @@ public class ParadeCarGpsRecord implements Cloneable, java.io.Serializable
storeTime = __is.readInt(); storeTime = __is.readInt();
} }
public static final long serialVersionUID = -2736245075478195016L; public static final long serialVersionUID = -508177224L;
} }
...@@ -128,5 +128,5 @@ public class RecentBsGetRequest implements Cloneable, java.io.Serializable ...@@ -128,5 +128,5 @@ public class RecentBsGetRequest implements Cloneable, java.io.Serializable
reqCount = __is.readInt(); reqCount = __is.readInt();
} }
public static final long serialVersionUID = -811609851158574195L; public static final long serialVersionUID = -176403571L;
} }
...@@ -105,5 +105,5 @@ public class RecentBsGetResponse implements Cloneable, java.io.Serializable ...@@ -105,5 +105,5 @@ public class RecentBsGetResponse implements Cloneable, java.io.Serializable
records = BsRecordsHelper.read(__is); records = BsRecordsHelper.read(__is);
} }
public static final long serialVersionUID = -8891443859913109256L; public static final long serialVersionUID = 361566456L;
} }
...@@ -138,5 +138,5 @@ public class RecentGpsGetRequest implements Cloneable, java.io.Serializable ...@@ -138,5 +138,5 @@ public class RecentGpsGetRequest implements Cloneable, java.io.Serializable
reqCount = __is.readInt(); reqCount = __is.readInt();
} }
public static final long serialVersionUID = -6820719026430746913L; public static final long serialVersionUID = -455549217L;
} }
...@@ -105,5 +105,5 @@ public class RecentGpsGetResponse implements Cloneable, java.io.Serializable ...@@ -105,5 +105,5 @@ public class RecentGpsGetResponse implements Cloneable, java.io.Serializable
records = GpsRecordsHelper.read(__is); records = GpsRecordsHelper.read(__is);
} }
public static final long serialVersionUID = -1901723550060578675L; public static final long serialVersionUID = -911935347L;
} }
...@@ -138,5 +138,5 @@ public class Sn2DdMapGetReq implements Cloneable, java.io.Serializable ...@@ -138,5 +138,5 @@ public class Sn2DdMapGetReq implements Cloneable, java.io.Serializable
reqCount = __is.readInt(); reqCount = __is.readInt();
} }
public static final long serialVersionUID = 8290705652123948662L; public static final long serialVersionUID = 1412159094L;
} }
...@@ -119,5 +119,5 @@ public class Sn2DdMapGetResponse implements Cloneable, java.io.Serializable ...@@ -119,5 +119,5 @@ public class Sn2DdMapGetResponse implements Cloneable, java.io.Serializable
historyMapRecords = SnMapRecordsHelper.read(__is); historyMapRecords = SnMapRecordsHelper.read(__is);
} }
public static final long serialVersionUID = -3630537116772333763L; public static final long serialVersionUID = 1256851261L;
} }
...@@ -125,5 +125,5 @@ public class SnMapRecord implements Cloneable, java.io.Serializable ...@@ -125,5 +125,5 @@ public class SnMapRecord implements Cloneable, java.io.Serializable
endTime = __is.readInt(); endTime = __is.readInt();
} }
public static final long serialVersionUID = -5320854073092267609L; public static final long serialVersionUID = 1604657575L;
} }
...@@ -138,5 +138,5 @@ public class VoltageGetRequest implements Cloneable, java.io.Serializable ...@@ -138,5 +138,5 @@ public class VoltageGetRequest implements Cloneable, java.io.Serializable
reqCount = __is.readInt(); reqCount = __is.readInt();
} }
public static final long serialVersionUID = -6991839028992347696L; public static final long serialVersionUID = -1909263920L;
} }
...@@ -125,5 +125,5 @@ public class VoltageGetResponse implements Cloneable, java.io.Serializable ...@@ -125,5 +125,5 @@ public class VoltageGetResponse implements Cloneable, java.io.Serializable
lastRecTime = __is.readInt(); lastRecTime = __is.readInt();
} }
public static final long serialVersionUID = -4671615821687396652L; public static final long serialVersionUID = 1429890772L;
} }
...@@ -115,5 +115,5 @@ public class VoltageRecord implements Cloneable, java.io.Serializable ...@@ -115,5 +115,5 @@ public class VoltageRecord implements Cloneable, java.io.Serializable
storeTime = __is.readInt(); storeTime = __is.readInt();
} }
public static final long serialVersionUID = 7218775353128459004L; public static final long serialVersionUID = -594470148L;
} }
...@@ -111,4 +111,7 @@ public interface _DaoGpsServiceDel extends Ice._ObjectDel ...@@ -111,4 +111,7 @@ public interface _DaoGpsServiceDel extends Ice._ObjectDel
boolean getParadeCarAlarmRecords(AlarmGetRequest req, AlarmGetResponseHolder res, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __obsv) boolean getParadeCarAlarmRecords(AlarmGetRequest req, AlarmGetResponseHolder res, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __obsv)
throws IceInternal.LocalExceptionWrapper; throws IceInternal.LocalExceptionWrapper;
boolean convGeoGps(ConvRequest req, ConvResponseResultHolder rsp, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __obsv)
throws IceInternal.LocalExceptionWrapper;
} }
...@@ -22,6 +22,58 @@ package com.glsx.ice.HDaoGps; ...@@ -22,6 +22,58 @@ package com.glsx.ice.HDaoGps;
public final class _DaoGpsServiceDelD extends Ice._ObjectDelD implements _DaoGpsServiceDel public final class _DaoGpsServiceDelD extends Ice._ObjectDelD implements _DaoGpsServiceDel
{ {
public boolean convGeoGps(final ConvRequest req, final ConvResponseResultHolder rsp, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
final Ice.Current __current = new Ice.Current();
__initCurrent(__current, "convGeoGps", Ice.OperationMode.Normal, __ctx);
final Ice.BooleanHolder __result = new Ice.BooleanHolder();
IceInternal.Direct __direct = null;
try
{
__direct = new IceInternal.Direct(__current)
{
public Ice.DispatchStatus run(Ice.Object __obj)
{
DaoGpsService __servant = null;
if(__obj == null || __obj instanceof DaoGpsService)
{
__servant = (DaoGpsService)__obj;
}
else
{
throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
}
__result.value = __servant.convGeoGps(req, rsp, __current);
return Ice.DispatchStatus.DispatchOK;
}
};
try
{
Ice.DispatchStatus __status = __direct.getServant().__collocDispatch(__direct);
if(__status == Ice.DispatchStatus.DispatchUserException)
{
__direct.throwUserException();
}
assert __status == Ice.DispatchStatus.DispatchOK;
return __result.value;
}
finally
{
__direct.destroy();
}
}
catch(Ice.SystemException __ex)
{
throw __ex;
}
catch(Throwable __ex)
{
IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
}
return __result.value;
}
public boolean getBsRecords(final BsGetRequest req, final BsGetResponseHolder res, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer) public boolean getBsRecords(final BsGetRequest req, final BsGetResponseHolder res, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper throws IceInternal.LocalExceptionWrapper
{ {
......
...@@ -23,6 +23,56 @@ package com.glsx.ice.HDaoGps; ...@@ -23,6 +23,56 @@ package com.glsx.ice.HDaoGps;
public final class _DaoGpsServiceDelM extends Ice._ObjectDelM implements _DaoGpsServiceDel public final class _DaoGpsServiceDelM extends Ice._ObjectDelM implements _DaoGpsServiceDel
{ {
public boolean public boolean
convGeoGps(ConvRequest req, ConvResponseResultHolder rsp, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
IceInternal.Outgoing __og = __handler.getOutgoing("convGeoGps", Ice.OperationMode.Normal, __ctx, __observer);
try
{
try
{
IceInternal.BasicStream __os = __og.startWriteParams(Ice.FormatType.DefaultFormat);
req.__write(__os);
__og.endWriteParams();
}
catch(Ice.LocalException __ex)
{
__og.abort(__ex);
}
boolean __ok = __og.invoke();
try
{
if(!__ok)
{
try
{
__og.throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __og.startReadParams();
rsp.value = new ConvResponseResult();
rsp.value.__read(__is);
boolean __ret;
__ret = __is.readBool();
__og.endReadParams();
return __ret;
}
catch(Ice.LocalException __ex)
{
throw new IceInternal.LocalExceptionWrapper(__ex, false);
}
}
finally
{
__handler.reclaimOutgoing(__og);
}
}
public boolean
getBsRecords(BsGetRequest req, BsGetResponseHolder res, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer) getBsRecords(BsGetRequest req, BsGetResponseHolder res, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper throws IceInternal.LocalExceptionWrapper
{ {
......
...@@ -70,6 +70,11 @@ public abstract class _DaoGpsServiceDisp extends Ice.ObjectImpl implements DaoGp ...@@ -70,6 +70,11 @@ public abstract class _DaoGpsServiceDisp extends Ice.ObjectImpl implements DaoGp
return __ids[0]; return __ids[0];
} }
public final boolean convGeoGps(ConvRequest req, ConvResponseResultHolder rsp)
{
return convGeoGps(req, rsp, null);
}
public final boolean getBsRecords(BsGetRequest req, BsGetResponseHolder res) public final boolean getBsRecords(BsGetRequest req, BsGetResponseHolder res)
{ {
return getBsRecords(req, res, null); return getBsRecords(req, res, null);
...@@ -730,8 +735,26 @@ public abstract class _DaoGpsServiceDisp extends Ice.ObjectImpl implements DaoGp ...@@ -730,8 +735,26 @@ public abstract class _DaoGpsServiceDisp extends Ice.ObjectImpl implements DaoGp
return Ice.DispatchStatus.DispatchOK; return Ice.DispatchStatus.DispatchOK;
} }
public static Ice.DispatchStatus ___convGeoGps(DaoGpsService __obj, IceInternal.Incoming __inS, Ice.Current __current)
{
__checkMode(Ice.OperationMode.Normal, __current.mode);
IceInternal.BasicStream __is = __inS.startReadParams();
ConvRequest req;
req = new ConvRequest();
req.__read(__is);
__inS.endReadParams();
ConvResponseResultHolder rsp = new ConvResponseResultHolder();
boolean __ret = __obj.convGeoGps(req, rsp, __current);
IceInternal.BasicStream __os = __inS.__startWriteParams(Ice.FormatType.DefaultFormat);
rsp.value.__write(__os);
__os.writeBool(__ret);
__inS.__endWriteParams(true);
return Ice.DispatchStatus.DispatchOK;
}
private final static String[] __all = private final static String[] __all =
{ {
"convGeoGps",
"getBsRecords", "getBsRecords",
"getBsWorkModeRecords", "getBsWorkModeRecords",
"getDataCardInfo", "getDataCardInfo",
...@@ -780,138 +803,142 @@ public abstract class _DaoGpsServiceDisp extends Ice.ObjectImpl implements DaoGp ...@@ -780,138 +803,142 @@ public abstract class _DaoGpsServiceDisp extends Ice.ObjectImpl implements DaoGp
{ {
case 0: case 0:
{ {
return ___getBsRecords(this, in, __current); return ___convGeoGps(this, in, __current);
} }
case 1: case 1:
{ {
return ___getBsWorkModeRecords(this, in, __current); return ___getBsRecords(this, in, __current);
} }
case 2: case 2:
{ {
return ___getDataCardInfo(this, in, __current); return ___getBsWorkModeRecords(this, in, __current);
} }
case 3: case 3:
{ {
return ___getDayLastGpsRecord(this, in, __current); return ___getDataCardInfo(this, in, __current);
} }
case 4: case 4:
{ {
return ___getDevicesGpsInfo(this, in, __current); return ___getDayLastGpsRecord(this, in, __current);
} }
case 5: case 5:
{ {
return ___getFirstBsRecord(this, in, __current); return ___getDevicesGpsInfo(this, in, __current);
} }
case 6: case 6:
{ {
return ___getFirstGpsBsRecord(this, in, __current); return ___getFirstBsRecord(this, in, __current);
} }
case 7: case 7:
{ {
return ___getFirstGpsRecord(this, in, __current); return ___getFirstGpsBsRecord(this, in, __current);
} }
case 8: case 8:
{ {
return ___getGpsBsRecords(this, in, __current); return ___getFirstGpsRecord(this, in, __current);
} }
case 9: case 9:
{ {
return ___getGpsRecords(this, in, __current); return ___getGpsBsRecords(this, in, __current);
} }
case 10: case 10:
{ {
return ___getGpsRecordsByImei(this, in, __current); return ___getGpsRecords(this, in, __current);
} }
case 11: case 11:
{ {
return ___getGpsRecordsByMapSn(this, in, __current); return ___getGpsRecordsByImei(this, in, __current);
} }
case 12: case 12:
{ {
return ___getGpsRecordsEx(this, in, __current); return ___getGpsRecordsByMapSn(this, in, __current);
} }
case 13: case 13:
{ {
return ___getGpsWorkModeRecords(this, in, __current); return ___getGpsRecordsEx(this, in, __current);
} }
case 14: case 14:
{ {
return ___getLatestBatteryRecord(this, in, __current); return ___getGpsWorkModeRecords(this, in, __current);
} }
case 15: case 15:
{ {
return ___getLatestBsRecord(this, in, __current); return ___getLatestBatteryRecord(this, in, __current);
} }
case 16: case 16:
{ {
return ___getLatestGpsRecord(this, in, __current); return ___getLatestBsRecord(this, in, __current);
} }
case 17: case 17:
{ {
return ___getLatestGpsRecordByImei(this, in, __current); return ___getLatestGpsRecord(this, in, __current);
} }
case 18: case 18:
{ {
return ___getLatestGpsRecordByMapSn(this, in, __current); return ___getLatestGpsRecordByImei(this, in, __current);
} }
case 19: case 19:
{ {
return ___getLatestGpsTime(this, in, __current); return ___getLatestGpsRecordByMapSn(this, in, __current);
} }
case 20: case 20:
{ {
return ___getLatestLocationByLbsRecord(this, in, __current); return ___getLatestGpsTime(this, in, __current);
} }
case 21: case 21:
{ {
return ___getLatestRgpsRecord(this, in, __current); return ___getLatestLocationByLbsRecord(this, in, __current);
} }
case 22: case 22:
{ {
return ___getLatestVolRecord(this, in, __current); return ___getLatestRgpsRecord(this, in, __current);
} }
case 23: case 23:
{ {
return ___getMaxVolDiff(this, in, __current); return ___getLatestVolRecord(this, in, __current);
} }
case 24: case 24:
{ {
return ___getParadeCarAlarmRecords(this, in, __current); return ___getMaxVolDiff(this, in, __current);
} }
case 25: case 25:
{ {
return ___getParadeCarGpsRecords(this, in, __current); return ___getParadeCarAlarmRecords(this, in, __current);
} }
case 26: case 26:
{ {
return ___getRecentBsRecords(this, in, __current); return ___getParadeCarGpsRecords(this, in, __current);
} }
case 27: case 27:
{ {
return ___getRecentGpsRecords(this, in, __current); return ___getRecentBsRecords(this, in, __current);
} }
case 28: case 28:
{ {
return ___getSnMapRecords(this, in, __current); return ___getRecentGpsRecords(this, in, __current);
} }
case 29: case 29:
{ {
return ___getVoltageRecords(this, in, __current); return ___getSnMapRecords(this, in, __current);
} }
case 30: case 30:
{ {
return ___ice_id(this, in, __current); return ___getVoltageRecords(this, in, __current);
} }
case 31: case 31:
{ {
return ___ice_ids(this, in, __current); return ___ice_id(this, in, __current);
} }
case 32: case 32:
{ {
return ___ice_isA(this, in, __current); return ___ice_ids(this, in, __current);
} }
case 33: case 33:
{ {
return ___ice_isA(this, in, __current);
}
case 34:
{
return ___ice_ping(this, in, __current); return ___ice_ping(this, in, __current);
} }
} }
......
...@@ -81,4 +81,6 @@ public interface _DaoGpsServiceOperations ...@@ -81,4 +81,6 @@ public interface _DaoGpsServiceOperations
boolean getParadeCarGpsRecords(GpsGetRequest req, GpsParadeCarGetResponseHolder res, Ice.Current __current); boolean getParadeCarGpsRecords(GpsGetRequest req, GpsParadeCarGetResponseHolder res, Ice.Current __current);
boolean getParadeCarAlarmRecords(AlarmGetRequest req, AlarmGetResponseHolder res, Ice.Current __current); boolean getParadeCarAlarmRecords(AlarmGetRequest req, AlarmGetResponseHolder res, Ice.Current __current);
boolean convGeoGps(ConvRequest req, ConvResponseResultHolder rsp, Ice.Current __current);
} }
...@@ -81,4 +81,6 @@ public interface _DaoGpsServiceOperationsNC ...@@ -81,4 +81,6 @@ public interface _DaoGpsServiceOperationsNC
boolean getParadeCarGpsRecords(GpsGetRequest req, GpsParadeCarGetResponseHolder res); boolean getParadeCarGpsRecords(GpsGetRequest req, GpsParadeCarGetResponseHolder res);
boolean getParadeCarAlarmRecords(AlarmGetRequest req, AlarmGetResponseHolder res); boolean getParadeCarAlarmRecords(AlarmGetRequest req, AlarmGetResponseHolder res);
boolean convGeoGps(ConvRequest req, ConvResponseResultHolder rsp);
} }
...@@ -129,5 +129,5 @@ public class DailyMileRecord implements Cloneable, java.io.Serializable ...@@ -129,5 +129,5 @@ public class DailyMileRecord implements Cloneable, java.io.Serializable
duration = __is.readLong(); duration = __is.readLong();
} }
public static final long serialVersionUID = 1388446688789285018L; public static final long serialVersionUID = 987383962L;
} }
...@@ -26,5 +26,5 @@ package com.glsx.ice.HDaoMile; ...@@ -26,5 +26,5 @@ package com.glsx.ice.HDaoMile;
public interface DaoMileService extends Ice.Object, public interface DaoMileService extends Ice.Object,
_DaoMileServiceOperations, _DaoMileServiceOperationsNC _DaoMileServiceOperations, _DaoMileServiceOperationsNC
{ {
public static final long serialVersionUID = -3189819462676856L; public static final long serialVersionUID = 1208454792L;
} }
...@@ -118,5 +118,5 @@ public class Date implements Cloneable, java.io.Serializable ...@@ -118,5 +118,5 @@ public class Date implements Cloneable, java.io.Serializable
day = __is.readInt(); day = __is.readInt();
} }
public static final long serialVersionUID = -3557880322531387628L; public static final long serialVersionUID = 1982469908L;
} }
...@@ -133,5 +133,5 @@ public class GetDailyMileRecordsReq implements Cloneable, java.io.Serializable ...@@ -133,5 +133,5 @@ public class GetDailyMileRecordsReq implements Cloneable, java.io.Serializable
endDate.__read(__is); endDate.__read(__is);
} }
public static final long serialVersionUID = 1749394467424814927L; public static final long serialVersionUID = -622606513L;
} }
...@@ -115,5 +115,5 @@ public class GetDailyMileRecordsRes implements Cloneable, java.io.Serializable ...@@ -115,5 +115,5 @@ public class GetDailyMileRecordsRes implements Cloneable, java.io.Serializable
dailMileRecords = DailyMileRecordsHelper.read(__is); dailMileRecords = DailyMileRecordsHelper.read(__is);
} }
public static final long serialVersionUID = 860531407694653936L; public static final long serialVersionUID = -1984632336L;
} }
...@@ -153,5 +153,5 @@ public class GetJourneyRecordsReq implements Cloneable, java.io.Serializable ...@@ -153,5 +153,5 @@ public class GetJourneyRecordsReq implements Cloneable, java.io.Serializable
extraMapReq = __is.readInt(); extraMapReq = __is.readInt();
} }
public static final long serialVersionUID = -9039673465073817988L; public static final long serialVersionUID = -1262475652L;
} }
...@@ -115,5 +115,5 @@ public class GetJourneyRecordsRes implements Cloneable, java.io.Serializable ...@@ -115,5 +115,5 @@ public class GetJourneyRecordsRes implements Cloneable, java.io.Serializable
jourRecords = JourneyRecordsHelper.read(__is); jourRecords = JourneyRecordsHelper.read(__is);
} }
public static final long serialVersionUID = -6463256744445455525L; public static final long serialVersionUID = 388911963L;
} }
...@@ -133,5 +133,5 @@ public class GetMonthMileRecordsReq implements Cloneable, java.io.Serializable ...@@ -133,5 +133,5 @@ public class GetMonthMileRecordsReq implements Cloneable, java.io.Serializable
endMonth.__read(__is); endMonth.__read(__is);
} }
public static final long serialVersionUID = -4331670095660921786L; public static final long serialVersionUID = -2014131130L;
} }
...@@ -115,5 +115,5 @@ public class GetMonthMileRecordsRes implements Cloneable, java.io.Serializable ...@@ -115,5 +115,5 @@ public class GetMonthMileRecordsRes implements Cloneable, java.io.Serializable
monMileRecords = MonthMileRecordsHelper.read(__is); monMileRecords = MonthMileRecordsHelper.read(__is);
} }
public static final long serialVersionUID = -2247324541816718315L; public static final long serialVersionUID = 1845443605L;
} }
...@@ -136,5 +136,5 @@ public class GetMonthResideRecordsReq implements Cloneable, java.io.Serializable ...@@ -136,5 +136,5 @@ public class GetMonthResideRecordsReq implements Cloneable, java.io.Serializable
endMonth.__read(__is); endMonth.__read(__is);
} }
public static final long serialVersionUID = 1886382545766531079L; public static final long serialVersionUID = 1323909127L;
} }
...@@ -115,5 +115,5 @@ public class GetMonthResideRecordsRes implements Cloneable, java.io.Serializable ...@@ -115,5 +115,5 @@ public class GetMonthResideRecordsRes implements Cloneable, java.io.Serializable
monResideRecords = MonthResideRecordsHelper.read(__is); monResideRecords = MonthResideRecordsHelper.read(__is);
} }
public static final long serialVersionUID = 8316678178853794869L; public static final long serialVersionUID = 1909634101L;
} }
...@@ -143,5 +143,5 @@ public class GetOverSpeedRecordsReq implements Cloneable, java.io.Serializable ...@@ -143,5 +143,5 @@ public class GetOverSpeedRecordsReq implements Cloneable, java.io.Serializable
extraMapReq = __is.readInt(); extraMapReq = __is.readInt();
} }
public static final long serialVersionUID = 431146081780692949L; public static final long serialVersionUID = -1160316971L;
} }
...@@ -115,5 +115,5 @@ public class GetOverSpeedRecordsRes implements Cloneable, java.io.Serializable ...@@ -115,5 +115,5 @@ public class GetOverSpeedRecordsRes implements Cloneable, java.io.Serializable
overSpdRecords = OverSpeedRecordsHelper.read(__is); overSpdRecords = OverSpeedRecordsHelper.read(__is);
} }
public static final long serialVersionUID = -6183393027398084567L; public static final long serialVersionUID = 2001688617L;
} }
...@@ -176,5 +176,5 @@ public class GetStayPointRecordsReq implements Cloneable, java.io.Serializable ...@@ -176,5 +176,5 @@ public class GetStayPointRecordsReq implements Cloneable, java.io.Serializable
extraMapReq = __is.readInt(); extraMapReq = __is.readInt();
} }
public static final long serialVersionUID = 768292535077320523L; public static final long serialVersionUID = 1960720203L;
} }
...@@ -115,5 +115,5 @@ public class GetStayPointRecordsRes implements Cloneable, java.io.Serializable ...@@ -115,5 +115,5 @@ public class GetStayPointRecordsRes implements Cloneable, java.io.Serializable
stayPoints = StayPointRecordsHelper.read(__is); stayPoints = StayPointRecordsHelper.read(__is);
} }
public static final long serialVersionUID = -9018067402838062396L; public static final long serialVersionUID = 357485252L;
} }
...@@ -138,5 +138,5 @@ public class GetTotalMileageReq implements Cloneable, java.io.Serializable ...@@ -138,5 +138,5 @@ public class GetTotalMileageReq implements Cloneable, java.io.Serializable
bReqDailyRecord = __is.readInt(); bReqDailyRecord = __is.readInt();
} }
public static final long serialVersionUID = 4935223601545088542L; public static final long serialVersionUID = -1187508706L;
} }
...@@ -145,5 +145,5 @@ public class GetTotalMileageRes implements Cloneable, java.io.Serializable ...@@ -145,5 +145,5 @@ public class GetTotalMileageRes implements Cloneable, java.io.Serializable
dailMileRecords = DailyMileRecordsHelper.read(__is); dailMileRecords = DailyMileRecordsHelper.read(__is);
} }
public static final long serialVersionUID = 4144556716548328130L; public static final long serialVersionUID = -112031038L;
} }
...@@ -145,5 +145,5 @@ public class GpsLoc implements Cloneable, java.io.Serializable ...@@ -145,5 +145,5 @@ public class GpsLoc implements Cloneable, java.io.Serializable
blat = __is.readInt(); blat = __is.readInt();
} }
public static final long serialVersionUID = 1798146885336343516L; public static final long serialVersionUID = -1301109796L;
} }
...@@ -131,5 +131,5 @@ public class GpsPos implements Cloneable, java.io.Serializable ...@@ -131,5 +131,5 @@ public class GpsPos implements Cloneable, java.io.Serializable
addr = __is.readString(); addr = __is.readString();
} }
public static final long serialVersionUID = 952254392403369586L; public static final long serialVersionUID = 453123698L;
} }
...@@ -179,5 +179,5 @@ public class JourneyRecord implements Cloneable, java.io.Serializable ...@@ -179,5 +179,5 @@ public class JourneyRecord implements Cloneable, java.io.Serializable
mileage = __is.readInt(); mileage = __is.readInt();
} }
public static final long serialVersionUID = -7657411183325284371L; public static final long serialVersionUID = 1993013229L;
} }
...@@ -118,5 +118,5 @@ public class MileStatBeginRequest implements Cloneable, java.io.Serializable ...@@ -118,5 +118,5 @@ public class MileStatBeginRequest implements Cloneable, java.io.Serializable
beginTime = __is.readInt(); beginTime = __is.readInt();
} }
public static final long serialVersionUID = -2092756745941984755L; public static final long serialVersionUID = -724346355L;
} }
...@@ -95,5 +95,5 @@ public class MileStatBeginResponse implements Cloneable, java.io.Serializable ...@@ -95,5 +95,5 @@ public class MileStatBeginResponse implements Cloneable, java.io.Serializable
oprResult = __is.readInt(); oprResult = __is.readInt();
} }
public static final long serialVersionUID = -7747856324232805252L; public static final long serialVersionUID = 391578748L;
} }
...@@ -138,5 +138,5 @@ public class MileStatEndRequest implements Cloneable, java.io.Serializable ...@@ -138,5 +138,5 @@ public class MileStatEndRequest implements Cloneable, java.io.Serializable
bRetGpsTime = __is.readBool(); bRetGpsTime = __is.readBool();
} }
public static final long serialVersionUID = -6875643837172510481L; public static final long serialVersionUID = -616918801L;
} }
...@@ -183,5 +183,5 @@ public class MileStatEndResponse implements Cloneable, java.io.Serializable ...@@ -183,5 +183,5 @@ public class MileStatEndResponse implements Cloneable, java.io.Serializable
gpsEndTime = __is.readInt(); gpsEndTime = __is.readInt();
} }
public static final long serialVersionUID = -2311270876280708706L; public static final long serialVersionUID = 932520350L;
} }
...@@ -128,5 +128,5 @@ public class MileStatRequest implements Cloneable, java.io.Serializable ...@@ -128,5 +128,5 @@ public class MileStatRequest implements Cloneable, java.io.Serializable
endTime = __is.readInt(); endTime = __is.readInt();
} }
public static final long serialVersionUID = 847881566013612727L; public static final long serialVersionUID = -1042816329L;
} }
...@@ -163,5 +163,5 @@ public class MileStatResponse implements Cloneable, java.io.Serializable ...@@ -163,5 +163,5 @@ public class MileStatResponse implements Cloneable, java.io.Serializable
maxSpeed = __is.readInt(); maxSpeed = __is.readInt();
} }
public static final long serialVersionUID = 98359576093580437L; public static final long serialVersionUID = 1766907029L;
} }
...@@ -108,5 +108,5 @@ public class Month implements Cloneable, java.io.Serializable ...@@ -108,5 +108,5 @@ public class Month implements Cloneable, java.io.Serializable
mon = __is.readInt(); mon = __is.readInt();
} }
public static final long serialVersionUID = 4017350342780951895L; public static final long serialVersionUID = 398499159L;
} }
...@@ -169,5 +169,5 @@ public class MonthMileRecord implements Cloneable, java.io.Serializable ...@@ -169,5 +169,5 @@ public class MonthMileRecord implements Cloneable, java.io.Serializable
whichMonth.__read(__is); whichMonth.__read(__is);
} }
public static final long serialVersionUID = -1732952889815654586L; public static final long serialVersionUID = 1041047366L;
} }
...@@ -198,5 +198,5 @@ public class MonthResideRecord implements Cloneable, java.io.Serializable ...@@ -198,5 +198,5 @@ public class MonthResideRecord implements Cloneable, java.io.Serializable
whichMonth.__read(__is); whichMonth.__read(__is);
} }
public static final long serialVersionUID = 2025239712380154678L; public static final long serialVersionUID = -915475658L;
} }
...@@ -153,5 +153,5 @@ public class OverSpeedRecord implements Cloneable, java.io.Serializable ...@@ -153,5 +153,5 @@ public class OverSpeedRecord implements Cloneable, java.io.Serializable
averageSpeed = __is.readInt(); averageSpeed = __is.readInt();
} }
public static final long serialVersionUID = 5793266288394420666L; public static final long serialVersionUID = -922828358L;
} }
...@@ -129,5 +129,5 @@ public class StayPointRecord implements Cloneable, java.io.Serializable ...@@ -129,5 +129,5 @@ public class StayPointRecord implements Cloneable, java.io.Serializable
stayGps.__read(__is); stayGps.__read(__is);
} }
public static final long serialVersionUID = -6813191550394355205L; public static final long serialVersionUID = -66244101L;
} }
...@@ -23,5 +23,5 @@ package com.glsx.ice.POI; ...@@ -23,5 +23,5 @@ package com.glsx.ice.POI;
public interface IPOISearchFTR extends Ice.Object, public interface IPOISearchFTR extends Ice.Object,
_IPOISearchFTROperations, _IPOISearchFTROperationsNC _IPOISearchFTROperations, _IPOISearchFTROperationsNC
{ {
public static final long serialVersionUID = -6564089211019779398L; public static final long serialVersionUID = -13557062L;
} }
...@@ -23,5 +23,5 @@ package com.glsx.ice.POI; ...@@ -23,5 +23,5 @@ package com.glsx.ice.POI;
public interface IPOISearchNear extends Ice.Object, public interface IPOISearchNear extends Ice.Object,
_IPOISearchNearOperations, _IPOISearchNearOperationsNC _IPOISearchNearOperations, _IPOISearchNearOperationsNC
{ {
public static final long serialVersionUID = -6553258658088847870L; public static final long serialVersionUID = -1688439294L;
} }
...@@ -119,5 +119,5 @@ public class geocoding_result implements Cloneable, java.io.Serializable ...@@ -119,5 +119,5 @@ public class geocoding_result implements Cloneable, java.io.Serializable
pt.__read(__is); pt.__read(__is);
} }
public static final long serialVersionUID = 4552966326190683359L; public static final long serialVersionUID = 1122579679L;
} }
...@@ -105,5 +105,5 @@ public class geopoint implements Cloneable, java.io.Serializable ...@@ -105,5 +105,5 @@ public class geopoint implements Cloneable, java.io.Serializable
lat = __is.readFloat(); lat = __is.readFloat();
} }
public static final long serialVersionUID = -8161111944143154880L; public static final long serialVersionUID = 489050432L;
} }
...@@ -194,5 +194,5 @@ public class poi_info_t implements Cloneable, java.io.Serializable ...@@ -194,5 +194,5 @@ public class poi_info_t implements Cloneable, java.io.Serializable
distance = __is.readInt(); distance = __is.readInt();
} }
public static final long serialVersionUID = -2365766525795353480L; public static final long serialVersionUID = 276118648L;
} }
...@@ -3,10 +3,11 @@ package com.glsx.ice.iceClient; ...@@ -3,10 +3,11 @@ package com.glsx.ice.iceClient;
import com.glsx.config.SystemProperty; import com.glsx.config.SystemProperty;
import com.glsx.ice.DISTRICT.IDistrictFinderPrx; import com.glsx.ice.DISTRICT.IDistrictFinderPrx;
import com.glsx.ice.DISTRICT.IDistrictFinderPrxHelper; import com.glsx.ice.DISTRICT.IDistrictFinderPrxHelper;
import com.glsx.model.DTO.DistDetilDto;
import com.glsx.model.DTO.DistInfoDto;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import java.util.HashMap;
import java.util.Map;
@Slf4j @Slf4j
public class IceDistrictClient { public class IceDistrictClient {
static String url = SystemProperty.getProperty("ice.districUrl"); static String url = SystemProperty.getProperty("ice.districUrl");
...@@ -19,7 +20,7 @@ public class IceDistrictClient { ...@@ -19,7 +20,7 @@ public class IceDistrictClient {
* *
* @return * @return
*/ */
public static DistInfoDto getDistInfoByPos(float lng, float lat) { public static Map<String, Object> getDistInfoByPos(float lng, float lat) {
try { try {
if (prx == null) { if (prx == null) {
throw new Exception("Invalid proxy"); throw new Exception("Invalid proxy");
...@@ -29,14 +30,13 @@ public class IceDistrictClient { ...@@ -29,14 +30,13 @@ public class IceDistrictClient {
Ice.StringHolder strDistName = new Ice.StringHolder(); Ice.StringHolder strDistName = new Ice.StringHolder();
boolean res = prx.get_distinfo_by_pos(lng, lat, distCode, strDistName); boolean res = prx.get_distinfo_by_pos(lng, lat, distCode, strDistName);
DistInfoDto infoDto = null; Map<String,Object> infoDto = null;
if (res) { if (res) {
int dist_code = distCode.value; infoDto = new HashMap<>();
String dist_name = strDistName.value; //行政编码
infoDto = new DistInfoDto(); infoDto.put("dist_code",distCode.value);
infoDto.setDist_code(dist_code); //行政区域名称
infoDto.setDist_name(dist_name); infoDto.put("dist_name",strDistName.value);
log.info("success===getDistInfoByPos:" + distCode + "==" + strDistName);
return infoDto; return infoDto;
} }
} catch (Ice.LocalException e) { } catch (Ice.LocalException e) {
...@@ -52,28 +52,29 @@ public class IceDistrictClient { ...@@ -52,28 +52,29 @@ public class IceDistrictClient {
* *
* @return * @return
*/ */
public static DistDetilDto getDistDetailByPos(float lng, float lat) { public static Map<String, Object> getDistDetailByPos(float lng, float lat) {
try { try {
if (prx == null) { if (prx == null) {
throw new Exception("Invalid proxy"); throw new Exception("Invalid proxy");
} }
Ice.StringHolder strProvName = new Ice.StringHolder(); Ice.StringHolder strProvName = new Ice.StringHolder();
Ice.StringHolder strCityName = new Ice.StringHolder(); Ice.StringHolder strCityName = new Ice.StringHolder();
Ice.StringHolder strCountyName = new Ice.StringHolder(); Ice.StringHolder strCountyName = new Ice.StringHolder();
boolean res = prx.get_distdetail_by_pos(lng, lat, strProvName, strCityName, strCountyName); boolean res = prx.get_distdetail_by_pos(lng, lat, strProvName, strCityName, strCountyName);
DistDetilDto detilDto = null; Map<String,Object> detilDto = null;
if (res) { if (res) {
String provName = strProvName.value; String provName = strProvName.value;
String cityName = strCityName.value; String cityName = strCityName.value;
String countyName = strCountyName.value; String countyName = strCountyName.value;
detilDto = new DistDetilDto(); detilDto = new HashMap<>();
detilDto.setProv_name(provName); //所属省份
detilDto.setCity_name(cityName); detilDto.put("prov_name",provName);
detilDto.setCounty_name(countyName); //所属城市
log.info("success===getDistDetailByPos:" + provName + "==" + cityName + "==" + countyName); detilDto.put("city_name",cityName);
//所属县城
detilDto.put("county_name",countyName);
return detilDto; return detilDto;
} }
} catch (Ice.LocalException e) { } catch (Ice.LocalException e) {
......
...@@ -5,10 +5,10 @@ import com.glsx.ice.HDaoGps.*; ...@@ -5,10 +5,10 @@ import com.glsx.ice.HDaoGps.*;
import com.glsx.model.DTO.*; import com.glsx.model.DTO.*;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@Slf4j @Slf4j
...@@ -93,7 +93,6 @@ public class IceHDaoGpsClient { ...@@ -93,7 +93,6 @@ public class IceHDaoGpsClient {
if (prx == null) { if (prx == null) {
throw new Exception("Invalid proxy"); throw new Exception("Invalid proxy");
} }
// 第2个参数:2: OBD; 4: DDbox(DVD) 5: Tracker 6: rearMirror 7: car recorder // 第2个参数:2: OBD; 4: DDbox(DVD) 5: Tracker 6: rearMirror 7: car recorder
BatchGpsDevInfoResponseHolder res = new BatchGpsDevInfoResponseHolder(); BatchGpsDevInfoResponseHolder res = new BatchGpsDevInfoResponseHolder();
boolean ret = false; boolean ret = false;
...@@ -134,7 +133,7 @@ public class IceHDaoGpsClient { ...@@ -134,7 +133,7 @@ public class IceHDaoGpsClient {
* @param endTime 结束时间 * @param endTime 结束时间
* @return * @return
*/ */
public static GpsRecordsDto getGpsRecords(int apType, Date startTime, Date endTime, long sn) { public static GpsRecordsDto getGpsRecords(int apType, Date startTime, Date endTime, long sn,Integer mapType) {
try { try {
if (prx == null) { if (prx == null) {
throw new Exception("Invalid proxy"); throw new Exception("Invalid proxy");
...@@ -148,7 +147,7 @@ public class IceHDaoGpsClient { ...@@ -148,7 +147,7 @@ public class IceHDaoGpsClient {
req.apType = apType; req.apType = apType;
req.startTime = new Long(startTime.getTime() / 1000).intValue(); req.startTime = new Long(startTime.getTime() / 1000).intValue();
req.endTime = new Long(endTime.getTime() / 1000).intValue(); req.endTime = new Long(endTime.getTime() / 1000).intValue();
req.extraMapReq = 1; req.extraMapReq = mapType;
req.userID = sn; req.userID = sn;
prx.getGpsRecords(req, res); prx.getGpsRecords(req, res);
...@@ -204,7 +203,7 @@ public class IceHDaoGpsClient { ...@@ -204,7 +203,7 @@ public class IceHDaoGpsClient {
//查询首次GPS点 //查询首次GPS点
public static FirstGpsRecordDto getFirstGpsRecord(int apType, long sn) { public static FirstGpsRecordDto getFirstGpsRecord(int apType, long sn,Integer mapType) {
try { try {
if (prx == null) { if (prx == null) {
throw new Exception("Invalid proxy"); throw new Exception("Invalid proxy");
...@@ -213,8 +212,9 @@ public class IceHDaoGpsClient { ...@@ -213,8 +212,9 @@ public class IceHDaoGpsClient {
GpsGetResponseHolder res = new GpsGetResponseHolder(new GpsGetResponse()); GpsGetResponseHolder res = new GpsGetResponseHolder(new GpsGetResponse());
GpsGetRequest req = new GpsGetRequest(); GpsGetRequest req = new GpsGetRequest();
req.apType = apType; req.apType = apType;
req.reqCount = 0; req.reqCount = 1;
req.userID = sn; req.userID = sn;
req.extraMapReq = mapType;
prx.getFirstGpsRecord(req, res); prx.getFirstGpsRecord(req, res);
if (res != null && res.value != null && res.value.oprResult == 0) { if (res != null && res.value != null && res.value.oprResult == 0) {
...@@ -240,7 +240,7 @@ public class IceHDaoGpsClient { ...@@ -240,7 +240,7 @@ public class IceHDaoGpsClient {
return null; return null;
} }
public static GpsRecordsDto getRecentGpsRecords(long sn, int apType, int reqCount) { public static GpsRecordsDto getRecentGpsRecords(long sn, int apType, int reqCount, Integer mapType) {
try { try {
if (prx == null) { if (prx == null) {
throw new Exception("Invalid proxy"); throw new Exception("Invalid proxy");
...@@ -251,6 +251,7 @@ public class IceHDaoGpsClient { ...@@ -251,6 +251,7 @@ public class IceHDaoGpsClient {
req.userID = sn; req.userID = sn;
req.apType = apType; req.apType = apType;
req.reqCount = reqCount; req.reqCount = reqCount;
req.extraMapReq = mapType;
prx.getRecentGpsRecords(req, res); prx.getRecentGpsRecords(req, res);
if (res != null && res.value != null && res.value.oprResult == 0) { if (res != null && res.value != null && res.value.oprResult == 0) {
...@@ -274,6 +275,8 @@ public class IceHDaoGpsClient { ...@@ -274,6 +275,8 @@ public class IceHDaoGpsClient {
BsRecordsDto bsRecordsDto = new BsRecordsDto(); BsRecordsDto bsRecordsDto = new BsRecordsDto();
RecentBsGetResponseHolder res = new RecentBsGetResponseHolder(new RecentBsGetResponse()); RecentBsGetResponseHolder res = new RecentBsGetResponseHolder(new RecentBsGetResponse());
RecentBsGetRequest req = new RecentBsGetRequest(); RecentBsGetRequest req = new RecentBsGetRequest();
//req.apSubType该字段用于最近的gps/bs查询,以加快查询过程
//当apType为5时,定义如下:0-保留,1-带线供电,2-无电线电源
req.apType = apType; req.apType = apType;
req.reqCount = reqCount; req.reqCount = reqCount;
req.userID = sn; req.userID = sn;
...@@ -292,24 +295,24 @@ public class IceHDaoGpsClient { ...@@ -292,24 +295,24 @@ public class IceHDaoGpsClient {
return null; return null;
} }
//todo 地图坐标校偏 public static Map<String, Object> convGeoGps(int lng, int lat, int maptype) {
public static BsRecordsDto convGeoGps(long sn, int apType, int reqCount) {
try { try {
if (prx == null) { if (prx == null) {
throw new Exception("Invalid proxy"); throw new Exception("Invalid proxy");
} }
BsRecordsDto bsRecordsDto = new BsRecordsDto(); ConvResponseResultHolder res = new ConvResponseResultHolder(new ConvResponseResult());
RecentBsGetResponseHolder res = new RecentBsGetResponseHolder(new RecentBsGetResponse()); ConvRequest req = new ConvRequest();
RecentBsGetRequest req = new RecentBsGetRequest(); req.lng = lng;
req.apType = apType; req.lat = lat;
req.reqCount = reqCount; req.type = ConvType.valueOf(maptype);
req.userID = sn; prx.convGeoGps(req,res);
Map<String, Object> map = null;
if (res != null && res.value != null && res.value.oprResult == 0) { if (res != null && res.value != null && res.value.oprResult == 0) {
BsRecord[] r = res.value.records; ConvResponse r = res.value.gps;
bsRecordsDto.setBsrecord(convertBsRecord(r)); map.put("lng",r.lng / 1000000D);
map.put("lat",r.lat / 1000000D);
return map;
} }
return bsRecordsDto;
} catch (Ice.LocalException e) { } catch (Ice.LocalException e) {
log.error("===getRecentBsRecords_ICE_EXCEP:" + e.getMessage(), e); log.error("===getRecentBsRecords_ICE_EXCEP:" + e.getMessage(), e);
} catch (Exception e) { } catch (Exception e) {
......
package com.glsx.ice.iceClient;
import Ice.Communicator;
import com.glsx.config.SystemProperty;
import com.glsx.ice.POI.IPOISearchFTRPrx;
import com.glsx.ice.POI.IPOISearchFTRPrxHelper;
import com.glsx.ice.POI.geocoding_result;
import com.glsx.ice.POI.geocoding_resultHolder;
import lombok.extern.slf4j.Slf4j;
import java.util.Map;
@Slf4j
public class IcePoiSearchFTRClient {
// ice接口服务器地址
private static String ICE_URL = SystemProperty.getProperty("ice.poisearchUrl");
static Communicator ic = Ice.Util.initialize();
static Ice.ObjectPrx base = ic.stringToProxy(ICE_URL).ice_timeout(Integer.parseInt(SystemProperty.getProperty("ice.connectTimeout")));
static IPOISearchFTRPrx ipoiSearchFTRPrx = IPOISearchFTRPrxHelper.checkedCast(base);
/**
* 通过逆地址解析
*
* @return
*/
public static Map<String,Object> Geocoding(String address) {
//请求和响应对象
geocoding_resultHolder res = new geocoding_resultHolder();
try {
if (ipoiSearchFTRPrx == null) {
log.error("mapGeoConvert ice添加服务异常 servicePre is null");
return null;
}
ipoiSearchFTRPrx.Geocoding(address,res);
Map<String, Object> map = null;
if (res != null && res.value != null) {
geocoding_result val = res.value;
//POI层级 0~7
map.put("level", val.level);
//可信度,分度越高越可信
map.put("confidence", val.confidence);
//经度
map.put("lng", val.pt.lng / 1000000D);
//纬度
map.put("lat", val.pt.lat / 1000000D);
return map;
}
} catch (Ice.LocalException e) {
log.error("Geocoding ice localexception" + e.getMessage(), e);
} catch (Exception e) {
log.error("Geocoding ice exception" + e.getMessage(), e);
}
log.info("Geocoding ice添加接口调用结束");
return null;
}
}
...@@ -3,20 +3,19 @@ package com.glsx.ice.iceClient; ...@@ -3,20 +3,19 @@ package com.glsx.ice.iceClient;
import Ice.Communicator; import Ice.Communicator;
import Ice.StringHolder; import Ice.StringHolder;
import com.glsx.config.SystemProperty; import com.glsx.config.SystemProperty;
import com.glsx.ice.poisearch.IPOISearchNearPrx; import com.glsx.ice.POI.IPOISearchNearPrx;
import com.glsx.ice.poisearch.IPOISearchNearPrxHelper; import com.glsx.ice.POI.IPOISearchNearPrxHelper;
import com.glsx.ice.poisearch.geopoint; import com.glsx.ice.POI.geopoint;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
@Slf4j @Slf4j
public class IcePoiSearchClient { public class IcePoiSearchNearClient {
// ice接口服务器地址 // ice接口服务器地址
private static String ICE_URL = SystemProperty.getProperty("ice.poisearchUrl"); private static String ICE_URL = SystemProperty.getProperty("ice.poisearchUrl");
static Communicator ic = Ice.Util.initialize(); static Communicator ic = Ice.Util.initialize();
static Ice.ObjectPrx base = ic.stringToProxy(ICE_URL).ice_timeout(Integer.parseInt(SystemProperty.getProperty("ice.connectTimeout"))); static Ice.ObjectPrx base = ic.stringToProxy(ICE_URL).ice_timeout(Integer.parseInt(SystemProperty.getProperty("ice.connectTimeout")));
static IPOISearchNearPrx poiSearchNearPrx = IPOISearchNearPrxHelper.checkedCast(base); static IPOISearchNearPrx poiSearchNearPrx = IPOISearchNearPrxHelper.checkedCast(base);
/** /**
* 通过逆地址解析 * 通过逆地址解析
* *
...@@ -25,8 +24,6 @@ public class IcePoiSearchClient { ...@@ -25,8 +24,6 @@ public class IcePoiSearchClient {
* @return * @return
*/ */
public static String getReverseGeocoding(float lat, float lng) { public static String getReverseGeocoding(float lat, float lng) {
String resultAddress = null;
//请求和响应对象 //请求和响应对象
geopoint ptCenterGeopoint = new geopoint(); geopoint ptCenterGeopoint = new geopoint();
ptCenterGeopoint.lng = lng; ptCenterGeopoint.lng = lng;
...@@ -35,26 +32,19 @@ public class IcePoiSearchClient { ...@@ -35,26 +32,19 @@ public class IcePoiSearchClient {
try { try {
if (poiSearchNearPrx == null) { if (poiSearchNearPrx == null) {
log.error("mapGeoConvert ice添加服务异常 servicePre is null"); log.error("mapGeoConvert ice添加服务异常 servicePre is null");
return resultAddress; return null;
} }
int geoRes = poiSearchNearPrx.ReverseGeocoding(ptCenterGeopoint, poiSearchHolder); int geoRes = poiSearchNearPrx.ReverseGeocoding(ptCenterGeopoint, poiSearchHolder);
if (geoRes != 0) { // 结果为 0 表示调用成功 String value = poiSearchHolder.value;
return resultAddress; if (geoRes == 0 && value != null && !StringUtils.isEmpty(value)) { // 结果为 0 表示调用成功
} return value;
if (poiSearchHolder.value == null
|| StringUtils.isEmpty(poiSearchHolder.value)) {
return resultAddress;
} }
resultAddress = poiSearchHolder.value;
} catch (Ice.LocalException e) { } catch (Ice.LocalException e) {
log.error("mapGeoConvert ice localexception" + e.getMessage(), e); log.error("mapGeoConvert ice localexception" + e.getMessage(), e);
} catch (Exception e) { } catch (Exception e) {
log.error("mapGeoConvert ice exception" + e.getMessage(), e); log.error("mapGeoConvert ice exception" + e.getMessage(), e);
} }
log.info("mapGeoConvert ice添加接口调用结束"); log.info("mapGeoConvert ice添加接口调用结束");
return resultAddress; return null;
} }
} }
package com.glsx.ice.iceClient; package com.glsx.ice.iceClient;
import Ice.Communicator; import Ice.Communicator;
import com.glsx.base.enums.MapTypeEnum;
import com.glsx.config.SystemProperty; import com.glsx.config.SystemProperty;
import com.glsx.ice.HDaoMile.Date;
import com.glsx.ice.HDaoMile.*; import com.glsx.ice.HDaoMile.*;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import lombok.val;
import java.text.SimpleDateFormat;
import java.util.*; import java.util.*;
import java.util.Date;
import java.util.stream.Collectors; import java.util.stream.Collectors;
/** /**
* 计算里程 * 计算里程
* @author Administrator
* *
* @author Administrator
*/ */
@Slf4j @Slf4j
public class IceRtMileStatClient { public class IceRtMileStatClient {
// ice接口服务器地址 // ice接口服务器地址
private static String ICE_URL = SystemProperty.getProperty("ice.mileUrl"); private static String ICE_URL = SystemProperty.getProperty("ice.mileUrl");
static Communicator ic = Ice.Util.initialize(); static Communicator ic = Ice.Util.initialize();
static Ice.ObjectPrx base = ic.stringToProxy(ICE_URL).ice_timeout(Integer.parseInt(SystemProperty.getProperty("ice.connectTimeout"))); static Ice.ObjectPrx base = ic.stringToProxy(ICE_URL).ice_timeout(Integer.parseInt(SystemProperty.getProperty("ice.connectTimeout")));
static DaoMileServicePrx mileagePrx = DaoMileServicePrxHelper.checkedCast(base); static DaoMileServicePrx mileagePrx = DaoMileServicePrxHelper.checkedCast(base);
/**
* 通过经纬度查询所属行政区域
*
* @return
*/
public static Map<String, Object> getJourneyByGpsRecords(long sn, int dType, int beginTime, int endTime) {
boolean result = false;
try {
if (mileagePrx == null) {
throw new Exception("Invalid proxy");
}
MileStatEndResponseHolder res = new MileStatEndResponseHolder(new MileStatEndResponse()); /**
MileStatEndRequest req = new MileStatEndRequest(); * 通过经纬度查询所属行政区域
req.userID = sn; *
req.apType = dType; * @return
req.beginTime = beginTime; */
req.endTime = endTime; public static Map<String, Object> getJourneyByGpsRecords(long sn, int dType, int beginTime, int endTime) {
try {
if (mileagePrx == null) {
throw new Exception("Invalid proxy");
}
mileagePrx.endUserMileStat(req, res); MileStatEndResponseHolder res = new MileStatEndResponseHolder(new MileStatEndResponse());
Map<String,Object> map = null; MileStatEndRequest req = new MileStatEndRequest();
if (res != null && res.value != null && res.value.oprResult == 0) { req.userID = sn;
MileStatEndResponse val = res.value; req.apType = dType;
map.put("sn",sn); //开始时间
map.put("mileage",val.mileage); req.beginTime = beginTime;
map.put("start_gpsinfo",convertGpsPos(val.beginPos)); //结束时间
map.put("end_gpsinfo",convertGpsPos(val.endPos)); req.endTime = endTime;
map.put("over80km_percent",val.over80Percent); //返回最后GPS记录时间
map.put("over120km_percent",val.over120Percent); req.bRetGpsTime = true;
map.put("maxspeed",val.maxSpeed);
return map;
}
} catch (Ice.LocalException e) { mileagePrx.endUserMileStat(req, res);
log.error("invoke ice getJourneyByGpsRecords ICE_exception" + e.getMessage(), e); Map<String, Object> map = null;
} catch (Exception e) { if (res != null && res.value != null && res.value.oprResult == 0) {
log.error("invoke ice getJourneyByGpsRecords exception" + e.getMessage(), e); MileStatEndResponse val = res.value;
} //设备号
return null; map.put("sn", sn);
} //行驶里程:单位(米)
map.put("mileage", val.mileage);
//行程开始信息
map.put("start_gpsinfo", convertGpsPos(val.beginPos));
//行程结束信息
map.put("end_gpsinfo", convertGpsPos(val.endPos));
//80~120km所占百分比
map.put("over80km_percent", val.over80Percent);
//120km以上所占百分比
map.put("over120km_percent", val.over120Percent);
//最大的速度
map.put("maxspeed", val.maxSpeed);
return map;
}
/** } catch (Ice.LocalException e) {
* 通过经纬度查询所属行政区域 log.error("invoke ice getJourneyByGpsRecords ICE_exception" + e.getMessage(), e);
* } catch (Exception e) {
* @return log.error("invoke ice getJourneyByGpsRecords exception" + e.getMessage(), e);
*/ }
public static Map<String, Object> getJourneyRecords(long sn, int dType, java.util.Date bgnDate, java.util.Date endDate) { return null;
try { }
if (mileagePrx == null) {
throw new Exception("Invalid proxy");
}
GetJourneyRecordsResHolder res = new GetJourneyRecordsResHolder(new GetJourneyRecordsRes()); /**
GetJourneyRecordsReq req = new GetJourneyRecordsReq(); * 通过经纬度查询所属行政区域
req.userID = sn; *
req.apType = dType; * @return
*/
public static Map<String, Object> getJourneyRecords(long sn, int apType, java.util.Date bgnDate, java.util.Date endDate) {
try {
if (mileagePrx == null) {
throw new Exception("Invalid proxy");
}
Calendar calendar = Calendar.getInstance(); GetJourneyRecordsResHolder res = new GetJourneyRecordsResHolder(new GetJourneyRecordsRes());
calendar.setTime(bgnDate); //放入Date类型数据 GetJourneyRecordsReq req = new GetJourneyRecordsReq();
com.glsx.ice.HDaoMile.Date bdate = new com.glsx.ice.HDaoMile.Date(calendar.get(Calendar.YEAR),calendar.get(Calendar.MONTH),calendar.get(Calendar.DATE)); req.userID = sn;
req.bgnDate = bdate; req.apType = apType;
// 缺省是false,为true时,表示响应结果中携带中文地址
req.bReqAddr = true;
//开始日期
//req.bgnDate = bgnDate;
//结束日期
// req.endDate = endDate;
//0:原始坐标 1:转换高德和百度坐标 2:转换高德坐标 3:转换百度坐标
req.extraMapReq = MapTypeEnum.DOUBLE_TYPE.getId();
calendar.setTime(endDate); //放入Date类型数据 Calendar calendar = Calendar.getInstance();
com.glsx.ice.HDaoMile.Date eDate = new com.glsx.ice.HDaoMile.Date(calendar.get(Calendar.YEAR),calendar.get(Calendar.MONTH),calendar.get(Calendar.DATE)); calendar.setTime(bgnDate); //放入Date类型数据
req.endDate = eDate; com.glsx.ice.HDaoMile.Date bdate = new com.glsx.ice.HDaoMile.Date(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE));
req.bgnDate = bdate;
mileagePrx.getJourneyRecords(req, res); calendar.setTime(endDate); //放入Date类型数据
Map<String,Object> map = null; com.glsx.ice.HDaoMile.Date eDate = new com.glsx.ice.HDaoMile.Date(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE));
if (res != null && res.value != null && res.value.oprResult == 0) { req.endDate = eDate;
JourneyRecord[] vals = res.value.jourRecords;
map.put("sn",sn);
List<Map<String,Object>> journeyrecords =Arrays.stream(vals).map(jrecord->{
Map<String,Object> jmap = new HashMap<>();
jmap.put("bgntime",jrecord.bgnTime);
jmap.put("endtime",jrecord.endTime);
jmap.put("duration",jrecord.duration);
jmap.put("bgnaddress",jrecord.bgnAddress);
jmap.put("bgngps",convertGpsLoc(jrecord.bgnGps));
jmap.put("endaddress",jrecord.endAddress);
jmap.put("endgps",convertGpsLoc(jrecord.endGps));
jmap.put("mileage",jrecord.mileage);
return jmap;
}).collect(Collectors.toList());
map.put("journeyrecords", journeyrecords);
return map;
}
} catch (Ice.LocalException e) { mileagePrx.getJourneyRecords(req, res);
log.error("invoke ice getJourneyRecords ICE_exception" + e.getMessage(), e); Map<String, Object> map = null;
} catch (Exception e) { if (res != null && res.value != null && res.value.oprResult == 0) {
log.error("invoke ice getJourneyRecords exception" + e.getMessage(), e); JourneyRecord[] vals = res.value.jourRecords;
} map.put("sn", sn);
return null;
} List<Map<String, Object>> journeyrecords = Arrays.stream(vals).map(jrecord -> {
Map<String, Object> jmap = new HashMap<>();
//行驶开始时间
jmap.put("bgntime", jrecord.bgnTime);
//行驶结束时间
jmap.put("endtime", jrecord.endTime);
//行驶时长
jmap.put("duration", jrecord.duration);
//开始地址
jmap.put("bgnaddress", jrecord.bgnAddress);
//行程开始位置信息
jmap.put("bgngps", convertGpsLoc(jrecord.bgnGps));
//结束地址
jmap.put("endaddress", jrecord.endAddress);
//行程结束位置信息
jmap.put("endgps", convertGpsLoc(jrecord.endGps));
//行驶里程
jmap.put("mileage", jrecord.mileage);
return jmap;
}).collect(Collectors.toList());
map.put("journeyrecords", journeyrecords);
return map;
}
} catch (Ice.LocalException e) {
log.error("invoke ice getJourneyRecords ICE_exception" + e.getMessage(), e);
} catch (Exception e) {
log.error("invoke ice getJourneyRecords exception" + e.getMessage(), e);
}
return null;
}
public static Map<String, Object> getDailyMileageRecords(long sn, Integer dType, java.util.Date bgnDate, java.util.Date endDate) {
try {
if (mileagePrx == null) {
throw new Exception("Invalid proxy");
}
GetDailyMileRecordsResHolder res = new GetDailyMileRecordsResHolder(new GetDailyMileRecordsRes());
GetDailyMileRecordsReq req = new GetDailyMileRecordsReq();
req.userID = sn;
req.apType = dType;
Calendar calendar = Calendar.getInstance();
calendar.setTime(bgnDate); //放入Date类型数据
com.glsx.ice.HDaoMile.Date bdate = new com.glsx.ice.HDaoMile.Date(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE));
req.bgnDate = bdate;
calendar.setTime(endDate); //放入Date类型数据
com.glsx.ice.HDaoMile.Date eDate = new com.glsx.ice.HDaoMile.Date(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE));
req.endDate = eDate;
mileagePrx.getDailyMileageRecords(req, res);
Map<String, Object> map = null;
if (res != null && res.value != null && res.value.oprResult == 0) {
DailyMileRecord[] vals = res.value.dailMileRecords;
map.put("sn", sn);
List<Map<String, Object>> dailyrecords = Arrays.stream(vals).map(drecord -> {
Map<String, Object> jmap = new HashMap<>();
//开车次数
jmap.put("jourcount", drecord.jourCount);
//行驶里程
jmap.put("mileage", drecord.mileage);
//行驶时长
jmap.put("duration", drecord.duration);
//开车日期
jmap.put("jourdate", drecord.jourDate);
return jmap;
}).collect(Collectors.toList());
map.put("dailyrecords", dailyrecords);
return map;
}
} catch (Ice.LocalException e) {
log.error("invoke ice getDailyMileageRecords ICE_exception" + e.getMessage(), e);
} catch (Exception e) {
log.error("invoke ice getDailyMileageRecords exception" + e.getMessage(), e);
}
return null;
}
public static Map<String, Object> getTotalMileageRecords(long sn, Integer apType) {
try {
if (mileagePrx == null) {
throw new Exception("Invalid proxy");
}
GetTotalMileageResHolder res = new GetTotalMileageResHolder(new GetTotalMileageRes());
GetTotalMileageReq req = new GetTotalMileageReq();
req.userID = sn;
req.apType = apType;
//默认0,非0:获取日里程记录
//req.bReqDailyRecord
mileagePrx.getToatlMileage(req, res);
Map<String, Object> map = null;
if (res != null && res.value != null && res.value.oprResult == 0) {
DailyMileRecord[] vals = res.value.dailMileRecords;
map.put("sn", sn);
List<Map<String, Object>> dailyrecords = Arrays.stream(vals).map(drecord -> {
Map<String, Object> jmap = new HashMap<>();
//设备号
jmap.put("sn", drecord.jourCount);
//行驶总里程
jmap.put("totalmileage", drecord.mileage);
//行驶总时长
jmap.put("totalduration", drecord.duration);
//行驶总开车次数
jmap.put("totaljourcount", drecord.jourDate);
return jmap;
}).collect(Collectors.toList());
map.put("totalmileagerecords", dailyrecords);
return map;
}
} catch (Ice.LocalException e) {
log.error("invoke ice getDailyMileageRecords ICE_exception" + e.getMessage(), e);
} catch (Exception e) {
log.error("invoke ice getDailyMileageRecords exception" + e.getMessage(), e);
}
return null;
}
public static Map<String, Object> getMonthResideRecords(long sn, Integer dType, String bgn_month, String end_month) {
try {
if (mileagePrx == null) {
throw new Exception("Invalid proxy");
}
public static Map<String, Object> getDailyMileageRecords(long sn, Integer dType, java.util.Date bgnDate, java.util.Date endDate) { GetMonthResideRecordsResHolder res = new GetMonthResideRecordsResHolder(new GetMonthResideRecordsRes());
GetMonthResideRecordsReq req = new GetMonthResideRecordsReq();
req.userID = sn;
req.apType = dType;
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM");//注意月份是MM
Calendar calendar = Calendar.getInstance();
calendar.setTime(simpleDateFormat.parse(bgn_month)); //放入Date类型数据
Month bm = new Month(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH));
//开始月份 如: 2019-08
req.bgnMonth = bm;
calendar.setTime(simpleDateFormat.parse(end_month)); //放入Date类型数据
Month em = new Month(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH));
//结束月份 如:2019-10
req.endMonth = em;
mileagePrx.getMonthResideRecords(req, res);
Map<String, Object> map = null;
if (res != null && res.value != null && res.value.oprResult == 0) {
MonthResideRecord[] vals = res.value.monResideRecords;
map.put("sn", sn);
List<Map<String, Object>> monthRecords = Arrays.stream(vals).map(mrecord -> {
Map<String, Object> jmap = new HashMap<>();
//第一常驻地位置信息
jmap.put("fstresideloc", mrecord.fstResideLoc);
//第一常驻地停留时长
jmap.put("fstresideduration", mrecord.fstResideDuration);
//第一常驻地停留次数
jmap.put("fstresidetimes", mrecord.fstResideTimes);
//第二常驻地位置信息
jmap.put("sndresideloc", mrecord.sndResideLoc);
//第二常驻地停留时长
jmap.put("sndresideduration", mrecord.sndResideDuration);
//第二常驻地停留次数
jmap.put("sndresidetimes", mrecord.sndResideTimes);
//第三常驻地位置信息
jmap.put("trdresideloc", mrecord.trdResideLoc);
//第三常驻地停留时长
jmap.put("trdresideduration", mrecord.trdResideDuration);
//第三常驻地停留次数
jmap.put("trdresidetimes", mrecord.trdResideTimes);
//常驻地所属月份
jmap.put("whichmonth", mrecord.whichMonth);
return jmap;
}).collect(Collectors.toList());
map.put("monthresiderecord", monthRecords);
return map;
}
} catch (Ice.LocalException e) {
log.error("invoke ice getMonthResideRecords ICE_exception" + e.getMessage(), e);
} catch (Exception e) {
log.error("invoke ice getMonthResideRecords exception" + e.getMessage(), e);
}
return null;
}
public static Map<String, Object> getDeviceStayRecords(long sn, Integer dType, String start_date, String end_date, Integer period_type, Integer max_duration, Integer min_duration) {
try { try {
if (mileagePrx == null) { if (mileagePrx == null) {
throw new Exception("Invalid proxy"); throw new Exception("Invalid proxy");
} }
GetDailyMileRecordsResHolder res = new GetDailyMileRecordsResHolder(new GetDailyMileRecordsRes()); GetStayPointRecordsResHolder res = new GetStayPointRecordsResHolder(new GetStayPointRecordsRes());
GetDailyMileRecordsReq req = new GetDailyMileRecordsReq(); GetStayPointRecordsReq req = new GetStayPointRecordsReq();
req.userID = sn; req.userID = sn;
req.apType = dType; req.apType = dType;
req.periodType = period_type;
req.maxDuration = max_duration;
req.minDuration = min_duration;
req.extraMapReq = MapTypeEnum.DOUBLE_TYPE.getId();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM");//注意月份是MM
Calendar calendar = Calendar.getInstance(); Calendar calendar = Calendar.getInstance();
calendar.setTime(bgnDate); //放入Date类型数据 calendar.setTime(simpleDateFormat.parse(start_date)); //放入Date类型数据
com.glsx.ice.HDaoMile.Date bdate = new com.glsx.ice.HDaoMile.Date(calendar.get(Calendar.YEAR),calendar.get(Calendar.MONTH),calendar.get(Calendar.DATE)); Date bm = new Date(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE));
req.bgnDate = bdate; req.bgnDate = bm;
calendar.setTime(endDate); //放入Date类型数据 calendar.setTime(simpleDateFormat.parse(end_date)); //放入Date类型数据
com.glsx.ice.HDaoMile.Date eDate = new com.glsx.ice.HDaoMile.Date(calendar.get(Calendar.YEAR),calendar.get(Calendar.MONTH),calendar.get(Calendar.DATE)); Date em = new Date(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE));
req.endDate = eDate; req.endDate = em;
mileagePrx.getDailyMileageRecords(req, res); mileagePrx.getStayPointRecords(req, res);
Map<String,Object> map = null; Map<String, Object> map = null;
if (res != null && res.value != null && res.value.oprResult == 0) { if (res != null && res.value != null && res.value.oprResult == 0) {
DailyMileRecord[] vals = res.value.dailMileRecords; StayPointRecord[] vals = res.value.stayPoints;
map.put("sn",sn); map.put("sn", sn);
List<Map<String,Object>> dailyrecords =Arrays.stream(vals).map(drecord->{ List<Map<String, Object>> stayRecords = Arrays.stream(vals).map(srecord -> {
Map<String,Object> jmap = new HashMap<>(); Map<String, Object> jmap = new HashMap<>();
jmap.put("jourcount",drecord.jourCount); //开始停留时间
jmap.put("mileage",drecord.mileage); jmap.put("bgntime", srecord.bgnTime);
jmap.put("duration",drecord.duration); //结束停留时间
jmap.put("jourdate",drecord.jourDate); jmap.put("endtime", srecord.endTime);
//停留时长
jmap.put("duration", srecord.duration);
//第二常驻地位置信息
jmap.put("staygps", convertGpsLoc(srecord.stayGps));
return jmap; return jmap;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
map.put("dailyrecords", dailyrecords); map.put("staypointrecord", stayRecords);
return map; return map;
} }
} catch (Ice.LocalException e) { } catch (Ice.LocalException e) {
log.error("invoke ice getDailyMileageRecords ICE_exception" + e.getMessage(), e); log.error("invoke ice getMonthResideRecords ICE_exception" + e.getMessage(), e);
} catch (Exception e) { } catch (Exception e) {
log.error("invoke ice getDailyMileageRecords exception" + e.getMessage(), e); log.error("invoke ice getMonthResideRecords exception" + e.getMessage(), e);
} }
return null; return null;
}
private static Object convertGpsLoc(GpsLoc bgnGps) {
Map<String,Object> map = new HashMap<>();
map.put("lng",bgnGps.lng);
map.put("lat",bgnGps.lat);
map.put("glat",bgnGps.glat);
map.put("glng",bgnGps.glng);
map.put("blng",bgnGps.blng);
map.put("blat",bgnGps.blat);
return map;
}
private static Map<String,Object> convertGpsPos(GpsPos beginPos) {
Map<String,Object> map = new HashMap<>();
map.put("gpstime",beginPos.gpsTime);
map.put("lng",beginPos.lng);
map.put("lat",beginPos.lat);
map.put("addr",beginPos.addr);
return map;
} }
private static Object convertGpsLoc(GpsLoc bgnGps) {
Map<String, Object> map = new HashMap<>();
//经度
map.put("lng", bgnGps.lng / 1000000D);
//纬度
map.put("lat", bgnGps.lat / 1000000D);
//高德经度
map.put("glng", bgnGps.glng / 1000000D);
//高德纬度
map.put("glat", bgnGps.glat / 1000000D);
//百度经度
map.put("blng", bgnGps.blng / 1000000D);
//百度纬度
map.put("blat", bgnGps.blat / 1000000D);
return map;
}
private static Map<String, Object> convertGpsPos(GpsPos beginPos) {
Map<String, Object> map = new HashMap<>();
map.put("gpstime", beginPos.gpsTime);
//经度
map.put("lng", beginPos.lng / 1000000D);
//纬度
map.put("lat", beginPos.lat / 1000000D);
//地址描述
map.put("addr", beginPos.addr);
return map;
}
} }
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public abstract class Callback_IPOISearchFTR_poi_search_by_key extends Ice.TwowayCallback
{
public abstract void response(int __ret, poi_info_t[] arrPoiInfo);
public final void __completed(Ice.AsyncResult __result)
{
IPOISearchFTRPrx __proxy = (IPOISearchFTRPrx)__result.getProxy();
int __ret = 0;
poi_info_seq_tHolder arrPoiInfo = new poi_info_seq_tHolder();
try
{
__ret = __proxy.end_poi_search_by_key(arrPoiInfo, __result);
}
catch(Ice.LocalException __ex)
{
exception(__ex);
return;
}
response(__ret, arrPoiInfo.value);
}
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public abstract class Callback_IPOISearchFTR_poi_search_by_key_and_type extends Ice.TwowayCallback
{
public abstract void response(int __ret, poi_info_t[] arrPoiInfo);
public final void __completed(Ice.AsyncResult __result)
{
IPOISearchFTRPrx __proxy = (IPOISearchFTRPrx)__result.getProxy();
int __ret = 0;
poi_info_seq_tHolder arrPoiInfo = new poi_info_seq_tHolder();
try
{
__ret = __proxy.end_poi_search_by_key_and_type(arrPoiInfo, __result);
}
catch(Ice.LocalException __ex)
{
exception(__ex);
return;
}
response(__ret, arrPoiInfo.value);
}
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public abstract class Callback_IPOISearchFTR_poi_search_by_key_citycode extends Ice.TwowayCallback
{
public abstract void response(int __ret, poi_info_t[] arrPoiInfo);
public final void __completed(Ice.AsyncResult __result)
{
IPOISearchFTRPrx __proxy = (IPOISearchFTRPrx)__result.getProxy();
int __ret = 0;
poi_info_seq_tHolder arrPoiInfo = new poi_info_seq_tHolder();
try
{
__ret = __proxy.end_poi_search_by_key_citycode(arrPoiInfo, __result);
}
catch(Ice.LocalException __ex)
{
exception(__ex);
return;
}
response(__ret, arrPoiInfo.value);
}
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public abstract class Callback_IPOISearchFTR_poi_search_by_key_cityname extends Ice.TwowayCallback
{
public abstract void response(int __ret, poi_info_t[] arrPoiInfo);
public final void __completed(Ice.AsyncResult __result)
{
IPOISearchFTRPrx __proxy = (IPOISearchFTRPrx)__result.getProxy();
int __ret = 0;
poi_info_seq_tHolder arrPoiInfo = new poi_info_seq_tHolder();
try
{
__ret = __proxy.end_poi_search_by_key_cityname(arrPoiInfo, __result);
}
catch(Ice.LocalException __ex)
{
exception(__ex);
return;
}
response(__ret, arrPoiInfo.value);
}
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public abstract class Callback_IPOISearchFTR_poi_search_by_key_type_near extends Ice.TwowayCallback
{
public abstract void response(int __ret, poi_info_t[] arrPoiInfo);
public final void __completed(Ice.AsyncResult __result)
{
IPOISearchFTRPrx __proxy = (IPOISearchFTRPrx)__result.getProxy();
int __ret = 0;
poi_info_seq_tHolder arrPoiInfo = new poi_info_seq_tHolder();
try
{
__ret = __proxy.end_poi_search_by_key_type_near(arrPoiInfo, __result);
}
catch(Ice.LocalException __ex)
{
exception(__ex);
return;
}
response(__ret, arrPoiInfo.value);
}
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public abstract class Callback_IPOISearchNear_ReverseGeocoding extends Ice.TwowayCallback
{
public abstract void response(int __ret, String strGeopointDescription);
public final void __completed(Ice.AsyncResult __result)
{
IPOISearchNearPrx __proxy = (IPOISearchNearPrx)__result.getProxy();
int __ret = 0;
Ice.StringHolder strGeopointDescription = new Ice.StringHolder();
try
{
__ret = __proxy.end_ReverseGeocoding(strGeopointDescription, __result);
}
catch(Ice.LocalException __ex)
{
exception(__ex);
return;
}
response(__ret, strGeopointDescription.value);
}
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public abstract class Callback_IPOISearchNear_ReverseGeocoding2 extends Ice.TwowayCallback
{
public abstract void response(int __ret, String strGeopointDescription);
public final void __completed(Ice.AsyncResult __result)
{
IPOISearchNearPrx __proxy = (IPOISearchNearPrx)__result.getProxy();
int __ret = 0;
Ice.StringHolder strGeopointDescription = new Ice.StringHolder();
try
{
__ret = __proxy.end_ReverseGeocoding2(strGeopointDescription, __result);
}
catch(Ice.LocalException __ex)
{
exception(__ex);
return;
}
response(__ret, strGeopointDescription.value);
}
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public abstract class Callback_IPOISearchNear_poi_search_by_circle extends Ice.TwowayCallback
{
public abstract void response(int __ret, poi_info_t[] arrPoiInfo);
public final void __completed(Ice.AsyncResult __result)
{
IPOISearchNearPrx __proxy = (IPOISearchNearPrx)__result.getProxy();
int __ret = 0;
poi_info_seq_tHolder arrPoiInfo = new poi_info_seq_tHolder();
try
{
__ret = __proxy.end_poi_search_by_circle(arrPoiInfo, __result);
}
catch(Ice.LocalException __ex)
{
exception(__ex);
return;
}
response(__ret, arrPoiInfo.value);
}
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public abstract class Callback_IPOISearchNear_poi_search_by_city extends Ice.TwowayCallback
{
public abstract void response(int __ret, poi_info_t[] arrPoiInfo);
public final void __completed(Ice.AsyncResult __result)
{
IPOISearchNearPrx __proxy = (IPOISearchNearPrx)__result.getProxy();
int __ret = 0;
poi_info_seq_tHolder arrPoiInfo = new poi_info_seq_tHolder();
try
{
__ret = __proxy.end_poi_search_by_city(arrPoiInfo, __result);
}
catch(Ice.LocalException __ex)
{
exception(__ex);
return;
}
response(__ret, arrPoiInfo.value);
}
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public abstract class Callback_IPOISearchNear_poi_search_by_rect extends Ice.TwowayCallback
{
public abstract void response(int __ret, poi_info_t[] arrPoiInfo);
public final void __completed(Ice.AsyncResult __result)
{
IPOISearchNearPrx __proxy = (IPOISearchNearPrx)__result.getProxy();
int __ret = 0;
poi_info_seq_tHolder arrPoiInfo = new poi_info_seq_tHolder();
try
{
__ret = __proxy.end_poi_search_by_rect(arrPoiInfo, __result);
}
catch(Ice.LocalException __ex)
{
exception(__ex);
return;
}
response(__ret, arrPoiInfo.value);
}
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public interface IPOISearchFTR extends Ice.Object,
_IPOISearchFTROperations, _IPOISearchFTROperationsNC
{
public static final long serialVersionUID = -6564089211019779398L;
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public final class IPOISearchFTRHolder extends Ice.ObjectHolderBase<IPOISearchFTR>
{
public
IPOISearchFTRHolder()
{
}
public
IPOISearchFTRHolder(IPOISearchFTR value)
{
this.value = value;
}
public void
patch(Ice.Object v)
{
if(v == null || v instanceof IPOISearchFTR)
{
value = (IPOISearchFTR)v;
}
else
{
IceInternal.Ex.throwUOE(type(), v);
}
}
public String
type()
{
return _IPOISearchFTRDisp.ice_staticId();
}
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public interface IPOISearchFTRPrx extends Ice.ObjectPrx
{
public int poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int limit, poi_info_seq_tHolder arrPoiInfo);
public int poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int limit);
public Ice.AsyncResult begin_poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int limit, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int limit, Ice.Callback __cb);
public Ice.AsyncResult begin_poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int limit, java.util.Map<String, String> __ctx, Ice.Callback __cb);
public Ice.AsyncResult begin_poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int limit, Callback_IPOISearchFTR_poi_search_by_key __cb);
public Ice.AsyncResult begin_poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int limit, java.util.Map<String, String> __ctx, Callback_IPOISearchFTR_poi_search_by_key __cb);
public int end_poi_search_by_key(poi_info_seq_tHolder arrPoiInfo, Ice.AsyncResult __result);
public int poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int[] arrType, int limit, poi_info_seq_tHolder arrPoiInfo);
public int poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int[] arrType, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int[] arrType, int limit);
public Ice.AsyncResult begin_poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int[] arrType, int limit, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int[] arrType, int limit, Ice.Callback __cb);
public Ice.AsyncResult begin_poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int[] arrType, int limit, java.util.Map<String, String> __ctx, Ice.Callback __cb);
public Ice.AsyncResult begin_poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int[] arrType, int limit, Callback_IPOISearchFTR_poi_search_by_key_and_type __cb);
public Ice.AsyncResult begin_poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int[] arrType, int limit, java.util.Map<String, String> __ctx, Callback_IPOISearchFTR_poi_search_by_key_and_type __cb);
public int end_poi_search_by_key_and_type(poi_info_seq_tHolder arrPoiInfo, Ice.AsyncResult __result);
public int poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int[] arrType, geopoint pt, int maxDis, int limit, poi_info_seq_tHolder arrPoiInfo);
public int poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int[] arrType, geopoint pt, int maxDis, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int[] arrType, geopoint pt, int maxDis, int limit);
public Ice.AsyncResult begin_poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int[] arrType, geopoint pt, int maxDis, int limit, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int[] arrType, geopoint pt, int maxDis, int limit, Ice.Callback __cb);
public Ice.AsyncResult begin_poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int[] arrType, geopoint pt, int maxDis, int limit, java.util.Map<String, String> __ctx, Ice.Callback __cb);
public Ice.AsyncResult begin_poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int[] arrType, geopoint pt, int maxDis, int limit, Callback_IPOISearchFTR_poi_search_by_key_type_near __cb);
public Ice.AsyncResult begin_poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int[] arrType, geopoint pt, int maxDis, int limit, java.util.Map<String, String> __ctx, Callback_IPOISearchFTR_poi_search_by_key_type_near __cb);
public int end_poi_search_by_key_type_near(poi_info_seq_tHolder arrPoiInfo, Ice.AsyncResult __result);
public int poi_search_by_key_cityname(String key, String cityname, int limit, poi_info_seq_tHolder arrPoiInfo);
public int poi_search_by_key_cityname(String key, String cityname, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_poi_search_by_key_cityname(String key, String cityname, int limit);
public Ice.AsyncResult begin_poi_search_by_key_cityname(String key, String cityname, int limit, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_poi_search_by_key_cityname(String key, String cityname, int limit, Ice.Callback __cb);
public Ice.AsyncResult begin_poi_search_by_key_cityname(String key, String cityname, int limit, java.util.Map<String, String> __ctx, Ice.Callback __cb);
public Ice.AsyncResult begin_poi_search_by_key_cityname(String key, String cityname, int limit, Callback_IPOISearchFTR_poi_search_by_key_cityname __cb);
public Ice.AsyncResult begin_poi_search_by_key_cityname(String key, String cityname, int limit, java.util.Map<String, String> __ctx, Callback_IPOISearchFTR_poi_search_by_key_cityname __cb);
public int end_poi_search_by_key_cityname(poi_info_seq_tHolder arrPoiInfo, Ice.AsyncResult __result);
public int poi_search_by_key_citycode(String key, int citycode, int limit, poi_info_seq_tHolder arrPoiInfo);
public int poi_search_by_key_citycode(String key, int citycode, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_poi_search_by_key_citycode(String key, int citycode, int limit);
public Ice.AsyncResult begin_poi_search_by_key_citycode(String key, int citycode, int limit, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_poi_search_by_key_citycode(String key, int citycode, int limit, Ice.Callback __cb);
public Ice.AsyncResult begin_poi_search_by_key_citycode(String key, int citycode, int limit, java.util.Map<String, String> __ctx, Ice.Callback __cb);
public Ice.AsyncResult begin_poi_search_by_key_citycode(String key, int citycode, int limit, Callback_IPOISearchFTR_poi_search_by_key_citycode __cb);
public Ice.AsyncResult begin_poi_search_by_key_citycode(String key, int citycode, int limit, java.util.Map<String, String> __ctx, Callback_IPOISearchFTR_poi_search_by_key_citycode __cb);
public int end_poi_search_by_key_citycode(poi_info_seq_tHolder arrPoiInfo, Ice.AsyncResult __result);
public int Geocoding(String strAddress, geocoding_resultHolder rst);
public int Geocoding(String strAddress, geocoding_resultHolder rst, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_Geocoding(String strAddress);
public Ice.AsyncResult begin_Geocoding(String strAddress, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_Geocoding(String strAddress, Ice.Callback __cb);
public Ice.AsyncResult begin_Geocoding(String strAddress, java.util.Map<String, String> __ctx, Ice.Callback __cb);
public Ice.AsyncResult begin_Geocoding(String strAddress, Callback_IPOISearchFTR_Geocoding __cb);
public Ice.AsyncResult begin_Geocoding(String strAddress, java.util.Map<String, String> __ctx, Callback_IPOISearchFTR_Geocoding __cb);
public int end_Geocoding(geocoding_resultHolder rst, Ice.AsyncResult __result);
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public final class IPOISearchFTRPrxHelper extends Ice.ObjectPrxHelperBase implements IPOISearchFTRPrx
{
private static final String __Geocoding_name = "Geocoding";
public int Geocoding(String strAddress, geocoding_resultHolder rst)
{
return Geocoding(strAddress, rst, null, false);
}
public int Geocoding(String strAddress, geocoding_resultHolder rst, java.util.Map<String, String> __ctx)
{
return Geocoding(strAddress, rst, __ctx, true);
}
private int Geocoding(String strAddress, geocoding_resultHolder rst, java.util.Map<String, String> __ctx, boolean __explicitCtx)
{
if(__explicitCtx && __ctx == null)
{
__ctx = _emptyContext;
}
final Ice.Instrumentation.InvocationObserver __observer = IceInternal.ObserverHelper.get(this, "Geocoding", __ctx);
int __cnt = 0;
try
{
while(true)
{
Ice._ObjectDel __delBase = null;
try
{
__checkTwowayOnly("Geocoding");
__delBase = __getDelegate(false);
_IPOISearchFTRDel __del = (_IPOISearchFTRDel)__delBase;
return __del.Geocoding(strAddress, rst, __ctx, __observer);
}
catch(IceInternal.LocalExceptionWrapper __ex)
{
__handleExceptionWrapper(__delBase, __ex, __observer);
}
catch(Ice.LocalException __ex)
{
__cnt = __handleException(__delBase, __ex, null, __cnt, __observer);
}
}
}
finally
{
if(__observer != null)
{
__observer.detach();
}
}
}
public Ice.AsyncResult begin_Geocoding(String strAddress)
{
return begin_Geocoding(strAddress, null, false, null);
}
public Ice.AsyncResult begin_Geocoding(String strAddress, java.util.Map<String, String> __ctx)
{
return begin_Geocoding(strAddress, __ctx, true, null);
}
public Ice.AsyncResult begin_Geocoding(String strAddress, Ice.Callback __cb)
{
return begin_Geocoding(strAddress, null, false, __cb);
}
public Ice.AsyncResult begin_Geocoding(String strAddress, java.util.Map<String, String> __ctx, Ice.Callback __cb)
{
return begin_Geocoding(strAddress, __ctx, true, __cb);
}
public Ice.AsyncResult begin_Geocoding(String strAddress, Callback_IPOISearchFTR_Geocoding __cb)
{
return begin_Geocoding(strAddress, null, false, __cb);
}
public Ice.AsyncResult begin_Geocoding(String strAddress, java.util.Map<String, String> __ctx, Callback_IPOISearchFTR_Geocoding __cb)
{
return begin_Geocoding(strAddress, __ctx, true, __cb);
}
private Ice.AsyncResult begin_Geocoding(String strAddress, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
{
__checkAsyncTwowayOnly(__Geocoding_name);
IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __Geocoding_name, __cb);
try
{
__result.__prepare(__Geocoding_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
IceInternal.BasicStream __os = __result.__startWriteParams(Ice.FormatType.DefaultFormat);
__os.writeString(strAddress);
__result.__endWriteParams();
__result.__send(true);
}
catch(Ice.LocalException __ex)
{
__result.__exceptionAsync(__ex);
}
return __result;
}
public int end_Geocoding(geocoding_resultHolder rst, Ice.AsyncResult __result)
{
Ice.AsyncResult.__check(__result, this, __Geocoding_name);
boolean __ok = __result.__wait();
try
{
if(!__ok)
{
try
{
__result.__throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __result.__startReadParams();
rst.value = new geocoding_result();
rst.value.__read(__is);
int __ret;
__ret = __is.readInt();
__result.__endReadParams();
return __ret;
}
catch(Ice.LocalException ex)
{
Ice.Instrumentation.InvocationObserver __obsv = __result.__getObserver();
if(__obsv != null)
{
__obsv.failed(ex.ice_name());
}
throw ex;
}
}
private static final String __poi_search_by_key_name = "poi_search_by_key";
public int poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int limit, poi_info_seq_tHolder arrPoiInfo)
{
return poi_search_by_key(emIndexType, key, citycode, limit, arrPoiInfo, null, false);
}
public int poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx)
{
return poi_search_by_key(emIndexType, key, citycode, limit, arrPoiInfo, __ctx, true);
}
private int poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, boolean __explicitCtx)
{
if(__explicitCtx && __ctx == null)
{
__ctx = _emptyContext;
}
final Ice.Instrumentation.InvocationObserver __observer = IceInternal.ObserverHelper.get(this, "poi_search_by_key", __ctx);
int __cnt = 0;
try
{
while(true)
{
Ice._ObjectDel __delBase = null;
try
{
__checkTwowayOnly("poi_search_by_key");
__delBase = __getDelegate(false);
_IPOISearchFTRDel __del = (_IPOISearchFTRDel)__delBase;
return __del.poi_search_by_key(emIndexType, key, citycode, limit, arrPoiInfo, __ctx, __observer);
}
catch(IceInternal.LocalExceptionWrapper __ex)
{
__handleExceptionWrapper(__delBase, __ex, __observer);
}
catch(Ice.LocalException __ex)
{
__cnt = __handleException(__delBase, __ex, null, __cnt, __observer);
}
}
}
finally
{
if(__observer != null)
{
__observer.detach();
}
}
}
public Ice.AsyncResult begin_poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int limit)
{
return begin_poi_search_by_key(emIndexType, key, citycode, limit, null, false, null);
}
public Ice.AsyncResult begin_poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int limit, java.util.Map<String, String> __ctx)
{
return begin_poi_search_by_key(emIndexType, key, citycode, limit, __ctx, true, null);
}
public Ice.AsyncResult begin_poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int limit, Ice.Callback __cb)
{
return begin_poi_search_by_key(emIndexType, key, citycode, limit, null, false, __cb);
}
public Ice.AsyncResult begin_poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int limit, java.util.Map<String, String> __ctx, Ice.Callback __cb)
{
return begin_poi_search_by_key(emIndexType, key, citycode, limit, __ctx, true, __cb);
}
public Ice.AsyncResult begin_poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int limit, Callback_IPOISearchFTR_poi_search_by_key __cb)
{
return begin_poi_search_by_key(emIndexType, key, citycode, limit, null, false, __cb);
}
public Ice.AsyncResult begin_poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int limit, java.util.Map<String, String> __ctx, Callback_IPOISearchFTR_poi_search_by_key __cb)
{
return begin_poi_search_by_key(emIndexType, key, citycode, limit, __ctx, true, __cb);
}
private Ice.AsyncResult begin_poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int limit, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
{
__checkAsyncTwowayOnly(__poi_search_by_key_name);
IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __poi_search_by_key_name, __cb);
try
{
__result.__prepare(__poi_search_by_key_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
IceInternal.BasicStream __os = __result.__startWriteParams(Ice.FormatType.DefaultFormat);
emIndexType.__write(__os);
__os.writeString(key);
__os.writeInt(citycode);
__os.writeInt(limit);
__result.__endWriteParams();
__result.__send(true);
}
catch(Ice.LocalException __ex)
{
__result.__exceptionAsync(__ex);
}
return __result;
}
public int end_poi_search_by_key(poi_info_seq_tHolder arrPoiInfo, Ice.AsyncResult __result)
{
Ice.AsyncResult.__check(__result, this, __poi_search_by_key_name);
boolean __ok = __result.__wait();
try
{
if(!__ok)
{
try
{
__result.__throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __result.__startReadParams();
arrPoiInfo.value = poi_info_seq_tHelper.read(__is);
int __ret;
__ret = __is.readInt();
__result.__endReadParams();
return __ret;
}
catch(Ice.LocalException ex)
{
Ice.Instrumentation.InvocationObserver __obsv = __result.__getObserver();
if(__obsv != null)
{
__obsv.failed(ex.ice_name());
}
throw ex;
}
}
private static final String __poi_search_by_key_and_type_name = "poi_search_by_key_and_type";
public int poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int[] arrType, int limit, poi_info_seq_tHolder arrPoiInfo)
{
return poi_search_by_key_and_type(emIndexType, key, citycode, arrType, limit, arrPoiInfo, null, false);
}
public int poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int[] arrType, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx)
{
return poi_search_by_key_and_type(emIndexType, key, citycode, arrType, limit, arrPoiInfo, __ctx, true);
}
private int poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int[] arrType, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, boolean __explicitCtx)
{
if(__explicitCtx && __ctx == null)
{
__ctx = _emptyContext;
}
final Ice.Instrumentation.InvocationObserver __observer = IceInternal.ObserverHelper.get(this, "poi_search_by_key_and_type", __ctx);
int __cnt = 0;
try
{
while(true)
{
Ice._ObjectDel __delBase = null;
try
{
__checkTwowayOnly("poi_search_by_key_and_type");
__delBase = __getDelegate(false);
_IPOISearchFTRDel __del = (_IPOISearchFTRDel)__delBase;
return __del.poi_search_by_key_and_type(emIndexType, key, citycode, arrType, limit, arrPoiInfo, __ctx, __observer);
}
catch(IceInternal.LocalExceptionWrapper __ex)
{
__handleExceptionWrapper(__delBase, __ex, __observer);
}
catch(Ice.LocalException __ex)
{
__cnt = __handleException(__delBase, __ex, null, __cnt, __observer);
}
}
}
finally
{
if(__observer != null)
{
__observer.detach();
}
}
}
public Ice.AsyncResult begin_poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int[] arrType, int limit)
{
return begin_poi_search_by_key_and_type(emIndexType, key, citycode, arrType, limit, null, false, null);
}
public Ice.AsyncResult begin_poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int[] arrType, int limit, java.util.Map<String, String> __ctx)
{
return begin_poi_search_by_key_and_type(emIndexType, key, citycode, arrType, limit, __ctx, true, null);
}
public Ice.AsyncResult begin_poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int[] arrType, int limit, Ice.Callback __cb)
{
return begin_poi_search_by_key_and_type(emIndexType, key, citycode, arrType, limit, null, false, __cb);
}
public Ice.AsyncResult begin_poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int[] arrType, int limit, java.util.Map<String, String> __ctx, Ice.Callback __cb)
{
return begin_poi_search_by_key_and_type(emIndexType, key, citycode, arrType, limit, __ctx, true, __cb);
}
public Ice.AsyncResult begin_poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int[] arrType, int limit, Callback_IPOISearchFTR_poi_search_by_key_and_type __cb)
{
return begin_poi_search_by_key_and_type(emIndexType, key, citycode, arrType, limit, null, false, __cb);
}
public Ice.AsyncResult begin_poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int[] arrType, int limit, java.util.Map<String, String> __ctx, Callback_IPOISearchFTR_poi_search_by_key_and_type __cb)
{
return begin_poi_search_by_key_and_type(emIndexType, key, citycode, arrType, limit, __ctx, true, __cb);
}
private Ice.AsyncResult begin_poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int[] arrType, int limit, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
{
__checkAsyncTwowayOnly(__poi_search_by_key_and_type_name);
IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __poi_search_by_key_and_type_name, __cb);
try
{
__result.__prepare(__poi_search_by_key_and_type_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
IceInternal.BasicStream __os = __result.__startWriteParams(Ice.FormatType.DefaultFormat);
emIndexType.__write(__os);
__os.writeString(key);
__os.writeInt(citycode);
poi_type_seq_tHelper.write(__os, arrType);
__os.writeInt(limit);
__result.__endWriteParams();
__result.__send(true);
}
catch(Ice.LocalException __ex)
{
__result.__exceptionAsync(__ex);
}
return __result;
}
public int end_poi_search_by_key_and_type(poi_info_seq_tHolder arrPoiInfo, Ice.AsyncResult __result)
{
Ice.AsyncResult.__check(__result, this, __poi_search_by_key_and_type_name);
boolean __ok = __result.__wait();
try
{
if(!__ok)
{
try
{
__result.__throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __result.__startReadParams();
arrPoiInfo.value = poi_info_seq_tHelper.read(__is);
int __ret;
__ret = __is.readInt();
__result.__endReadParams();
return __ret;
}
catch(Ice.LocalException ex)
{
Ice.Instrumentation.InvocationObserver __obsv = __result.__getObserver();
if(__obsv != null)
{
__obsv.failed(ex.ice_name());
}
throw ex;
}
}
private static final String __poi_search_by_key_citycode_name = "poi_search_by_key_citycode";
public int poi_search_by_key_citycode(String key, int citycode, int limit, poi_info_seq_tHolder arrPoiInfo)
{
return poi_search_by_key_citycode(key, citycode, limit, arrPoiInfo, null, false);
}
public int poi_search_by_key_citycode(String key, int citycode, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx)
{
return poi_search_by_key_citycode(key, citycode, limit, arrPoiInfo, __ctx, true);
}
private int poi_search_by_key_citycode(String key, int citycode, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, boolean __explicitCtx)
{
if(__explicitCtx && __ctx == null)
{
__ctx = _emptyContext;
}
final Ice.Instrumentation.InvocationObserver __observer = IceInternal.ObserverHelper.get(this, "poi_search_by_key_citycode", __ctx);
int __cnt = 0;
try
{
while(true)
{
Ice._ObjectDel __delBase = null;
try
{
__checkTwowayOnly("poi_search_by_key_citycode");
__delBase = __getDelegate(false);
_IPOISearchFTRDel __del = (_IPOISearchFTRDel)__delBase;
return __del.poi_search_by_key_citycode(key, citycode, limit, arrPoiInfo, __ctx, __observer);
}
catch(IceInternal.LocalExceptionWrapper __ex)
{
__handleExceptionWrapper(__delBase, __ex, __observer);
}
catch(Ice.LocalException __ex)
{
__cnt = __handleException(__delBase, __ex, null, __cnt, __observer);
}
}
}
finally
{
if(__observer != null)
{
__observer.detach();
}
}
}
public Ice.AsyncResult begin_poi_search_by_key_citycode(String key, int citycode, int limit)
{
return begin_poi_search_by_key_citycode(key, citycode, limit, null, false, null);
}
public Ice.AsyncResult begin_poi_search_by_key_citycode(String key, int citycode, int limit, java.util.Map<String, String> __ctx)
{
return begin_poi_search_by_key_citycode(key, citycode, limit, __ctx, true, null);
}
public Ice.AsyncResult begin_poi_search_by_key_citycode(String key, int citycode, int limit, Ice.Callback __cb)
{
return begin_poi_search_by_key_citycode(key, citycode, limit, null, false, __cb);
}
public Ice.AsyncResult begin_poi_search_by_key_citycode(String key, int citycode, int limit, java.util.Map<String, String> __ctx, Ice.Callback __cb)
{
return begin_poi_search_by_key_citycode(key, citycode, limit, __ctx, true, __cb);
}
public Ice.AsyncResult begin_poi_search_by_key_citycode(String key, int citycode, int limit, Callback_IPOISearchFTR_poi_search_by_key_citycode __cb)
{
return begin_poi_search_by_key_citycode(key, citycode, limit, null, false, __cb);
}
public Ice.AsyncResult begin_poi_search_by_key_citycode(String key, int citycode, int limit, java.util.Map<String, String> __ctx, Callback_IPOISearchFTR_poi_search_by_key_citycode __cb)
{
return begin_poi_search_by_key_citycode(key, citycode, limit, __ctx, true, __cb);
}
private Ice.AsyncResult begin_poi_search_by_key_citycode(String key, int citycode, int limit, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
{
__checkAsyncTwowayOnly(__poi_search_by_key_citycode_name);
IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __poi_search_by_key_citycode_name, __cb);
try
{
__result.__prepare(__poi_search_by_key_citycode_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
IceInternal.BasicStream __os = __result.__startWriteParams(Ice.FormatType.DefaultFormat);
__os.writeString(key);
__os.writeInt(citycode);
__os.writeInt(limit);
__result.__endWriteParams();
__result.__send(true);
}
catch(Ice.LocalException __ex)
{
__result.__exceptionAsync(__ex);
}
return __result;
}
public int end_poi_search_by_key_citycode(poi_info_seq_tHolder arrPoiInfo, Ice.AsyncResult __result)
{
Ice.AsyncResult.__check(__result, this, __poi_search_by_key_citycode_name);
boolean __ok = __result.__wait();
try
{
if(!__ok)
{
try
{
__result.__throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __result.__startReadParams();
arrPoiInfo.value = poi_info_seq_tHelper.read(__is);
int __ret;
__ret = __is.readInt();
__result.__endReadParams();
return __ret;
}
catch(Ice.LocalException ex)
{
Ice.Instrumentation.InvocationObserver __obsv = __result.__getObserver();
if(__obsv != null)
{
__obsv.failed(ex.ice_name());
}
throw ex;
}
}
private static final String __poi_search_by_key_cityname_name = "poi_search_by_key_cityname";
public int poi_search_by_key_cityname(String key, String cityname, int limit, poi_info_seq_tHolder arrPoiInfo)
{
return poi_search_by_key_cityname(key, cityname, limit, arrPoiInfo, null, false);
}
public int poi_search_by_key_cityname(String key, String cityname, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx)
{
return poi_search_by_key_cityname(key, cityname, limit, arrPoiInfo, __ctx, true);
}
private int poi_search_by_key_cityname(String key, String cityname, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, boolean __explicitCtx)
{
if(__explicitCtx && __ctx == null)
{
__ctx = _emptyContext;
}
final Ice.Instrumentation.InvocationObserver __observer = IceInternal.ObserverHelper.get(this, "poi_search_by_key_cityname", __ctx);
int __cnt = 0;
try
{
while(true)
{
Ice._ObjectDel __delBase = null;
try
{
__checkTwowayOnly("poi_search_by_key_cityname");
__delBase = __getDelegate(false);
_IPOISearchFTRDel __del = (_IPOISearchFTRDel)__delBase;
return __del.poi_search_by_key_cityname(key, cityname, limit, arrPoiInfo, __ctx, __observer);
}
catch(IceInternal.LocalExceptionWrapper __ex)
{
__handleExceptionWrapper(__delBase, __ex, __observer);
}
catch(Ice.LocalException __ex)
{
__cnt = __handleException(__delBase, __ex, null, __cnt, __observer);
}
}
}
finally
{
if(__observer != null)
{
__observer.detach();
}
}
}
public Ice.AsyncResult begin_poi_search_by_key_cityname(String key, String cityname, int limit)
{
return begin_poi_search_by_key_cityname(key, cityname, limit, null, false, null);
}
public Ice.AsyncResult begin_poi_search_by_key_cityname(String key, String cityname, int limit, java.util.Map<String, String> __ctx)
{
return begin_poi_search_by_key_cityname(key, cityname, limit, __ctx, true, null);
}
public Ice.AsyncResult begin_poi_search_by_key_cityname(String key, String cityname, int limit, Ice.Callback __cb)
{
return begin_poi_search_by_key_cityname(key, cityname, limit, null, false, __cb);
}
public Ice.AsyncResult begin_poi_search_by_key_cityname(String key, String cityname, int limit, java.util.Map<String, String> __ctx, Ice.Callback __cb)
{
return begin_poi_search_by_key_cityname(key, cityname, limit, __ctx, true, __cb);
}
public Ice.AsyncResult begin_poi_search_by_key_cityname(String key, String cityname, int limit, Callback_IPOISearchFTR_poi_search_by_key_cityname __cb)
{
return begin_poi_search_by_key_cityname(key, cityname, limit, null, false, __cb);
}
public Ice.AsyncResult begin_poi_search_by_key_cityname(String key, String cityname, int limit, java.util.Map<String, String> __ctx, Callback_IPOISearchFTR_poi_search_by_key_cityname __cb)
{
return begin_poi_search_by_key_cityname(key, cityname, limit, __ctx, true, __cb);
}
private Ice.AsyncResult begin_poi_search_by_key_cityname(String key, String cityname, int limit, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
{
__checkAsyncTwowayOnly(__poi_search_by_key_cityname_name);
IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __poi_search_by_key_cityname_name, __cb);
try
{
__result.__prepare(__poi_search_by_key_cityname_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
IceInternal.BasicStream __os = __result.__startWriteParams(Ice.FormatType.DefaultFormat);
__os.writeString(key);
__os.writeString(cityname);
__os.writeInt(limit);
__result.__endWriteParams();
__result.__send(true);
}
catch(Ice.LocalException __ex)
{
__result.__exceptionAsync(__ex);
}
return __result;
}
public int end_poi_search_by_key_cityname(poi_info_seq_tHolder arrPoiInfo, Ice.AsyncResult __result)
{
Ice.AsyncResult.__check(__result, this, __poi_search_by_key_cityname_name);
boolean __ok = __result.__wait();
try
{
if(!__ok)
{
try
{
__result.__throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __result.__startReadParams();
arrPoiInfo.value = poi_info_seq_tHelper.read(__is);
int __ret;
__ret = __is.readInt();
__result.__endReadParams();
return __ret;
}
catch(Ice.LocalException ex)
{
Ice.Instrumentation.InvocationObserver __obsv = __result.__getObserver();
if(__obsv != null)
{
__obsv.failed(ex.ice_name());
}
throw ex;
}
}
private static final String __poi_search_by_key_type_near_name = "poi_search_by_key_type_near";
public int poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int[] arrType, geopoint pt, int maxDis, int limit, poi_info_seq_tHolder arrPoiInfo)
{
return poi_search_by_key_type_near(emIndexType, key, arrType, pt, maxDis, limit, arrPoiInfo, null, false);
}
public int poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int[] arrType, geopoint pt, int maxDis, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx)
{
return poi_search_by_key_type_near(emIndexType, key, arrType, pt, maxDis, limit, arrPoiInfo, __ctx, true);
}
private int poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int[] arrType, geopoint pt, int maxDis, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, boolean __explicitCtx)
{
if(__explicitCtx && __ctx == null)
{
__ctx = _emptyContext;
}
final Ice.Instrumentation.InvocationObserver __observer = IceInternal.ObserverHelper.get(this, "poi_search_by_key_type_near", __ctx);
int __cnt = 0;
try
{
while(true)
{
Ice._ObjectDel __delBase = null;
try
{
__checkTwowayOnly("poi_search_by_key_type_near");
__delBase = __getDelegate(false);
_IPOISearchFTRDel __del = (_IPOISearchFTRDel)__delBase;
return __del.poi_search_by_key_type_near(emIndexType, key, arrType, pt, maxDis, limit, arrPoiInfo, __ctx, __observer);
}
catch(IceInternal.LocalExceptionWrapper __ex)
{
__handleExceptionWrapper(__delBase, __ex, __observer);
}
catch(Ice.LocalException __ex)
{
__cnt = __handleException(__delBase, __ex, null, __cnt, __observer);
}
}
}
finally
{
if(__observer != null)
{
__observer.detach();
}
}
}
public Ice.AsyncResult begin_poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int[] arrType, geopoint pt, int maxDis, int limit)
{
return begin_poi_search_by_key_type_near(emIndexType, key, arrType, pt, maxDis, limit, null, false, null);
}
public Ice.AsyncResult begin_poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int[] arrType, geopoint pt, int maxDis, int limit, java.util.Map<String, String> __ctx)
{
return begin_poi_search_by_key_type_near(emIndexType, key, arrType, pt, maxDis, limit, __ctx, true, null);
}
public Ice.AsyncResult begin_poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int[] arrType, geopoint pt, int maxDis, int limit, Ice.Callback __cb)
{
return begin_poi_search_by_key_type_near(emIndexType, key, arrType, pt, maxDis, limit, null, false, __cb);
}
public Ice.AsyncResult begin_poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int[] arrType, geopoint pt, int maxDis, int limit, java.util.Map<String, String> __ctx, Ice.Callback __cb)
{
return begin_poi_search_by_key_type_near(emIndexType, key, arrType, pt, maxDis, limit, __ctx, true, __cb);
}
public Ice.AsyncResult begin_poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int[] arrType, geopoint pt, int maxDis, int limit, Callback_IPOISearchFTR_poi_search_by_key_type_near __cb)
{
return begin_poi_search_by_key_type_near(emIndexType, key, arrType, pt, maxDis, limit, null, false, __cb);
}
public Ice.AsyncResult begin_poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int[] arrType, geopoint pt, int maxDis, int limit, java.util.Map<String, String> __ctx, Callback_IPOISearchFTR_poi_search_by_key_type_near __cb)
{
return begin_poi_search_by_key_type_near(emIndexType, key, arrType, pt, maxDis, limit, __ctx, true, __cb);
}
private Ice.AsyncResult begin_poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int[] arrType, geopoint pt, int maxDis, int limit, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
{
__checkAsyncTwowayOnly(__poi_search_by_key_type_near_name);
IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __poi_search_by_key_type_near_name, __cb);
try
{
__result.__prepare(__poi_search_by_key_type_near_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
IceInternal.BasicStream __os = __result.__startWriteParams(Ice.FormatType.DefaultFormat);
emIndexType.__write(__os);
__os.writeString(key);
poi_type_seq_tHelper.write(__os, arrType);
pt.__write(__os);
__os.writeInt(maxDis);
__os.writeInt(limit);
__result.__endWriteParams();
__result.__send(true);
}
catch(Ice.LocalException __ex)
{
__result.__exceptionAsync(__ex);
}
return __result;
}
public int end_poi_search_by_key_type_near(poi_info_seq_tHolder arrPoiInfo, Ice.AsyncResult __result)
{
Ice.AsyncResult.__check(__result, this, __poi_search_by_key_type_near_name);
boolean __ok = __result.__wait();
try
{
if(!__ok)
{
try
{
__result.__throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __result.__startReadParams();
arrPoiInfo.value = poi_info_seq_tHelper.read(__is);
int __ret;
__ret = __is.readInt();
__result.__endReadParams();
return __ret;
}
catch(Ice.LocalException ex)
{
Ice.Instrumentation.InvocationObserver __obsv = __result.__getObserver();
if(__obsv != null)
{
__obsv.failed(ex.ice_name());
}
throw ex;
}
}
public static IPOISearchFTRPrx checkedCast(Ice.ObjectPrx __obj)
{
IPOISearchFTRPrx __d = null;
if(__obj != null)
{
if(__obj instanceof IPOISearchFTRPrx)
{
__d = (IPOISearchFTRPrx)__obj;
}
else
{
if(__obj.ice_isA(ice_staticId()))
{
IPOISearchFTRPrxHelper __h = new IPOISearchFTRPrxHelper();
__h.__copyFrom(__obj);
__d = __h;
}
}
}
return __d;
}
public static IPOISearchFTRPrx checkedCast(Ice.ObjectPrx __obj, java.util.Map<String, String> __ctx)
{
IPOISearchFTRPrx __d = null;
if(__obj != null)
{
if(__obj instanceof IPOISearchFTRPrx)
{
__d = (IPOISearchFTRPrx)__obj;
}
else
{
if(__obj.ice_isA(ice_staticId(), __ctx))
{
IPOISearchFTRPrxHelper __h = new IPOISearchFTRPrxHelper();
__h.__copyFrom(__obj);
__d = __h;
}
}
}
return __d;
}
public static IPOISearchFTRPrx checkedCast(Ice.ObjectPrx __obj, String __facet)
{
IPOISearchFTRPrx __d = null;
if(__obj != null)
{
Ice.ObjectPrx __bb = __obj.ice_facet(__facet);
try
{
if(__bb.ice_isA(ice_staticId()))
{
IPOISearchFTRPrxHelper __h = new IPOISearchFTRPrxHelper();
__h.__copyFrom(__bb);
__d = __h;
}
}
catch(Ice.FacetNotExistException ex)
{
}
}
return __d;
}
public static IPOISearchFTRPrx checkedCast(Ice.ObjectPrx __obj, String __facet, java.util.Map<String, String> __ctx)
{
IPOISearchFTRPrx __d = null;
if(__obj != null)
{
Ice.ObjectPrx __bb = __obj.ice_facet(__facet);
try
{
if(__bb.ice_isA(ice_staticId(), __ctx))
{
IPOISearchFTRPrxHelper __h = new IPOISearchFTRPrxHelper();
__h.__copyFrom(__bb);
__d = __h;
}
}
catch(Ice.FacetNotExistException ex)
{
}
}
return __d;
}
public static IPOISearchFTRPrx uncheckedCast(Ice.ObjectPrx __obj)
{
IPOISearchFTRPrx __d = null;
if(__obj != null)
{
if(__obj instanceof IPOISearchFTRPrx)
{
__d = (IPOISearchFTRPrx)__obj;
}
else
{
IPOISearchFTRPrxHelper __h = new IPOISearchFTRPrxHelper();
__h.__copyFrom(__obj);
__d = __h;
}
}
return __d;
}
public static IPOISearchFTRPrx uncheckedCast(Ice.ObjectPrx __obj, String __facet)
{
IPOISearchFTRPrx __d = null;
if(__obj != null)
{
Ice.ObjectPrx __bb = __obj.ice_facet(__facet);
IPOISearchFTRPrxHelper __h = new IPOISearchFTRPrxHelper();
__h.__copyFrom(__bb);
__d = __h;
}
return __d;
}
public static final String[] __ids =
{
"::Ice::Object",
"::POI::IPOISearchFTR"
};
public static String ice_staticId()
{
return __ids[1];
}
protected Ice._ObjectDelM __createDelegateM()
{
return new _IPOISearchFTRDelM();
}
protected Ice._ObjectDelD __createDelegateD()
{
return new _IPOISearchFTRDelD();
}
public static void __write(IceInternal.BasicStream __os, IPOISearchFTRPrx v)
{
__os.writeProxy(v);
}
public static IPOISearchFTRPrx __read(IceInternal.BasicStream __is)
{
Ice.ObjectPrx proxy = __is.readProxy();
if(proxy != null)
{
IPOISearchFTRPrxHelper result = new IPOISearchFTRPrxHelper();
result.__copyFrom(proxy);
return result;
}
return null;
}
public static final long serialVersionUID = 0L;
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public interface IPOISearchNear extends Ice.Object,
_IPOISearchNearOperations, _IPOISearchNearOperationsNC
{
public static final long serialVersionUID = -6553258658088847870L;
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public final class IPOISearchNearHolder extends Ice.ObjectHolderBase<IPOISearchNear>
{
public
IPOISearchNearHolder()
{
}
public
IPOISearchNearHolder(IPOISearchNear value)
{
this.value = value;
}
public void
patch(Ice.Object v)
{
if(v == null || v instanceof IPOISearchNear)
{
value = (IPOISearchNear)v;
}
else
{
IceInternal.Ex.throwUOE(type(), v);
}
}
public String
type()
{
return _IPOISearchNearDisp.ice_staticId();
}
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public interface IPOISearchNearPrx extends Ice.ObjectPrx
{
public int poi_search_by_rect(geopoint ptLL, geopoint ptRR, int[] arrType, int numLimit, poi_info_seq_tHolder arrPoiInfo);
public int poi_search_by_rect(geopoint ptLL, geopoint ptRR, int[] arrType, int numLimit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_poi_search_by_rect(geopoint ptLL, geopoint ptRR, int[] arrType, int numLimit);
public Ice.AsyncResult begin_poi_search_by_rect(geopoint ptLL, geopoint ptRR, int[] arrType, int numLimit, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_poi_search_by_rect(geopoint ptLL, geopoint ptRR, int[] arrType, int numLimit, Ice.Callback __cb);
public Ice.AsyncResult begin_poi_search_by_rect(geopoint ptLL, geopoint ptRR, int[] arrType, int numLimit, java.util.Map<String, String> __ctx, Ice.Callback __cb);
public Ice.AsyncResult begin_poi_search_by_rect(geopoint ptLL, geopoint ptRR, int[] arrType, int numLimit, Callback_IPOISearchNear_poi_search_by_rect __cb);
public Ice.AsyncResult begin_poi_search_by_rect(geopoint ptLL, geopoint ptRR, int[] arrType, int numLimit, java.util.Map<String, String> __ctx, Callback_IPOISearchNear_poi_search_by_rect __cb);
public int end_poi_search_by_rect(poi_info_seq_tHolder arrPoiInfo, Ice.AsyncResult __result);
public int poi_search_by_circle(geopoint pt, int maxDis, int[] arrType, int numLimit, poi_info_seq_tHolder arrPoiInfo);
public int poi_search_by_circle(geopoint pt, int maxDis, int[] arrType, int numLimit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_poi_search_by_circle(geopoint pt, int maxDis, int[] arrType, int numLimit);
public Ice.AsyncResult begin_poi_search_by_circle(geopoint pt, int maxDis, int[] arrType, int numLimit, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_poi_search_by_circle(geopoint pt, int maxDis, int[] arrType, int numLimit, Ice.Callback __cb);
public Ice.AsyncResult begin_poi_search_by_circle(geopoint pt, int maxDis, int[] arrType, int numLimit, java.util.Map<String, String> __ctx, Ice.Callback __cb);
public Ice.AsyncResult begin_poi_search_by_circle(geopoint pt, int maxDis, int[] arrType, int numLimit, Callback_IPOISearchNear_poi_search_by_circle __cb);
public Ice.AsyncResult begin_poi_search_by_circle(geopoint pt, int maxDis, int[] arrType, int numLimit, java.util.Map<String, String> __ctx, Callback_IPOISearchNear_poi_search_by_circle __cb);
public int end_poi_search_by_circle(poi_info_seq_tHolder arrPoiInfo, Ice.AsyncResult __result);
public int poi_search_by_city(int citycode, int[] arrType, int limit, poi_info_seq_tHolder arrPoiInfo);
public int poi_search_by_city(int citycode, int[] arrType, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_poi_search_by_city(int citycode, int[] arrType, int limit);
public Ice.AsyncResult begin_poi_search_by_city(int citycode, int[] arrType, int limit, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_poi_search_by_city(int citycode, int[] arrType, int limit, Ice.Callback __cb);
public Ice.AsyncResult begin_poi_search_by_city(int citycode, int[] arrType, int limit, java.util.Map<String, String> __ctx, Ice.Callback __cb);
public Ice.AsyncResult begin_poi_search_by_city(int citycode, int[] arrType, int limit, Callback_IPOISearchNear_poi_search_by_city __cb);
public Ice.AsyncResult begin_poi_search_by_city(int citycode, int[] arrType, int limit, java.util.Map<String, String> __ctx, Callback_IPOISearchNear_poi_search_by_city __cb);
public int end_poi_search_by_city(poi_info_seq_tHolder arrPoiInfo, Ice.AsyncResult __result);
public int ReverseGeocoding(geopoint pt, Ice.StringHolder strGeopointDescription);
public int ReverseGeocoding(geopoint pt, Ice.StringHolder strGeopointDescription, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_ReverseGeocoding(geopoint pt);
public Ice.AsyncResult begin_ReverseGeocoding(geopoint pt, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_ReverseGeocoding(geopoint pt, Ice.Callback __cb);
public Ice.AsyncResult begin_ReverseGeocoding(geopoint pt, java.util.Map<String, String> __ctx, Ice.Callback __cb);
public Ice.AsyncResult begin_ReverseGeocoding(geopoint pt, Callback_IPOISearchNear_ReverseGeocoding __cb);
public Ice.AsyncResult begin_ReverseGeocoding(geopoint pt, java.util.Map<String, String> __ctx, Callback_IPOISearchNear_ReverseGeocoding __cb);
public int end_ReverseGeocoding(Ice.StringHolder strGeopointDescription, Ice.AsyncResult __result);
public int ReverseGeocoding2(geopoint pt, Ice.StringHolder strGeopointDescription);
public int ReverseGeocoding2(geopoint pt, Ice.StringHolder strGeopointDescription, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_ReverseGeocoding2(geopoint pt);
public Ice.AsyncResult begin_ReverseGeocoding2(geopoint pt, java.util.Map<String, String> __ctx);
public Ice.AsyncResult begin_ReverseGeocoding2(geopoint pt, Ice.Callback __cb);
public Ice.AsyncResult begin_ReverseGeocoding2(geopoint pt, java.util.Map<String, String> __ctx, Ice.Callback __cb);
public Ice.AsyncResult begin_ReverseGeocoding2(geopoint pt, Callback_IPOISearchNear_ReverseGeocoding2 __cb);
public Ice.AsyncResult begin_ReverseGeocoding2(geopoint pt, java.util.Map<String, String> __ctx, Callback_IPOISearchNear_ReverseGeocoding2 __cb);
public int end_ReverseGeocoding2(Ice.StringHolder strGeopointDescription, Ice.AsyncResult __result);
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public final class IPOISearchNearPrxHelper extends Ice.ObjectPrxHelperBase implements IPOISearchNearPrx
{
private static final String __ReverseGeocoding_name = "ReverseGeocoding";
public int ReverseGeocoding(geopoint pt, Ice.StringHolder strGeopointDescription)
{
return ReverseGeocoding(pt, strGeopointDescription, null, false);
}
public int ReverseGeocoding(geopoint pt, Ice.StringHolder strGeopointDescription, java.util.Map<String, String> __ctx)
{
return ReverseGeocoding(pt, strGeopointDescription, __ctx, true);
}
private int ReverseGeocoding(geopoint pt, Ice.StringHolder strGeopointDescription, java.util.Map<String, String> __ctx, boolean __explicitCtx)
{
if(__explicitCtx && __ctx == null)
{
__ctx = _emptyContext;
}
final Ice.Instrumentation.InvocationObserver __observer = IceInternal.ObserverHelper.get(this, "ReverseGeocoding", __ctx);
int __cnt = 0;
try
{
while(true)
{
Ice._ObjectDel __delBase = null;
try
{
__checkTwowayOnly("ReverseGeocoding");
__delBase = __getDelegate(false);
_IPOISearchNearDel __del = (_IPOISearchNearDel)__delBase;
return __del.ReverseGeocoding(pt, strGeopointDescription, __ctx, __observer);
}
catch(IceInternal.LocalExceptionWrapper __ex)
{
__handleExceptionWrapper(__delBase, __ex, __observer);
}
catch(Ice.LocalException __ex)
{
__cnt = __handleException(__delBase, __ex, null, __cnt, __observer);
}
}
}
finally
{
if(__observer != null)
{
__observer.detach();
}
}
}
public Ice.AsyncResult begin_ReverseGeocoding(geopoint pt)
{
return begin_ReverseGeocoding(pt, null, false, null);
}
public Ice.AsyncResult begin_ReverseGeocoding(geopoint pt, java.util.Map<String, String> __ctx)
{
return begin_ReverseGeocoding(pt, __ctx, true, null);
}
public Ice.AsyncResult begin_ReverseGeocoding(geopoint pt, Ice.Callback __cb)
{
return begin_ReverseGeocoding(pt, null, false, __cb);
}
public Ice.AsyncResult begin_ReverseGeocoding(geopoint pt, java.util.Map<String, String> __ctx, Ice.Callback __cb)
{
return begin_ReverseGeocoding(pt, __ctx, true, __cb);
}
public Ice.AsyncResult begin_ReverseGeocoding(geopoint pt, Callback_IPOISearchNear_ReverseGeocoding __cb)
{
return begin_ReverseGeocoding(pt, null, false, __cb);
}
public Ice.AsyncResult begin_ReverseGeocoding(geopoint pt, java.util.Map<String, String> __ctx, Callback_IPOISearchNear_ReverseGeocoding __cb)
{
return begin_ReverseGeocoding(pt, __ctx, true, __cb);
}
private Ice.AsyncResult begin_ReverseGeocoding(geopoint pt, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
{
__checkAsyncTwowayOnly(__ReverseGeocoding_name);
IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __ReverseGeocoding_name, __cb);
try
{
__result.__prepare(__ReverseGeocoding_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
IceInternal.BasicStream __os = __result.__startWriteParams(Ice.FormatType.DefaultFormat);
pt.__write(__os);
__result.__endWriteParams();
__result.__send(true);
}
catch(Ice.LocalException __ex)
{
__result.__exceptionAsync(__ex);
}
return __result;
}
public int end_ReverseGeocoding(Ice.StringHolder strGeopointDescription, Ice.AsyncResult __result)
{
Ice.AsyncResult.__check(__result, this, __ReverseGeocoding_name);
boolean __ok = __result.__wait();
try
{
if(!__ok)
{
try
{
__result.__throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __result.__startReadParams();
strGeopointDescription.value = __is.readString();
int __ret;
__ret = __is.readInt();
__result.__endReadParams();
return __ret;
}
catch(Ice.LocalException ex)
{
Ice.Instrumentation.InvocationObserver __obsv = __result.__getObserver();
if(__obsv != null)
{
__obsv.failed(ex.ice_name());
}
throw ex;
}
}
private static final String __ReverseGeocoding2_name = "ReverseGeocoding2";
public int ReverseGeocoding2(geopoint pt, Ice.StringHolder strGeopointDescription)
{
return ReverseGeocoding2(pt, strGeopointDescription, null, false);
}
public int ReverseGeocoding2(geopoint pt, Ice.StringHolder strGeopointDescription, java.util.Map<String, String> __ctx)
{
return ReverseGeocoding2(pt, strGeopointDescription, __ctx, true);
}
private int ReverseGeocoding2(geopoint pt, Ice.StringHolder strGeopointDescription, java.util.Map<String, String> __ctx, boolean __explicitCtx)
{
if(__explicitCtx && __ctx == null)
{
__ctx = _emptyContext;
}
final Ice.Instrumentation.InvocationObserver __observer = IceInternal.ObserverHelper.get(this, "ReverseGeocoding2", __ctx);
int __cnt = 0;
try
{
while(true)
{
Ice._ObjectDel __delBase = null;
try
{
__checkTwowayOnly("ReverseGeocoding2");
__delBase = __getDelegate(false);
_IPOISearchNearDel __del = (_IPOISearchNearDel)__delBase;
return __del.ReverseGeocoding2(pt, strGeopointDescription, __ctx, __observer);
}
catch(IceInternal.LocalExceptionWrapper __ex)
{
__handleExceptionWrapper(__delBase, __ex, __observer);
}
catch(Ice.LocalException __ex)
{
__cnt = __handleException(__delBase, __ex, null, __cnt, __observer);
}
}
}
finally
{
if(__observer != null)
{
__observer.detach();
}
}
}
public Ice.AsyncResult begin_ReverseGeocoding2(geopoint pt)
{
return begin_ReverseGeocoding2(pt, null, false, null);
}
public Ice.AsyncResult begin_ReverseGeocoding2(geopoint pt, java.util.Map<String, String> __ctx)
{
return begin_ReverseGeocoding2(pt, __ctx, true, null);
}
public Ice.AsyncResult begin_ReverseGeocoding2(geopoint pt, Ice.Callback __cb)
{
return begin_ReverseGeocoding2(pt, null, false, __cb);
}
public Ice.AsyncResult begin_ReverseGeocoding2(geopoint pt, java.util.Map<String, String> __ctx, Ice.Callback __cb)
{
return begin_ReverseGeocoding2(pt, __ctx, true, __cb);
}
public Ice.AsyncResult begin_ReverseGeocoding2(geopoint pt, Callback_IPOISearchNear_ReverseGeocoding2 __cb)
{
return begin_ReverseGeocoding2(pt, null, false, __cb);
}
public Ice.AsyncResult begin_ReverseGeocoding2(geopoint pt, java.util.Map<String, String> __ctx, Callback_IPOISearchNear_ReverseGeocoding2 __cb)
{
return begin_ReverseGeocoding2(pt, __ctx, true, __cb);
}
private Ice.AsyncResult begin_ReverseGeocoding2(geopoint pt, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
{
__checkAsyncTwowayOnly(__ReverseGeocoding2_name);
IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __ReverseGeocoding2_name, __cb);
try
{
__result.__prepare(__ReverseGeocoding2_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
IceInternal.BasicStream __os = __result.__startWriteParams(Ice.FormatType.DefaultFormat);
pt.__write(__os);
__result.__endWriteParams();
__result.__send(true);
}
catch(Ice.LocalException __ex)
{
__result.__exceptionAsync(__ex);
}
return __result;
}
public int end_ReverseGeocoding2(Ice.StringHolder strGeopointDescription, Ice.AsyncResult __result)
{
Ice.AsyncResult.__check(__result, this, __ReverseGeocoding2_name);
boolean __ok = __result.__wait();
try
{
if(!__ok)
{
try
{
__result.__throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __result.__startReadParams();
strGeopointDescription.value = __is.readString();
int __ret;
__ret = __is.readInt();
__result.__endReadParams();
return __ret;
}
catch(Ice.LocalException ex)
{
Ice.Instrumentation.InvocationObserver __obsv = __result.__getObserver();
if(__obsv != null)
{
__obsv.failed(ex.ice_name());
}
throw ex;
}
}
private static final String __poi_search_by_circle_name = "poi_search_by_circle";
public int poi_search_by_circle(geopoint pt, int maxDis, int[] arrType, int numLimit, poi_info_seq_tHolder arrPoiInfo)
{
return poi_search_by_circle(pt, maxDis, arrType, numLimit, arrPoiInfo, null, false);
}
public int poi_search_by_circle(geopoint pt, int maxDis, int[] arrType, int numLimit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx)
{
return poi_search_by_circle(pt, maxDis, arrType, numLimit, arrPoiInfo, __ctx, true);
}
private int poi_search_by_circle(geopoint pt, int maxDis, int[] arrType, int numLimit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, boolean __explicitCtx)
{
if(__explicitCtx && __ctx == null)
{
__ctx = _emptyContext;
}
final Ice.Instrumentation.InvocationObserver __observer = IceInternal.ObserverHelper.get(this, "poi_search_by_circle", __ctx);
int __cnt = 0;
try
{
while(true)
{
Ice._ObjectDel __delBase = null;
try
{
__checkTwowayOnly("poi_search_by_circle");
__delBase = __getDelegate(false);
_IPOISearchNearDel __del = (_IPOISearchNearDel)__delBase;
return __del.poi_search_by_circle(pt, maxDis, arrType, numLimit, arrPoiInfo, __ctx, __observer);
}
catch(IceInternal.LocalExceptionWrapper __ex)
{
__handleExceptionWrapper(__delBase, __ex, __observer);
}
catch(Ice.LocalException __ex)
{
__cnt = __handleException(__delBase, __ex, null, __cnt, __observer);
}
}
}
finally
{
if(__observer != null)
{
__observer.detach();
}
}
}
public Ice.AsyncResult begin_poi_search_by_circle(geopoint pt, int maxDis, int[] arrType, int numLimit)
{
return begin_poi_search_by_circle(pt, maxDis, arrType, numLimit, null, false, null);
}
public Ice.AsyncResult begin_poi_search_by_circle(geopoint pt, int maxDis, int[] arrType, int numLimit, java.util.Map<String, String> __ctx)
{
return begin_poi_search_by_circle(pt, maxDis, arrType, numLimit, __ctx, true, null);
}
public Ice.AsyncResult begin_poi_search_by_circle(geopoint pt, int maxDis, int[] arrType, int numLimit, Ice.Callback __cb)
{
return begin_poi_search_by_circle(pt, maxDis, arrType, numLimit, null, false, __cb);
}
public Ice.AsyncResult begin_poi_search_by_circle(geopoint pt, int maxDis, int[] arrType, int numLimit, java.util.Map<String, String> __ctx, Ice.Callback __cb)
{
return begin_poi_search_by_circle(pt, maxDis, arrType, numLimit, __ctx, true, __cb);
}
public Ice.AsyncResult begin_poi_search_by_circle(geopoint pt, int maxDis, int[] arrType, int numLimit, Callback_IPOISearchNear_poi_search_by_circle __cb)
{
return begin_poi_search_by_circle(pt, maxDis, arrType, numLimit, null, false, __cb);
}
public Ice.AsyncResult begin_poi_search_by_circle(geopoint pt, int maxDis, int[] arrType, int numLimit, java.util.Map<String, String> __ctx, Callback_IPOISearchNear_poi_search_by_circle __cb)
{
return begin_poi_search_by_circle(pt, maxDis, arrType, numLimit, __ctx, true, __cb);
}
private Ice.AsyncResult begin_poi_search_by_circle(geopoint pt, int maxDis, int[] arrType, int numLimit, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
{
__checkAsyncTwowayOnly(__poi_search_by_circle_name);
IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __poi_search_by_circle_name, __cb);
try
{
__result.__prepare(__poi_search_by_circle_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
IceInternal.BasicStream __os = __result.__startWriteParams(Ice.FormatType.DefaultFormat);
pt.__write(__os);
__os.writeInt(maxDis);
poi_type_seq_tHelper.write(__os, arrType);
__os.writeInt(numLimit);
__result.__endWriteParams();
__result.__send(true);
}
catch(Ice.LocalException __ex)
{
__result.__exceptionAsync(__ex);
}
return __result;
}
public int end_poi_search_by_circle(poi_info_seq_tHolder arrPoiInfo, Ice.AsyncResult __result)
{
Ice.AsyncResult.__check(__result, this, __poi_search_by_circle_name);
boolean __ok = __result.__wait();
try
{
if(!__ok)
{
try
{
__result.__throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __result.__startReadParams();
arrPoiInfo.value = poi_info_seq_tHelper.read(__is);
int __ret;
__ret = __is.readInt();
__result.__endReadParams();
return __ret;
}
catch(Ice.LocalException ex)
{
Ice.Instrumentation.InvocationObserver __obsv = __result.__getObserver();
if(__obsv != null)
{
__obsv.failed(ex.ice_name());
}
throw ex;
}
}
private static final String __poi_search_by_city_name = "poi_search_by_city";
public int poi_search_by_city(int citycode, int[] arrType, int limit, poi_info_seq_tHolder arrPoiInfo)
{
return poi_search_by_city(citycode, arrType, limit, arrPoiInfo, null, false);
}
public int poi_search_by_city(int citycode, int[] arrType, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx)
{
return poi_search_by_city(citycode, arrType, limit, arrPoiInfo, __ctx, true);
}
private int poi_search_by_city(int citycode, int[] arrType, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, boolean __explicitCtx)
{
if(__explicitCtx && __ctx == null)
{
__ctx = _emptyContext;
}
final Ice.Instrumentation.InvocationObserver __observer = IceInternal.ObserverHelper.get(this, "poi_search_by_city", __ctx);
int __cnt = 0;
try
{
while(true)
{
Ice._ObjectDel __delBase = null;
try
{
__checkTwowayOnly("poi_search_by_city");
__delBase = __getDelegate(false);
_IPOISearchNearDel __del = (_IPOISearchNearDel)__delBase;
return __del.poi_search_by_city(citycode, arrType, limit, arrPoiInfo, __ctx, __observer);
}
catch(IceInternal.LocalExceptionWrapper __ex)
{
__handleExceptionWrapper(__delBase, __ex, __observer);
}
catch(Ice.LocalException __ex)
{
__cnt = __handleException(__delBase, __ex, null, __cnt, __observer);
}
}
}
finally
{
if(__observer != null)
{
__observer.detach();
}
}
}
public Ice.AsyncResult begin_poi_search_by_city(int citycode, int[] arrType, int limit)
{
return begin_poi_search_by_city(citycode, arrType, limit, null, false, null);
}
public Ice.AsyncResult begin_poi_search_by_city(int citycode, int[] arrType, int limit, java.util.Map<String, String> __ctx)
{
return begin_poi_search_by_city(citycode, arrType, limit, __ctx, true, null);
}
public Ice.AsyncResult begin_poi_search_by_city(int citycode, int[] arrType, int limit, Ice.Callback __cb)
{
return begin_poi_search_by_city(citycode, arrType, limit, null, false, __cb);
}
public Ice.AsyncResult begin_poi_search_by_city(int citycode, int[] arrType, int limit, java.util.Map<String, String> __ctx, Ice.Callback __cb)
{
return begin_poi_search_by_city(citycode, arrType, limit, __ctx, true, __cb);
}
public Ice.AsyncResult begin_poi_search_by_city(int citycode, int[] arrType, int limit, Callback_IPOISearchNear_poi_search_by_city __cb)
{
return begin_poi_search_by_city(citycode, arrType, limit, null, false, __cb);
}
public Ice.AsyncResult begin_poi_search_by_city(int citycode, int[] arrType, int limit, java.util.Map<String, String> __ctx, Callback_IPOISearchNear_poi_search_by_city __cb)
{
return begin_poi_search_by_city(citycode, arrType, limit, __ctx, true, __cb);
}
private Ice.AsyncResult begin_poi_search_by_city(int citycode, int[] arrType, int limit, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
{
__checkAsyncTwowayOnly(__poi_search_by_city_name);
IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __poi_search_by_city_name, __cb);
try
{
__result.__prepare(__poi_search_by_city_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
IceInternal.BasicStream __os = __result.__startWriteParams(Ice.FormatType.DefaultFormat);
__os.writeInt(citycode);
poi_type_seq_tHelper.write(__os, arrType);
__os.writeInt(limit);
__result.__endWriteParams();
__result.__send(true);
}
catch(Ice.LocalException __ex)
{
__result.__exceptionAsync(__ex);
}
return __result;
}
public int end_poi_search_by_city(poi_info_seq_tHolder arrPoiInfo, Ice.AsyncResult __result)
{
Ice.AsyncResult.__check(__result, this, __poi_search_by_city_name);
boolean __ok = __result.__wait();
try
{
if(!__ok)
{
try
{
__result.__throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __result.__startReadParams();
arrPoiInfo.value = poi_info_seq_tHelper.read(__is);
int __ret;
__ret = __is.readInt();
__result.__endReadParams();
return __ret;
}
catch(Ice.LocalException ex)
{
Ice.Instrumentation.InvocationObserver __obsv = __result.__getObserver();
if(__obsv != null)
{
__obsv.failed(ex.ice_name());
}
throw ex;
}
}
private static final String __poi_search_by_rect_name = "poi_search_by_rect";
public int poi_search_by_rect(geopoint ptLL, geopoint ptRR, int[] arrType, int numLimit, poi_info_seq_tHolder arrPoiInfo)
{
return poi_search_by_rect(ptLL, ptRR, arrType, numLimit, arrPoiInfo, null, false);
}
public int poi_search_by_rect(geopoint ptLL, geopoint ptRR, int[] arrType, int numLimit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx)
{
return poi_search_by_rect(ptLL, ptRR, arrType, numLimit, arrPoiInfo, __ctx, true);
}
private int poi_search_by_rect(geopoint ptLL, geopoint ptRR, int[] arrType, int numLimit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, boolean __explicitCtx)
{
if(__explicitCtx && __ctx == null)
{
__ctx = _emptyContext;
}
final Ice.Instrumentation.InvocationObserver __observer = IceInternal.ObserverHelper.get(this, "poi_search_by_rect", __ctx);
int __cnt = 0;
try
{
while(true)
{
Ice._ObjectDel __delBase = null;
try
{
__checkTwowayOnly("poi_search_by_rect");
__delBase = __getDelegate(false);
_IPOISearchNearDel __del = (_IPOISearchNearDel)__delBase;
return __del.poi_search_by_rect(ptLL, ptRR, arrType, numLimit, arrPoiInfo, __ctx, __observer);
}
catch(IceInternal.LocalExceptionWrapper __ex)
{
__handleExceptionWrapper(__delBase, __ex, __observer);
}
catch(Ice.LocalException __ex)
{
__cnt = __handleException(__delBase, __ex, null, __cnt, __observer);
}
}
}
finally
{
if(__observer != null)
{
__observer.detach();
}
}
}
public Ice.AsyncResult begin_poi_search_by_rect(geopoint ptLL, geopoint ptRR, int[] arrType, int numLimit)
{
return begin_poi_search_by_rect(ptLL, ptRR, arrType, numLimit, null, false, null);
}
public Ice.AsyncResult begin_poi_search_by_rect(geopoint ptLL, geopoint ptRR, int[] arrType, int numLimit, java.util.Map<String, String> __ctx)
{
return begin_poi_search_by_rect(ptLL, ptRR, arrType, numLimit, __ctx, true, null);
}
public Ice.AsyncResult begin_poi_search_by_rect(geopoint ptLL, geopoint ptRR, int[] arrType, int numLimit, Ice.Callback __cb)
{
return begin_poi_search_by_rect(ptLL, ptRR, arrType, numLimit, null, false, __cb);
}
public Ice.AsyncResult begin_poi_search_by_rect(geopoint ptLL, geopoint ptRR, int[] arrType, int numLimit, java.util.Map<String, String> __ctx, Ice.Callback __cb)
{
return begin_poi_search_by_rect(ptLL, ptRR, arrType, numLimit, __ctx, true, __cb);
}
public Ice.AsyncResult begin_poi_search_by_rect(geopoint ptLL, geopoint ptRR, int[] arrType, int numLimit, Callback_IPOISearchNear_poi_search_by_rect __cb)
{
return begin_poi_search_by_rect(ptLL, ptRR, arrType, numLimit, null, false, __cb);
}
public Ice.AsyncResult begin_poi_search_by_rect(geopoint ptLL, geopoint ptRR, int[] arrType, int numLimit, java.util.Map<String, String> __ctx, Callback_IPOISearchNear_poi_search_by_rect __cb)
{
return begin_poi_search_by_rect(ptLL, ptRR, arrType, numLimit, __ctx, true, __cb);
}
private Ice.AsyncResult begin_poi_search_by_rect(geopoint ptLL, geopoint ptRR, int[] arrType, int numLimit, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
{
__checkAsyncTwowayOnly(__poi_search_by_rect_name);
IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __poi_search_by_rect_name, __cb);
try
{
__result.__prepare(__poi_search_by_rect_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
IceInternal.BasicStream __os = __result.__startWriteParams(Ice.FormatType.DefaultFormat);
ptLL.__write(__os);
ptRR.__write(__os);
poi_type_seq_tHelper.write(__os, arrType);
__os.writeInt(numLimit);
__result.__endWriteParams();
__result.__send(true);
}
catch(Ice.LocalException __ex)
{
__result.__exceptionAsync(__ex);
}
return __result;
}
public int end_poi_search_by_rect(poi_info_seq_tHolder arrPoiInfo, Ice.AsyncResult __result)
{
Ice.AsyncResult.__check(__result, this, __poi_search_by_rect_name);
boolean __ok = __result.__wait();
try
{
if(!__ok)
{
try
{
__result.__throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __result.__startReadParams();
arrPoiInfo.value = poi_info_seq_tHelper.read(__is);
int __ret;
__ret = __is.readInt();
__result.__endReadParams();
return __ret;
}
catch(Ice.LocalException ex)
{
Ice.Instrumentation.InvocationObserver __obsv = __result.__getObserver();
if(__obsv != null)
{
__obsv.failed(ex.ice_name());
}
throw ex;
}
}
public static IPOISearchNearPrx checkedCast(Ice.ObjectPrx __obj)
{
IPOISearchNearPrx __d = null;
if(__obj != null)
{
if(__obj instanceof IPOISearchNearPrx)
{
__d = (IPOISearchNearPrx)__obj;
}
else
{
if(__obj.ice_isA(ice_staticId()))
{
IPOISearchNearPrxHelper __h = new IPOISearchNearPrxHelper();
__h.__copyFrom(__obj);
__d = __h;
}
}
}
return __d;
}
public static IPOISearchNearPrx checkedCast(Ice.ObjectPrx __obj, java.util.Map<String, String> __ctx)
{
IPOISearchNearPrx __d = null;
if(__obj != null)
{
if(__obj instanceof IPOISearchNearPrx)
{
__d = (IPOISearchNearPrx)__obj;
}
else
{
if(__obj.ice_isA(ice_staticId(), __ctx))
{
IPOISearchNearPrxHelper __h = new IPOISearchNearPrxHelper();
__h.__copyFrom(__obj);
__d = __h;
}
}
}
return __d;
}
public static IPOISearchNearPrx checkedCast(Ice.ObjectPrx __obj, String __facet)
{
IPOISearchNearPrx __d = null;
if(__obj != null)
{
Ice.ObjectPrx __bb = __obj.ice_facet(__facet);
try
{
if(__bb.ice_isA(ice_staticId()))
{
IPOISearchNearPrxHelper __h = new IPOISearchNearPrxHelper();
__h.__copyFrom(__bb);
__d = __h;
}
}
catch(Ice.FacetNotExistException ex)
{
}
}
return __d;
}
public static IPOISearchNearPrx checkedCast(Ice.ObjectPrx __obj, String __facet, java.util.Map<String, String> __ctx)
{
IPOISearchNearPrx __d = null;
if(__obj != null)
{
Ice.ObjectPrx __bb = __obj.ice_facet(__facet);
try
{
if(__bb.ice_isA(ice_staticId(), __ctx))
{
IPOISearchNearPrxHelper __h = new IPOISearchNearPrxHelper();
__h.__copyFrom(__bb);
__d = __h;
}
}
catch(Ice.FacetNotExistException ex)
{
}
}
return __d;
}
public static IPOISearchNearPrx uncheckedCast(Ice.ObjectPrx __obj)
{
IPOISearchNearPrx __d = null;
if(__obj != null)
{
if(__obj instanceof IPOISearchNearPrx)
{
__d = (IPOISearchNearPrx)__obj;
}
else
{
IPOISearchNearPrxHelper __h = new IPOISearchNearPrxHelper();
__h.__copyFrom(__obj);
__d = __h;
}
}
return __d;
}
public static IPOISearchNearPrx uncheckedCast(Ice.ObjectPrx __obj, String __facet)
{
IPOISearchNearPrx __d = null;
if(__obj != null)
{
Ice.ObjectPrx __bb = __obj.ice_facet(__facet);
IPOISearchNearPrxHelper __h = new IPOISearchNearPrxHelper();
__h.__copyFrom(__bb);
__d = __h;
}
return __d;
}
public static final String[] __ids =
{
"::Ice::Object",
"::POI::IPOISearchNear"
};
public static String ice_staticId()
{
return __ids[1];
}
protected Ice._ObjectDelM __createDelegateM()
{
return new _IPOISearchNearDelM();
}
protected Ice._ObjectDelD __createDelegateD()
{
return new _IPOISearchNearDelD();
}
public static void __write(IceInternal.BasicStream __os, IPOISearchNearPrx v)
{
__os.writeProxy(v);
}
public static IPOISearchNearPrx __read(IceInternal.BasicStream __is)
{
Ice.ObjectPrx proxy = __is.readProxy();
if(proxy != null)
{
IPOISearchNearPrxHelper result = new IPOISearchNearPrxHelper();
result.__copyFrom(proxy);
return result;
}
return null;
}
public static final long serialVersionUID = 0L;
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public interface _IPOISearchFTRDel extends Ice._ObjectDel
{
int poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __obsv)
throws IceInternal.LocalExceptionWrapper;
int poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int[] arrType, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __obsv)
throws IceInternal.LocalExceptionWrapper;
int poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int[] arrType, geopoint pt, int maxDis, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __obsv)
throws IceInternal.LocalExceptionWrapper;
int poi_search_by_key_cityname(String key, String cityname, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __obsv)
throws IceInternal.LocalExceptionWrapper;
int poi_search_by_key_citycode(String key, int citycode, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __obsv)
throws IceInternal.LocalExceptionWrapper;
int Geocoding(String strAddress, geocoding_resultHolder rst, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __obsv)
throws IceInternal.LocalExceptionWrapper;
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public final class _IPOISearchFTRDelD extends Ice._ObjectDelD implements _IPOISearchFTRDel
{
public int Geocoding(final String strAddress, final geocoding_resultHolder rst, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
final Ice.Current __current = new Ice.Current();
__initCurrent(__current, "Geocoding", Ice.OperationMode.Normal, __ctx);
final Ice.IntHolder __result = new Ice.IntHolder();
IceInternal.Direct __direct = null;
try
{
__direct = new IceInternal.Direct(__current)
{
public Ice.DispatchStatus run(Ice.Object __obj)
{
IPOISearchFTR __servant = null;
if(__obj == null || __obj instanceof IPOISearchFTR)
{
__servant = (IPOISearchFTR)__obj;
}
else
{
throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
}
__result.value = __servant.Geocoding(strAddress, rst, __current);
return Ice.DispatchStatus.DispatchOK;
}
};
try
{
Ice.DispatchStatus __status = __direct.getServant().__collocDispatch(__direct);
if(__status == Ice.DispatchStatus.DispatchUserException)
{
__direct.throwUserException();
}
assert __status == Ice.DispatchStatus.DispatchOK;
return __result.value;
}
finally
{
__direct.destroy();
}
}
catch(Ice.SystemException __ex)
{
throw __ex;
}
catch(Throwable __ex)
{
IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
}
return __result.value;
}
public int poi_search_by_key(final POI_INDEX_TYPE_CONSTANTS emIndexType, final String key, final int citycode, final int limit, final poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
final Ice.Current __current = new Ice.Current();
__initCurrent(__current, "poi_search_by_key", Ice.OperationMode.Normal, __ctx);
final Ice.IntHolder __result = new Ice.IntHolder();
IceInternal.Direct __direct = null;
try
{
__direct = new IceInternal.Direct(__current)
{
public Ice.DispatchStatus run(Ice.Object __obj)
{
IPOISearchFTR __servant = null;
if(__obj == null || __obj instanceof IPOISearchFTR)
{
__servant = (IPOISearchFTR)__obj;
}
else
{
throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
}
__result.value = __servant.poi_search_by_key(emIndexType, key, citycode, limit, arrPoiInfo, __current);
return Ice.DispatchStatus.DispatchOK;
}
};
try
{
Ice.DispatchStatus __status = __direct.getServant().__collocDispatch(__direct);
if(__status == Ice.DispatchStatus.DispatchUserException)
{
__direct.throwUserException();
}
assert __status == Ice.DispatchStatus.DispatchOK;
return __result.value;
}
finally
{
__direct.destroy();
}
}
catch(Ice.SystemException __ex)
{
throw __ex;
}
catch(Throwable __ex)
{
IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
}
return __result.value;
}
public int poi_search_by_key_and_type(final POI_INDEX_TYPE_CONSTANTS emIndexType, final String key, final int citycode, final int[] arrType, final int limit, final poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
final Ice.Current __current = new Ice.Current();
__initCurrent(__current, "poi_search_by_key_and_type", Ice.OperationMode.Normal, __ctx);
final Ice.IntHolder __result = new Ice.IntHolder();
IceInternal.Direct __direct = null;
try
{
__direct = new IceInternal.Direct(__current)
{
public Ice.DispatchStatus run(Ice.Object __obj)
{
IPOISearchFTR __servant = null;
if(__obj == null || __obj instanceof IPOISearchFTR)
{
__servant = (IPOISearchFTR)__obj;
}
else
{
throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
}
__result.value = __servant.poi_search_by_key_and_type(emIndexType, key, citycode, arrType, limit, arrPoiInfo, __current);
return Ice.DispatchStatus.DispatchOK;
}
};
try
{
Ice.DispatchStatus __status = __direct.getServant().__collocDispatch(__direct);
if(__status == Ice.DispatchStatus.DispatchUserException)
{
__direct.throwUserException();
}
assert __status == Ice.DispatchStatus.DispatchOK;
return __result.value;
}
finally
{
__direct.destroy();
}
}
catch(Ice.SystemException __ex)
{
throw __ex;
}
catch(Throwable __ex)
{
IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
}
return __result.value;
}
public int poi_search_by_key_citycode(final String key, final int citycode, final int limit, final poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
final Ice.Current __current = new Ice.Current();
__initCurrent(__current, "poi_search_by_key_citycode", Ice.OperationMode.Normal, __ctx);
final Ice.IntHolder __result = new Ice.IntHolder();
IceInternal.Direct __direct = null;
try
{
__direct = new IceInternal.Direct(__current)
{
public Ice.DispatchStatus run(Ice.Object __obj)
{
IPOISearchFTR __servant = null;
if(__obj == null || __obj instanceof IPOISearchFTR)
{
__servant = (IPOISearchFTR)__obj;
}
else
{
throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
}
__result.value = __servant.poi_search_by_key_citycode(key, citycode, limit, arrPoiInfo, __current);
return Ice.DispatchStatus.DispatchOK;
}
};
try
{
Ice.DispatchStatus __status = __direct.getServant().__collocDispatch(__direct);
if(__status == Ice.DispatchStatus.DispatchUserException)
{
__direct.throwUserException();
}
assert __status == Ice.DispatchStatus.DispatchOK;
return __result.value;
}
finally
{
__direct.destroy();
}
}
catch(Ice.SystemException __ex)
{
throw __ex;
}
catch(Throwable __ex)
{
IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
}
return __result.value;
}
public int poi_search_by_key_cityname(final String key, final String cityname, final int limit, final poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
final Ice.Current __current = new Ice.Current();
__initCurrent(__current, "poi_search_by_key_cityname", Ice.OperationMode.Normal, __ctx);
final Ice.IntHolder __result = new Ice.IntHolder();
IceInternal.Direct __direct = null;
try
{
__direct = new IceInternal.Direct(__current)
{
public Ice.DispatchStatus run(Ice.Object __obj)
{
IPOISearchFTR __servant = null;
if(__obj == null || __obj instanceof IPOISearchFTR)
{
__servant = (IPOISearchFTR)__obj;
}
else
{
throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
}
__result.value = __servant.poi_search_by_key_cityname(key, cityname, limit, arrPoiInfo, __current);
return Ice.DispatchStatus.DispatchOK;
}
};
try
{
Ice.DispatchStatus __status = __direct.getServant().__collocDispatch(__direct);
if(__status == Ice.DispatchStatus.DispatchUserException)
{
__direct.throwUserException();
}
assert __status == Ice.DispatchStatus.DispatchOK;
return __result.value;
}
finally
{
__direct.destroy();
}
}
catch(Ice.SystemException __ex)
{
throw __ex;
}
catch(Throwable __ex)
{
IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
}
return __result.value;
}
public int poi_search_by_key_type_near(final POI_INDEX_TYPE_CONSTANTS emIndexType, final String key, final int[] arrType, final geopoint pt, final int maxDis, final int limit, final poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
final Ice.Current __current = new Ice.Current();
__initCurrent(__current, "poi_search_by_key_type_near", Ice.OperationMode.Normal, __ctx);
final Ice.IntHolder __result = new Ice.IntHolder();
IceInternal.Direct __direct = null;
try
{
__direct = new IceInternal.Direct(__current)
{
public Ice.DispatchStatus run(Ice.Object __obj)
{
IPOISearchFTR __servant = null;
if(__obj == null || __obj instanceof IPOISearchFTR)
{
__servant = (IPOISearchFTR)__obj;
}
else
{
throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
}
__result.value = __servant.poi_search_by_key_type_near(emIndexType, key, arrType, pt, maxDis, limit, arrPoiInfo, __current);
return Ice.DispatchStatus.DispatchOK;
}
};
try
{
Ice.DispatchStatus __status = __direct.getServant().__collocDispatch(__direct);
if(__status == Ice.DispatchStatus.DispatchUserException)
{
__direct.throwUserException();
}
assert __status == Ice.DispatchStatus.DispatchOK;
return __result.value;
}
finally
{
__direct.destroy();
}
}
catch(Ice.SystemException __ex)
{
throw __ex;
}
catch(Throwable __ex)
{
IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
}
return __result.value;
}
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public final class _IPOISearchFTRDelM extends Ice._ObjectDelM implements _IPOISearchFTRDel
{
public int
Geocoding(String strAddress, geocoding_resultHolder rst, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
IceInternal.Outgoing __og = __handler.getOutgoing("Geocoding", Ice.OperationMode.Normal, __ctx, __observer);
try
{
try
{
IceInternal.BasicStream __os = __og.startWriteParams(Ice.FormatType.DefaultFormat);
__os.writeString(strAddress);
__og.endWriteParams();
}
catch(Ice.LocalException __ex)
{
__og.abort(__ex);
}
boolean __ok = __og.invoke();
try
{
if(!__ok)
{
try
{
__og.throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __og.startReadParams();
rst.value = new geocoding_result();
rst.value.__read(__is);
int __ret;
__ret = __is.readInt();
__og.endReadParams();
return __ret;
}
catch(Ice.LocalException __ex)
{
throw new IceInternal.LocalExceptionWrapper(__ex, false);
}
}
finally
{
__handler.reclaimOutgoing(__og);
}
}
public int
poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
IceInternal.Outgoing __og = __handler.getOutgoing("poi_search_by_key", Ice.OperationMode.Normal, __ctx, __observer);
try
{
try
{
IceInternal.BasicStream __os = __og.startWriteParams(Ice.FormatType.DefaultFormat);
emIndexType.__write(__os);
__os.writeString(key);
__os.writeInt(citycode);
__os.writeInt(limit);
__og.endWriteParams();
}
catch(Ice.LocalException __ex)
{
__og.abort(__ex);
}
boolean __ok = __og.invoke();
try
{
if(!__ok)
{
try
{
__og.throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __og.startReadParams();
arrPoiInfo.value = poi_info_seq_tHelper.read(__is);
int __ret;
__ret = __is.readInt();
__og.endReadParams();
return __ret;
}
catch(Ice.LocalException __ex)
{
throw new IceInternal.LocalExceptionWrapper(__ex, false);
}
}
finally
{
__handler.reclaimOutgoing(__og);
}
}
public int
poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int[] arrType, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
IceInternal.Outgoing __og = __handler.getOutgoing("poi_search_by_key_and_type", Ice.OperationMode.Normal, __ctx, __observer);
try
{
try
{
IceInternal.BasicStream __os = __og.startWriteParams(Ice.FormatType.DefaultFormat);
emIndexType.__write(__os);
__os.writeString(key);
__os.writeInt(citycode);
poi_type_seq_tHelper.write(__os, arrType);
__os.writeInt(limit);
__og.endWriteParams();
}
catch(Ice.LocalException __ex)
{
__og.abort(__ex);
}
boolean __ok = __og.invoke();
try
{
if(!__ok)
{
try
{
__og.throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __og.startReadParams();
arrPoiInfo.value = poi_info_seq_tHelper.read(__is);
int __ret;
__ret = __is.readInt();
__og.endReadParams();
return __ret;
}
catch(Ice.LocalException __ex)
{
throw new IceInternal.LocalExceptionWrapper(__ex, false);
}
}
finally
{
__handler.reclaimOutgoing(__og);
}
}
public int
poi_search_by_key_citycode(String key, int citycode, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
IceInternal.Outgoing __og = __handler.getOutgoing("poi_search_by_key_citycode", Ice.OperationMode.Normal, __ctx, __observer);
try
{
try
{
IceInternal.BasicStream __os = __og.startWriteParams(Ice.FormatType.DefaultFormat);
__os.writeString(key);
__os.writeInt(citycode);
__os.writeInt(limit);
__og.endWriteParams();
}
catch(Ice.LocalException __ex)
{
__og.abort(__ex);
}
boolean __ok = __og.invoke();
try
{
if(!__ok)
{
try
{
__og.throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __og.startReadParams();
arrPoiInfo.value = poi_info_seq_tHelper.read(__is);
int __ret;
__ret = __is.readInt();
__og.endReadParams();
return __ret;
}
catch(Ice.LocalException __ex)
{
throw new IceInternal.LocalExceptionWrapper(__ex, false);
}
}
finally
{
__handler.reclaimOutgoing(__og);
}
}
public int
poi_search_by_key_cityname(String key, String cityname, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
IceInternal.Outgoing __og = __handler.getOutgoing("poi_search_by_key_cityname", Ice.OperationMode.Normal, __ctx, __observer);
try
{
try
{
IceInternal.BasicStream __os = __og.startWriteParams(Ice.FormatType.DefaultFormat);
__os.writeString(key);
__os.writeString(cityname);
__os.writeInt(limit);
__og.endWriteParams();
}
catch(Ice.LocalException __ex)
{
__og.abort(__ex);
}
boolean __ok = __og.invoke();
try
{
if(!__ok)
{
try
{
__og.throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __og.startReadParams();
arrPoiInfo.value = poi_info_seq_tHelper.read(__is);
int __ret;
__ret = __is.readInt();
__og.endReadParams();
return __ret;
}
catch(Ice.LocalException __ex)
{
throw new IceInternal.LocalExceptionWrapper(__ex, false);
}
}
finally
{
__handler.reclaimOutgoing(__og);
}
}
public int
poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int[] arrType, geopoint pt, int maxDis, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
IceInternal.Outgoing __og = __handler.getOutgoing("poi_search_by_key_type_near", Ice.OperationMode.Normal, __ctx, __observer);
try
{
try
{
IceInternal.BasicStream __os = __og.startWriteParams(Ice.FormatType.DefaultFormat);
emIndexType.__write(__os);
__os.writeString(key);
poi_type_seq_tHelper.write(__os, arrType);
pt.__write(__os);
__os.writeInt(maxDis);
__os.writeInt(limit);
__og.endWriteParams();
}
catch(Ice.LocalException __ex)
{
__og.abort(__ex);
}
boolean __ok = __og.invoke();
try
{
if(!__ok)
{
try
{
__og.throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __og.startReadParams();
arrPoiInfo.value = poi_info_seq_tHelper.read(__is);
int __ret;
__ret = __is.readInt();
__og.endReadParams();
return __ret;
}
catch(Ice.LocalException __ex)
{
throw new IceInternal.LocalExceptionWrapper(__ex, false);
}
}
finally
{
__handler.reclaimOutgoing(__og);
}
}
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public abstract class _IPOISearchFTRDisp extends Ice.ObjectImpl implements IPOISearchFTR
{
protected void
ice_copyStateFrom(Ice.Object __obj)
throws CloneNotSupportedException
{
throw new CloneNotSupportedException();
}
public static final String[] __ids =
{
"::Ice::Object",
"::POI::IPOISearchFTR"
};
public boolean ice_isA(String s)
{
return java.util.Arrays.binarySearch(__ids, s) >= 0;
}
public boolean ice_isA(String s, Ice.Current __current)
{
return java.util.Arrays.binarySearch(__ids, s) >= 0;
}
public String[] ice_ids()
{
return __ids;
}
public String[] ice_ids(Ice.Current __current)
{
return __ids;
}
public String ice_id()
{
return __ids[1];
}
public String ice_id(Ice.Current __current)
{
return __ids[1];
}
public static String ice_staticId()
{
return __ids[1];
}
public final int Geocoding(String strAddress, geocoding_resultHolder rst)
{
return Geocoding(strAddress, rst, null);
}
public final int poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int limit, poi_info_seq_tHolder arrPoiInfo)
{
return poi_search_by_key(emIndexType, key, citycode, limit, arrPoiInfo, null);
}
public final int poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int[] arrType, int limit, poi_info_seq_tHolder arrPoiInfo)
{
return poi_search_by_key_and_type(emIndexType, key, citycode, arrType, limit, arrPoiInfo, null);
}
public final int poi_search_by_key_citycode(String key, int citycode, int limit, poi_info_seq_tHolder arrPoiInfo)
{
return poi_search_by_key_citycode(key, citycode, limit, arrPoiInfo, null);
}
public final int poi_search_by_key_cityname(String key, String cityname, int limit, poi_info_seq_tHolder arrPoiInfo)
{
return poi_search_by_key_cityname(key, cityname, limit, arrPoiInfo, null);
}
public final int poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int[] arrType, geopoint pt, int maxDis, int limit, poi_info_seq_tHolder arrPoiInfo)
{
return poi_search_by_key_type_near(emIndexType, key, arrType, pt, maxDis, limit, arrPoiInfo, null);
}
public static Ice.DispatchStatus ___poi_search_by_key(IPOISearchFTR __obj, IceInternal.Incoming __inS, Ice.Current __current)
{
__checkMode(Ice.OperationMode.Normal, __current.mode);
IceInternal.BasicStream __is = __inS.startReadParams();
POI_INDEX_TYPE_CONSTANTS emIndexType;
String key;
int citycode;
int limit;
emIndexType = POI_INDEX_TYPE_CONSTANTS.__read(__is);
key = __is.readString();
citycode = __is.readInt();
limit = __is.readInt();
__inS.endReadParams();
poi_info_seq_tHolder arrPoiInfo = new poi_info_seq_tHolder();
int __ret = __obj.poi_search_by_key(emIndexType, key, citycode, limit, arrPoiInfo, __current);
IceInternal.BasicStream __os = __inS.__startWriteParams(Ice.FormatType.DefaultFormat);
poi_info_seq_tHelper.write(__os, arrPoiInfo.value);
__os.writeInt(__ret);
__inS.__endWriteParams(true);
return Ice.DispatchStatus.DispatchOK;
}
public static Ice.DispatchStatus ___poi_search_by_key_and_type(IPOISearchFTR __obj, IceInternal.Incoming __inS, Ice.Current __current)
{
__checkMode(Ice.OperationMode.Normal, __current.mode);
IceInternal.BasicStream __is = __inS.startReadParams();
POI_INDEX_TYPE_CONSTANTS emIndexType;
String key;
int citycode;
int[] arrType;
int limit;
emIndexType = POI_INDEX_TYPE_CONSTANTS.__read(__is);
key = __is.readString();
citycode = __is.readInt();
arrType = poi_type_seq_tHelper.read(__is);
limit = __is.readInt();
__inS.endReadParams();
poi_info_seq_tHolder arrPoiInfo = new poi_info_seq_tHolder();
int __ret = __obj.poi_search_by_key_and_type(emIndexType, key, citycode, arrType, limit, arrPoiInfo, __current);
IceInternal.BasicStream __os = __inS.__startWriteParams(Ice.FormatType.DefaultFormat);
poi_info_seq_tHelper.write(__os, arrPoiInfo.value);
__os.writeInt(__ret);
__inS.__endWriteParams(true);
return Ice.DispatchStatus.DispatchOK;
}
public static Ice.DispatchStatus ___poi_search_by_key_type_near(IPOISearchFTR __obj, IceInternal.Incoming __inS, Ice.Current __current)
{
__checkMode(Ice.OperationMode.Normal, __current.mode);
IceInternal.BasicStream __is = __inS.startReadParams();
POI_INDEX_TYPE_CONSTANTS emIndexType;
String key;
int[] arrType;
geopoint pt;
int maxDis;
int limit;
emIndexType = POI_INDEX_TYPE_CONSTANTS.__read(__is);
key = __is.readString();
arrType = poi_type_seq_tHelper.read(__is);
pt = new geopoint();
pt.__read(__is);
maxDis = __is.readInt();
limit = __is.readInt();
__inS.endReadParams();
poi_info_seq_tHolder arrPoiInfo = new poi_info_seq_tHolder();
int __ret = __obj.poi_search_by_key_type_near(emIndexType, key, arrType, pt, maxDis, limit, arrPoiInfo, __current);
IceInternal.BasicStream __os = __inS.__startWriteParams(Ice.FormatType.DefaultFormat);
poi_info_seq_tHelper.write(__os, arrPoiInfo.value);
__os.writeInt(__ret);
__inS.__endWriteParams(true);
return Ice.DispatchStatus.DispatchOK;
}
public static Ice.DispatchStatus ___poi_search_by_key_cityname(IPOISearchFTR __obj, IceInternal.Incoming __inS, Ice.Current __current)
{
__checkMode(Ice.OperationMode.Normal, __current.mode);
IceInternal.BasicStream __is = __inS.startReadParams();
String key;
String cityname;
int limit;
key = __is.readString();
cityname = __is.readString();
limit = __is.readInt();
__inS.endReadParams();
poi_info_seq_tHolder arrPoiInfo = new poi_info_seq_tHolder();
int __ret = __obj.poi_search_by_key_cityname(key, cityname, limit, arrPoiInfo, __current);
IceInternal.BasicStream __os = __inS.__startWriteParams(Ice.FormatType.DefaultFormat);
poi_info_seq_tHelper.write(__os, arrPoiInfo.value);
__os.writeInt(__ret);
__inS.__endWriteParams(true);
return Ice.DispatchStatus.DispatchOK;
}
public static Ice.DispatchStatus ___poi_search_by_key_citycode(IPOISearchFTR __obj, IceInternal.Incoming __inS, Ice.Current __current)
{
__checkMode(Ice.OperationMode.Normal, __current.mode);
IceInternal.BasicStream __is = __inS.startReadParams();
String key;
int citycode;
int limit;
key = __is.readString();
citycode = __is.readInt();
limit = __is.readInt();
__inS.endReadParams();
poi_info_seq_tHolder arrPoiInfo = new poi_info_seq_tHolder();
int __ret = __obj.poi_search_by_key_citycode(key, citycode, limit, arrPoiInfo, __current);
IceInternal.BasicStream __os = __inS.__startWriteParams(Ice.FormatType.DefaultFormat);
poi_info_seq_tHelper.write(__os, arrPoiInfo.value);
__os.writeInt(__ret);
__inS.__endWriteParams(true);
return Ice.DispatchStatus.DispatchOK;
}
public static Ice.DispatchStatus ___Geocoding(IPOISearchFTR __obj, IceInternal.Incoming __inS, Ice.Current __current)
{
__checkMode(Ice.OperationMode.Normal, __current.mode);
IceInternal.BasicStream __is = __inS.startReadParams();
String strAddress;
strAddress = __is.readString();
__inS.endReadParams();
geocoding_resultHolder rst = new geocoding_resultHolder();
int __ret = __obj.Geocoding(strAddress, rst, __current);
IceInternal.BasicStream __os = __inS.__startWriteParams(Ice.FormatType.DefaultFormat);
rst.value.__write(__os);
__os.writeInt(__ret);
__inS.__endWriteParams(true);
return Ice.DispatchStatus.DispatchOK;
}
private final static String[] __all =
{
"Geocoding",
"ice_id",
"ice_ids",
"ice_isA",
"ice_ping",
"poi_search_by_key",
"poi_search_by_key_and_type",
"poi_search_by_key_citycode",
"poi_search_by_key_cityname",
"poi_search_by_key_type_near"
};
public Ice.DispatchStatus __dispatch(IceInternal.Incoming in, Ice.Current __current)
{
int pos = java.util.Arrays.binarySearch(__all, __current.operation);
if(pos < 0)
{
throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
}
switch(pos)
{
case 0:
{
return ___Geocoding(this, in, __current);
}
case 1:
{
return ___ice_id(this, in, __current);
}
case 2:
{
return ___ice_ids(this, in, __current);
}
case 3:
{
return ___ice_isA(this, in, __current);
}
case 4:
{
return ___ice_ping(this, in, __current);
}
case 5:
{
return ___poi_search_by_key(this, in, __current);
}
case 6:
{
return ___poi_search_by_key_and_type(this, in, __current);
}
case 7:
{
return ___poi_search_by_key_citycode(this, in, __current);
}
case 8:
{
return ___poi_search_by_key_cityname(this, in, __current);
}
case 9:
{
return ___poi_search_by_key_type_near(this, in, __current);
}
}
assert(false);
throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
}
protected void __writeImpl(IceInternal.BasicStream __os)
{
__os.startWriteSlice(ice_staticId(), -1, true);
__os.endWriteSlice();
}
protected void __readImpl(IceInternal.BasicStream __is)
{
__is.startReadSlice();
__is.endReadSlice();
}
public static final long serialVersionUID = 0L;
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public interface _IPOISearchFTROperations
{
int poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int limit, poi_info_seq_tHolder arrPoiInfo, Ice.Current __current);
int poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int[] arrType, int limit, poi_info_seq_tHolder arrPoiInfo, Ice.Current __current);
int poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int[] arrType, geopoint pt, int maxDis, int limit, poi_info_seq_tHolder arrPoiInfo, Ice.Current __current);
int poi_search_by_key_cityname(String key, String cityname, int limit, poi_info_seq_tHolder arrPoiInfo, Ice.Current __current);
int poi_search_by_key_citycode(String key, int citycode, int limit, poi_info_seq_tHolder arrPoiInfo, Ice.Current __current);
int Geocoding(String strAddress, geocoding_resultHolder rst, Ice.Current __current);
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public interface _IPOISearchFTROperationsNC
{
int poi_search_by_key(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int limit, poi_info_seq_tHolder arrPoiInfo);
int poi_search_by_key_and_type(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int citycode, int[] arrType, int limit, poi_info_seq_tHolder arrPoiInfo);
int poi_search_by_key_type_near(POI_INDEX_TYPE_CONSTANTS emIndexType, String key, int[] arrType, geopoint pt, int maxDis, int limit, poi_info_seq_tHolder arrPoiInfo);
int poi_search_by_key_cityname(String key, String cityname, int limit, poi_info_seq_tHolder arrPoiInfo);
int poi_search_by_key_citycode(String key, int citycode, int limit, poi_info_seq_tHolder arrPoiInfo);
int Geocoding(String strAddress, geocoding_resultHolder rst);
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public interface _IPOISearchNearDel extends Ice._ObjectDel
{
int poi_search_by_rect(geopoint ptLL, geopoint ptRR, int[] arrType, int numLimit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __obsv)
throws IceInternal.LocalExceptionWrapper;
int poi_search_by_circle(geopoint pt, int maxDis, int[] arrType, int numLimit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __obsv)
throws IceInternal.LocalExceptionWrapper;
int poi_search_by_city(int citycode, int[] arrType, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __obsv)
throws IceInternal.LocalExceptionWrapper;
int ReverseGeocoding(geopoint pt, Ice.StringHolder strGeopointDescription, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __obsv)
throws IceInternal.LocalExceptionWrapper;
int ReverseGeocoding2(geopoint pt, Ice.StringHolder strGeopointDescription, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __obsv)
throws IceInternal.LocalExceptionWrapper;
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public final class _IPOISearchNearDelD extends Ice._ObjectDelD implements _IPOISearchNearDel
{
public int ReverseGeocoding(final geopoint pt, final Ice.StringHolder strGeopointDescription, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
final Ice.Current __current = new Ice.Current();
__initCurrent(__current, "ReverseGeocoding", Ice.OperationMode.Normal, __ctx);
final Ice.IntHolder __result = new Ice.IntHolder();
IceInternal.Direct __direct = null;
try
{
__direct = new IceInternal.Direct(__current)
{
public Ice.DispatchStatus run(Ice.Object __obj)
{
IPOISearchNear __servant = null;
if(__obj == null || __obj instanceof IPOISearchNear)
{
__servant = (IPOISearchNear)__obj;
}
else
{
throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
}
__result.value = __servant.ReverseGeocoding(pt, strGeopointDescription, __current);
return Ice.DispatchStatus.DispatchOK;
}
};
try
{
Ice.DispatchStatus __status = __direct.getServant().__collocDispatch(__direct);
if(__status == Ice.DispatchStatus.DispatchUserException)
{
__direct.throwUserException();
}
assert __status == Ice.DispatchStatus.DispatchOK;
return __result.value;
}
finally
{
__direct.destroy();
}
}
catch(Ice.SystemException __ex)
{
throw __ex;
}
catch(Throwable __ex)
{
IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
}
return __result.value;
}
public int ReverseGeocoding2(final geopoint pt, final Ice.StringHolder strGeopointDescription, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
final Ice.Current __current = new Ice.Current();
__initCurrent(__current, "ReverseGeocoding2", Ice.OperationMode.Normal, __ctx);
final Ice.IntHolder __result = new Ice.IntHolder();
IceInternal.Direct __direct = null;
try
{
__direct = new IceInternal.Direct(__current)
{
public Ice.DispatchStatus run(Ice.Object __obj)
{
IPOISearchNear __servant = null;
if(__obj == null || __obj instanceof IPOISearchNear)
{
__servant = (IPOISearchNear)__obj;
}
else
{
throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
}
__result.value = __servant.ReverseGeocoding2(pt, strGeopointDescription, __current);
return Ice.DispatchStatus.DispatchOK;
}
};
try
{
Ice.DispatchStatus __status = __direct.getServant().__collocDispatch(__direct);
if(__status == Ice.DispatchStatus.DispatchUserException)
{
__direct.throwUserException();
}
assert __status == Ice.DispatchStatus.DispatchOK;
return __result.value;
}
finally
{
__direct.destroy();
}
}
catch(Ice.SystemException __ex)
{
throw __ex;
}
catch(Throwable __ex)
{
IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
}
return __result.value;
}
public int poi_search_by_circle(final geopoint pt, final int maxDis, final int[] arrType, final int numLimit, final poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
final Ice.Current __current = new Ice.Current();
__initCurrent(__current, "poi_search_by_circle", Ice.OperationMode.Normal, __ctx);
final Ice.IntHolder __result = new Ice.IntHolder();
IceInternal.Direct __direct = null;
try
{
__direct = new IceInternal.Direct(__current)
{
public Ice.DispatchStatus run(Ice.Object __obj)
{
IPOISearchNear __servant = null;
if(__obj == null || __obj instanceof IPOISearchNear)
{
__servant = (IPOISearchNear)__obj;
}
else
{
throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
}
__result.value = __servant.poi_search_by_circle(pt, maxDis, arrType, numLimit, arrPoiInfo, __current);
return Ice.DispatchStatus.DispatchOK;
}
};
try
{
Ice.DispatchStatus __status = __direct.getServant().__collocDispatch(__direct);
if(__status == Ice.DispatchStatus.DispatchUserException)
{
__direct.throwUserException();
}
assert __status == Ice.DispatchStatus.DispatchOK;
return __result.value;
}
finally
{
__direct.destroy();
}
}
catch(Ice.SystemException __ex)
{
throw __ex;
}
catch(Throwable __ex)
{
IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
}
return __result.value;
}
public int poi_search_by_city(final int citycode, final int[] arrType, final int limit, final poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
final Ice.Current __current = new Ice.Current();
__initCurrent(__current, "poi_search_by_city", Ice.OperationMode.Normal, __ctx);
final Ice.IntHolder __result = new Ice.IntHolder();
IceInternal.Direct __direct = null;
try
{
__direct = new IceInternal.Direct(__current)
{
public Ice.DispatchStatus run(Ice.Object __obj)
{
IPOISearchNear __servant = null;
if(__obj == null || __obj instanceof IPOISearchNear)
{
__servant = (IPOISearchNear)__obj;
}
else
{
throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
}
__result.value = __servant.poi_search_by_city(citycode, arrType, limit, arrPoiInfo, __current);
return Ice.DispatchStatus.DispatchOK;
}
};
try
{
Ice.DispatchStatus __status = __direct.getServant().__collocDispatch(__direct);
if(__status == Ice.DispatchStatus.DispatchUserException)
{
__direct.throwUserException();
}
assert __status == Ice.DispatchStatus.DispatchOK;
return __result.value;
}
finally
{
__direct.destroy();
}
}
catch(Ice.SystemException __ex)
{
throw __ex;
}
catch(Throwable __ex)
{
IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
}
return __result.value;
}
public int poi_search_by_rect(final geopoint ptLL, final geopoint ptRR, final int[] arrType, final int numLimit, final poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
final Ice.Current __current = new Ice.Current();
__initCurrent(__current, "poi_search_by_rect", Ice.OperationMode.Normal, __ctx);
final Ice.IntHolder __result = new Ice.IntHolder();
IceInternal.Direct __direct = null;
try
{
__direct = new IceInternal.Direct(__current)
{
public Ice.DispatchStatus run(Ice.Object __obj)
{
IPOISearchNear __servant = null;
if(__obj == null || __obj instanceof IPOISearchNear)
{
__servant = (IPOISearchNear)__obj;
}
else
{
throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
}
__result.value = __servant.poi_search_by_rect(ptLL, ptRR, arrType, numLimit, arrPoiInfo, __current);
return Ice.DispatchStatus.DispatchOK;
}
};
try
{
Ice.DispatchStatus __status = __direct.getServant().__collocDispatch(__direct);
if(__status == Ice.DispatchStatus.DispatchUserException)
{
__direct.throwUserException();
}
assert __status == Ice.DispatchStatus.DispatchOK;
return __result.value;
}
finally
{
__direct.destroy();
}
}
catch(Ice.SystemException __ex)
{
throw __ex;
}
catch(Throwable __ex)
{
IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
}
return __result.value;
}
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public final class _IPOISearchNearDelM extends Ice._ObjectDelM implements _IPOISearchNearDel
{
public int
ReverseGeocoding(geopoint pt, Ice.StringHolder strGeopointDescription, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
IceInternal.Outgoing __og = __handler.getOutgoing("ReverseGeocoding", Ice.OperationMode.Normal, __ctx, __observer);
try
{
try
{
IceInternal.BasicStream __os = __og.startWriteParams(Ice.FormatType.DefaultFormat);
pt.__write(__os);
__og.endWriteParams();
}
catch(Ice.LocalException __ex)
{
__og.abort(__ex);
}
boolean __ok = __og.invoke();
try
{
if(!__ok)
{
try
{
__og.throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __og.startReadParams();
strGeopointDescription.value = __is.readString();
int __ret;
__ret = __is.readInt();
__og.endReadParams();
return __ret;
}
catch(Ice.LocalException __ex)
{
throw new IceInternal.LocalExceptionWrapper(__ex, false);
}
}
finally
{
__handler.reclaimOutgoing(__og);
}
}
public int
ReverseGeocoding2(geopoint pt, Ice.StringHolder strGeopointDescription, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
IceInternal.Outgoing __og = __handler.getOutgoing("ReverseGeocoding2", Ice.OperationMode.Normal, __ctx, __observer);
try
{
try
{
IceInternal.BasicStream __os = __og.startWriteParams(Ice.FormatType.DefaultFormat);
pt.__write(__os);
__og.endWriteParams();
}
catch(Ice.LocalException __ex)
{
__og.abort(__ex);
}
boolean __ok = __og.invoke();
try
{
if(!__ok)
{
try
{
__og.throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __og.startReadParams();
strGeopointDescription.value = __is.readString();
int __ret;
__ret = __is.readInt();
__og.endReadParams();
return __ret;
}
catch(Ice.LocalException __ex)
{
throw new IceInternal.LocalExceptionWrapper(__ex, false);
}
}
finally
{
__handler.reclaimOutgoing(__og);
}
}
public int
poi_search_by_circle(geopoint pt, int maxDis, int[] arrType, int numLimit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
IceInternal.Outgoing __og = __handler.getOutgoing("poi_search_by_circle", Ice.OperationMode.Normal, __ctx, __observer);
try
{
try
{
IceInternal.BasicStream __os = __og.startWriteParams(Ice.FormatType.DefaultFormat);
pt.__write(__os);
__os.writeInt(maxDis);
poi_type_seq_tHelper.write(__os, arrType);
__os.writeInt(numLimit);
__og.endWriteParams();
}
catch(Ice.LocalException __ex)
{
__og.abort(__ex);
}
boolean __ok = __og.invoke();
try
{
if(!__ok)
{
try
{
__og.throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __og.startReadParams();
arrPoiInfo.value = poi_info_seq_tHelper.read(__is);
int __ret;
__ret = __is.readInt();
__og.endReadParams();
return __ret;
}
catch(Ice.LocalException __ex)
{
throw new IceInternal.LocalExceptionWrapper(__ex, false);
}
}
finally
{
__handler.reclaimOutgoing(__og);
}
}
public int
poi_search_by_city(int citycode, int[] arrType, int limit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
IceInternal.Outgoing __og = __handler.getOutgoing("poi_search_by_city", Ice.OperationMode.Normal, __ctx, __observer);
try
{
try
{
IceInternal.BasicStream __os = __og.startWriteParams(Ice.FormatType.DefaultFormat);
__os.writeInt(citycode);
poi_type_seq_tHelper.write(__os, arrType);
__os.writeInt(limit);
__og.endWriteParams();
}
catch(Ice.LocalException __ex)
{
__og.abort(__ex);
}
boolean __ok = __og.invoke();
try
{
if(!__ok)
{
try
{
__og.throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __og.startReadParams();
arrPoiInfo.value = poi_info_seq_tHelper.read(__is);
int __ret;
__ret = __is.readInt();
__og.endReadParams();
return __ret;
}
catch(Ice.LocalException __ex)
{
throw new IceInternal.LocalExceptionWrapper(__ex, false);
}
}
finally
{
__handler.reclaimOutgoing(__og);
}
}
public int
poi_search_by_rect(geopoint ptLL, geopoint ptRR, int[] arrType, int numLimit, poi_info_seq_tHolder arrPoiInfo, java.util.Map<String, String> __ctx, Ice.Instrumentation.InvocationObserver __observer)
throws IceInternal.LocalExceptionWrapper
{
IceInternal.Outgoing __og = __handler.getOutgoing("poi_search_by_rect", Ice.OperationMode.Normal, __ctx, __observer);
try
{
try
{
IceInternal.BasicStream __os = __og.startWriteParams(Ice.FormatType.DefaultFormat);
ptLL.__write(__os);
ptRR.__write(__os);
poi_type_seq_tHelper.write(__os, arrType);
__os.writeInt(numLimit);
__og.endWriteParams();
}
catch(Ice.LocalException __ex)
{
__og.abort(__ex);
}
boolean __ok = __og.invoke();
try
{
if(!__ok)
{
try
{
__og.throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __og.startReadParams();
arrPoiInfo.value = poi_info_seq_tHelper.read(__is);
int __ret;
__ret = __is.readInt();
__og.endReadParams();
return __ret;
}
catch(Ice.LocalException __ex)
{
throw new IceInternal.LocalExceptionWrapper(__ex, false);
}
}
finally
{
__handler.reclaimOutgoing(__og);
}
}
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public abstract class _IPOISearchNearDisp extends Ice.ObjectImpl implements IPOISearchNear
{
protected void
ice_copyStateFrom(Ice.Object __obj)
throws CloneNotSupportedException
{
throw new CloneNotSupportedException();
}
public static final String[] __ids =
{
"::Ice::Object",
"::POI::IPOISearchNear"
};
public boolean ice_isA(String s)
{
return java.util.Arrays.binarySearch(__ids, s) >= 0;
}
public boolean ice_isA(String s, Ice.Current __current)
{
return java.util.Arrays.binarySearch(__ids, s) >= 0;
}
public String[] ice_ids()
{
return __ids;
}
public String[] ice_ids(Ice.Current __current)
{
return __ids;
}
public String ice_id()
{
return __ids[1];
}
public String ice_id(Ice.Current __current)
{
return __ids[1];
}
public static String ice_staticId()
{
return __ids[1];
}
public final int ReverseGeocoding(geopoint pt, Ice.StringHolder strGeopointDescription)
{
return ReverseGeocoding(pt, strGeopointDescription, null);
}
public final int ReverseGeocoding2(geopoint pt, Ice.StringHolder strGeopointDescription)
{
return ReverseGeocoding2(pt, strGeopointDescription, null);
}
public final int poi_search_by_circle(geopoint pt, int maxDis, int[] arrType, int numLimit, poi_info_seq_tHolder arrPoiInfo)
{
return poi_search_by_circle(pt, maxDis, arrType, numLimit, arrPoiInfo, null);
}
public final int poi_search_by_city(int citycode, int[] arrType, int limit, poi_info_seq_tHolder arrPoiInfo)
{
return poi_search_by_city(citycode, arrType, limit, arrPoiInfo, null);
}
public final int poi_search_by_rect(geopoint ptLL, geopoint ptRR, int[] arrType, int numLimit, poi_info_seq_tHolder arrPoiInfo)
{
return poi_search_by_rect(ptLL, ptRR, arrType, numLimit, arrPoiInfo, null);
}
public static Ice.DispatchStatus ___poi_search_by_rect(IPOISearchNear __obj, IceInternal.Incoming __inS, Ice.Current __current)
{
__checkMode(Ice.OperationMode.Normal, __current.mode);
IceInternal.BasicStream __is = __inS.startReadParams();
geopoint ptLL;
geopoint ptRR;
int[] arrType;
int numLimit;
ptLL = new geopoint();
ptLL.__read(__is);
ptRR = new geopoint();
ptRR.__read(__is);
arrType = poi_type_seq_tHelper.read(__is);
numLimit = __is.readInt();
__inS.endReadParams();
poi_info_seq_tHolder arrPoiInfo = new poi_info_seq_tHolder();
int __ret = __obj.poi_search_by_rect(ptLL, ptRR, arrType, numLimit, arrPoiInfo, __current);
IceInternal.BasicStream __os = __inS.__startWriteParams(Ice.FormatType.DefaultFormat);
poi_info_seq_tHelper.write(__os, arrPoiInfo.value);
__os.writeInt(__ret);
__inS.__endWriteParams(true);
return Ice.DispatchStatus.DispatchOK;
}
public static Ice.DispatchStatus ___poi_search_by_circle(IPOISearchNear __obj, IceInternal.Incoming __inS, Ice.Current __current)
{
__checkMode(Ice.OperationMode.Normal, __current.mode);
IceInternal.BasicStream __is = __inS.startReadParams();
geopoint pt;
int maxDis;
int[] arrType;
int numLimit;
pt = new geopoint();
pt.__read(__is);
maxDis = __is.readInt();
arrType = poi_type_seq_tHelper.read(__is);
numLimit = __is.readInt();
__inS.endReadParams();
poi_info_seq_tHolder arrPoiInfo = new poi_info_seq_tHolder();
int __ret = __obj.poi_search_by_circle(pt, maxDis, arrType, numLimit, arrPoiInfo, __current);
IceInternal.BasicStream __os = __inS.__startWriteParams(Ice.FormatType.DefaultFormat);
poi_info_seq_tHelper.write(__os, arrPoiInfo.value);
__os.writeInt(__ret);
__inS.__endWriteParams(true);
return Ice.DispatchStatus.DispatchOK;
}
public static Ice.DispatchStatus ___poi_search_by_city(IPOISearchNear __obj, IceInternal.Incoming __inS, Ice.Current __current)
{
__checkMode(Ice.OperationMode.Normal, __current.mode);
IceInternal.BasicStream __is = __inS.startReadParams();
int citycode;
int[] arrType;
int limit;
citycode = __is.readInt();
arrType = poi_type_seq_tHelper.read(__is);
limit = __is.readInt();
__inS.endReadParams();
poi_info_seq_tHolder arrPoiInfo = new poi_info_seq_tHolder();
int __ret = __obj.poi_search_by_city(citycode, arrType, limit, arrPoiInfo, __current);
IceInternal.BasicStream __os = __inS.__startWriteParams(Ice.FormatType.DefaultFormat);
poi_info_seq_tHelper.write(__os, arrPoiInfo.value);
__os.writeInt(__ret);
__inS.__endWriteParams(true);
return Ice.DispatchStatus.DispatchOK;
}
public static Ice.DispatchStatus ___ReverseGeocoding(IPOISearchNear __obj, IceInternal.Incoming __inS, Ice.Current __current)
{
__checkMode(Ice.OperationMode.Normal, __current.mode);
IceInternal.BasicStream __is = __inS.startReadParams();
geopoint pt;
pt = new geopoint();
pt.__read(__is);
__inS.endReadParams();
Ice.StringHolder strGeopointDescription = new Ice.StringHolder();
int __ret = __obj.ReverseGeocoding(pt, strGeopointDescription, __current);
IceInternal.BasicStream __os = __inS.__startWriteParams(Ice.FormatType.DefaultFormat);
__os.writeString(strGeopointDescription.value);
__os.writeInt(__ret);
__inS.__endWriteParams(true);
return Ice.DispatchStatus.DispatchOK;
}
public static Ice.DispatchStatus ___ReverseGeocoding2(IPOISearchNear __obj, IceInternal.Incoming __inS, Ice.Current __current)
{
__checkMode(Ice.OperationMode.Normal, __current.mode);
IceInternal.BasicStream __is = __inS.startReadParams();
geopoint pt;
pt = new geopoint();
pt.__read(__is);
__inS.endReadParams();
Ice.StringHolder strGeopointDescription = new Ice.StringHolder();
int __ret = __obj.ReverseGeocoding2(pt, strGeopointDescription, __current);
IceInternal.BasicStream __os = __inS.__startWriteParams(Ice.FormatType.DefaultFormat);
__os.writeString(strGeopointDescription.value);
__os.writeInt(__ret);
__inS.__endWriteParams(true);
return Ice.DispatchStatus.DispatchOK;
}
private final static String[] __all =
{
"ReverseGeocoding",
"ReverseGeocoding2",
"ice_id",
"ice_ids",
"ice_isA",
"ice_ping",
"poi_search_by_circle",
"poi_search_by_city",
"poi_search_by_rect"
};
public Ice.DispatchStatus __dispatch(IceInternal.Incoming in, Ice.Current __current)
{
int pos = java.util.Arrays.binarySearch(__all, __current.operation);
if(pos < 0)
{
throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
}
switch(pos)
{
case 0:
{
return ___ReverseGeocoding(this, in, __current);
}
case 1:
{
return ___ReverseGeocoding2(this, in, __current);
}
case 2:
{
return ___ice_id(this, in, __current);
}
case 3:
{
return ___ice_ids(this, in, __current);
}
case 4:
{
return ___ice_isA(this, in, __current);
}
case 5:
{
return ___ice_ping(this, in, __current);
}
case 6:
{
return ___poi_search_by_circle(this, in, __current);
}
case 7:
{
return ___poi_search_by_city(this, in, __current);
}
case 8:
{
return ___poi_search_by_rect(this, in, __current);
}
}
assert(false);
throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
}
protected void __writeImpl(IceInternal.BasicStream __os)
{
__os.startWriteSlice(ice_staticId(), -1, true);
__os.endWriteSlice();
}
protected void __readImpl(IceInternal.BasicStream __is)
{
__is.startReadSlice();
__is.endReadSlice();
}
public static final long serialVersionUID = 0L;
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public interface _IPOISearchNearOperations
{
int poi_search_by_rect(geopoint ptLL, geopoint ptRR, int[] arrType, int numLimit, poi_info_seq_tHolder arrPoiInfo, Ice.Current __current);
int poi_search_by_circle(geopoint pt, int maxDis, int[] arrType, int numLimit, poi_info_seq_tHolder arrPoiInfo, Ice.Current __current);
int poi_search_by_city(int citycode, int[] arrType, int limit, poi_info_seq_tHolder arrPoiInfo, Ice.Current __current);
int ReverseGeocoding(geopoint pt, Ice.StringHolder strGeopointDescription, Ice.Current __current);
int ReverseGeocoding2(geopoint pt, Ice.StringHolder strGeopointDescription, Ice.Current __current);
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public interface _IPOISearchNearOperationsNC
{
int poi_search_by_rect(geopoint ptLL, geopoint ptRR, int[] arrType, int numLimit, poi_info_seq_tHolder arrPoiInfo);
int poi_search_by_circle(geopoint pt, int maxDis, int[] arrType, int numLimit, poi_info_seq_tHolder arrPoiInfo);
int poi_search_by_city(int citycode, int[] arrType, int limit, poi_info_seq_tHolder arrPoiInfo);
int ReverseGeocoding(geopoint pt, Ice.StringHolder strGeopointDescription);
int ReverseGeocoding2(geopoint pt, Ice.StringHolder strGeopointDescription);
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public final class geopointHolder
{
public
geopointHolder()
{
}
public
geopointHolder(geopoint value)
{
this.value = value;
}
public geopoint value;
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public final class poi_info_seq_tHelper
{
public static void
write(IceInternal.BasicStream __os, poi_info_t[] __v)
{
if(__v == null)
{
__os.writeSize(0);
}
else
{
__os.writeSize(__v.length);
for(int __i0 = 0; __i0 < __v.length; __i0++)
{
__v[__i0].__write(__os);
}
}
}
public static poi_info_t[]
read(IceInternal.BasicStream __is)
{
poi_info_t[] __v;
final int __len0 = __is.readAndCheckSeqSize(31);
__v = new poi_info_t[__len0];
for(int __i0 = 0; __i0 < __len0; __i0++)
{
__v[__i0] = new poi_info_t();
__v[__i0].__read(__is);
}
return __v;
}
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public final class poi_info_seq_tHolder
{
public
poi_info_seq_tHolder()
{
}
public
poi_info_seq_tHolder(poi_info_t[] value)
{
this.value = value;
}
public poi_info_t[] value;
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public final class poi_info_tHolder
{
public
poi_info_tHolder()
{
}
public
poi_info_tHolder(poi_info_t value)
{
this.value = value;
}
public poi_info_t value;
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public final class poi_type_seq_tHelper
{
public static void
write(IceInternal.BasicStream __os, int[] __v)
{
__os.writeIntSeq(__v);
}
public static int[]
read(IceInternal.BasicStream __is)
{
int[] __v;
__v = __is.readIntSeq();
return __v;
}
}
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `ipoi.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.glsx.ice.poisearch;
public final class poi_type_seq_tHolder
{
public
poi_type_seq_tHolder()
{
}
public
poi_type_seq_tHolder(int[] value)
{
this.value = value;
}
public int[] value;
}
...@@ -9,6 +9,7 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -9,6 +9,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servlet.HandlerInterceptor;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
......
package com.glsx.intercepter; package com.glsx.intercepter;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import javax.servlet.*; import javax.servlet.*;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import java.io.IOException; import java.io.IOException;
......
package com.glsx.intercepter; package com.glsx.intercepter;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import javax.servlet.ReadListener; import javax.servlet.ReadListener;
import javax.servlet.ServletInputStream; import javax.servlet.ServletInputStream;
import javax.servlet.ServletRequest; import javax.servlet.ServletRequest;
......
package com.glsx.model.BO; package com.glsx.model.BO;
import com.glsx.model.BaseTimeRangeModel; import com.glsx.model.BaseTimeRangeModel;
import com.glsx.model.Basemodel;
import lombok.Data; import lombok.Data;
import lombok.ToString; import lombok.ToString;
......
...@@ -16,8 +16,8 @@ public class DeviceStayBo extends DeviceStatusBo { ...@@ -16,8 +16,8 @@ public class DeviceStayBo extends DeviceStatusBo {
private Integer period_type; private Integer period_type;
//最小周期时间间隔 //最小周期时间间隔
private String min_duration; private Integer min_duration;
//最大周期时间间隔 //最大周期时间间隔
private String max_duration; private Integer max_duration;
} }
package com.glsx.model; package com.glsx.model;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
@Data @Data
......
...@@ -2,6 +2,7 @@ package com.glsx.model.DTO; ...@@ -2,6 +2,7 @@ package com.glsx.model.DTO;
import lombok.Data; import lombok.Data;
import lombok.ToString; import lombok.ToString;
import java.util.List; import java.util.List;
......
package com.glsx.model.DTO;
import lombok.Data;
@Data
public class DailyRecordDTO {
//日开车次数
private Integer jourcount;
//行驶里程
private Integer miles;
//行驶时长
private Integer duration;
//开车日期
private String jourdate;
}
package com.glsx.model.DTO;
import lombok.Data;
@Data
public class DeviceInfoDTO {
//设备号
private String sn;
//设备类型
private Integer device_type;
//用户名称
private String username;
//用户手机号
private String mobile;
}
package com.glsx.model.DTO;
import lombok.Data;
import java.util.List;
@Data
public class DeviceListDTO {
//用户设备列表信息
private List<DeviceInfoDTO> list;
//判断是否有更多用户数据。 true:有false:无
private Boolean has_more;
//显示该APPID下所有的用户数
private Integer total;
}
package com.glsx.model.DTO;
import lombok.Data;
@Data
public class DistDetilDto {
//所属省份
private String prov_name;
//所属城市
private String city_name;
//所属县城
private String county_name;
}
package com.glsx.model.DTO;
import lombok.Data;
@Data
public class DistInfoDto {
//行政编码
private Integer dist_code;
//行政区域名称
private String dist_name;
}
package com.glsx.model.DTO; package com.glsx.model.DTO;
import com.glsx.model.GaodeMap;
import lombok.Data; import lombok.Data;
@Data @Data
......
package com.glsx.model.DTO; package com.glsx.model.DTO;
import com.glsx.model.BaiduGaodeMap;
import lombok.Data; import lombok.Data;
@Data @Data
......
package com.glsx.model.DTO;
import lombok.Data;
@Data
public class JourneyRecordDTO {
//行驶开始时间
private Integer bgntime;
//行驶结束时间
private Integer endtime;
//行驶时长
private Integer duration;
//开始地址
private String bgnaddress;
//行驶开始位置信息
private BaiduGaodeMapDTO bgngps;
//结束地址
private String endaddress;
//行驶结束位置信息
private BaiduGaodeMapDTO endgps;
//行驶里程
private Double miles;
}
package com.glsx.model.DTO; package com.glsx.model.DTO;
import com.glsx.model.GaodeMap;
import lombok.Data; import lombok.Data;
import lombok.ToString; import lombok.ToString;
......
package com.glsx.model.DTO;
import lombok.Data;
@Data
public class TotalMIleRecordDTO {
//设备号
private String sn;
//行驶总开车次数
private Integer totaljourcount;
//行驶总里程
private Integer totalmiles;
//行驶总时长
private Integer totalduration;
}
...@@ -4,22 +4,13 @@ import com.glsx.model.BO.*; ...@@ -4,22 +4,13 @@ import com.glsx.model.BO.*;
import com.glsx.model.BaseMapModel; import com.glsx.model.BaseMapModel;
import com.glsx.model.DTO.*; import com.glsx.model.DTO.*;
import java.util.HashMap;
import java.util.Map; import java.util.Map;
public interface OpenApiService { public interface IOpenApiICEService {
String getToken(TokenBo grantType);
Map<String,Object> getDeviceList(DeviceListBo deviceListBo);
void postCommands(CommandsBo commandsBo); void postCommands(CommandsBo commandsBo);
Integer getDeviceStatus(DeviceStatusBo deviceStatusBo); Map<String,Integer> getDeviceStatus(DeviceStatusBo deviceStatusBo);
Map<String, Integer> getDataView(DeviceStatusBo deviceStatusBo);
void subscribeMessage(subscribeMessageBo subscribeMessageBo);
LatestGpsRecordDto getLatestGPSRecord(DeviceStatusBo deviceStatusBo); LatestGpsRecordDto getLatestGPSRecord(DeviceStatusBo deviceStatusBo);
...@@ -37,9 +28,9 @@ public interface OpenApiService { ...@@ -37,9 +28,9 @@ public interface OpenApiService {
BsRecordsDto getRecentBsRecords(DeviceStatusCountBo deviceStatusBo); BsRecordsDto getRecentBsRecords(DeviceStatusCountBo deviceStatusBo);
DistInfoDto getDistInfoByPos(BaseMapModel distBO); Map<String, Object> getDistInfoByPos(BaseMapModel distBO);
DistDetilDto getDistDetailByPos(BaseMapModel distBO); Map<String, Object> getDistDetailByPos(BaseMapModel distBO);
Map<String, Object> getGeocoding(GeocodeBO geocodeBO); Map<String, Object> getGeocoding(GeocodeBO geocodeBO);
......
package com.glsx.service;
import com.glsx.model.BO.DeviceListBo;
import com.glsx.model.BO.DeviceStatusBo;
import com.glsx.model.BO.TokenBo;
import com.glsx.model.BO.subscribeMessageBo;
import java.util.Map;
public interface IOpenApiService {
String getToken(TokenBo grantType);
Map<String,Object> getDeviceList(DeviceListBo deviceListBo);
void subscribeMessage(subscribeMessageBo subscribeMessageBo);
Map<String, Integer> getDataView(DeviceStatusBo deviceStatusBo);
}
package com.glsx.service.impl;
import com.glsx.base.aop.SysLog;
import com.glsx.base.controller.BaseService;
import com.glsx.base.enums.MapTypeEnum;
import com.glsx.ice.iceClient.*;
import com.glsx.model.BO.*;
import com.glsx.model.BaseMapModel;
import com.glsx.model.DTO.*;
import com.glsx.service.IOpenApiICEService;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
* @author fengzhi
* @version V1.0
* @Description: 开放平台接口实现类
*/
@Service
public class OpenApiICEServiceImpl extends BaseService implements IOpenApiICEService {
//todo 接口还没给
@SysLog
@Override
public void postCommands(CommandsBo commandsBo) {
}
//todo 接口还没给
@SysLog
@Override
public Map<String, Integer> getDeviceStatus(DeviceStatusBo deviceStatusBo) {
Map<String, Integer> map = new HashMap<>();
map.put("status", 1);
return map;
}
@SysLog
@Override
public LatestGpsRecordDto getLatestGPSRecord(DeviceStatusBo deviceStatusBo) {
long sn = getSn(deviceStatusBo);
Integer dType = getDeviceType(deviceStatusBo);
LatestGpsRecordDto gpsRecord = IceHDaoGpsClient.getLatestGpsRecord(sn, dType, MapTypeEnum.GAODE_TYPE.getId());
return gpsRecord;
}
@SysLog
@Override
public LatestBsRecordDto getLatestBsRecord(DeviceStatusBo deviceStatusBo) {
long sn = getSn(deviceStatusBo);
Integer dType = getDeviceType(deviceStatusBo);
LatestBsRecordDto bsRecord = IceHDaoGpsClient.getLatestBsRecord(sn, dType);
return bsRecord;
}
@SysLog
@Override
public LatestGpsBsRecordDto getLatestGpsBsRecord(DeviceStatusBo deviceStatusBo) {
//todo ice接口有问题,暂用组合代替
long sn = getSn(deviceStatusBo);
Integer dType = getDeviceType(deviceStatusBo);
LatestGpsRecordDto gpsRecord = IceHDaoGpsClient.getLatestGpsRecord(sn, dType, MapTypeEnum.DOUBLE_TYPE.getId());
LatestBsRecordDto bsRecord = IceHDaoGpsClient.getLatestBsRecord(sn, dType);
LatestGpsBsRecordDto gpsBsRecordDto = new LatestGpsBsRecordDto();
BeanUtils.copyProperties(gpsRecord, gpsBsRecordDto);
BeanUtils.copyProperties(bsRecord, gpsBsRecordDto);
//LatestGpsBsRecordDto latestGpsBsRecordDto = IceHDaoGpsClient.getDevicesGpsInfo(dId, 0, 0);
return gpsBsRecordDto;
}
@SysLog
@Override
public GpsRecordsDto getGpsRecords(GpsBsRecordsBo gpsRecordsBo) {
long sn = getSn(gpsRecordsBo);
Integer dType = getDeviceType(gpsRecordsBo);
GpsRecordsDto gpsRecordsDto = IceHDaoGpsClient.getGpsRecords(dType, gpsRecordsBo.getStartTime(), gpsRecordsBo.getEndTime(), sn, MapTypeEnum.DOUBLE_TYPE.getId());
return gpsRecordsDto;
}
@SysLog
@Override
public BsRecordsDto getBsRecords(GpsBsRecordsBo bsRecordsBo) {
long sn = getSn(bsRecordsBo);
Integer dType = getDeviceType(bsRecordsBo);
BsRecordsDto bsRecordsDto = IceHDaoGpsClient.getBsRecords(dType, bsRecordsBo.getStartTime(), bsRecordsBo.getEndTime(), sn);
return bsRecordsDto;
}
@SysLog
@Override
public FirstGpsRecordDto getFirstGpsRecord(DeviceStatusBo deviceStatusBo) {
long sn = getSn(deviceStatusBo);
Integer dType = getDeviceType(deviceStatusBo);
FirstGpsRecordDto firstGpsRecordDto = IceHDaoGpsClient.getFirstGpsRecord(dType, sn, MapTypeEnum.GAODE_TYPE.getId());
return firstGpsRecordDto;
}
@SysLog
@Override
public GpsRecordsDto getRecentGpsRecords(DeviceStatusCountBo deviceStatusCountBo) {
long sn = getSn(deviceStatusCountBo);
Integer dType = getDeviceType(deviceStatusCountBo);
Integer count = deviceStatusCountBo.getCount();
GpsRecordsDto bsRecordsDto = IceHDaoGpsClient.getRecentGpsRecords(sn, dType, count, MapTypeEnum.GAODE_TYPE.getId());
return bsRecordsDto;
}
@SysLog
@Override
public BsRecordsDto getRecentBsRecords(DeviceStatusCountBo deviceStatusCountBo) {
long sn = getSn(deviceStatusCountBo);
Integer dType = getDeviceType(deviceStatusCountBo);
Integer count = deviceStatusCountBo.getCount();
BsRecordsDto bsRecordsDto = IceHDaoGpsClient.getRecentBsRecords(sn, dType, count);
return bsRecordsDto;
}
@SysLog
@Override
public Map<String, Object> getDistInfoByPos(BaseMapModel mapModel) {
float lat = getLat(mapModel);
float lng = getLat(mapModel);
Map<String, Object> res = IceDistrictClient.getDistInfoByPos(lng, lat);
return res;
}
@SysLog
@Override
public Map<String, Object> getDistDetailByPos(BaseMapModel mapModel) {
float lat = getLat(mapModel);
float lng = getLat(mapModel);
Map<String, Object> res = IceDistrictClient.getDistDetailByPos(lng, lat);
return res;
}
@SysLog
@Override
public Map<String, Object> getGeocoding(GeocodeBO geocodeBO) {
String address = geocodeBO.getAddress();
Map<String, Object> res = IcePoiSearchFTRClient.Geocoding(address);
return res;
}
@SysLog
@Override
public Map<String, Object> getReverseGeocoding(BaseMapModel mapModel) {
float lat = getLat(mapModel);
float lng = getLat(mapModel);
String address = IcePoiSearchNearClient.getReverseGeocoding(lng, lat);
Map<String, Object> map = new HashMap<>();
map.put("address", address);
return map;
}
@SysLog
@Override
public Map<String, Object> getCoordTransForMap(CoordTransForMapBo coordTransForMapBo) {
int lat = getLat(coordTransForMapBo).intValue();
int lng = getLng(coordTransForMapBo).intValue();
int map_type = coordTransForMapBo.getMaptype();
Map<String, Object> map = IceHDaoGpsClient.convGeoGps(lng, lat, map_type);
return map;
}
@SysLog
@Override
public Map<String, Object> getJourneyByGpsRecords(GpsBsRecordsBo gpsBsRecordsBo) {
long sn = getSn(gpsBsRecordsBo);
Integer dType = getDeviceType(gpsBsRecordsBo);
int start_time = Integer.parseInt(gpsBsRecordsBo.getStartTime().getTime() + "");
int end_time = Integer.parseInt(gpsBsRecordsBo.getEndTime().getTime() + "");
Map<String, Object> map = IceRtMileStatClient.getJourneyByGpsRecords(sn, dType, start_time, end_time);
return map;
}
@SysLog
@Override
public Map<String, Object> getJourneyRecords(GpsBsRecordsBo gpsBsRecordsBo) {
long sn = getSn(gpsBsRecordsBo);
Integer dType = getDeviceType(gpsBsRecordsBo);
Date start_time = gpsBsRecordsBo.getStartTime();
Date end_time = gpsBsRecordsBo.getEndTime();
Map<String, Object> map = IceRtMileStatClient.getJourneyRecords(sn, dType, start_time, end_time);
return map;
}
@SysLog
@Override
public Map<String, Object> getDailyMileageRecords(GpsBsRecordsBo gpsBsRecordsBo) {
long sn = getSn(gpsBsRecordsBo);
Integer dType = getDeviceType(gpsBsRecordsBo);
Date start_time = gpsBsRecordsBo.getStartTime();
Date end_time = gpsBsRecordsBo.getEndTime();
Map<String, Object> map = IceRtMileStatClient.getDailyMileageRecords(sn, dType, start_time, end_time);
return map;
}
@SysLog
@Override
public Map<String, Object> getTotalMileageRecords(DeviceStatusBo deviceStatusBo) {
Long sn = getSn(deviceStatusBo);
Integer dType = getDeviceType(deviceStatusBo);
Map<String, Object> map = IceRtMileStatClient.getTotalMileageRecords(sn, dType);
return map;
}
@SysLog
@Override
public Map<String, Object> getMonthResideRecords(DeviceMonthBo deviceMonthBo) {
long sn = getSn(deviceMonthBo);
Integer dType = getDeviceType(deviceMonthBo);
String bgn_month = deviceMonthBo.getBegin_month();
String end_month = deviceMonthBo.getEnd_month();
Map<String, Object> map = IceRtMileStatClient.getMonthResideRecords(sn, dType, bgn_month, end_month);
return map;
}
@SysLog
@Override
public Map<String, Object> getDeviceStayRecords(DeviceStayBo deviceStayBo) {
long sn = getSn(deviceStayBo);
Integer dType = getDeviceType(deviceStayBo);
String start_date = deviceStayBo.getStart_date();
String end_date = deviceStayBo.getEnd_date();
Integer period_type = deviceStayBo.getPeriod_type();
Integer max_duration = deviceStayBo.getMax_duration();
Integer min_duration = deviceStayBo.getMin_duration();
Map<String, Object> map = IceRtMileStatClient.getDeviceStayRecords(sn, dType, start_date, end_date, period_type, max_duration, min_duration);
return map;
}
}
package com.glsx.service.impl; package com.glsx.service.impl;
import cn.com.glsx.openplatform.service.IceOpenApiService; import cn.com.glsx.openplatform.service.OpenApiService;
import cn.hutool.db.Page; import cn.hutool.db.Page;
import com.glsx.base.aop.SysLog;
import com.glsx.base.controller.BaseService; import com.glsx.base.controller.BaseService;
import com.glsx.constant.OpenAPIConstant; import com.glsx.constant.OpenAPIConstant;
import com.glsx.enums.MapTypeEnum;
import com.glsx.exception.ApiErrorMessage; import com.glsx.exception.ApiErrorMessage;
import com.glsx.ice.iceClient.IceDistrictClient; import com.glsx.model.BO.DeviceListBo;
import com.glsx.ice.iceClient.IceHDaoGpsClient; import com.glsx.model.BO.DeviceStatusBo;
import com.glsx.ice.iceClient.IcePoiSearchClient; import com.glsx.model.BO.TokenBo;
import com.glsx.ice.iceClient.IceRtMileStatClient; import com.glsx.model.BO.subscribeMessageBo;
import com.glsx.model.BO.*; import com.glsx.service.IOpenApiService;
import com.glsx.model.BaseMapModel;
import com.glsx.model.DTO.*;
import com.glsx.service.OpenApiService;
import com.glsx.utils.JwtUtil; import com.glsx.utils.JwtUtil;
import com.glsx.utils.MapUtils; import com.glsx.utils.MapUtils;
import com.glsx.utils.RSAUtils; import com.glsx.utils.RSAUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.Date; import java.util.Date;
import java.util.HashMap;
import java.util.Map; import java.util.Map;
import java.util.TreeMap; import java.util.TreeMap;
...@@ -32,19 +28,22 @@ import java.util.TreeMap; ...@@ -32,19 +28,22 @@ import java.util.TreeMap;
* @Description: 开放平台接口实现类 * @Description: 开放平台接口实现类
*/ */
@Service @Service
public class OpenApiServiceImpl extends BaseService implements OpenApiService { public class OpenApiServiceImpl extends BaseService implements IOpenApiService {
@Autowired @Autowired
JwtUtil jwtTokenUtil; JwtUtil jwtTokenUtil;
@Autowired @Autowired
IceOpenApiService iceOpenApiService; OpenApiService openApiService;
/*
* 鉴权
*/
@SysLog
@Override @Override
public String getToken(TokenBo tokenBo) { public String getToken(TokenBo tokenBo) {
logi("OpenApiService===调用getToken开始===" + tokenBo);
//校验必传参数 //校验必传参数
TreeMap<String, String> params = MapUtils.transBean2Map(tokenBo); TreeMap<String, String> params = MapUtils.transBean2Map(tokenBo);
logi("参数对象:" + params); //logi("参数对象:" + params);
boolean miss = params.entrySet().stream().anyMatch(kv -> StringUtils.isEmpty(kv.getValue())); boolean miss = params.entrySet().stream().anyMatch(kv -> StringUtils.isEmpty(kv.getValue()));
if (miss) if (miss)
throw ApiErrorMessage.ARGS_NULL.exception(); throw ApiErrorMessage.ARGS_NULL.exception();
...@@ -52,7 +51,8 @@ public class OpenApiServiceImpl extends BaseService implements OpenApiService { ...@@ -52,7 +51,8 @@ public class OpenApiServiceImpl extends BaseService implements OpenApiService {
//获取私钥 //获取私钥
Integer appId = tokenBo.getAppId(); Integer appId = tokenBo.getAppId();
//todo 测试参数修改 //todo 测试参数修改
String privateKey = OpenAPIConstant.TEST_PRIVATE_KEY/*iceOpenApiService.getPrivateSecret(appId)*/; //String privateKey = openApiService.getPrivateSecret(appId);
String privateKey = OpenAPIConstant.TEST_PRIVATE_KEY;
//获取公钥加密的密文 //获取公钥加密的密文
String sign = tokenBo.getSign(); String sign = tokenBo.getSign();
...@@ -79,252 +79,40 @@ public class OpenApiServiceImpl extends BaseService implements OpenApiService { ...@@ -79,252 +79,40 @@ public class OpenApiServiceImpl extends BaseService implements OpenApiService {
} }
//根据appid查询用户信息,将客户信息转化为jwt //根据appid查询用户信息,将客户信息转化为jwt
Map<String, Object> infos = iceOpenApiService.getCustomerInfo(appId); Map<String, Object> infos = openApiService.getCustomerInfo(appId);
logi("OpenApiService===Userinfos===" + infos); logi("OpenApiService===Userinfos===" + infos);
String jwtToken = jwtTokenUtil.generateToken(infos); String jwtToken = jwtTokenUtil.generateToken(infos);
logi("OpenApiService===返回jwt===" + jwtToken);
return jwtToken; return jwtToken;
} }
/* /*
* 参数用公钥加密后的密文 * 参数用公钥加密后的密文
*/ */
@SysLog
@Override @Override
public Map<String,Object> getDeviceList(DeviceListBo deviceListBo) { public Map<String, Object> getDeviceList(DeviceListBo deviceListBo) {
logi("OpenApiService===getDeviceList开始===" + deviceListBo); Page page = new Page(deviceListBo.getPageNo(), deviceListBo.getPageSize());
Page page = new Page(deviceListBo.getPageNo(),deviceListBo.getPageSize());
Date start_time = deviceListBo.getStartTime(); Date start_time = deviceListBo.getStartTime();
Date end_time = deviceListBo.getEndTime(); Date end_time = deviceListBo.getEndTime();
Integer appid = getCustomerID(deviceListBo); Integer appid = getCustomerID(deviceListBo);
Map<String,Object> res = iceOpenApiService.getDeviceList(appid,page,start_time,end_time); Map<String, Object> res = openApiService.getDeviceList(appid, page, start_time, end_time);
logi("OpenApiService===getDeviceList返回==="+res.toString());
return res; return res;
} }
//todo 接口还没给 @SysLog
@Override
public void postCommands(CommandsBo commandsBo) {
logi("OpenApiService===postCommands开始==="+commandsBo);
}
//todo 接口还没给
@Override
public Integer getDeviceStatus(DeviceStatusBo deviceStatusBo) {
logi("OpenApiService===getDeviceStatus开始");
return null;
}
@Override @Override
public Map<String, Integer> getDataView(DeviceStatusBo deviceStatusBo) { public Map<String, Integer> getDataView(DeviceStatusBo deviceStatusBo) {
logi("OpenApiService===getDataView开始==="+deviceStatusBo);
Integer customerId = getCustomerID(deviceStatusBo);
logi("OpenApiService===getDataView==customerId:"+customerId);
Map<String, Integer> res = iceOpenApiService.getDataView(customerId, deviceStatusBo.getDevice_type());
logi("OpenApiService===getDataView==res:"+res);
return res;
}
//todo 接口还没给
@Override
public void subscribeMessage(subscribeMessageBo subscribeMessageBo) {
logi("OpenApiService===subscribeMessage开始==="+subscribeMessageBo);
}
@Override
public LatestGpsRecordDto getLatestGPSRecord(DeviceStatusBo deviceStatusBo) {
logi("OpenApiService===getLatestGPSRecord开始==="+deviceStatusBo);
long sn = Long.parseLong(deviceStatusBo.getSn());
Integer dType = deviceStatusBo.getDevice_type();
LatestGpsRecordDto gpsRecord = IceHDaoGpsClient.getLatestGpsRecord(sn, dType, MapTypeEnum.NONE_TYPE.getId());
logi("OpenApiService===getLatestGPSRecord==返回:"+gpsRecord);
return gpsRecord;
}
@Override
public LatestBsRecordDto getLatestBsRecord(DeviceStatusBo deviceStatusBo) {
logi("OpenApiService===getLatestBsRecord开始==" + deviceStatusBo);
Integer customerId = getCustomerID(deviceStatusBo); Integer customerId = getCustomerID(deviceStatusBo);
logi("OpenApiService===getLatestBsRecord开始==customerId:"+customerId); logi("OpenApiService===getDataView==customerId:" + customerId);
long sn = Long.parseLong(deviceStatusBo.getSn()); Map<String, Integer> res = openApiService.getDataView(customerId, deviceStatusBo.getDevice_type());
Integer dType = deviceStatusBo.getDevice_type();
LatestBsRecordDto bsRecord = IceHDaoGpsClient.getLatestBsRecord(sn, dType);
logi("OpenApiService===getLatestBsRecord返回:" + bsRecord);
return bsRecord;
}
@Override
public LatestGpsBsRecordDto getLatestGpsBsRecord(DeviceStatusBo deviceStatusBo) {
logi("OpenApiService===getLatestGpsBsRecord开始==" + deviceStatusBo);
//todo ice接口有问题,暂用组合代替
long sn = Long.parseLong(deviceStatusBo.getSn());
Integer dType = deviceStatusBo.getDevice_type();
LatestGpsRecordDto gpsRecord = IceHDaoGpsClient.getLatestGpsRecord(sn, dType, MapTypeEnum.NONE_TYPE.getId());
LatestBsRecordDto bsRecord = IceHDaoGpsClient.getLatestBsRecord(sn, dType);
LatestGpsBsRecordDto gpsBsRecordDto = new LatestGpsBsRecordDto();
BeanUtils.copyProperties(gpsRecord,gpsBsRecordDto);
BeanUtils.copyProperties(bsRecord,gpsBsRecordDto);
//LatestGpsBsRecordDto latestGpsBsRecordDto = IceHDaoGpsClient.getDevicesGpsInfo(dId, 0, 0);
logi("OpenApiService===getLatestGpsBsRecord返回:" + gpsBsRecordDto);
return gpsBsRecordDto;
}
@Override
public GpsRecordsDto getGpsRecords(GpsBsRecordsBo gpsRecordsBo) {
logi("OpenApiService===getGpsRecords开始===" + gpsRecordsBo);
long sn = Long.parseLong(gpsRecordsBo.getSn());
Integer dType = gpsRecordsBo.getDevice_type();
GpsRecordsDto gpsRecordsDto = IceHDaoGpsClient.getGpsRecords(dType, gpsRecordsBo.getStartTime(), gpsRecordsBo.getEndTime(), sn);
logi("OpenApiService===getGpsRecords返回:" + gpsRecordsDto);
return gpsRecordsDto;
}
@Override
public BsRecordsDto getBsRecords(GpsBsRecordsBo bsRecordsBo) {
logi("OpenApiService===getGpsRecords开始===" + bsRecordsBo);
long sn = Long.parseLong(bsRecordsBo.getSn());
Integer dType = bsRecordsBo.getDevice_type();
BsRecordsDto bsRecordsDto = IceHDaoGpsClient.getBsRecords(dType, bsRecordsBo.getStartTime(), bsRecordsBo.getEndTime(), sn);
logi("OpenApiService===getBsRecords返回:" + bsRecordsDto);
return bsRecordsDto;
}
@Override
public FirstGpsRecordDto getFirstGpsRecord(DeviceStatusBo deviceStatusBo) {
logi("OpenApiService===getFirstGpsRecord开始===" + deviceStatusBo);
long sn = Long.parseLong(deviceStatusBo.getSn());
Integer dType = deviceStatusBo.getDevice_type();
FirstGpsRecordDto firstGpsRecordDto = IceHDaoGpsClient.getFirstGpsRecord(dType, sn);
logi("OpenApiService===getFirstGpsRecord返回:" + firstGpsRecordDto);
return firstGpsRecordDto;
}
@Override
public GpsRecordsDto getRecentGpsRecords(DeviceStatusCountBo deviceStatusCountBo) {
logi("OpenApiService===getRecentGpsRecords开始===" + deviceStatusCountBo);
long sn = Long.parseLong(deviceStatusCountBo.getSn());
Integer dType = deviceStatusCountBo.getDevice_type();
Integer count = deviceStatusCountBo.getCount();
GpsRecordsDto bsRecordsDto = IceHDaoGpsClient.getRecentGpsRecords(sn, dType,count);
logi("OpenApiService===getRecentGpsRecords返回:" + bsRecordsDto);
return bsRecordsDto;
}
@Override
public BsRecordsDto getRecentBsRecords(DeviceStatusCountBo deviceStatusCountBo) {
logi("OpenApiService===getRecentBsRecords开始===" + deviceStatusCountBo);
long sn = Long.parseLong(deviceStatusCountBo.getSn());
Integer dType = deviceStatusCountBo.getDevice_type();
Integer count = deviceStatusCountBo.getCount();
BsRecordsDto bsRecordsDto = IceHDaoGpsClient.getRecentBsRecords(sn,dType,count);
return bsRecordsDto;
}
@Override
public DistInfoDto getDistInfoByPos(BaseMapModel mapModel) {
logi("OpenApiService===getDistInfoByPos开始===" + mapModel);
float lat = mapModel.getLat().floatValue();
float lng = mapModel.getLng().floatValue();
DistInfoDto res = IceDistrictClient.getDistInfoByPos(lng,lat);
logi("OpenApiService===getDistInfoByPos返回===" + res);
return res;
}
@Override
public DistDetilDto getDistDetailByPos(BaseMapModel mapModel) {
logi("OpenApiService===getDistDetailByPos开始===" + mapModel);
float lat = mapModel.getLat().floatValue();
float lng = mapModel.getLng().floatValue();
DistDetilDto res = IceDistrictClient.getDistDetailByPos(lng,lat);
logi("OpenApiService===getDistDetailByPos返回===" + res);
return res; return res;
} }
@Override
public Map<String, Object> getGeocoding(GeocodeBO geocodeBO) {
logi("OpenApiService===getGeocoding开始===" + geocodeBO);
//todo ice没有对应的接口
//float lat = mapModel.getLat().floatValue();
//float lng = mapModel.getLng().floatValue();
//HashMap<String, Object> res = IcePoiSearchClient.getReverseGeocoding(lng,lat);
//logi("OpenApiService===getGeocoding返回===" + res);
return null;
}
@Override
public Map<String, Object> getReverseGeocoding(BaseMapModel mapModel) {
logi("OpenApiService===getReverseGeocoding开始===" + mapModel);
float lat = mapModel.getLat().floatValue();
float lng = mapModel.getLng().floatValue();
String address = IcePoiSearchClient.getReverseGeocoding(lng,lat);
Map<String, Object> map = new HashMap<>();
map.put("address",address);
logi("OpenApiService===getReverseGeocoding返回===" + map);
return map;
}
//todo 地图校偏
@Override
public Map<String, Object> getCoordTransForMap(CoordTransForMapBo coordTransForMapBo) {
logi("OpenApiService===getCoordTransForMap开始===" + coordTransForMapBo);
// FirstGpsRecordDto firstGpsRecordDto = IceHDaoGpsClient.convGeoGps(dType, sn);
//logi("OpenApiService===getCoordTransForMap返回:" + firstGpsRecordDto);
return null;
}
@Override
public Map<String, Object> getJourneyByGpsRecords(GpsBsRecordsBo gpsBsRecordsBo) {
logi("OpenApiService===getJourneyByGpsRecords开始===" + gpsBsRecordsBo);
long sn = Long.parseLong(gpsBsRecordsBo.getSn());
Integer dType = gpsBsRecordsBo.getDevice_type();
int start_time = Integer.parseInt(gpsBsRecordsBo.getStartTime().getTime()+"");
int end_time = Integer.parseInt(gpsBsRecordsBo.getEndTime().getTime()+"");
Map<String, Object> map = IceRtMileStatClient.getJourneyByGpsRecords(sn,dType,start_time,end_time);
logi("OpenApiService===getJourneyByGpsRecords返回===" + map);
return map;
}
@Override
public Map<String, Object> getJourneyRecords(GpsBsRecordsBo gpsBsRecordsBo) {
logi("OpenApiService===getJourneyRecords开始===" + gpsBsRecordsBo);
long sn = Long.parseLong(gpsBsRecordsBo.getSn());
Integer dType = gpsBsRecordsBo.getDevice_type();
Date start_time = gpsBsRecordsBo.getStartTime();
Date end_time = gpsBsRecordsBo.getEndTime();
Map<String, Object> map = IceRtMileStatClient.getJourneyRecords(sn,dType,start_time,end_time);
logi("OpenApiService===getJourneyRecords返回===" + map);
return map;
}
@Override
public Map<String, Object> getDailyMileageRecords(GpsBsRecordsBo gpsBsRecordsBo) {
logi("OpenApiService===getDailyMileageRecords开始===" + gpsBsRecordsBo);
long sn = Long.parseLong(gpsBsRecordsBo.getSn());
Integer dType = gpsBsRecordsBo.getDevice_type();
Date start_time = gpsBsRecordsBo.getStartTime();
Date end_time = gpsBsRecordsBo.getEndTime();
Map<String, Object> map = IceRtMileStatClient.getDailyMileageRecords(sn,dType,start_time,end_time);
logi("OpenApiService===getDailyMileageRecords返回===" + map);
return map;
}
//todo getTotalMileageRecords
@Override
public Map<String, Object> getTotalMileageRecords(DeviceStatusBo deviceStatusBo) {
return null;
}
//todo getMonthResideRecords //todo 接口自己实现
@SysLog
@Override @Override
public Map<String, Object> getMonthResideRecords(DeviceMonthBo deviceStatusBo) { public void subscribeMessage(subscribeMessageBo subscribeMessageBo) {
return null;
}
//todo getDeviceStayRecords
@Override
public Map<String, Object> getDeviceStayRecords(DeviceStayBo deviceStayBo) {
return null;
} }
} }
...@@ -6,6 +6,7 @@ import io.jsonwebtoken.Jwts; ...@@ -6,6 +6,7 @@ import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm; import io.jsonwebtoken.SignatureAlgorithm;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.util.Date; import java.util.Date;
import java.util.Map; import java.util.Map;
......
...@@ -2,6 +2,7 @@ package com.glsx.utils; ...@@ -2,6 +2,7 @@ package com.glsx.utils;
import org.apache.commons.codec.binary.Base64; import org.apache.commons.codec.binary.Base64;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import javax.crypto.Cipher; import javax.crypto.Cipher;
import java.security.*; import java.security.*;
import java.security.interfaces.RSAPrivateKey; import java.security.interfaces.RSAPrivateKey;
......
server.port=8082 server.port=8089
server.display.name=open-platform-api server.display.name=open-platform-api
server.servlet.context-path=/open-platform-api server.servlet.context-path=/open-platform-api
server.servlet.application-display-name=open-platform-api server.servlet.application-display-name=open-platform-api
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!