public abstract class AbstractService extends Object implements EgovIntegrationService
NOTE: 전자정부 연계 서비스의 Service interface를 구현한 abstract Service class이다
== 개정이력(Modification Information) == 수정일 수정자 수정내용 ------- -------- --------------------------- 2009.06.01 심상호 최초 생성
| Modifier and Type | Field and Description |
|---|---|
protected long |
defaultTimeout
default timeout
|
protected String |
id
연계 ID
|
| Constructor and Description |
|---|
AbstractService(String id,
long defaultTimeout)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract EgovIntegrationMessage |
doSend(EgovIntegrationMessage requestMessage)
실제 메시지를 주고 받는 method이다. timeout 값과 관계 없이 요청 메시지를 보내고 응답 메시지를 받는다.
|
long |
getDefaultTimeout()
연계 서비스의 default timeout(millisecond)를 읽어온다.
|
String |
getId()
연계 id를 읽어온다.
|
EgovIntegrationServiceResponse |
sendAsync(EgovIntegrationMessage requestMessage)
비동기 연계 서비스를 요청한다.
|
void |
sendAsync(EgovIntegrationMessage requestMessage,
EgovIntegrationServiceCallback callback)
비동기 연계 서비스를 요청한다.
|
EgovIntegrationMessage |
sendSync(EgovIntegrationMessage requestMessage)
동기 연계 서비스를 요청한다. timeout 값은 default 값을 사용한다.
|
EgovIntegrationMessage |
sendSync(EgovIntegrationMessage requestMessage,
long timeout)
동기 연계 서비스를 요청한다.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateRequestMessageprotected String id
protected long defaultTimeout
public AbstractService(String id, long defaultTimeout)
id - 연계 IDdefaultTimeout - default timeoutIllegalArgumentException - Argument id 값이 null이거나 공백 문자인 경우public long getDefaultTimeout()
EgovIntegrationServicegetDefaultTimeout in interface EgovIntegrationServicepublic String getId()
EgovIntegrationServicegetId in interface EgovIntegrationServicepublic EgovIntegrationServiceResponse sendAsync(EgovIntegrationMessage requestMessage)
EgovIntegrationServicesendAsync in interface EgovIntegrationServicerequestMessage - 연계 요청 메시지public void sendAsync(EgovIntegrationMessage requestMessage, EgovIntegrationServiceCallback callback)
EgovIntegrationServicesendAsync in interface EgovIntegrationServicerequestMessage - 연계 요청 메시지callback - 비동기 연계 서비스 Callback 객체public EgovIntegrationMessage sendSync(EgovIntegrationMessage requestMessage)
EgovIntegrationServicesendSync in interface EgovIntegrationServicerequestMessage - 연계 요청 메시지public EgovIntegrationMessage sendSync(EgovIntegrationMessage requestMessage, long timeout)
EgovIntegrationServicesendSync in interface EgovIntegrationServicerequestMessage - 연계 요청 메시지timeout - 동기 연계 수행을 기다릴 시간(millisecond)protected abstract EgovIntegrationMessage doSend(EgovIntegrationMessage requestMessage)
requestMessage - 요청 메시지Copyright © 2015. All rights reserved.