오류응답 처리 수정
This commit is contained in:
@@ -41,6 +41,12 @@ public class HttpStatusException extends Exception {
|
|||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public HttpStatusException(String msg, String code, int status, Throwable cause) {
|
||||||
|
super(msg, cause);
|
||||||
|
this.setCode(code);
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
public int getStatus() {
|
public int getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -694,6 +694,13 @@ public class RESTProcess extends HTTPProcess {
|
|||||||
public void setOutboundErrorMessage() throws Exception {
|
public void setOutboundErrorMessage() throws Exception {
|
||||||
this.logPssSno = TranLogUtil.getResLogSeq(this.svcPssTp, this.svcPssSeq, this.isComp);
|
this.logPssSno = TranLogUtil.getResLogSeq(this.svcPssTp, this.svcPssSeq, this.isComp);
|
||||||
|
|
||||||
|
// 에러에 대한 응답메시지
|
||||||
|
if(this.tempProp.get(HttpAdapterServiceKey.OUTBOUND_PROPERTY_MAP) instanceof Map) {
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
Map<String, Object> map = (Map<String, Object>) this.tempProp.get(HttpAdapterServiceKey.OUTBOUND_PROPERTY_MAP);
|
||||||
|
this.callProp.put(HttpAdapterServiceKey.OUTBOUND_PROPERTY_MAP, map);
|
||||||
|
}
|
||||||
|
|
||||||
boolean setResObject = false;
|
boolean setResObject = false;
|
||||||
AdapterGroupVO outboundAdapterGroupVO = AdapterManager.getInstance().getAdapterGroupVO(adapterGroupName);
|
AdapterGroupVO outboundAdapterGroupVO = AdapterManager.getInstance().getAdapterGroupVO(adapterGroupName);
|
||||||
if (outboundAdapterGroupVO != null) {
|
if (outboundAdapterGroupVO != null) {
|
||||||
@@ -722,12 +729,6 @@ public class RESTProcess extends HTTPProcess {
|
|||||||
StandardMessage standardMessage = this.resEaiMsg.getStandardMessage();
|
StandardMessage standardMessage = this.resEaiMsg.getStandardMessage();
|
||||||
standardMessage.setBizData(this.resObject, this.inboundCharset);
|
standardMessage.setBizData(this.resObject, this.inboundCharset);
|
||||||
|
|
||||||
// 에러에 대한 응답메시지
|
|
||||||
if(this.tempProp.get(HttpAdapterServiceKey.OUTBOUND_PROPERTY_MAP) instanceof Map) {
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
Map<String, Object> map = (Map<String, Object>) this.tempProp.get(HttpAdapterServiceKey.OUTBOUND_PROPERTY_MAP);
|
|
||||||
this.callProp.put(HttpAdapterServiceKey.OUTBOUND_PROPERTY_MAP, map);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user