public class TransferMessage extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TransferMessage.TMContentType
Supported Transfer Message content types.
|
Modifier and Type | Field and Description |
---|---|
static String |
HEADER_CONTENT_TYPE
The Constant HEADER_CONTENT_TYPE.
|
static String |
HEADER_CORRELATION_ID
The Constant HEADER_CORRELATION_ID.
|
static String |
HEADER_MESSAGE_TYPE
The Constant HEADER_MESSAGE_TYPE.
|
static String |
HEADER_MESSAGE_VERSION
The Constant HEADER_MESSAGE_VERSION.
|
static String |
HEADER_PRE_AUTHENTICATED_CLIENT_ID
Header constant corresponding to HEADER_PRE_AUTHENTICATED_USER_IDENTIFICATION.
|
static String |
HEADER_PRE_AUTHENTICATED_USER_IDENTIFICATION
Header constant holding a user identification of a pre authenticated user.
|
static String |
HEADER_REPLY_QUEUE
The Constant HEADER_REPLY_QUEUE_ID.
|
static String |
HEADER_TRUST_USER
Boolean property on a JMS message, indicating that the user can be trusted and no password
authentication within communote must be done.
|
Constructor and Description |
---|
TransferMessage() |
Modifier and Type | Method and Description |
---|---|
String |
getContent()
returns message content.
|
TransferMessage.TMContentType |
getContentType()
returns message's content type.
|
Object |
getHeader(String key)
Gets the header.
|
void |
putHeader(String key,
Object value)
Put header.
|
void |
setContent(String content)
Sets the content.
|
void |
setContentType(TransferMessage.TMContentType contentType)
Sets the content type.
|
public static final String HEADER_CONTENT_TYPE
public static final String HEADER_MESSAGE_TYPE
public static final String HEADER_MESSAGE_VERSION
public static final String HEADER_CORRELATION_ID
public static final String HEADER_REPLY_QUEUE
public static final String HEADER_TRUST_USER
public static final String HEADER_PRE_AUTHENTICATED_USER_IDENTIFICATION
public static final String HEADER_PRE_AUTHENTICATED_CLIENT_ID
public String getContent()
public TransferMessage.TMContentType getContentType()
public Object getHeader(String key)
key
- header keypublic void putHeader(String key, Object value)
key
- the keyvalue
- the valuepublic void setContent(String content)
content
- the new contentpublic void setContentType(TransferMessage.TMContentType contentType)
contentType
- the new content typeCopyright © 2019 Communote team. All rights reserved.