/**
 * [DEFINE YOUR PROJECT NAME/MODULE HERE]
 * [DEFINE YOUR PROJECT DESCRIPTION HERE] 
 * Copyright (C) 8/25/14 echinopsii
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package net.echinopsii.ariane.community.messaging.api;

import java.util.Map;

public interface MomMsgTranslator<M> {

    public final String MSG_APPLICATION_ID = "MSG_APPLICATION_ID";
    public final String MSG_CORRELATION_ID = "MSG_CORRELATION_ID";
    public final String MSG_DELIVERY_MODE = "MSG_DELIVERY_MODE";
    public final String MSG_EXPIRATION    = "MSG_EXPIRATION";
    public final String MSG_MESSAGE_ID    = "MSG_MESSAGE_ID";
    public final String MSG_PRIORITY      = "MSG_PRIORITY";
    public final String MSG_REPLY_TO      = "MSG_REPLY_TO";
    public final String MSG_TIMESTAMP     = "MSG_TIMESTAMP";
    public final String MSG_TYPE          = "MSG_TYPE";
    public final String MSG_BODY          = "MSG_BODY";

    public Map<String, Class>  getMessageTypo();

    public M                   encode(Map<String, Object> message);
    public Map<String, Object> decode(M message);
}
@@ -912,37 +912,24 @@
 r%3CM%3E %7B%0A%0A    
-public final 
 String MSG_A
@@ -966,37 +966,24 @@
 ON_ID%22;%0A    
-public final 
 String MSG_C
@@ -1020,37 +1020,24 @@
 ON_ID%22;%0A    
-public final 
 String MSG_D
@@ -1072,37 +1072,24 @@
 _MODE%22;%0A    
-public final 
 String MSG_E
@@ -1121,37 +1121,24 @@
 ATION%22;%0A    
-public final 
 String MSG_M
@@ -1170,37 +1170,24 @@
 GE_ID%22;%0A    
-public final 
 String MSG_P
@@ -1217,37 +1217,24 @@
 ORITY%22;%0A    
-public final 
 String MSG_R
@@ -1264,37 +1264,24 @@
 LY_TO%22;%0A    
-public final 
 String MSG_T
@@ -1312,37 +1312,24 @@
 STAMP%22;%0A    
-public final 
 String MSG_T
@@ -1363,21 +1363,8 @@
     
-public final 
 Stri
@@ -1398,27 +1398,105 @@
 _BODY%22;%0A
-%0A    public
+    String MSG_RC            = %22RC%22;%0A    String MSG_ERR           = %22ERROR_MESSAGE%22;%0A%0A   
  Map%3CStr
@@ -1531,23 +1531,16 @@
 );%0A%0A    
-public 
 M       
@@ -1592,23 +1592,16 @@
 e);%0A    
-public 
 Map%3CStri

add property like fields for NATS impl