/protocols/jain-mgcp/stack/src/main/java/org/mobicents/protocols/mgcp/parser/MgcpContentHandler.java

http://mobicents.googlecode.com/ · Java · 75 lines · 7 code · 7 blank · 61 comment · 0 complexity · fc6097d749d299a57d51ba765dcb02c1 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. /*
  23. * File Name : MgcpContentHandler.java
  24. *
  25. * The JAIN MGCP API implementaion.
  26. *
  27. * The source code contained in this file is in in the public domain.
  28. * It can be used in any project or product without prior permission,
  29. * license or royalty payments. There is NO WARRANTY OF ANY KIND,
  30. * EXPRESS, IMPLIED OR STATUTORY, INCLUDING, WITHOUT LIMITATION,
  31. * THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
  32. * AND DATA ACCURACY. We do not warrant or make any representations
  33. * regarding the use of the software or the results thereof, including
  34. * but not limited to the correctness, accuracy, reliability or
  35. * usefulness of the software.
  36. */
  37. package org.mobicents.protocols.mgcp.parser;
  38. import java.text.ParseException;
  39. /**
  40. * Receive notification of the logical content of a message.
  41. *
  42. * @author Oleg Kulikov
  43. * @author Pavel Mitrenko
  44. */
  45. public interface MgcpContentHandler {
  46. /**
  47. * Receive notification of the header of a message.
  48. * Parser will call this method to report about header reading.
  49. *
  50. * @param header the header from the message.
  51. */
  52. public void header(String header) throws ParseException;
  53. /**
  54. * Receive notification of the parameter of a message.
  55. * Parser will call this method to report about parameter reading.
  56. *
  57. * @param name the name of the paremeter
  58. * @param value the value of the parameter.
  59. */
  60. public void param(String name, String value) throws ParseException;
  61. /**
  62. * Receive notification of the session description.
  63. * Parser will call this method to report about session descriptor reading.
  64. *
  65. * @param sd the session description from message.
  66. */
  67. public void sessionDescription(String sd) throws ParseException;
  68. }