Biblioteca Java - Blame information for rev 31

Subversion Repositories:
Rev:
Rev Author Line No. Line
31 mihai 1 package com.linkscreens.activemq.protocol;
2  
3 /**
4  * Define logic of handling messaages received from clients.
5  */
6 public abstract class MessageProtocol {
7  
8     private ProtocolType type;
9  
10     MessageProtocol(ProtocolType type) {
11         this.type = type;
12     }
13  
14     public String getProtocolType(){
15         return type.toString();
16     }
17  
18     /**
19      * Call when a message is received from client.
20      * @param messageText
21      * @return
22      */
23     public abstract String handleProtocolMessage(String messageText);
24  
25 }