public class MessageWithJustType extends Object implements Message
MessageWithJustType class represents a message, which contains only the
type property, to be used to deserialize the message string coming as the payload of
the REST request. It is then used to determine which real concrete Message implementation
to deserialize the message string to based on that deserialized type.| Constructor and Description |
|---|
MessageWithJustType() |
| Modifier and Type | Method and Description |
|---|---|
String |
getType()
Getter for string-based message type identifier.
|
public String getType()
Message
Warning! Message type identifier should not be settable outside of this class. It should
be read-only, i.e., immutable. It's recommended that its internal declaration be marked
final.
Copyright © 2018. All rights reserved.