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