Hi,
>>>> Hi,
>>>>
>>>> short question: how can I distinguish between TCP and UDP inside
>>>> protocolParser?
>>>
>>> Interesting question. I think the easiest way is to:
>>>
>>> (1) override public boolean execute(Context ctx) from
>>> ParserProtocolFilter and locally store the result of
>>> ctx.getProtocol()
>>> as WorkerThread.getAttachement().setAttribute(...) or a ThreadLocal.
>> Oh, I can simply add yet another filter in the chain which will do
>> it.
>> Sound's like interface breaking, I think you need to propagate it
>> down to parser.
>
> I agree. Except it's the first time we are getting the request so it
> may be difficult to change that API. What others thinks?
As I understand the issue here - is to pass Context to Parser. Tigran,
can you pls. elaborate a little bit why you might need that?
Thanks.
WBR,
Alexey.
>
> A+
>
> - Jeanfrancois
>
>> Regards,
>> Tigran.
>>> (2) Inside the newProtocolParser(), retrieve that value.
>>>
>>> Does that help?
>>>
>>> A+
>>> -- Jeanfrancois
>>>>
>>>> Thanks,
>>>> Tigran.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>>>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>