/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. package org.mobicents.protocols.smpp.message;
  23. /**
  24. * Enumeration of command IDs.
  25. * <p>
  26. * A proper Java <code>enum</code> was intentionally not used as it added
  27. * an extra level of complexity that was not desirable. For a parsed packet,
  28. * the command ID of the packet would have to have been converted back into
  29. * a CommandId object necessitating either a scan of all the enumeration
  30. * values to find the correct object or a <code>Map</code> lookup. In either
  31. * case, it added no value to the API.
  32. * </p>
  33. * @version $Id: CommandId.java 452 2009-01-15 16:56:36Z orank $
  34. * @since 0.4.0
  35. */
  36. public class CommandId {
  37. public static final int GENERIC_NACK = 0x80000000;
  38. public static final int BIND_RECEIVER = 0x00000001;
  39. public static final int BIND_RECEIVER_RESP = 0x80000001;
  40. public static final int BIND_TRANSMITTER = 0x00000002;
  41. public static final int BIND_TRANSMITTER_RESP = 0x80000002;
  42. public static final int QUERY_SM = 0x00000003;
  43. public static final int QUERY_SM_RESP = 0x80000003;
  44. public static final int SUBMIT_SM = 0x00000004;
  45. public static final int SUBMIT_SM_RESP = 0x80000004;
  46. public static final int DELIVER_SM = 0x00000005;
  47. public static final int DELIVER_SM_RESP = 0x80000005;
  48. public static final int UNBIND = 0x00000006;
  49. public static final int UNBIND_RESP = 0x80000006;
  50. public static final int REPLACE_SM = 0x00000007;
  51. public static final int REPLACE_SM_RESP = 0x80000007;
  52. public static final int CANCEL_SM = 0x00000008;
  53. public static final int CANCEL_SM_RESP = 0x80000008;
  54. public static final int BIND_TRANSCEIVER = 0x00000009;
  55. public static final int BIND_TRANSCEIVER_RESP = 0x80000009;
  56. public static final int OUTBIND = 0x0000000b;
  57. public static final int ENQUIRE_LINK = 0x00000015;
  58. public static final int ENQUIRE_LINK_RESP = 0x80000015;
  59. public static final int SUBMIT_MULTI = 0x00000021;
  60. public static final int SUBMIT_MULTI_RESP = 0x80000021;
  61. public static final int PARAM_RETRIEVE = 0x00000022;
  62. public static final int PARAM_RETRIEVE_RESP = 0x80000022;
  63. public static final int QUERY_LAST_MSGS = 0x00000023;
  64. public static final int QUERY_LAST_MSGS_RESP = 0x80000023;
  65. public static final int QUERY_MSG_DETAILS = 0x00000024;
  66. public static final int QUERY_MSG_DETAILS_RESP = 0x80000024;
  67. public static final int ALERT_NOTIFICATION = 0x00000102;
  68. public static final int DATA_SM = 0x00000103;
  69. public static final int DATA_SM_RESP = 0x80000103;
  70. public static final int BROADCAST_SM = 0x00000111;
  71. public static final int BROADCAST_SM_RESP = 0x80000111;
  72. public static final int QUERY_BROADCAST_SM = 0x00000112;
  73. public static final int QUERY_BROADCAST_SM_RESP = 0x80000112;
  74. public static final int CANCEL_BROADCAST_SM = 0x00000113;
  75. public static final int CANCEL_BROADCAST_SM_RESP = 0x80000113;
  76. }