Apache CXF - Set HTTP header

后端 未结 4 855
时光取名叫无心
时光取名叫无心 2021-01-04 00:01

I have to set some http header fields in a Apache CXF client:

I tried it via Interceptor:

    public class HttpHeaderInterceptor extends AbstractPhas         


        
4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-04 00:12

    You should have used :Phase.POST_LOGICAL instead of Phase.POST. This worked for me

提交回复
热议问题