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

Java JavaMethodImpl类代码示例

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

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



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

示例1: getOutputAction

import com.sun.xml.internal.ws.model.JavaMethodImpl; //导入依赖的package包/类
public String getOutputAction(Packet packet) {
    //String action = AddressingVersion.UNSET_OUTPUT_ACTION;
    String action = null;
    WSDLOperationMapping wsdlOp = packet.getWSDLOperationMapping();
    if (wsdlOp != null) {
        JavaMethod javaMethod = wsdlOp.getJavaMethod();
        if (javaMethod != null) {
            JavaMethodImpl jm = (JavaMethodImpl) javaMethod;
            if (jm != null && jm.getOutputAction() != null && !jm.getOutputAction().equals("")) {
                return jm.getOutputAction();
            }
        }
        WSDLBoundOperation wbo = wsdlOp.getWSDLBoundOperation();
        if (wbo != null) return getOutputAction(wbo);
    }
    return action;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:WsaTubeHelper.java


示例2: generateRpcParameterOrder

import com.sun.xml.internal.ws.model.JavaMethodImpl; //导入依赖的package包/类
/**
 * Generates the parameterOrder for a PortType operation
 * @param operation the operation to generate the parameterOrder for
 * @param method the {@link JavaMethod} to generate the parameterOrder from
 */
protected void generateRpcParameterOrder(Operation operation, JavaMethodImpl method) {
    String partName;
    StringBuilder paramOrder = new StringBuilder();
    Set<String> partNames = new HashSet<String>();
    List<ParameterImpl> sortedParams = sortMethodParameters(method);
    int i = 0;
    for (ParameterImpl parameter : sortedParams) {
        if (parameter.getIndex() >= 0) {
            partName = parameter.getPartName();
            if (!partNames.contains(partName)) {
                if (i++ > 0)
                    paramOrder.append(' ');
                paramOrder.append(partName);
                partNames.add(partName);
            }
        }
    }
    if (i > 1) {
        operation.parameterOrder(paramOrder.toString());
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:27,代码来源:WSDLGenerator.java


示例3: getOutputAction

import com.sun.xml.internal.ws.model.JavaMethodImpl; //导入依赖的package包/类
public String getOutputAction(Packet packet) {
    //String action = AddressingVersion.UNSET_OUTPUT_ACTION;
    String action = null;
    QName wsdlOp = packet.getWSDLOperation();
    if (wsdlOp != null) {
        if (seiModel != null) {
            JavaMethodImpl jm = (JavaMethodImpl) seiModel.getJavaMethodForWsdlOperation(wsdlOp);
            if (jm != null && jm.getOutputAction() != null && !jm.getOutputAction().equals("")) {
                return jm.getOutputAction();
            }
        }
        if (wsdlPort != null) {
            WSDLBoundOperation wbo = wsdlPort.getBinding().get(wsdlOp);
            return getOutputAction(wbo);
        }
    }
    return action;
}
 
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:19,代码来源:WsaTubeHelper.java


示例4: generateRpcParameterOrder

import com.sun.xml.internal.ws.model.JavaMethodImpl; //导入依赖的package包/类
/**
 * Generates the parameterOrder for a PortType operation
 * @param operation the operation to generate the parameterOrder for
 * @param method the {@link JavaMethod} to generate the parameterOrder from
 */
protected void generateRpcParameterOrder(Operation operation, JavaMethodImpl method) {
    String partName;
    StringBuffer paramOrder = new StringBuffer();
    Set<String> partNames = new HashSet<String>();
    List<ParameterImpl> sortedParams = sortMethodParameters(method);
    int i = 0;
    for (ParameterImpl parameter : sortedParams) {
        if (parameter.getIndex() >= 0) {
           partName = parameter.getPartName();
            if (!partNames.contains(partName)) {
                if (i++ > 0)
                    paramOrder.append(' ');
                paramOrder.append(partName);
                partNames.add(partName);
            }
        }
    }
    if (i>1) {
        operation.parameterOrder(paramOrder.toString());
    }
}
 
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:27,代码来源:WSDLGenerator.java


示例5: TieHandler

import com.sun.xml.internal.ws.model.JavaMethodImpl; //导入依赖的package包/类
public TieHandler(JavaMethodImpl method, WSBinding binding, MessageContextFactory mcf) {
    this.soapVersion = binding.getSOAPVersion();
    this.method = method.getMethod();
    this.javaMethodModel = method;
    argumentsBuilder = createArgumentsBuilder();
    List<MessageFiller> fillers = new ArrayList<MessageFiller>();
    bodyBuilder = createResponseMessageBuilder(fillers);
    this.outFillers = fillers.toArray(new MessageFiller[fillers.size()]);
    this.isOneWay = method.getMEP().isOneWay();
    this.noOfArgs = this.method.getParameterTypes().length;
    packetFactory = mcf;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:TieHandler.java


示例6: DatabindingImpl

import com.sun.xml.internal.ws.model.JavaMethodImpl; //导入依赖的package包/类
public DatabindingImpl(DatabindingProviderImpl p, DatabindingConfig config) {
        RuntimeModeler modeler = new RuntimeModeler(config);
        modeler.setClassLoader(config.getClassLoader());
        seiModel = modeler.buildRuntimeModel();
        WSDLPort wsdlport = config.getWsdlPort();
        packetFactory = new MessageContextFactory(seiModel.getWSBinding().getFeatures());
        clientConfig = isClientConfig(config);
        if (clientConfig) {
            initStubHandlers();
        }
        seiModel.setDatabinding(this);
        if (wsdlport != null) {
            freeze(wsdlport);
        }
        if (operationDispatcher == null) {
            operationDispatcherNoWsdl = new OperationDispatcher(null, seiModel.getWSBinding(), seiModel);
        }
//    if(!clientConfig) {
        for (JavaMethodImpl jm : seiModel.getJavaMethods()) {
            if (!jm.isAsync()) {
                TieHandler th = new TieHandler(jm, seiModel.getWSBinding(), packetFactory);
                wsdlOpMap.put(jm, th);
                tieHandlers.put(th.getMethod(), th);
            }
        }
//    }
    }
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:28,代码来源:DatabindingImpl.java


示例7: resolveJavaMethod

import com.sun.xml.internal.ws.model.JavaMethodImpl; //导入依赖的package包/类
JavaMethodImpl resolveJavaMethod(Packet req) throws DispatchException {
    WSDLOperationMapping m = req.getWSDLOperationMapping();
    if (m == null) {
        synchronized (this) {
            m = (operationDispatcher != null)
                    ? operationDispatcher.getWSDLOperationMapping(req)
                    : operationDispatcherNoWsdl.getWSDLOperationMapping(req);
        }
    }
    return (JavaMethodImpl) m.getJavaMethod();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:DatabindingImpl.java


示例8: deserializeRequest

import com.sun.xml.internal.ws.model.JavaMethodImpl; //导入依赖的package包/类
public JavaCallInfo deserializeRequest(Packet req) {
    com.sun.xml.internal.ws.api.databinding.JavaCallInfo call = new com.sun.xml.internal.ws.api.databinding.JavaCallInfo();
    try {
        JavaMethodImpl wsdlOp = resolveJavaMethod(req);
        TieHandler tie = wsdlOpMap.get(wsdlOp);
        call.setMethod(tie.getMethod());
        Object[] args = tie.readRequest(req.getMessage());
        call.setParameters(args);
    } catch (DispatchException e) {
        call.setException(e);
    }
    return call;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:14,代码来源:DatabindingImpl.java


示例9: generatePortType

import com.sun.xml.internal.ws.model.JavaMethodImpl; //导入依赖的package包/类
/**
 * Generates the WSDL portType
 */
protected void generatePortType() {

    PortType portType = portDefinitions.portType().name(model.getPortTypeName().getLocalPart());
    extension.addPortTypeExtension(portType);
    for (JavaMethodImpl method : model.getJavaMethods()) {
        Operation operation = portType.operation().name(method.getOperationName());
        generateParameterOrder(operation, method);
        extension.addOperationExtension(operation, method);
        switch (method.getMEP()) {
            case REQUEST_RESPONSE:
                // input message
                generateInputMessage(operation, method);
                // output message
                generateOutputMessage(operation, method);
                break;
            case ONE_WAY:
                generateInputMessage(operation, method);
                break;
            default:
                break;
        }
        // faults
        for (CheckedExceptionImpl exception : method.getCheckedExceptions()) {
            QName messageName = new QName(model.getTargetNamespace(), exception.getMessageName());
            FaultType paramType = operation.fault().message(messageName).name(exception.getMessageName());
            extension.addOperationFaultExtension(paramType, method, exception);
        }
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:33,代码来源:WSDLGenerator.java


示例10: isWrapperStyle

import com.sun.xml.internal.ws.model.JavaMethodImpl; //导入依赖的package包/类
/**
 * Determines if the <CODE>method</CODE> is wrapper style
 * @param method The {@link JavaMethod} to check if it is wrapper style
 * @return true if the method is wrapper style, otherwise, false.
 */
protected boolean isWrapperStyle(JavaMethodImpl method) {
    if (method.getRequestParameters().size() > 0) {
        ParameterImpl param = method.getRequestParameters().iterator().next();
        return param.isWrapperStyle();
    }
    return false;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:WSDLGenerator.java


示例11: generateParameterOrder

import com.sun.xml.internal.ws.model.JavaMethodImpl; //导入依赖的package包/类
/**
 * Generates the parameterOrder for a PortType operation
 * @param operation The operation to generate the parameterOrder for
 * @param method The {@link JavaMethod} to generate the parameterOrder from
 */
protected void generateParameterOrder(Operation operation, JavaMethodImpl method) {
    if (method.getMEP() == MEP.ONE_WAY)
        return;
    if (isRpcLit(method))
        generateRpcParameterOrder(operation, method);
    else
        generateDocumentParameterOrder(operation, method);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:14,代码来源:WSDLGenerator.java


示例12: getInputAction

import com.sun.xml.internal.ws.model.JavaMethodImpl; //导入依赖的package包/类
private static final String getInputAction(JavaMethod method) {
    String inputaction = ((JavaMethodImpl)method).getInputAction();
    if (inputaction.equals("")) {
        // Calculate default action
        inputaction = getDefaultInputAction(method);
    }
    return inputaction;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:W3CAddressingMetadataWSDLGeneratorExtension.java


示例13: DatabindingImpl

import com.sun.xml.internal.ws.model.JavaMethodImpl; //导入依赖的package包/类
public DatabindingImpl(DatabindingProviderImpl p, DatabindingConfig config) {
        RuntimeModeler modeler = new RuntimeModeler(config);
        modeler.setClassLoader(config.getClassLoader());
        seiModel = modeler.buildRuntimeModel();
        WSDLPort wsdlport = config.getWsdlPort();
        Object facProp = config.properties().get("com.sun.xml.internal.ws.api.message.MessageContextFactory");
        packetFactory = (facProp != null && facProp instanceof MessageContextFactory)? (MessageContextFactory)facProp :
                        new MessageContextFactory(seiModel.getWSBinding().getFeatures());
        clientConfig = isClientConfig(config);
        if (clientConfig) {
            initStubHandlers();
        }
        seiModel.setDatabinding(this);
        if (wsdlport != null) {
            freeze(wsdlport);
        }
        if (operationDispatcher == null) {
            operationDispatcherNoWsdl = new OperationDispatcher(null, seiModel.getWSBinding(), seiModel);
        }
//    if(!clientConfig) {
        for (JavaMethodImpl jm : seiModel.getJavaMethods()) {
            if (!jm.isAsync()) {
                TieHandler th = new TieHandler(jm, seiModel.getWSBinding(), packetFactory);
                wsdlOpMap.put(jm, th);
                tieHandlers.put(th.getMethod(), th);
            }
        }
//    }
    }
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:30,代码来源:DatabindingImpl.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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