94 lines
2.3 KiB
Java
94 lines
2.3 KiB
Java
package nlib.restful;
|
|
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.http.HttpEntity;
|
|
import org.springframework.http.HttpHeaders;
|
|
import org.springframework.http.HttpMethod;
|
|
import org.springframework.http.HttpStatus;
|
|
import org.springframework.http.MediaType;
|
|
import org.springframework.http.ResponseEntity;
|
|
import org.springframework.util.MultiValueMap;
|
|
import org.springframework.web.client.RestTemplate;
|
|
|
|
import nlib.restful.service.DataApiReqVO;
|
|
import nlib.restful.service.DataApiResVO;
|
|
import nlib.restful.service.impl.DataApiTempXml;
|
|
import nlib.util.StringUtil;
|
|
|
|
|
|
/**
|
|
* <pre>
|
|
* @Class Name : DataApi.java
|
|
*
|
|
* @Description : 통합자료관리시스템에 RESTful API를 통해 질의/응답을 처리한다.
|
|
*
|
|
* 개발 기간 중, RESTful API 서버 기능이 준비될 동안 로컬 XML 파일 읽기로 처리 가능하며,
|
|
* 이를 위해서는 상속 클래스를 변경해 준다.
|
|
*
|
|
* - DataApiRESTful : RESTful API 서버에 접속하여 받아온 값으로 응답 처리
|
|
* - DataApiTempXml : 로컬파일(dataapi.temp.xml.path)을 읽어서 응답 처리
|
|
*
|
|
* @프로젝트명: 지방문화원 통합자료관리시스템 구축사업 (2021)
|
|
*
|
|
* </pre>
|
|
*
|
|
* @ ------------ -------- ---------------------------
|
|
* @ 수정일 수정자 수정내용
|
|
* @ ------------ -------- ---------------------------
|
|
* @ 2021. 7. 9. KNKIM 최초 생성
|
|
*
|
|
*
|
|
* @author 이씨플라자 * DIGITALSHIP KNKIM
|
|
* @since 2021. 7. 9.
|
|
* @version 1.0
|
|
*
|
|
*/
|
|
public class DataApi extends DataApiTempXml {
|
|
|
|
private static final Logger log = LoggerFactory.getLogger(DataApi.class);
|
|
|
|
/**
|
|
* 조회
|
|
*
|
|
* @param reqVO
|
|
* @return
|
|
*/
|
|
public DataApiResVO get(DataApiReqVO reqVO) {
|
|
|
|
return super.get(reqVO);
|
|
}
|
|
|
|
/**
|
|
* 등록
|
|
*
|
|
* @param reqVO
|
|
* @return
|
|
*/
|
|
public DataApiResVO put(DataApiReqVO reqVO) {
|
|
return super.put(reqVO);
|
|
}
|
|
|
|
/**
|
|
* 수정
|
|
*
|
|
* @param reqVO
|
|
* @return
|
|
*/
|
|
public DataApiResVO post(DataApiReqVO reqVO) {
|
|
return super.post(reqVO);
|
|
}
|
|
|
|
/**
|
|
* 삭제
|
|
*
|
|
* @param reqVO
|
|
* @return
|
|
*/
|
|
public DataApiResVO delete (DataApiReqVO reqVO) {
|
|
return super.delete(reqVO);
|
|
}
|
|
|
|
}
|