KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > activemq > transport > stomp > Stomp


1 /**
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one or more
4  * contributor license agreements. See the NOTICE file distributed with
5  * this work for additional information regarding copyright ownership.
6  * The ASF licenses this file to You under the Apache License, Version 2.0
7  * (the "License"); you may not use this file except in compliance with
8  * the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

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