001 /*
002 * Copyright (c) 2005 Your Corporation. All Rights Reserved.
003 */
004 package org.activemq.transport.stomp;
005
006 public interface Stomp
007 {
008 String NULL = "\u0000";
009 Object NEWLINE = "\n";
010
011 public static interface Commands
012 {
013 String CONNECT = "CONNECT";
014 String SEND = "SEND";
015 String DISCONNECT = "DISCONNECT";
016 String SUBSCRIBE = "SUB";
017 String UNSUBSCRIBE = "UNSUB";
018
019 String BEGIN_TRANSACTION = "BEGIN";
020 String COMMIT_TRANSACTION = "COMMIT";
021 String ABORT_TRANSACTION = "ABORT";
022 String BEGIN = "BEGIN";
023 String COMMIT = "COMMIT";
024 String ABORT = "ABORT";
025 }
026
027 public interface Responses
028 {
029 String CONNECTED = "CONNECTED";
030 String ERROR = "ERROR";
031 String MESSAGE = "MESSAGE";
032 String RECEIPT = "RECEIPT";
033 }
034
035 public interface Headers
036 {
037 String SEPERATOR = ":";
038 String RECEIPT_REQUESTED = "receipt";
039
040 public interface Receipt
041 {
042 String RECEIPT_ID = "receipt-id";
043 }
044
045 public interface Unsubscribe
046 {
047 String DESTINATION = "destination";
048 }
049
050 public interface Message
051 {
052 String DESTINATION = "destination";
053 }
054
055 public interface Subscribe
056 {
057 String DESTINATION = "destination";
058 String ACK_MODE = "ack";
059
060 public interface AckModeValues
061 {
062 String AUTO = "auto";
063 String CLIENT = "client";
064 }
065 }
066
067 public interface Connect
068 {
069 String LOGIN = "login";
070 String PASSCODE = "passcode";
071 }
072
073 public interface Error
074 {
075 String MESSAGE = "message";
076 }
077
078 public interface Connected
079 {
080 String SESSION = "session";
081 }
082
083 public interface Send
084 {
085 String DESTINATION = "destination";
086 }
087 }
088 }