Examples of AlertInfoList


Examples of gov.nist.javax.sip.header.AlertInfoList

     */
    public SIPHeader parse() throws ParseException {

        if (debug)
            dbg_enter("AlertInfoParser.parse");
        AlertInfoList list = new AlertInfoList();

        try {
            headerName(TokenTypes.ALERT_INFO);

            while (lexer.lookAhead(0) != '\n') {
                AlertInfo alertInfo = new AlertInfo();
                alertInfo.setHeaderName(SIPHeaderNames.ALERT_INFO);
                URLParser urlParser;
                GenericURI uri;

                do {
                  this.lexer.SPorHT();
                  if (this.lexer.lookAhead(0) == '<') {
                      this.lexer.match('<');
                      urlParser = new URLParser((Lexer) this.lexer);
                      uri = urlParser.uriReference( true );
                      alertInfo.setAlertInfo(uri);
                      this.lexer.match('>');
                  } else {
                    throw new ParseException( "Alert-Info missing '<'" , lexer.getPtr() );
                  }
                  this.lexer.SPorHT();
 
                  super.parse(alertInfo);
                  list.add(alertInfo);
                 
                  if ( lexer.lookAhead(0) == ',' ) {
                    this.lexer.match(',');
                  } else break;
                } while (true);
View Full Code Here

Examples of gov.nist.javax.sip.header.AlertInfoList

     */
    public SIPHeader parse() throws ParseException {

        if (debug)
            dbg_enter("AlertInfoParser.parse");
        AlertInfoList list = new AlertInfoList();

        try {
            headerName(TokenTypes.ALERT_INFO);

            while (lexer.lookAhead(0) != '\n') {
                AlertInfo alertInfo = new AlertInfo();
                alertInfo.setHeaderName(SIPHeaderNames.ALERT_INFO);
                URLParser urlParser;
                GenericURI uri;

                do {
                  this.lexer.SPorHT();
                  if (this.lexer.lookAhead(0) == '<') {
                      this.lexer.match('<');
                      urlParser = new URLParser((Lexer) this.lexer);
                      uri = urlParser.uriReference( true );
                      alertInfo.setAlertInfo(uri);
                      this.lexer.match('>');
                  } else {
                    /* This is non standard for Polycom support.
                     * I know it is bad grammar but please do not remove. mranga
                     */
                    String alertInfoStr = this.lexer.byteStringNoSemicolon();
                    alertInfo.setAlertInfo(alertInfoStr);
                  }
                   
                  this.lexer.SPorHT();
 
                  super.parse(alertInfo);
                  list.add(alertInfo);
                 
                  if ( lexer.lookAhead(0) == ',' ) {
                    this.lexer.match(',');
                  } else break;
                } while (true);
View Full Code Here

Examples of gov.nist.javax.sip.header.AlertInfoList

     */
    public SIPHeader parse() throws ParseException {

        if (debug)
            dbg_enter("AlertInfoParser.parse");
        AlertInfoList list = new AlertInfoList();

        try {
            headerName(TokenTypes.ALERT_INFO);
            int lineCount = 0;
            //Allow only 20 lines in alert-info.
            while ( (lexer.lookAhead(0) != '\n') && (lineCount < 20) ) {
                do {
                  AlertInfo alertInfo = new AlertInfo();
                    alertInfo.setHeaderName(SIPHeaderNames.ALERT_INFO);
                    URLParser urlParser;
                    GenericURI uri;
                  this.lexer.SPorHT();
                  if (this.lexer.lookAhead(0) == '<') {
                      this.lexer.match('<');
                      urlParser = new URLParser((Lexer) this.lexer);
                      uri = urlParser.uriReference( true );
                      alertInfo.setAlertInfo(uri);
                      this.lexer.match('>');
                  } else {
                    /* This is non standard for Polycom support.
                     * I know it is bad grammar but please do not remove. mranga
                     */
                    String alertInfoStr = this.lexer.byteStringNoSemicolon();
                    alertInfo.setAlertInfo(alertInfoStr);
                  }
                   
                  this.lexer.SPorHT();
 
                  super.parse(alertInfo);
                  list.add(alertInfo);
                 
                  if ( lexer.lookAhead(0) == ',' ) {
                    this.lexer.match(',');
                  } else break;
                } while (true);
View Full Code Here

Examples of gov.nist.javax.sip.header.AlertInfoList

     */
    public SIPHeader parse() throws ParseException {

        if (debug)
            dbg_enter("AlertInfoParser.parse");
        AlertInfoList list = new AlertInfoList();

        try {
            headerName(TokenTypes.ALERT_INFO);

            while (lexer.lookAhead(0) != '\n') {
                AlertInfo alertInfo = new AlertInfo();
                alertInfo.setHeaderName(SIPHeaderNames.ALERT_INFO);
                URLParser urlParser;
                GenericURI uri;

                do {
                  this.lexer.SPorHT();
                  if (this.lexer.lookAhead(0) == '<') {
                      this.lexer.match('<');
                      urlParser = new URLParser((Lexer) this.lexer);
                      uri = urlParser.uriReference( true );
                      alertInfo.setAlertInfo(uri);
                      this.lexer.match('>');
                  } else {
                    /* This is non standard for Polycom support.
                     * I know it is bad grammar but please do not remove. mranga
                     */
                    String alertInfoStr = this.lexer.byteStringNoSemicolon();
                    alertInfo.setAlertInfo(alertInfoStr);
                  }
                   
                  this.lexer.SPorHT();
 
                  super.parse(alertInfo);
                  list.add(alertInfo);
                 
                  if ( lexer.lookAhead(0) == ',' ) {
                    this.lexer.match(',');
                  } else break;
                } while (true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.