| Home >> All >> org >> activemq >> transport >> [ stomp Javadoc ] |
Source code: org/activemq/transport/stomp/Stomp.java
1 /* 2 * Copyright (c) 2005 Your Corporation. All Rights Reserved. 3 */ 4 package org.activemq.transport.stomp; 5 6 public interface Stomp 7 { 8 String NULL = "\u0000"; 9 String NEWLINE = "\n"; 10 11 public static interface Commands 12 { 13 String CONNECT = "CONNECT"; 14 String SEND = "SEND"; 15 String DISCONNECT = "DISCONNECT"; 16 String SUBSCRIBE = "SUB"; 17 String UNSUBSCRIBE = "UNSUB"; 18 19 String BEGIN_TRANSACTION = "BEGIN"; 20 String COMMIT_TRANSACTION = "COMMIT"; 21 String ABORT_TRANSACTION = "ABORT"; 22 String BEGIN = "BEGIN"; 23 String COMMIT = "COMMIT"; 24 String ABORT = "ABORT"; 25 String ACK = "ACK"; 26 } 27 28 public interface Responses 29 { 30 String CONNECTED = "CONNECTED"; 31 String ERROR = "ERROR"; 32 String MESSAGE = "MESSAGE"; 33 String RECEIPT = "RECEIPT"; 34 } 35 36 public interface Headers 37 { 38 String SEPERATOR = ":"; 39 String RECEIPT_REQUESTED = "receipt"; 40 String TRANSACTION = "transaction"; 41 String CONTENT_LENGTH = "content-length"; 42 43 public interface Receipt 44 { 45 String RECEIPT_ID = "receipt-id"; 46 } 47 48 public interface Send 49 { 50 String DESTINATION = "destination"; 51 String CORRELATION_ID = "correlation-id"; 52 String REPLY_TO = "reply-to"; 53 String EXPIRATION_TIME = "expires"; 54 String PRORITY = "priority"; 55 String TYPE = "type"; 56 } 57 58 public interface Message 59 { 60 String MESSAGE_ID = "message-id"; 61 String DESTINATION = "destination"; 62 String CORRELATION_ID = "correlation-id"; 63 String EXPIRATION_TIME = "expires"; 64 String REPLY_TO = "reply-to"; 65 String PRORITY = "priority"; 66 String REDELIVERED = "redelivered"; 67 String TIMESTAMP = "timestamp"; 68 String TYPE = "type"; 69 String SUBSCRIPTION = "subscription"; 70 } 71 72 public interface Subscribe 73 { 74 String DESTINATION = "destination"; 75 String ACK_MODE = "ack"; 76 String ID = "id"; 77 78 public interface AckModeValues 79 { 80 String AUTO = "auto"; 81 String CLIENT = "client"; 82 } 83 } 84 85 public interface Unsubscribe 86 { 87 String DESTINATION = "destination"; 88 } 89 90 public interface Connect 91 { 92 String LOGIN = "login"; 93 String PASSCODE = "passcode"; 94 } 95 96 public interface Error 97 { 98 String MESSAGE = "message"; 99 } 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 }