uCosminexus Service Platform, Basic Development Guide
Appendix H.4 API for message acquisition
Details of APIL for acquiring message set through parameter in the UOC class are as follows:
- Package
- jp.co.Hitachi.soft.csc.msg.uoc
- Class name
- CSCMsgTelegramManager
- Constants
- Following table describes constants:
Constant |
Description |
static final int
NONE = 0 |
Indicates that the body message does not exist. |
static final int
TYPE_XML = 1 |
Indicates that the body message is XML. |
static final int
TYPE_BINARY = 2 |
Indicates that the body message is binary. |
- #getBody
- Description related to operations of #getBody is as follows:
- Argument
- None
- Return value
- byte[](body message)
- Description
- Acquires the body message.
- If body message does not exist, null is returned.
- #getHeader
- Description related to operations of #getHeader is as follows:
- Argument
- String(namespace), String(element name)
- Return value
- byte[](header message)
- Description
- Acquires header message.
- If header message has not been set, null is returned.
- #setBody
- Description related to operations of #setBody is as follows:
- Argument
- byte[](body message)
- Return value
- None
- Description
- Updates the body message.
- #setHeader
- Description related to operations of #setHeader is as follows:
- Argument
- String(namespace), String(element name), byte[](header message)
- Return value
- None
- Description
- Updates header message.
- #getTelegramType
- Description related to operations of #getTelegramType is as follows:
- Argument
- None
- Return value
- int (message type)
- 0:none(message does not exist)
- 1:XML
- 2:binary
- Description
- Acquires types of the body message.
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.