我正在调用使用Hessian的Java方法,是否可以在发送消息之前添加HTTP标头 - 因此我可以将“授权”添加到消息标头中?Hessian,添加标题
我使用Spring,所以我目前得到一个代理bean,并在代理呼叫:
<bean id="beanRetrievalService" class="org.springframework.remoting.caucho.HessianProxyFactoryBean">
<property name="serviceUrl" value="http://z.y.z/myService" />
<property name="serviceInterface" value="x.y.z.MyInterface" />
</bean>