public class SimpleMessage extends Object implements EgovIntegrationMessage
NOTE: 전자정부 연계 서비스의 표준 메시지 Class이다.
== 개정이력(Modification Information) == 수정일 수정자 수정내용 ------- -------- --------------------------- 2009.06.01 심상호 최초 생성
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
attachments
Attachment
|
protected Map<String,Object> |
body
메시지 바디
|
protected EgovIntegrationMessageHeader |
header
메시지 헤더
|
| Constructor and Description |
|---|
SimpleMessage()
.
|
SimpleMessage(EgovIntegrationMessageHeader header)
Constructor.
|
SimpleMessage(EgovIntegrationMessageHeader header,
Map<String,Object> body)
Constructor.
|
SimpleMessage(EgovIntegrationMessageHeader header,
Map<String,Object> body,
Map<String,Object> attachments)
Constructor.
|
| 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한다.
|
protected EgovIntegrationMessageHeader header
public SimpleMessage()
public SimpleMessage(EgovIntegrationMessageHeader header)
header - 메시지 헤더IllegalArgumentException - Argument header 값이 null인 경우public SimpleMessage(EgovIntegrationMessageHeader header, Map<String,Object> body)
header - 메시지 헤더body - 메시지 바디IllegalArgumentException - 1. Argument header, body 값이
null인 경우 body의 key 값 중
null 또는 공백 문자가 있는 경우 body의 value 값 중
null 값이 있는 경우public SimpleMessage(EgovIntegrationMessageHeader header, Map<String,Object> body, Map<String,Object> attachments)
header - 메시지 헤더body - 메시지 바디attachments - 첨부IllegalArgumentException - 1. Argument header, body,
attachments 값이 null인 경우 body, attachments의
key 값 중 null 또는 공백 문자가 있는 경우 body, attachments의
value 값 중 null 값이 있는 경우public Map<String,Object> getBody()
EgovIntegrationMessagegetBody in interface EgovIntegrationMessagepublic void setBody(Map<String,Object> body)
EgovIntegrationMessagesetBody in interface EgovIntegrationMessagebody - 메시지 바디 (not null)public EgovIntegrationMessageHeader getHeader()
EgovIntegrationMessagegetHeader in interface EgovIntegrationMessagepublic 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.