PageRenderTime 36ms CodeModel.GetById 26ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

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