Package gov.nist.javax.sip.header

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


        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();
View Full Code Here


        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);
View Full Code Here

            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);
View Full Code Here

        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);
View Full Code Here

TOP

Related Classes of gov.nist.javax.sip.header.AlertInfo

Copyright © 2018 www.massapicom. 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.