Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以拦截来自 SOAP 或 REST Web 服务的 XML/JSON 数据的绑定,以修改/检查一些数据?
假设我的网络服务上有这样的方法:
@WebMethod public SomeDTO someMethod(@WebParam(name = "duh" SomeDTO someDto) {...}
每当 XML/JSON 绑定到 SomeDTO 时,我都想检查该值中是否包含一些特定的单词,或者类似的东西。这甚至可能吗?
谢谢