You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Zhou Li (JIRA)" <ji...@apache.org> on 2017/02/28 03:47:45 UTC
[jira] [Created] (KNOX-894) support websocket endpoint rewrite
Zhou Li created KNOX-894:
----------------------------
Summary: support websocket endpoint rewrite
Key: KNOX-894
URL: https://issues.apache.org/jira/browse/KNOX-894
Project: Apache Knox
Issue Type: Improvement
Components: Server, Site
Affects Versions: 0.11.0
Reporter: Zhou Li
As knox websocket consumer, we have one webapp provide the SQL execution service. We use websocket to provider better experience which will notify customer whenever there is notification.
We have the websocket backend ws://localhost:11080/message-service/messages. we add some extra path and query to provider different service. For example:
ws://localhost:11080/message-service/messages/subscribe?name=XXXX
provide message channel subscribe service
ws://localhost:11080/message-service/messages/topic?name=XXXX
provide message channel for specific features
ws://localhost:11080/message-service/messages/unsubscribe?name=XXXX
provide message channel for unsubscribe service
I want to define the rewrite.xml as something like
<rules>
<rule dir="IN" name="WSSERVICE/ws/inbound" pattern="*://*:*/**/message-service/messages/**?{**}">
<rewrite template="{$serviceUrl[WSSERVICE]}/**?{**}"/>
</rule>
</rules>
and configure service like
<service>
<role>WSSERVICE</role>
<url>ws://localhost:8000/message-service/messages</url>
</service>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)