PageRenderTime 64ms CodeModel.GetById 29ms RepoModel.GetById 2ms app.codeStats 0ms

/protocols/ss7/map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/MAPDialogListener.java

http://mobicents.googlecode.com/
Java | 119 lines | 27 code | 15 blank | 77 comment | 0 complexity | 8dcbf5d15fa32c1edf5b7c21193fc376 MD5 | raw file
Possible License(s): LGPL-3.0, GPL-3.0, LGPL-2.1, GPL-2.0, CC-BY-SA-3.0, CC0-1.0, Apache-2.0, BSD-3-Clause
  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;
  23. import org.mobicents.protocols.ss7.map.api.dialog.MAPRefuseReason;
  24. import org.mobicents.protocols.ss7.map.api.dialog.MAPProviderError;
  25. import org.mobicents.protocols.ss7.map.api.dialog.MAPUserAbortChoice;
  26. import org.mobicents.protocols.ss7.map.api.dialog.MAPAbortProviderReason;
  27. import org.mobicents.protocols.ss7.map.api.dialog.MAPAbortSource;
  28. import org.mobicents.protocols.ss7.map.api.dialog.MAPNoticeProblemDiagnostic;
  29. import org.mobicents.protocols.ss7.map.api.primitives.AddressString;
  30. import org.mobicents.protocols.ss7.map.api.primitives.IMSI;
  31. import org.mobicents.protocols.ss7.map.api.primitives.MAPExtensionContainer;
  32. import org.mobicents.protocols.ss7.tcap.asn.ApplicationContextName;
  33. /**
  34. *
  35. * @author amit bhayani
  36. * @author sergey vetyutnev
  37. *
  38. */
  39. public interface MAPDialogListener {
  40. /**
  41. * Called when all components has been processed. It is equals the
  42. * MAP-DELIMITER indication primitive
  43. */
  44. public void onDialogDelimiter(MAPDialog mapDialog);
  45. /**
  46. * When T_BEGIN received. If MAP user rejects this dialog it should call
  47. * MAPDialog.refuse()
  48. */
  49. public void onDialogRequest(MAPDialog mapDialog, AddressString destReference, AddressString origReference, MAPExtensionContainer extensionContainer);
  50. /**
  51. * When T_BEGIN received. If MAP user rejects this dialog it should call
  52. * This eveent is the onDialogRequest() method for Ericsson-style ASN.1 syntax
  53. * MAPDialog.refuse()
  54. */
  55. public void onDialogRequestEricsson(MAPDialog mapDialog, AddressString destReference, AddressString origReference, IMSI eriImsi, AddressString eriVlrNo);
  56. /**
  57. * When T_CONTINUE or T_END received with dialogueResponse DialoguePDU
  58. * (AARE-apdu) (dialog accepted) this is called before ComponentPortion is
  59. * called
  60. */
  61. public void onDialogAccept(MAPDialog mapDialog, MAPExtensionContainer extensionContainer);
  62. /**
  63. * When T_U_ABORT received as the response to T_BEGIN
  64. *
  65. */
  66. public void onDialogReject(MAPDialog mapDialog, MAPRefuseReason refuseReason, MAPProviderError providerError,
  67. ApplicationContextName alternativeApplicationContext, MAPExtensionContainer extensionContainer);
  68. /**
  69. * When T_ABORT received NOT as the response to T_BEGIN
  70. *
  71. */
  72. public void onDialogUserAbort(MAPDialog mapDialog, MAPUserAbortChoice userReason,
  73. MAPExtensionContainer extensionContainer);
  74. /**
  75. * When T_ABORT received NOT as the response to T_BEGIN
  76. *
  77. */
  78. public void onDialogProviderAbort(MAPDialog mapDialog, MAPAbortProviderReason abortProviderReason,
  79. MAPAbortSource abortSource, MAPExtensionContainer extensionContainer);
  80. /**
  81. * When T_CLOSE received If T_CLOSE is the response to T-BEGIN,
  82. * onDialogRequest() if called first, then ComponentPortion is called and
  83. * finally onDialogClose
  84. */
  85. public void onDialogClose(MAPDialog mapDialog);
  86. /**
  87. * This service is used to notify the MAP service-user about protocol
  88. * problems related to a MAP dialogue not affecting the state of the
  89. * protocol machines
  90. */
  91. public void onDialogNotice(MAPDialog mapDialog, MAPNoticeProblemDiagnostic noticeProblemDiagnostic);
  92. /**
  93. * Called when the MADDialog has been released
  94. *
  95. * @param mapDialog
  96. */
  97. public void onDialogRelease(MAPDialog mapDialog);
  98. /**
  99. * Called when the MADDialog is about to aborted because of TimeOut
  100. *
  101. * @param mapDialog
  102. */
  103. public void onDialogTimeout(MAPDialog mapDialog);
  104. }