< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index | Next in Thread > |
Hi Scott, I will try to create the new class next week. I think that I could take the same approach used for QuotedDataParameter, deriving class from Token and adding a data member mQuoted that is set while parsing and it is used to encode stream. Do you think that it could also be necessary / useful having a class to handle tokens without a value like P-Charging-Vector? Maybe I could try to write also a class like TokenWithoutValue or ParametersToken (any suggestions for the name would be appreciated): value might contain the complete string with all the parameters, but in first position we expect a parameter (param=value;...), so when we stream the object we don't put ';' at the start of the string. Best regards, Dario
Da: slgodin@xxxxxxxxx [slgodin@xxxxxxxxx] per conto di Scott Godin [sgodin@xxxxxxxxxxxxxxx]
Inviato: venerdì 3 ottobre 2014 17.50 A: Dario Bozzali Cc: resiprocate-devel@xxxxxxxxxxxxxxx Oggetto: Re: [reSIProcate] [resiprocate] New headers and parameters from RFC 3455 and UUI drafts (#6) Sorry for my mistake in the last email - QuotedDataParameter is for parameters not headers. You could use the StringCategory type, but then you won't get any special stack handling of header parameters.
I think the proper solution is to create a custom header parser class (like WarningCategory) that will handle a token or quoted string and the parameters that go with it (named something like: TokenOrQuotedStringCategory).
Scott
On Fri, Oct 3, 2014 at 6:28 AM, Dario Bozzali
<Dario.Bozzali@xxxxxxxxxxx> wrote:
|