Biblioteca Java - Rev 31
Subversion Repositories:
(root)/Frameworks and Technologies/TestActiveMQ2/src/main/java/com/linkscreens/activemq/protocol/MessageProtocol.java
package com.linkscreens.activemq.protocol;
/**
* Define logic of handling messaages received from clients.
*/
public abstract class MessageProtocol {
private ProtocolType type;
MessageProtocol(ProtocolType type) {
this.type = type;
}
public String getProtocolType(){
return type.toString();
}
/**
* Call when a message is received from client.
* @param messageText
* @return
*/
public abstract String handleProtocolMessage(String messageText);
}
/**
* Define logic of handling messaages received from clients.
*/
public abstract class MessageProtocol {
private ProtocolType type;
MessageProtocol(ProtocolType type) {
this.type = type;
}
public String getProtocolType(){
return type.toString();
}
/**
* Call when a message is received from client.
* @param messageText
* @return
*/
public abstract String handleProtocolMessage(String messageText);
}