1 18 package org.apache.activemq.transport.stomp; 19 20 public interface Stomp { 21 String NULL = "\u0000"; 22 String NEWLINE = "\n"; 23 24 public static interface Commands { 25 String CONNECT = "CONNECT"; 26 String SEND = "SEND"; 27 String DISCONNECT = "DISCONNECT"; 28 String SUBSCRIBE = "SUB"; 29 String UNSUBSCRIBE = "UNSUB"; 30 31 String BEGIN_TRANSACTION = "BEGIN"; 32 String COMMIT_TRANSACTION = "COMMIT"; 33 String ABORT_TRANSACTION = "ABORT"; 34 String BEGIN = "BEGIN"; 35 String COMMIT = "COMMIT"; 36 String ABORT = "ABORT"; 37 String ACK = "ACK"; 38 } 39 40 public interface Responses { 41 String CONNECTED = "CONNECTED"; 42 String ERROR = "ERROR"; 43 String MESSAGE = "MESSAGE"; 44 String RECEIPT = "RECEIPT"; 45 } 46 47 public interface Headers { 48 String SEPERATOR = ":"; 49 String RECEIPT_REQUESTED = "receipt"; 50 String TRANSACTION = "transaction"; 51 String CONTENT_LENGTH = "content-length"; 52 53 public interface Response { 54 String RECEIPT_ID = "receipt-id"; 55 } 56 57 public interface Send { 58 String DESTINATION = "destination"; 59 String CORRELATION_ID = "correlation-id"; 60 String REPLY_TO = "reply-to"; 61 String EXPIRATION_TIME = "expires"; 62 String PRIORITY = "priority"; 63 String TYPE = "type"; 64 Object PERSISTENT = "persistent"; 65 } 66 67 public interface Message { 68 String MESSAGE_ID = "message-id"; 69 String DESTINATION = "destination"; 70 String CORRELATION_ID = "correlation-id"; 71 String EXPIRATION_TIME = "expires"; 72 String REPLY_TO = "reply-to"; 73 String PRORITY = "priority"; 74 String REDELIVERED = "redelivered"; 75 String TIMESTAMP = "timestamp"; 76 String TYPE = "type"; 77 String SUBSCRIPTION = "subscription"; 78 } 79 80 public interface Subscribe { 81 String DESTINATION = "destination"; 82 String ACK_MODE = "ack"; 83 String ID = "id"; 84 String SELECTOR = "selector"; 85 86 public interface AckModeValues { 87 String AUTO = "auto"; 88 String CLIENT = "client"; 89 } 90 } 91 92 public interface Unsubscribe { 93 String DESTINATION = "destination"; 94 String ID = "id"; 95 } 96 97 public interface Connect { 98 String LOGIN = "login"; 99 String PASSCODE = "passcode"; 100 String CLIENT_ID = "client-id"; 101 String REQUEST_ID = "request-id"; 102 } 103 104 public interface Error { 105 String MESSAGE = "message"; 106 } 107 108 public interface Connected { 109 String SESSION = "session"; 110 String RESPONSE_ID = "response-id"; 111 } 112 113 public interface Ack { 114 String MESSAGE_ID = "message-id"; 115 } 116 } 117 } 118 | Popular Tags |