문제

Is there a way to intercept and record every JSON message exchanged between a Eclipse RAP-Client and a RAP-Server?

도움이 되었습니까?

해결책

The best way to do this is a servlet filter. See this answer for an example how to read the response in a filter.

As an alternative, you could register a PhaseListener and try to hook into RWT's internal APIs such as ClientMessage and ProtocolMessageWriter. However, these internals are subject to change and even the PhaseListener interface will be deprecated and likely removed in RAP 3. Therefore, I wouldn't recommend this approach.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top