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

Java TWSDLExtensible类代码示例

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

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



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

示例1: getHeaderMessage

import com.sun.tools.internal.ws.api.wsdl.TWSDLExtensible; //导入依赖的package包/类
private Message getHeaderMessage(MessagePart part, TWSDLExtensible ext) {
    Iterator<SOAPHeader> headers = getHeaderExtensions(ext).iterator();
    while (headers.hasNext()) {
        SOAPHeader header = headers.next();
        if (!header.isLiteral()) {
            continue;
        }
        com.sun.tools.internal.ws.wsdl.document.Message headerMessage = findMessage(header.getMessage(), document);
        if (headerMessage == null) {
            continue;
        }

        MessagePart headerPart = headerMessage.getPart(header.getPart());
        if (headerPart == part) {
            return headerMessage;
        }
    }
    return null;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:20,代码来源:WSDLModeler.java


示例2: setCustomizedParameterName

import com.sun.tools.internal.ws.api.wsdl.TWSDLExtensible; //导入依赖的package包/类
/**
 * @param part
 * @param param
 * @param wrapperStyle TODO
 */
private void setCustomizedParameterName(TWSDLExtensible extension, Message msg, MessagePart part, Parameter param, boolean wrapperStyle) {
    JAXWSBinding jaxwsBinding = (JAXWSBinding) getExtensionOfType(extension, JAXWSBinding.class);
    if (jaxwsBinding == null) {
        return;
    }
    String paramName = part.getName();
    QName elementName = part.getDescriptor();
    if (wrapperStyle) {
        elementName = param.getType().getName();
    }
    String customName = jaxwsBinding.getParameterName(msg.getName(), paramName, elementName, wrapperStyle);
    if (customName != null && !customName.equals("")) {
        param.setCustomName(customName);
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:21,代码来源:WSDLModeler.java


示例3: getHeaderExtensions

import com.sun.tools.internal.ws.api.wsdl.TWSDLExtensible; //导入依赖的package包/类
/**
 * @return List of SOAPHeader extensions
 */
protected List<SOAPHeader> getHeaderExtensions(TWSDLExtensible extensible) {
    List<SOAPHeader> headerList = new ArrayList<SOAPHeader>();
    for (TWSDLExtension extension : extensible.extensions()) {
        if (extension.getClass()==MIMEMultipartRelated.class) {
            for( MIMEPart part : ((MIMEMultipartRelated) extension).getParts() ) {
                boolean isRootPart = isRootPart(part);
                for (TWSDLExtension obj : part.extensions()) {
                    if (obj instanceof SOAPHeader) {
                        //bug fix: 5024015
                        if (!isRootPart) {
                            warning((Entity) obj, ModelerMessages.MIMEMODELER_WARNING_IGNORINGINVALID_HEADER_PART_NOT_DECLARED_IN_ROOT_PART(info.bindingOperation.getName()));
                            return new ArrayList<SOAPHeader>();
                        }
                        headerList.add((SOAPHeader) obj);
                    }
                }
            }
        } else if (extension instanceof SOAPHeader) {
            headerList.add((SOAPHeader) extension);
        }
    }
     return headerList;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:27,代码来源:WSDLModelerBase.java


示例4: handleOperationExtension

import com.sun.tools.internal.ws.api.wsdl.TWSDLExtensible; //导入依赖的package包/类
@Override
public boolean handleOperationExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
    if(XmlUtil.matchesTagNS(e, JAXWSBindingsConstants.JAXWS_BINDINGS)){
        if(parent instanceof Operation){
            return handlePortTypeOperation(context, (Operation)parent, e);
        }else if(parent instanceof BindingOperation){
            return handleBindingOperation(context, (BindingOperation)parent, e);
        }
    }else {
        Util.fail(
            "parsing.invalidExtensionElement",
            e.getTagName(),
            e.getNamespaceURI());
        return false;
    }
    return false;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:18,代码来源:JAXWSBindingExtensionHandler.java


示例5: doHandleExtension

import com.sun.tools.internal.ws.api.wsdl.TWSDLExtensible; //导入依赖的package包/类
@Override
    public boolean doHandleExtension(
        TWSDLParserContext context,
        TWSDLExtensible parent,
        Element e) {
        if (parent.getWSDLElementName().equals(WSDLConstants.QNAME_OUTPUT)) {
            return handleInputOutputExtension(context, parent, e);
        } else if (parent.getWSDLElementName().equals(WSDLConstants.QNAME_INPUT)) {
            return handleInputOutputExtension(context, parent, e);
        } else if (parent.getWSDLElementName().equals(MIMEConstants.QNAME_PART)) {
            return handleMIMEPartExtension(context, parent, e);
        } else {
//            context.fireIgnoringExtension(
//                new QName(e.getNamespaceURI(), e.getLocalName()),
//                parent.getWSDLElementName());
            return false;
        }
    }
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:19,代码来源:MIMEExtensionHandler.java


示例6: handleBindingExtension

import com.sun.tools.internal.ws.api.wsdl.TWSDLExtensible; //导入依赖的package包/类
@Override
public boolean handleBindingExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
    if (XmlUtil.matchesTagNS(e, getWSDLExtensionQName())) {
        /*
        context.push();
        context.registerNamespaces(e);

        // TODO: read UsingAddressing extensibility element and store
        // TODO: it as extension in "parent". It may be used to generate
        // TODO: @Action/@FaultAction later.

        context.pop();
        */
        return true;
    }
    return false; // keep compiler happy
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:18,代码来源:W3CAddressingExtensionHandler.java


示例7: handleInputExtension

import com.sun.tools.internal.ws.api.wsdl.TWSDLExtensible; //导入依赖的package包/类
public boolean handleInputExtension(
    TWSDLParserContext context,
    TWSDLExtensible parent,
    Element e) {
    if (XmlUtil.matchesTagNS(e, HTTPConstants.QNAME_URL_ENCODED)) {
        parent.addExtension(new HTTPUrlEncoded(context.getLocation(e)));
        return true;
    } else if (
        XmlUtil.matchesTagNS(e, HTTPConstants.QNAME_URL_REPLACEMENT)) {
        parent.addExtension(new HTTPUrlReplacement(context.getLocation(e)));
        return true;
    } else {
        Util.fail(
            "parsing.invalidExtensionElement",
            e.getTagName(),
            e.getNamespaceURI());
        return false;
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:20,代码来源:HTTPExtensionHandler.java


示例8: handleBindingExtension

import com.sun.tools.internal.ws.api.wsdl.TWSDLExtensible; //导入依赖的package包/类
public boolean handleBindingExtension(
        TWSDLParserContext context,
        TWSDLExtensible parent,
        Element e) {
        if (XmlUtil.matchesTagNS(e, HTTPConstants.QNAME_BINDING)) {
            context.push();
            context.registerNamespaces(e);

            HTTPBinding binding = new HTTPBinding(context.getLocation(e));

            String verb = Util.getRequiredAttribute(e, Constants.ATTR_VERB);
            binding.setVerb(verb);

            parent.addExtension(binding);
            context.pop();
//            context.fireDoneParsingEntity(HTTPConstants.QNAME_BINDING, binding);
            return true;
        } else {
            Util.fail(
                "parsing.invalidExtensionElement",
                e.getTagName(),
                e.getNamespaceURI());
            return false;
        }
    }
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:26,代码来源:HTTPExtensionHandler.java


示例9: handlePortTypeExtension

import com.sun.tools.internal.ws.api.wsdl.TWSDLExtensible; //导入依赖的package包/类
public boolean handlePortTypeExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
   Util.fail(
        "parsing.invalidExtensionElement",
        e.getTagName(),
        e.getNamespaceURI());
    return false; // keep compiler happy
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:8,代码来源:SOAPExtensionHandler.java


示例10: getExtensionOfType

import com.sun.tools.internal.ws.api.wsdl.TWSDLExtensible; //导入依赖的package包/类
protected static TWSDLExtension getExtensionOfType(
        TWSDLExtensible extensible,
        Class type) {
    for (TWSDLExtension extension:extensible.extensions()) {
        if (extension.getClass().equals(type)) {
            return extension;
        }
    }

    return null;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:WSDLModelerBase.java


示例11: handleInputExtension

import com.sun.tools.internal.ws.api.wsdl.TWSDLExtensible; //导入依赖的package包/类
@Override
public boolean handleInputExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
    if (extensionModeOn) {
        warn(context.getLocation(e));
        String actionValue = XmlUtil.getAttributeNSOrNull(e, WSA_ACTION_QNAME);
        if (actionValue == null || actionValue.equals("")) {
            return warnEmptyAction(parent, context.getLocation(e));
        }
        ((Input) parent).setAction(actionValue);
        return true;
    } else {
        return fail(context.getLocation(e));
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:MemberSubmissionAddressingExtensionHandler.java


示例12: handleFaultExtension

import com.sun.tools.internal.ws.api.wsdl.TWSDLExtensible; //导入依赖的package包/类
@Override
public boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
    if (extensionModeOn) {
        warn(context.getLocation(e));
        String actionValue = XmlUtil.getAttributeNSOrNull(e, WSA_ACTION_QNAME);
        if (actionValue == null || actionValue.equals("")) {
            errReceiver.warning(context.getLocation(e), WsdlMessages.WARNING_FAULT_EMPTY_ACTION(parent.getNameValue(), parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue()));
            return false; // keep compiler happy
        }
        ((Fault) parent).setAction(actionValue);
        return true;
    } else {
        return fail(context.getLocation(e));
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:16,代码来源:MemberSubmissionAddressingExtensionHandler.java


示例13: getJAXWSExtension

import com.sun.tools.internal.ws.api.wsdl.TWSDLExtensible; //导入依赖的package包/类
private static JAXWSBinding getJAXWSExtension(TWSDLExtensible extensible) {
    for (TWSDLExtension extension:extensible.extensions()) {
        if (extension.getClass().equals(JAXWSBinding.class)) {
            return (JAXWSBinding)extension;
        }
    }

    return null;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:JAXWSBindingExtensionHandler.java


示例14: handleServiceExtension

import com.sun.tools.internal.ws.api.wsdl.TWSDLExtensible; //导入依赖的package包/类
@Override
    public boolean handleServiceExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) {
        if(XmlUtil.matchesTagNS(e, JAXWSBindingsConstants.JAXWS_BINDINGS)){
            context.push();
            context.registerNamespaces(e);
            JAXWSBinding jaxwsBinding = new JAXWSBinding(context.getLocation(e));

            for(Iterator iter = XmlUtil.getAllChildren(e); iter.hasNext();){
                Element e2 = Util.nextElement(iter);
                if (e2 == null) {
                    break;
                }
                if(XmlUtil.matchesTagNS(e2, JAXWSBindingsConstants.CLASS)){
                    parseClass(context, jaxwsBinding, e2);
                    if((jaxwsBinding.getClassName() != null) && (jaxwsBinding.getClassName().getJavaDoc() != null)){
                        ((Service)parent).setDocumentation(new Documentation(jaxwsBinding.getClassName().getJavaDoc()));
                    }
                }else{
                    Util.fail(
                        "parsing.invalidExtensionElement",
                        e2.getTagName(),
                        e2.getNamespaceURI());
                    return false;
                }
            }
            parent.addExtension(jaxwsBinding);
            context.pop();
//            context.fireDoneParsingEntity(
//                    JAXWSBindingsConstants.JAXWS_BINDINGS,
//                    jaxwsBinding);
            return true;
        }else {
            Util.fail(
                "parsing.invalidExtensionElement",
                e.getTagName(),
                e.getNamespaceURI());
            return false;
        }
    }
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:40,代码来源:JAXWSBindingExtensionHandler.java


示例15: handleServiceExtension

import com.sun.tools.internal.ws.api.wsdl.TWSDLExtensible; //导入依赖的package包/类
public boolean handleServiceExtension(
    TWSDLParserContext context,
    TWSDLExtensible parent,
    Element e) {
    Util.fail(
        "parsing.invalidExtensionElement",
        e.getTagName(),
        e.getNamespaceURI());
    return false;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:11,代码来源:HTTPExtensionHandler.java


示例16: handleExtension

import com.sun.tools.internal.ws.api.wsdl.TWSDLExtensible; //导入依赖的package包/类
private boolean handleExtension(
    TWSDLParserContextImpl context,
    TWSDLExtensible entity,
    Element e) {
    TWSDLExtensionHandler h =
         (TWSDLExtensionHandler) extensionHandlers.get(e.getNamespaceURI());
    if (h == null) {
        context.fireIgnoringExtension(e, (Entity) entity);
        errReceiver.warning(forest.locatorTable.getStartLocation(e), WsdlMessages.PARSING_UNKNOWN_EXTENSIBILITY_ELEMENT_OR_ATTRIBUTE(e.getLocalName(), e.getNamespaceURI()));
        return false;
    } else {
        return h.doHandleExtension(context, entity, e);
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:WSDLParser.java


示例17: handleDefinitionsExtension

import com.sun.tools.internal.ws.api.wsdl.TWSDLExtensible; //导入依赖的package包/类
public boolean handleDefinitionsExtension(
    TWSDLParserContext context,
    TWSDLExtensible parent,
    Element e) {
    Util.fail(
        "parsing.invalidExtensionElement",
        e.getTagName(),
        e.getNamespaceURI());
    return false; // keep compiler happy
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:SOAPExtensionHandler.java


示例18: handleTypesExtension

import com.sun.tools.internal.ws.api.wsdl.TWSDLExtensible; //导入依赖的package包/类
public boolean handleTypesExtension(
    com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context,
    TWSDLExtensible parent,
    Element e) {
    Util.fail(
        "parsing.invalidExtensionElement",
        e.getTagName(),
        e.getNamespaceURI());
    return false; // keep compiler happy
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:SOAPExtensionHandler.java


示例19: handleMIMEPartExtension

import com.sun.tools.internal.ws.api.wsdl.TWSDLExtensible; //导入依赖的package包/类
@Override
protected boolean handleMIMEPartExtension(
    TWSDLParserContext context,
    TWSDLExtensible parent,
    Element e) {
    return handleInputOutputExtension(context, parent, e);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:SOAPExtensionHandler.java


示例20: handlePortExtension

import com.sun.tools.internal.ws.api.wsdl.TWSDLExtensible; //导入依赖的package包/类
@Override
    public boolean handlePortExtension(
        TWSDLParserContext context,
        TWSDLExtensible parent,
        Element e) {
        if (XmlUtil.matchesTagNS(e, getAddressQName())) {
            context.push();
            context.registerNamespaces(e);

            SOAPAddress address = new SOAPAddress(context.getLocation(e));

            String location =
                Util.getRequiredAttribute(e, Constants.ATTR_LOCATION);
            address.setLocation(location);

            parent.addExtension(address);
            context.pop();
//            context.fireDoneParsingEntity(getAddressQName(), address);
            return true;
        } else {
            Util.fail(
                "parsing.invalidExtensionElement",
                e.getTagName(),
                e.getNamespaceURI());
            return false; // keep compiler happy
        }
    }
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:28,代码来源:SOAPExtensionHandler.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java TemplateKindCombo类代码示例发布时间:2022-05-23
下一篇:
Java TraceSignatureVisitor类代码示例发布时间: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