本文整理汇总了Java中javax.xml.ws.soap.AddressingFeature.Responses方法的典型用法代码示例。如果您正苦于以下问题:Java AddressingFeature.Responses方法的具体用法?Java AddressingFeature.Responses怎么用?Java AddressingFeature.Responses使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.xml.ws.soap.AddressingFeature
的用法示例。
在下文中一共展示了AddressingFeature.Responses方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setWSFeature
import javax.xml.ws.soap.AddressingFeature; //导入方法依赖的package包/类
private void setWSFeature(JaxWsServiceFactoryBean serviceFactoryBean, UnifiedPortComponentRefMetaData upcmd)
{
List<WebServiceFeature> features = new LinkedList<WebServiceFeature>();
List<WebServiceFeature> prevFeatures = serviceFactoryBean.getWsFeatures();
if (prevFeatures != null)
{
features.addAll(prevFeatures);
}
if (upcmd.isMtomEnabled())
{
if (upcmd.getMtomThreshold() > 0)
{
features.add(new MTOMFeature(true, upcmd.getMtomThreshold()));
}
else
{
features.add(new MTOMFeature(true));
}
}
if (upcmd.isAddressingEnabled())
{
final String refResponses = upcmd.getAddressingResponses();
AddressingFeature.Responses responses = AddressingFeature.Responses.ALL;
if ("ANONYMOUS".equals(refResponses))
responses = AddressingFeature.Responses.ANONYMOUS;
if ("NON_ANONYMOUS".equals(refResponses))
responses = AddressingFeature.Responses.NON_ANONYMOUS;
features.add(new AddressingFeature(true, upcmd.isAddressingRequired(), responses));
}
serviceFactoryBean.setWsFeatures(features);
}
示例2: responses
import javax.xml.ws.soap.AddressingFeature; //导入方法依赖的package包/类
@Override
public AddressingFeature.Responses responses() {
return AddressingFeature.Responses.ALL;
}
示例3: responses
import javax.xml.ws.soap.AddressingFeature; //导入方法依赖的package包/类
public AddressingFeature.Responses responses() {
return responses;
}
示例4: setResponses
import javax.xml.ws.soap.AddressingFeature; //导入方法依赖的package包/类
public void setResponses(AddressingFeature.Responses r) {
responses = r;
}