public class CreateTopicMessageHandler extends CommunoteMessageHandler<CreateTopicMessage>
Constructor and Description |
---|
CreateTopicMessageHandler() |
Modifier and Type | Method and Description |
---|---|
Class<CreateTopicMessage> |
getHandledMessageClass()
Class of the messages to be handled by this handler.
|
String |
getVersion()
Handler version is used to distinguish between different formats of the semantically same
message type.
|
CommunoteReplyMessage |
handleMessage(CreateTopicMessage message)
handles message of the appropriate type.
|
void |
setPropertyManagement(PropertyManagement propertyManagement) |
void |
validateMessage(CreateTopicMessage message) |
getHandledMessageType
public Class<CreateTopicMessage> getHandledMessageClass()
CommunoteMessageHandler
getHandledMessageClass
in class CommunoteMessageHandler<CreateTopicMessage>
public String getVersion()
CommunoteMessageHandler
getVersion
in class CommunoteMessageHandler<CreateTopicMessage>
public CommunoteReplyMessage handleMessage(CreateTopicMessage message) throws Exception
CommunoteMessageHandler
handleMessage
in class CommunoteMessageHandler<CreateTopicMessage>
message
- the messageException
- any occurred exceptionpublic void setPropertyManagement(PropertyManagement propertyManagement)
propertyManagement
- the propertyManagement to setpublic void validateMessage(CreateTopicMessage message) throws NoTopicSpecifiedException
message
- message to be validatedNoTopicSpecifiedException
- exceptionCopyright © 2019 Communote team. All rights reserved.