public final class TypedMessage extends TypedMap implements EgovIntegrationMessage
NOTE: 전자정부 연계 서비스의 표준 Message interface를 구현한 Message class이다.
== 개정이력(Modification Information) == 수정일 수정자 수정내용 ------- -------- --------------------------- 2009.06.01 심상호 최초 생성
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
attachments
Attachments
|
static String |
BODY_FIELD_NAME
BODY_FIELD_NAME
|
static String |
HEADER_FIELD_NAME
HEADER_FIELD_NAME
|
static String |
TYPE_ID
TYPE_ID
|
static String |
TYPE_NAME
TYPE_NAME
|
| Constructor and Description |
|---|
TypedMessage(RecordType bodyType)
bodyType을 바디부의 Type으로 갖는 TypedMessage를 생성한다. |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttachment(String name)
메시지에 첨부된 내용을 읽어온다.
|
Map<String,Object> |
getAttachments()
메시지에 첨부된 내용을 읽어온다.
|
Map<String,Object> |
getBody()
메시지 바디를 읽어온다.
|
EgovIntegrationMessageHeader |
getHeader()
메시지 헤더를 읽어온다.
|
Object |
putAttachment(String name,
Object attachment)
메시지에 첨부를 추가한다.
|
Object |
removeAttachment(String name)
메시지에서 첨부를 삭제한다.
|
void |
setAttachments(Map<String,Object> attachments)
메시지에 첨부할 내용을 setting한다.
|
void |
setBody(Map<String,Object> body)
메시지 바디를 setting한다.
|
void |
setHeader(EgovIntegrationMessageHeader header)
메시지 헤더를 setting한다.
|
clear, containsKey, containsValue, convertToTypedObject, convertToTypedObjects, entrySet, equals, get, getFieldType, getType, hashCode, isEmpty, keySet, put, putAll, remove, size, valuespublic static final String TYPE_ID
public static final String TYPE_NAME
public static final String HEADER_FIELD_NAME
public static final String BODY_FIELD_NAME
public TypedMessage(RecordType bodyType)
bodyType을 바디부의 Type으로 갖는 TypedMessage를 생성한다.bodyType - 바디부의 TypeIllegalArgumentException - Argument bodyType 값이 null인 경우public Map<String,Object> getBody()
EgovIntegrationMessagegetBody in interface EgovIntegrationMessagepublic EgovIntegrationMessageHeader getHeader()
EgovIntegrationMessagegetHeader in interface EgovIntegrationMessagepublic void setBody(Map<String,Object> body)
EgovIntegrationMessagesetBody in interface EgovIntegrationMessagebody - 메시지 바디 (not null)public void setHeader(EgovIntegrationMessageHeader header)
EgovIntegrationMessagesetHeader in interface EgovIntegrationMessageheader - 메시지 헤더 (not null)public Object getAttachment(String name)
EgovIntegrationMessagegetAttachment in interface EgovIntegrationMessagename - name of attachmentpublic Map<String,Object> getAttachments()
EgovIntegrationMessagegetAttachments in interface EgovIntegrationMessagepublic Object putAttachment(String name, Object attachment)
EgovIntegrationMessageputAttachment in interface EgovIntegrationMessagename - name of attachmentattachment - attachmentpublic Object removeAttachment(String name)
EgovIntegrationMessageremoveAttachment in interface EgovIntegrationMessagename - name of attachmentpublic void setAttachments(Map<String,Object> attachments)
EgovIntegrationMessagesetAttachments in interface EgovIntegrationMessageattachments - attachments (not null)Copyright © 2015. All rights reserved.