Merge "Remove "response" from yang."
[packetcable.git] / protocol_plugins.packetcable / src / main / java / org / pcmm / messages / IMessageFactory.java
1 /**
2  @header@
3  */
4 package org.pcmm.messages;
5
6 import java.util.Properties;
7
8 import org.umu.cops.stack.COPSMsg;
9
10 /**
11  * 
12  * Factory used to create {@code COPSMsg} based on message type input and a list
13  * of properties.
14  * 
15  */
16 public interface IMessageFactory {
17
18     /**
19      * creates a new message with the specified message type.
20      *
21      * @param messageType
22      *            message type
23      * @return new message.
24      */
25     COPSMsg create(byte messageType);
26
27     /**
28      * creates a new message with the specified message type and content
29      *
30      * @param messageType
31      *            message type
32      * @param properties
33      *            message content.
34      * @return new message.
35      */
36     COPSMsg create(byte messageType, Properties properties);
37 }