[undertow-dev] modifyHandshake dilemma

Ryan Hermanson ryan.hermanson at gmail.com
Fri Nov 21 17:46:58 EST 2014


Programmatically, I want the ability to reject/deny inbound websocket
connections within my application based on some criteria.  The most obvious
approach to me is to implement Configurator and override the
modifyHandshake method.  HandshakeResponse only exposes the
SEC_WEBSOCKET_ACCEPT property key.  When I set this value as an empty list,
the behavior is not as I was hoping (not sure what I was expecting).

Inline with undertow convention/preference, how can I force a response to
the connecting client endpoint that resembles a 405 or 403?

Thank you,

-Ryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20141121/97b8c710/attachment.html 


More information about the undertow-dev mailing list