• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java Mode类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中javax.jws.WebParam.Mode的典型用法代码示例。如果您正苦于以下问题:Java Mode类的具体用法?Java Mode怎么用?Java Mode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Mode类属于javax.jws.WebParam包,在下文中一共展示了Mode类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: testValidGetAndCreate

import javax.jws.WebParam.Mode; //导入依赖的package包/类
public void testValidGetAndCreate() {
    EchoPort echoPort = service.getPort(validPortQName, EchoPort.class);
    assertNotNull(echoPort);
    Dispatch<Source> dispatch = service.createDispatch(validPortQName, Source.class, Service.Mode.PAYLOAD);
    assertNotNull(dispatch);

    // Since a getPort has been done, should now be able to get things based on the SEI
    EndpointDescription endpointDesc = serviceDescription.getEndpointDescription(validPortQName);
    assertNotNull(endpointDesc);
    // Since ther is no SEI, can not get the endpointDescription based on the sei class
    EndpointDescription[] endpointDescViaSEI = serviceDescription.getEndpointDescription(EchoPort.class);
    assertNotNull(endpointDescViaSEI);
    assertEquals(endpointDesc, endpointDescViaSEI[0]);
    EndpointInterfaceDescription endpointInterfaceDesc = endpointDesc.getEndpointInterfaceDescription();
    assertNotNull(endpointInterfaceDesc);
    assertEquals(EchoPort.class, endpointInterfaceDesc.getSEIClass());
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:18,代码来源:WSDLDescriptionTests.java


示例2: getKnownHeaders

import javax.jws.WebParam.Mode; //导入依赖的package包/类
public Set<QName> getKnownHeaders() {
    Set<QName> headers = new HashSet<QName>();

    try{
            lock.lock();
        for (JavaMethodImpl method : getJavaMethods()) {
         // fill in request headers
         Iterator<ParameterImpl> params = method.getRequestParameters().iterator();
         fillHeaders(params, headers, Mode.IN);

        // fill in response headers
         params = method.getResponseParameters().iterator();
         fillHeaders(params, headers, Mode.OUT);
                      }
    }finally
    {
            lock.unlock();
     }
    return headers;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:21,代码来源:SOAPSEIModel.java


示例3: testValidCreateDispatch

import javax.jws.WebParam.Mode; //导入依赖的package包/类
public void testValidCreateDispatch() {
    Dispatch<Source> dispatch = service.createDispatch(validPortQName, Source.class, Service.Mode.PAYLOAD);
    assertNotNull(dispatch);

    EndpointDescription endpointDesc = serviceDescription.getEndpointDescription(validPortQName);
    assertNotNull(endpointDesc);
    // Since ther is no SEI, can not get the endpointDescription based on the sei class
    EndpointDescription[] endpointDescViaSEI = serviceDescription.getEndpointDescription(EchoPort.class);
    assertNull(endpointDescViaSEI);
    
    // There will be an EndpointInterfaceDescription because the service was created with 
    // WSDL, however there will be no SEI created because a getPort has not been done
    EndpointInterfaceDescription endpointInterfaceDesc = endpointDesc.getEndpointInterfaceDescription();
    assertNotNull(endpointInterfaceDesc);
    assertNull(endpointInterfaceDesc.getSEIClass());
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:17,代码来源:WSDLDescriptionTests.java


示例4: testValidCreateAndGet

import javax.jws.WebParam.Mode; //导入依赖的package包/类
public void testValidCreateAndGet() {
    Dispatch<Source> dispatch = service.createDispatch(validPortQName, Source.class, Service.Mode.PAYLOAD);
    assertNotNull(dispatch);
    EndpointDescription endpointDesc = serviceDescription.getEndpointDescription(validPortQName);
    assertNotNull(endpointDesc);
    // Since ther is no SEI, can not get the endpointDescription based on the sei class
    EndpointDescription[] endpointDescViaSEI = serviceDescription.getEndpointDescription(EchoPort.class);
    assertNull(endpointDescViaSEI);
    EndpointInterfaceDescription endpointInterfaceDesc = endpointDesc.getEndpointInterfaceDescription();
    assertNotNull(endpointInterfaceDesc);
    assertNull(endpointInterfaceDesc.getSEIClass());

    EchoPort echoPort = service.getPort(validPortQName, EchoPort.class);
    assertNotNull(echoPort);
    // Since a getPort has been done, should now be able to get things based on the SEI
    endpointDesc = serviceDescription.getEndpointDescription(validPortQName);
    assertNotNull(endpointDesc);
    // Since ther is no SEI, can not get the endpointDescription based on the sei class
    endpointDescViaSEI = serviceDescription.getEndpointDescription(EchoPort.class);
    assertNotNull(endpointDescViaSEI);
    assertEquals(endpointDesc, endpointDescViaSEI[0]);
    endpointInterfaceDesc = endpointDesc.getEndpointInterfaceDescription();
    assertNotNull(endpointInterfaceDesc);
    assertEquals(EchoPort.class, endpointInterfaceDesc.getSEIClass());
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:26,代码来源:WSDLDescriptionTests.java


示例5: getBinding

import javax.jws.WebParam.Mode; //导入依赖的package包/类
private ParameterBinding getBinding(String operation, String part, boolean isHeader, Mode mode){
    if(binding == null){
        if(isHeader)
            return ParameterBinding.HEADER;
        else
            return ParameterBinding.BODY;
    }
    QName opName = new QName(binding.getBinding().getPortType().getName().getNamespaceURI(), operation);
    return binding.getBinding().getBinding(opName, part, mode);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:RuntimeModeler.java


示例6: getPart

import javax.jws.WebParam.Mode; //导入依赖的package包/类
private WSDLPart getPart(QName opName, String partName, Mode mode){
    if(binding != null){
        WSDLBoundOperation bo = binding.getBinding().get(opName);
        if(bo != null)
            return bo.getPart(partName, mode);
    }
    return null;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:RuntimeModeler.java


示例7: ParameterImpl

import javax.jws.WebParam.Mode; //导入依赖的package包/类
public ParameterImpl(JavaMethodImpl parent, TypeInfo type, Mode mode, int index) {
    assert type != null;

    this.typeInfo = type;
    this.name = type.tagName;
    this.mode = mode;
    this.index = index;
    this.parent = parent;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:ParameterImpl.java


示例8: getKnownHeaders

import javax.jws.WebParam.Mode; //导入依赖的package包/类
public Set<QName> getKnownHeaders() {
    Set<QName> headers = new HashSet<QName>();
    for (JavaMethodImpl method : getJavaMethods()) {
        // fill in request headers
        Iterator<ParameterImpl> params = method.getRequestParameters().iterator();
        fillHeaders(params, headers, Mode.IN);

        // fill in response headers
        params = method.getResponseParameters().iterator();
        fillHeaders(params, headers, Mode.OUT);
    }
    return headers;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:14,代码来源:SOAPSEIModel.java


示例9: fillHeaders

import javax.jws.WebParam.Mode; //导入依赖的package包/类
/**
 * @param params
 * @param headers
 */
private void fillHeaders(Iterator<ParameterImpl> params, Set<QName> headers, Mode mode) {
    while (params.hasNext()) {
        ParameterImpl param = params.next();
        ParameterBinding binding = (mode == Mode.IN)?param.getInBinding():param.getOutBinding();
        QName name = param.getName();
        if (binding.isHeader() && !headers.contains(name)) {
            headers.add(name);
        }
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:SOAPSEIModel.java


示例10: getPart

import javax.jws.WebParam.Mode; //导入依赖的package包/类
@Override
public EditableWSDLPart getPart(String partName, Mode mode) {
    if(mode==Mode.IN){
        return inParts.get(partName);
    }else if(mode==Mode.OUT){
        return outParts.get(partName);
    }
    return null;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:WSDLBoundOperationImpl.java


示例11: getBinding

import javax.jws.WebParam.Mode; //导入依赖的package包/类
/**
 * Gets the {@link ParameterBinding} for a given operation, part name and the direction - IN/OUT
 *
 * @param operation wsdl:[email protected] value. Must be non-null.
 * @param part      wsdl:[email protected] such as value of soap:[email protected] Must be non-null.
 * @param mode      {@link Mode#IN} or {@link Mode#OUT}. Must be non-null.
 * @return null if the binding could not be resolved for the part.
 */
public ParameterBinding getBinding(QName operation, String part, Mode mode) {
    EditableWSDLBoundOperation op = get(operation);
    if (op == null) {
        //TODO throw exception
        return null;
    }
    if ((Mode.IN == mode) || (Mode.INOUT == mode))
        return op.getInputBinding(part);
    else
        return op.getOutputBinding(part);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:20,代码来源:WSDLBoundPortTypeImpl.java


示例12: login

import javax.jws.WebParam.Mode; //导入依赖的package包/类
@WebMethod
@SOAPBinding(parameterStyle=ParameterStyle.BARE)
@Action(input="http://www.informatica.com/wsh/DataIntegrationInterface/LoginRequest", fault =
    { @FaultAction(value="http://www.informatica.com/wsh/DataIntegrationInterface/login/Fault/Fault",
        className=com.informatica.wsh.Fault.class) }, output="http://www.informatica.com/wsh/DataIntegrationInterface/LoginResponse")
@WebResult(targetNamespace="http://www.informatica.com/wsh", partName="param",
  name="LoginReturn")
public String login(@WebParam(targetNamespace="http://www.informatica.com/wsh",
    partName="param", name="Login")
  com.informatica.wsh.LoginRequest param, @WebParam(targetNamespace="http://www.informatica.com/wsh",
    partName="Context", name="Context", header=true, mode=Mode.OUT)
  Holder<com.informatica.wsh.SessionHeader> Context)
  throws com.informatica.wsh.Fault;
 
开发者ID:consag,项目名称:fitnessefixtures,代码行数:14,代码来源:DataIntegrationInterface.java


示例13: login

import javax.jws.WebParam.Mode; //导入依赖的package包/类
@WebMethod
@SOAPBinding(parameterStyle=ParameterStyle.BARE)
@Action(input="http://www.informatica.com/wsh/MetadataInterface/LoginRequest", fault =
    { @FaultAction(value="http://www.informatica.com/wsh/MetadataInterface/login/Fault/Fault",
        className = Fault.class) }, output="http://www.informatica.com/wsh/MetadataInterface/LoginResponse")
@WebResult(targetNamespace="http://www.informatica.com/wsh", partName="param",
  name="LoginReturn")
public String login(@WebParam(targetNamespace="http://www.informatica.com/wsh",
    partName="param", name="Login")
  LoginRequest param, @WebParam(targetNamespace="http://www.informatica.com/wsh",
    partName="Context", name="Context", header=true, mode=Mode.OUT)
  Holder<SessionHeader> Context)
  throws Fault;
 
开发者ID:consag,项目名称:fitnessefixtures,代码行数:14,代码来源:MetadataInterface.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java InMemoryStorageEngine类代码示例发布时间:2022-05-21
下一篇:
Java WorldTickEvent类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap