📄 message.java
字号:
/* * Project: RAFrameRA Resource Adaptor Framework - An example Resource Adaptor * for Mobicents - the open source JAIN SLEE implementation. * See www.mobicents.org for more detailed information on Mobicents. * * File: Message.java * Author: Michael Maretzke * License: Distributable under LGPL license - see terms of license at gnu.org * Created: 13th September, 09:45 * Version: 1.0 */package com.maretzke.raframe.message;/** * The Message represents the means of communication in the RAFStack resource * adaptor defined protocol. It abstracts the underlying protocol information * by wrapping the protocol information into Java objects.<br> * One protocol message of the defined protocl contains two elements:<br> * An identifier (id)<br> * A command string (command)<br> * Message follows the value object pattern and can only be constructed by * a factory object. * * @author Michael Maretzke */public interface Message { // possible commands of the protocol public final static int INIT = 1; public final static int ANY = 2; public final static int END = 3; public final static int MY =4 ;//This is my commend /** * Access the message's unique identifier. * * @return the message's identifier */ public String getId(); /** * Access the message's command string. * * @return the command string */ public String getCommand(); /** * Access the command string's identifier. The integer representation * of the command string. May be either Message.INIT, Message.ANY or * Message.END. */ public int getCommandId(); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -