- Does netty have built-in support for this somehow?
- If it doesn’t have, where should I do this, and how should this be implemented?
Does netty have built-in support for this somehow? If it doesn’t have, where should
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t believe that there is built-in support. However, it is not too difficult to implement as a switch statement in your Handler.
Have a look at this web socket example.
In
messageReceived(), we route based on the type of message received.Then in
handleHttpRequest(), we route based on URI.Hope this helps.