|
@@ -117,12 +117,13 @@ public class CctvControlService {
|
|
|
sb.append(line).append("\n");
|
|
|
}
|
|
|
//br.close();
|
|
|
+ log.info("HTTP_OK: CCTV, {}, {}", ipAddr, sb);
|
|
|
+ result.setResult(0, sb.toString());
|
|
|
}
|
|
|
catch (IOException e) {
|
|
|
log.error("requestHttpPostProbe: IOException");
|
|
|
+ result.setResult(4, "CCTV 제어기에 연결 할 수 없습니다. 통신 확인 후 작업을 진행해 주세요.");
|
|
|
}
|
|
|
- log.info("HTTP_OK: CCTV, {}, {}", ipAddr, sb);
|
|
|
- result.setResult(0, sb.toString());
|
|
|
} else {
|
|
|
log.error("HTTP_FAIL: {}", connection.getResponseMessage());
|
|
|
if (connection.getResponseMessage() == null) {
|
|
@@ -133,7 +134,7 @@ public class CctvControlService {
|
|
|
}
|
|
|
} catch (IOException e){
|
|
|
log.error("Exception: IOException");
|
|
|
- result.setResult(4, "IOException");
|
|
|
+ result.setResult(5, "CCTV 제어기에 연결 할 수 없습니다. 통신 확인 후 작업을 진행해 주세요.");
|
|
|
} finally {
|
|
|
if (connection != null) {
|
|
|
connection.disconnect();
|
|
@@ -235,12 +236,13 @@ public class CctvControlService {
|
|
|
sb.append(line).append("\n");
|
|
|
}
|
|
|
//br.close();
|
|
|
+ log.info("HTTP_OK: CCTV, {}, {}", ipAddr, sb);
|
|
|
+ result.setResult(0, sb.toString());
|
|
|
}
|
|
|
catch (IOException e) {
|
|
|
log.error("requestHttpPostZeno: IOException");
|
|
|
+ result.setResult(4, "CCTV 제어기에 연결 할 수 없습니다. 통신 확인 후 작업을 진행해 주세요.");
|
|
|
}
|
|
|
- log.info("HTTP_OK: CCTV, {}, {}", ipAddr, sb);
|
|
|
- result.setResult(0, sb.toString());
|
|
|
} else {
|
|
|
log.error("HTTP_FAIL: {}", connection.getResponseMessage());
|
|
|
if (connection.getResponseMessage() == null) {
|
|
@@ -251,7 +253,7 @@ public class CctvControlService {
|
|
|
}
|
|
|
} catch (IOException e){
|
|
|
log.error("Exception: IOException");
|
|
|
- result.setResult(4, "IOException");
|
|
|
+ result.setResult(5, "CCTV 제어기에 연결 할 수 없습니다. 통신 확인 후 작업을 진행해 주세요.");
|
|
|
} finally {
|
|
|
if (connection != null) {
|
|
|
connection.disconnect();
|