/protocols/ss7/map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/service/supplementary/MAPDialogSupplementary.java

http://mobicents.googlecode.com/ · Java · 132 lines · 22 code · 12 blank · 98 comment · 0 complexity · 6d6093b541e7e5c4140e3ed403223792 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.ss7.map.api.service.supplementary;
  23. import org.mobicents.protocols.ss7.map.api.MAPDialog;
  24. import org.mobicents.protocols.ss7.map.api.MAPException;
  25. import org.mobicents.protocols.ss7.map.api.primitives.AlertingPattern;
  26. import org.mobicents.protocols.ss7.map.api.primitives.ISDNAddressString;
  27. import org.mobicents.protocols.ss7.map.api.primitives.USSDString;
  28. /**
  29. *
  30. * @author amit bhayani
  31. * @author sergey vetyutnev
  32. *
  33. */
  34. public interface MAPDialogSupplementary extends MAPDialog {
  35. /**
  36. * Add's a new Process Unstructured SS Request as Component.
  37. *
  38. * @param ussdDataCodingScheme
  39. * The Data Coding Scheme for this USSD String as defined in GSM
  40. * 03.38
  41. * @param ussdString
  42. * Ussd String
  43. * @param alertingPatter
  44. * The optional alerting pattern. See {@link AlertingPattern}
  45. * @param msisdn
  46. * The optional MSISDN in {@link ISDNAddressString} format.
  47. * @return invokeId
  48. * @throws MAPException
  49. */
  50. public Long addProcessUnstructuredSSRequest(byte ussdDataCodingScheme, USSDString ussdString, AlertingPattern alertingPatter, ISDNAddressString msisdn)
  51. throws MAPException;
  52. public Long addProcessUnstructuredSSRequest(int customInvokeTimeout, byte ussdDataCodingScheme, USSDString ussdString, AlertingPattern alertingPatter,
  53. ISDNAddressString msisdn) throws MAPException;
  54. /**
  55. * Add's a new ProcessUnstructured SS Response as Component.
  56. *
  57. * @param invokeId
  58. * The original invoke ID retrieved from
  59. * {@link ProcessUnstructuredSSResponseIndication}
  60. * @param ussdDataCodingScheme
  61. * The Data Coding Scheme for this USSD String as defined in GSM
  62. * 03.38
  63. * @param ussdString
  64. * Ussd String {@link USSDString}
  65. * @throws MAPException
  66. */
  67. public void addProcessUnstructuredSSResponse(long invokeId, byte ussdDataCodingScheme, USSDString ussdString) throws MAPException;
  68. /**
  69. * Add's a new Unstructured SS Request
  70. *
  71. * @param ussdDataCodingScheme
  72. * The Data Coding Scheme for this USSD String as defined in GSM
  73. * 03.38
  74. * @param ussdString
  75. * Ussd String {@link USSDString}
  76. * @param alertingPatter
  77. * The optional alerting pattern. See {@link AlertingPattern}
  78. * @param msisdn
  79. * The optional MSISDN in {@link ISDNAddressString} format.
  80. * @return invokeId
  81. * @throws MAPException
  82. */
  83. public Long addUnstructuredSSRequest(byte ussdDataCodingScheme, USSDString ussdString, AlertingPattern alertingPatter, ISDNAddressString msisdn)
  84. throws MAPException;
  85. public Long addUnstructuredSSRequest(int customInvokeTimeout, byte ussdDataCodingScheme, USSDString ussdString, AlertingPattern alertingPatter,
  86. ISDNAddressString msisdn) throws MAPException;
  87. /**
  88. * Add's a new Unstructured SS Response
  89. *
  90. * @param invokeId
  91. * The original invoke ID retrieved from
  92. * {@link UnstructuredSSResponseIndication}
  93. * @param ussdDataCodingScheme
  94. * The Data Coding Scheme for this USSD String as defined in GSM
  95. * 03.38
  96. * @param ussdString
  97. * Ussd String {@link USSDString}
  98. * @throws MAPException
  99. */
  100. public void addUnstructuredSSResponse(long invokeId, byte ussdDataCodingScheme, USSDString ussdString) throws MAPException;
  101. /**
  102. * Add's a new Unstructured SS Notify
  103. *
  104. * @param ussdDataCodingScheme
  105. * The Data Coding Scheme for this USSD String as defined in GSM
  106. * 03.38
  107. * @param ussdString
  108. * Ussd String {@link USSDString}
  109. * @param alertingPatter
  110. * The optional alerting pattern. See {@link AlertingPattern}
  111. * @param msisdn
  112. * The optional MSISDN in {@link ISDNAddressString} format.
  113. * @return invokeId
  114. * @throws MAPException
  115. */
  116. public Long addUnstructuredSSNotifyRequest(byte ussdDataCodingScheme, USSDString ussdString, AlertingPattern alertingPatter, ISDNAddressString msisdn)
  117. throws MAPException;
  118. public Long addUnstructuredSSNotifyRequest(int customInvokeTimeout, byte ussdDataCodingScheme, USSDString ussdString, AlertingPattern alertingPatter,
  119. ISDNAddressString msisdn) throws MAPException;
  120. }