public SIPHeader parse() throws ParseException { headerName(TokenTypes.REFER_TO); ReferTo referTo = new ReferTo(); super.parse(referTo); this.lexer.match('\n'); return referTo; }
protected void parse(AddressParametersHeader addressParametersHeader) throws ParseException { dbg_enter("AddressParametersParser.parse"); try { AddressParser addressParser = new AddressParser(this.getLexer()); AddressImpl addr = addressParser.address(false); addressParametersHeader.setAddress(addr); lexer.SPorHT(); char la = this.lexer.lookAhead(0); if ( this.lexer.hasMoreChars() && la != '\0' && la != '\n' && this.lexer.startsId()) { super.parseNameValueList(addressParametersHeader); } else super.parse(addressParametersHeader); } catch (ParseException ex) { throw ex; } finally { dbg_leave("AddressParametersParser.parse"); } } }
public SIPHeader parse() throws ParseException { headerName(TokenTypes.REFERREDBY_TO); ReferredBy referBy = new ReferredBy(); super.parse(referBy); this.lexer.match('\n'); return referBy; }
public SIPHeader parse() throws ParseException { From from = new From(); headerName( FROM ); super.parse(from); this.lexer.match('\n'); return from; }
public SIPHeader parse() throws ParseException { headerName(TokenTypes.REFERREDBY_TO); ReferredBy referBy = new ReferredBy(); super.parse(referBy); this.lexer.match('\n'); return referBy; }
public SIPHeader parse() throws ParseException { headerName(TokenTypes.TO); To to = new To(); super.parse(to); this.lexer.match('\n'); return to; }
public SIPHeader parse() throws ParseException { if (debug) dbg_enter("PServedUser.parse"); try { PServedUser servedUser = new PServedUser(); headerName(P_SERVED_USER); super.parse(servedUser); this.lexer.match('\n'); return servedUser; } finally { if (debug) dbg_leave("PServedUser.parse"); } } }
/** * parse the String message and generate the ReplyTo List Object * @return SIPHeader the ReplyTo List object * @throws SIPParseException if errors occur during the parsing */ public SIPHeader parse() throws ParseException { ReplyTo replyTo = new ReplyTo(); if (debug) dbg_enter("ReplyTo.parse"); try { headerName(TokenTypes.REPLY_TO); replyTo.setHeaderName(SIPHeaderNames.REPLY_TO); super.parse(replyTo); return replyTo; } finally { if (debug) dbg_leave("ReplyTo.parse"); } }
public SIPHeader parse() throws ParseException { if (debug) dbg_enter("PProfileKey.parse"); try { this.lexer.match(TokenTypes.P_PROFILE_KEY); this.lexer.SPorHT(); this.lexer.match(':'); this.lexer.SPorHT(); PProfileKey p = new PProfileKey(); super.parse(p); return p; } finally { if (debug) dbg_leave("PProfileKey.parse"); } }
public SIPHeader parse() throws ParseException { if (debug) dbg_enter("PreferredIdentityParser.parse"); try { this.lexer.match(TokenTypes.P_PREFERRED_IDENTITY); this.lexer.SPorHT(); this.lexer.match(':'); this.lexer.SPorHT(); PPreferredIdentity p = new PPreferredIdentity(); super.parse( p ); return p; } finally { if (debug) dbg_leave("PreferredIdentityParser.parse"); } }
public SIPHeader parse() throws ParseException { if (debug) dbg_enter("PreferredIdentityParser.parse"); try { this.lexer.match(TokenTypes.P_PREFERRED_IDENTITY); this.lexer.SPorHT(); this.lexer.match(':'); this.lexer.SPorHT(); PPreferredIdentity p = new PPreferredIdentity(); super.parse( p ); return p; } finally { if (debug) dbg_leave("PreferredIdentityParser.parse"); } }
public SIPHeader parse() throws ParseException { if (debug) dbg_enter("PProfileKey.parse"); try { this.lexer.match(TokenTypes.P_PROFILE_KEY); this.lexer.SPorHT(); this.lexer.match(':'); this.lexer.SPorHT(); PProfileKey p = new PProfileKey(); super.parse(p); return p; } finally { if (debug) dbg_leave("PProfileKey.parse"); } }
public SIPHeader parse() throws ParseException { if (debug) dbg_enter("PCalledPartyIDParser.parse"); try { this.lexer.match(TokenTypes.P_CALLED_PARTY_ID); this.lexer.SPorHT(); this.lexer.match(':'); this.lexer.SPorHT(); PCalledPartyID calledPartyID = new PCalledPartyID(); super.parse(calledPartyID); return calledPartyID; } finally { if (debug) dbg_leave("PCalledPartyIDParser.parse"); } }
public SIPHeader parse() throws ParseException { if (debug) dbg_enter("PCalledPartyIDParser.parse"); try { this.lexer.match(TokenTypes.P_CALLED_PARTY_ID); this.lexer.SPorHT(); this.lexer.match(':'); this.lexer.SPorHT(); PCalledPartyID calledPartyID = new PCalledPartyID(); super.parse(calledPartyID); return calledPartyID; } finally { if (debug) dbg_leave("PCalledPartyIDParser.parse"); } }
public SIPHeader parse() throws ParseException { // past the header name and the colon. headerName(TokenTypes.CONTACT); ContactList retval = new ContactList(); while (true) { Contact contact = new Contact(); if (lexer.lookAhead(0) == '*') { final char next = lexer.lookAhead(1); if (next == ' ' || next == '\t' || next == '\r' || next == '\n') { this.lexer.match('*'); contact.setWildCardFlag(true); } else { super.parse(contact); } } else { super.parse(contact); } retval.add(contact); this.lexer.SPorHT(); char la = lexer.lookAhead(0); if (la == ',') { this.lexer.match(','); this.lexer.SPorHT(); } else if (la == '\n' || la == '\0') break; else throw createParseException("unexpected char"); } return retval; }
public SIPHeader parse() throws ParseException { if (debug) dbg_enter("PAssociatedURIParser.parse"); PAssociatedURIList associatedURIList = new PAssociatedURIList(); try { headerName(TokenTypes.P_ASSOCIATED_URI); PAssociatedURI associatedURI = new PAssociatedURI(); associatedURI.setHeaderName(SIPHeaderNamesIms.P_ASSOCIATED_URI); super.parse(associatedURI); associatedURIList.add(associatedURI); this.lexer.SPorHT(); while (lexer.lookAhead(0) == ',') { this.lexer.match(','); this.lexer.SPorHT(); associatedURI = new PAssociatedURI(); super.parse(associatedURI); associatedURIList.add(associatedURI); this.lexer.SPorHT(); } this.lexer.SPorHT(); this.lexer.match('\n'); return associatedURIList; } finally { if (debug) dbg_leave("PAssociatedURIParser.parse"); } }
public SIPHeader parse() throws ParseException { if (debug) dbg_enter("PAssociatedURIParser.parse"); PAssociatedURIList associatedURIList = new PAssociatedURIList(); try { headerName(TokenTypes.P_ASSOCIATED_URI); PAssociatedURI associatedURI = new PAssociatedURI(); associatedURI.setHeaderName(SIPHeaderNamesIms.P_ASSOCIATED_URI); super.parse(associatedURI); associatedURIList.add(associatedURI); this.lexer.SPorHT(); while (lexer.lookAhead(0) == ',') { this.lexer.match(','); this.lexer.SPorHT(); associatedURI = new PAssociatedURI(); super.parse(associatedURI); associatedURIList.add(associatedURI); this.lexer.SPorHT(); } this.lexer.SPorHT(); this.lexer.match('\n'); return associatedURIList; } finally { if (debug) dbg_leave("PAssociatedURIParser.parse"); } }
while (true) { Route route = new Route(); super.parse(route); routeList.add(route); this.lexer.SPorHT();