PageRenderTime 76ms CodeModel.GetById 0ms RepoModel.GetById 1ms app.codeStats 0ms

/servers/jain-slee/resources/diameter-gx/events/src/main/java/net/java/slee/resource/diameter/gx/events/GxReAuthMessage.java

http://mobicents.googlecode.com/
Java | 89 lines | 11 code | 11 blank | 67 comment | 0 complexity | 2a4e7550cafeb93ac77572a089668ea3 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 net.java.slee.resource.diameter.gx.events;
  23. import net.java.slee.resource.diameter.base.events.DiameterMessage;
  24. import net.java.slee.resource.diameter.base.events.avp.DiameterIdentity;
  25. /**
  26. * Base interface for RoReAuthMessage
  27. *
  28. * @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
  29. * @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
  30. * @author <a href="mailto:carl-magnus.bjorkell@emblacom.com"> Carl-Magnus Bj??rkell </a>
  31. */
  32. public interface GxReAuthMessage extends DiameterMessage {
  33. /**
  34. * Returns the value of the Auth-Application-Id AVP, of type Unsigned32.
  35. *
  36. * @return
  37. */
  38. long getAuthApplicationId();
  39. /**
  40. * Sets the value of the Auth-Application-Id AVP, of type Unsigned32.
  41. *
  42. * @param authApplicationId
  43. * @throws IllegalStateException
  44. */
  45. void setAuthApplicationId(long authApplicationId) throws IllegalStateException;
  46. /**
  47. * Returns true if the Auth-Application-Id AVP is present in the message.
  48. *
  49. * @return
  50. */
  51. boolean hasAuthApplicationId();
  52. /**
  53. * Returns the value of the CC-Request-Number AVP, of type Unsigned32.
  54. *
  55. * @return
  56. */
  57. /**
  58. * Returns the set of Route-Record AVPs.
  59. *
  60. * @return
  61. */
  62. DiameterIdentity[] getRouteRecords();
  63. /**
  64. * Sets a single Route-Record AVP in the message, of type DiameterIdentity.
  65. *
  66. * @param routeRecord
  67. * @throws IllegalStateException
  68. */
  69. void setRouteRecord(DiameterIdentity routeRecord) throws IllegalStateException;
  70. /**
  71. * Sets the set of Route-Record AVPs, with all the values in the given
  72. * array.
  73. *
  74. * @param routeRecords
  75. * @throws IllegalStateException
  76. */
  77. void setRouteRecords(DiameterIdentity[] routeRecords) throws IllegalStateException;
  78. }