问题描述
是否可以在 JAX-RS Feature 实现中设置 Jersey 客户端属性?
例如
假设我想像这样移动客户端的一些配置:
...
ClientBuilder.newBuilder()
.property(ClientProperties.FOLLOW_REDIRECTS,false)
...
像这样的Feature
:
public final class MyFeature implements Feature
{
@Override
public boolean configure(final FeatureContext context)
{
context.property(ClientProperties.FOLLOW_REDIRECTS,false);
}
}
这不起作用;我确定这不是设置 client 属性。可以这样配置客户端吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)