PageRenderTime 16ms CodeModel.GetById 2ms app.highlight 10ms RepoModel.GetById 2ms app.codeStats 0ms

/protocols/smpp/src/main/java/org/mobicents/protocols/smpp/message/CommandId.java

http://mobicents.googlecode.com/
Java | 78 lines | 42 code | 2 blank | 34 comment | 0 complexity | ee8dbe8d767e0c93d3cb263ab33259ca MD5 | raw file
 1/*
 2 * JBoss, Home of Professional Open Source
 3 * Copyright 2011, Red Hat, Inc. and individual contributors
 4 * by the @authors tag. See the copyright.txt in the distribution for a
 5 * full listing of individual contributors.
 6 *
 7 * This is free software; you can redistribute it and/or modify it
 8 * under the terms of the GNU Lesser General Public License as
 9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */
22
23package org.mobicents.protocols.smpp.message;
24
25/**
26 * Enumeration of command IDs.
27 * <p>
28 * A proper Java <code>enum</code> was intentionally not used as it added
29 * an extra level of complexity that was not desirable. For a parsed packet,
30 * the command ID of the packet would have to have been converted back into
31 * a CommandId object necessitating either a scan of all the enumeration
32 * values to find the correct object or a <code>Map</code> lookup. In either
33 * case, it added no value to the API.
34 * </p>
35 * @version $Id: CommandId.java 452 2009-01-15 16:56:36Z orank $
36 * @since 0.4.0
37 */
38public class CommandId {
39    public static final int GENERIC_NACK = 0x80000000;
40    public static final int BIND_RECEIVER = 0x00000001;
41    public static final int BIND_RECEIVER_RESP = 0x80000001;
42    public static final int BIND_TRANSMITTER = 0x00000002;
43    public static final int BIND_TRANSMITTER_RESP = 0x80000002;
44    public static final int QUERY_SM = 0x00000003;
45    public static final int QUERY_SM_RESP = 0x80000003;
46    public static final int SUBMIT_SM = 0x00000004;
47    public static final int SUBMIT_SM_RESP = 0x80000004;
48    public static final int DELIVER_SM = 0x00000005;
49    public static final int DELIVER_SM_RESP = 0x80000005;
50    public static final int UNBIND = 0x00000006;
51    public static final int UNBIND_RESP = 0x80000006;
52    public static final int REPLACE_SM = 0x00000007;
53    public static final int REPLACE_SM_RESP = 0x80000007;
54    public static final int CANCEL_SM = 0x00000008;
55    public static final int CANCEL_SM_RESP = 0x80000008;
56    public static final int BIND_TRANSCEIVER = 0x00000009;
57    public static final int BIND_TRANSCEIVER_RESP = 0x80000009;
58    public static final int OUTBIND = 0x0000000b;
59    public static final int ENQUIRE_LINK = 0x00000015;
60    public static final int ENQUIRE_LINK_RESP = 0x80000015;
61    public static final int SUBMIT_MULTI = 0x00000021;
62    public static final int SUBMIT_MULTI_RESP = 0x80000021;
63    public static final int PARAM_RETRIEVE = 0x00000022;
64    public static final int PARAM_RETRIEVE_RESP = 0x80000022;
65    public static final int QUERY_LAST_MSGS = 0x00000023;
66    public static final int QUERY_LAST_MSGS_RESP = 0x80000023;
67    public static final int QUERY_MSG_DETAILS = 0x00000024;
68    public static final int QUERY_MSG_DETAILS_RESP = 0x80000024;
69    public static final int ALERT_NOTIFICATION = 0x00000102;
70    public static final int DATA_SM = 0x00000103;
71    public static final int DATA_SM_RESP = 0x80000103;
72    public static final int BROADCAST_SM = 0x00000111;
73    public static final int BROADCAST_SM_RESP = 0x80000111;
74    public static final int QUERY_BROADCAST_SM = 0x00000112;
75    public static final int QUERY_BROADCAST_SM_RESP = 0x80000112;
76    public static final int CANCEL_BROADCAST_SM = 0x00000113;
77    public static final int CANCEL_BROADCAST_SM_RESP = 0x80000113;
78}