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 String ACK = "ACK";
026 }
027
028 public interface Responses
029 {
030 String CONNECTED = "CONNECTED";
031 String ERROR = "ERROR";
032 String MESSAGE = "MESSAGE";
033 String RECEIPT = "RECEIPT";
034 }
035
036 public interface Headers
037 {
038 String SEPERATOR = ":";
039 String RECEIPT_REQUESTED = "receipt";
040
041 public interface Receipt
042 {
043 String RECEIPT_ID = "receipt-id";
044 }
045
046 public interface Send
047 {
048 String DESTINATION = "destination";
049 String CORRELATION_ID = "correlation-id";
050 String REPLY_TO = "reply-to";
051 String EXPIRATION_TIME = "expires";
052 String PRORITY = "priority";
053 String TYPE = "type";
054 }
055
056 public interface Message
057 {
058 String MESSAGE_ID = "message-id";
059 String DESTINATION = "destination";
060 String CORRELATION_ID = "correlation-id";
061 String EXPIRATION_TIME = "expires";
062 String REPLY_TO = "reply-to";
063 String PRORITY = "priority";
064 String REDELIVERED = "redelivered";
065 String TIMESTAMP = "timestamp";
066 String TYPE = "type";
067 String SUBSCRIPTION = "subscription";
068 }
069
070 public interface Subscribe
071 {
072 String DESTINATION = "destination";
073 String ACK_MODE = "ack";
074 String ID = "id";
075
076 public interface AckModeValues
077 {
078 String AUTO = "auto";
079 String CLIENT = "client";
080 }
081 }
082
083 public interface Unsubscribe
084 {
085 String DESTINATION = "destination";
086 }
087
088 public interface Connect
089 {
090 String LOGIN = "login";
091 String PASSCODE = "passcode";
092 }
093
094 public interface Error
095 {
096 String MESSAGE = "message";
097 }
098
099 public interface Connected
100 {
101 String SESSION = "session";
102 }
103
104 public interface Ack
105 {
106 String MESSAGE_ID = "message-id";
107 }
108 }
109 }