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

http://mobicents.googlecode.com/ · Java · 105 lines · 13 code · 11 blank · 81 comment · 0 complexity · c9f00c4714290c16abb8420a8b6d2775 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;
  23. import org.mobicents.protocols.ss7.map.api.dialog.ServingCheckData;
  24. import org.mobicents.protocols.ss7.map.api.primitives.AddressString;
  25. import org.mobicents.protocols.ss7.sccp.parameter.SccpAddress;
  26. /**
  27. *
  28. * @author sergey vetyutnev
  29. *
  30. */
  31. public interface MAPServiceBase {
  32. public MAPProvider getMAPProvider();
  33. /**
  34. * Creates a new Dialog. This is equivalent to issuing MAP_OPEN Service
  35. * Request to MAP Provider.
  36. *
  37. * @param applicationCntx
  38. * This parameter identifies the type of application context
  39. * being established. If the dialogue is accepted the received
  40. * application context name shall be echoed. In case of refusal
  41. * of dialogue this parameter shall indicate the highest version
  42. * supported.
  43. *
  44. * @param destAddress
  45. * A valid SCCP address identifying the destination peer entity.
  46. * As an implementation option, this parameter may also, in the
  47. * indication, be implicitly associated with the service access
  48. * point at which the primitive is issued.
  49. *
  50. * @param destReference
  51. * This parameter is a reference which refines the identification
  52. * of the called process. It may be identical to Destination
  53. * address but its value is to be carried at MAP level.
  54. *
  55. * @param origAddress
  56. * A valid SCCP address identifying the requestor of a MAP
  57. * dialogue. As an implementation option, this parameter may
  58. * also, in the request, be implicitly associated with the
  59. * service access point at which the primitive is issued.
  60. *
  61. * @param origReference
  62. * This parameter is a reference which refines the identification
  63. * of the calling process. It may be identical to the Originating
  64. * address but its value is to be carried at MAP level.
  65. * Processing of the Originating-reference shall be performed
  66. * according to the supplementary service descriptions and other
  67. * service descriptions, e.g. operator determined barring.
  68. * @return
  69. */
  70. public MAPDialog createNewDialog(MAPApplicationContext appCntx, SccpAddress origAddress,
  71. AddressString origReference, SccpAddress destAddress, AddressString destReference) throws MAPException;
  72. /**
  73. * Returns true if the service can perform dialogs with given
  74. * ApplicationContext
  75. */
  76. public ServingCheckData isServingService(MAPApplicationContext dialogApplicationContext);
  77. // /**
  78. // * Generate ApplicationContext depending on operationCode for MAP v1
  79. // *
  80. // * @param operationCode
  81. // * @param invoke
  82. // * @return ApplicationContext or null if operationCode is not supported by a service
  83. // */
  84. // public MAPApplicationContext getMAPv1ApplicationContext(int operationCode, Invoke invoke);
  85. //
  86. // /**
  87. // * Process a component
  88. // */
  89. // public void processComponent(ComponentType compType, OperationCode oc, Parameter parameter, MAPDialog mapDialog, Long invokeId, Long linkedId)
  90. // throws MAPParsingComponentException;
  91. public boolean isActivated();
  92. public void acivate();
  93. public void deactivate();
  94. }