PageRenderTime 34ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/protocols/jain-megaco/megaco-api/src/main/java/javax/megaco/pkg/RTPPkg/RTPPkg.java

http://mobicents.googlecode.com/
Java | 49 lines | 15 code | 8 blank | 26 comment | 0 complexity | 24576ac38658beba38678727a082650a 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. package javax.megaco.pkg.RTPPkg;
  2. import javax.megaco.pkg.MegacoPkg;
  3. import javax.megaco.pkg.PkgConsts;
  4. /**
  5. * The MEGACO RTP Package inherits all methods of the Package, but overrides the
  6. * getPkgId and getPkgName to define packageid corresponding to the RTP Package.
  7. * This class also overrides the getExtendedPkgIds to define that this package
  8. * extends MEGACO Network Package.
  9. */
  10. public class RTPPkg extends MegacoPkg {
  11. private int[] extendedPkgIds = new int[]{PkgConsts.NETWORK_PACKAGE};
  12. /**
  13. * Constructs a MEGACO RTP Package.
  14. */
  15. public RTPPkg() {
  16. super();
  17. // TODO Auto-generated constructor stub
  18. }
  19. /**
  20. * This method gets the package ids of all the package which the package had
  21. * directly or indirectly extended. Package ids are defined in
  22. * {@link PkgConsts}.
  23. *
  24. * @return Since this packge extends MEGACO Network package, this shall
  25. * return {@link PkgConsts.RTP_PACKAGE}.
  26. */
  27. public int[] getExtendedPkgIds() {
  28. return extendedPkgIds;
  29. }
  30. /**
  31. * This method return the package Id of the MEGACO package for which the
  32. * object is created. For RTP Package constant value
  33. * {@link PkgConsts.RTP_PACKAGE} shall be returned.
  34. *
  35. * @return Constant value {@link PkgConsts.RTP_PACKAGE} indicating
  36. * Continuity Package..
  37. */
  38. public int getPkgId() {
  39. return PkgConsts.RTP_PACKAGE;
  40. }
  41. }