当前位置: 首页>>代码示例>>Java>>正文


Java AddressingFeature.Responses方法代码示例

本文整理汇总了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);
   
}
 
开发者ID:jbossws,项目名称:jbossws-cxf,代码行数:36,代码来源:CXFServiceRefStubPropertyConfigurer.java

示例2: responses

import javax.xml.ws.soap.AddressingFeature; //导入方法依赖的package包/类
@Override
public AddressingFeature.Responses responses() {
    return AddressingFeature.Responses.ALL;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:XmlAddressing.java

示例3: responses

import javax.xml.ws.soap.AddressingFeature; //导入方法依赖的package包/类
public AddressingFeature.Responses responses() {
  return responses;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:4,代码来源:AddressingAnnot.java

示例4: setResponses

import javax.xml.ws.soap.AddressingFeature; //导入方法依赖的package包/类
public void setResponses(AddressingFeature.Responses r) {
  responses = r;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:4,代码来源:AddressingAnnot.java


注:本文中的javax.xml.ws.soap.AddressingFeature.Responses方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。