Biblioteca Java - Rev 31

Subversion Repositories:
Rev:
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);

}