/** * Creates a new AlertInfoHeader based on the newly supplied alertInfo value. * * @param alertInfo - the new URI value of the alertInfo * @return the newly created AlertInfoHeader object. * @since v1.1 */ public AlertInfoHeader createAlertInfoHeader(URI alertInfo) { if (alertInfo == null) throw new NullPointerException("null arg alertInfo"); AlertInfo a = new AlertInfo(); a.setAlertInfo(alertInfo); return a; }
AlertInfo alertInfo = new AlertInfo(); alertInfo.setHeaderName(SIPHeaderNames.ALERT_INFO); URLParser urlParser; GenericURI uri; urlParser = new URLParser((Lexer) this.lexer); uri = urlParser.uriReference( true ); alertInfo.setAlertInfo(uri); this.lexer.match('>'); } else { alertInfo.setAlertInfo(alertInfoStr);
AlertInfo alertInfo = new AlertInfo(); alertInfo.setHeaderName(SIPHeaderNames.ALERT_INFO); URLParser urlParser; GenericURI uri; urlParser = new URLParser((Lexer) this.lexer); uri = urlParser.uriReference( true ); alertInfo.setAlertInfo(uri); this.lexer.match('>'); } else { alertInfo.setAlertInfo(alertInfoStr);