【问题标题】:What is the Jersey 2 replacement for HttpRequestContext.getEntity(Class)?什么是 HttpRequestContext.getEntity(Class) 的 Jersey 2 替代品?
【发布时间】:2013-10-25 17:28:24
【问题描述】:

当资源尝试解析请求实体时,我想记录实体的字符串表示,以便以后重现问题。过去我曾经:

  1. 在资源读取实体之前对其进行缓存。
  2. 调用 HttpRequestContext.getEntity(String.class)。

【问题讨论】:

    标签: jersey jersey-2.0


    【解决方案1】:

    这已在 Jersey 2.0 中被 ContainerRequest.readEntity(Class) 取代

    【讨论】:

      猜你喜欢
      • 2016-11-03
      • 2018-11-02
      • 1970-01-01
      • 1970-01-01
      • 2022-08-03
      • 2019-02-22
      • 2011-05-07
      • 2012-04-24
      • 2019-12-03
      相关资源
      最近更新 更多