コード例 #1
0
ファイル: ReplacesParser.java プロジェクト: Sipuada/sipuada
  /**
   * parse the String message
   *
   * @return SIPHeader (CallID object)
   * @throws ParseException if the message does not respect the spec.
   */
  public SIPHeader parse() throws ParseException {
    if (debug) dbg_enter("parse");
    try {
      headerName(TokenTypes.REPLACES_TO);

      Replaces replaces = new Replaces();
      this.lexer.SPorHT();
      String callId = lexer.byteStringNoSemicolon();
      this.lexer.SPorHT();
      super.parse(replaces);
      replaces.setCallId(callId);
      return replaces;
    } finally {
      if (debug) dbg_leave("parse");
    }
  }