com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLPortType Java Examples

The following examples show how to use com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLPortType. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RuntimeWSDLParser.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
private void parsePortType(XMLStreamReader reader) {
    String portTypeName = ParserUtil.getMandatoryNonEmptyAttribute(reader, WSDLConstants.ATTR_NAME);
    if (portTypeName == null) {
        //TODO: throw exception?
        //skip wsdl:portType element for now
        XMLStreamReaderUtil.skipElement(reader);
        return;
    }
    EditableWSDLPortType portType = new WSDLPortTypeImpl(reader,wsdlDoc, new QName(targetNamespace, portTypeName));
    extensionFacade.portTypeAttributes(portType, reader);
    wsdlDoc.addPortType(portType);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        QName name = reader.getName();
        if (WSDLConstants.QNAME_OPERATION.equals(name)) {
            parsePortTypeOperation(reader, portType);
        } else {
            extensionFacade.portTypeElements(portType, reader);
        }
    }
}
 
Example #2
Source File: RuntimeWSDLParser.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
private void parsePortType(XMLStreamReader reader) {
    String portTypeName = ParserUtil.getMandatoryNonEmptyAttribute(reader, WSDLConstants.ATTR_NAME);
    if (portTypeName == null) {
        //TODO: throw exception?
        //skip wsdl:portType element for now
        XMLStreamReaderUtil.skipElement(reader);
        return;
    }
    EditableWSDLPortType portType = new WSDLPortTypeImpl(reader,wsdlDoc, new QName(targetNamespace, portTypeName));
    extensionFacade.portTypeAttributes(portType, reader);
    wsdlDoc.addPortType(portType);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        QName name = reader.getName();
        if (WSDLConstants.QNAME_OPERATION.equals(name)) {
            parsePortTypeOperation(reader, portType);
        } else {
            extensionFacade.portTypeElements(portType, reader);
        }
    }
}
 
Example #3
Source File: RuntimeWSDLParser.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
private void parsePortType(XMLStreamReader reader) {
    String portTypeName = ParserUtil.getMandatoryNonEmptyAttribute(reader, WSDLConstants.ATTR_NAME);
    if (portTypeName == null) {
        //TODO: throw exception?
        //skip wsdl:portType element for now
        XMLStreamReaderUtil.skipElement(reader);
        return;
    }
    EditableWSDLPortType portType = new WSDLPortTypeImpl(reader,wsdlDoc, new QName(targetNamespace, portTypeName));
    extensionFacade.portTypeAttributes(portType, reader);
    wsdlDoc.addPortType(portType);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        QName name = reader.getName();
        if (WSDLConstants.QNAME_OPERATION.equals(name)) {
            parsePortTypeOperation(reader, portType);
        } else {
            extensionFacade.portTypeElements(portType, reader);
        }
    }
}
 
Example #4
Source File: RuntimeWSDLParser.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
private void parsePortType(XMLStreamReader reader) {
    String portTypeName = ParserUtil.getMandatoryNonEmptyAttribute(reader, WSDLConstants.ATTR_NAME);
    if (portTypeName == null) {
        //TODO: throw exception?
        //skip wsdl:portType element for now
        XMLStreamReaderUtil.skipElement(reader);
        return;
    }
    EditableWSDLPortType portType = new WSDLPortTypeImpl(reader,wsdlDoc, new QName(targetNamespace, portTypeName));
    extensionFacade.portTypeAttributes(portType, reader);
    wsdlDoc.addPortType(portType);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        QName name = reader.getName();
        if (WSDLConstants.QNAME_OPERATION.equals(name)) {
            parsePortTypeOperation(reader, portType);
        } else {
            extensionFacade.portTypeElements(portType, reader);
        }
    }
}
 
Example #5
Source File: RuntimeWSDLParser.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
private void parsePortType(XMLStreamReader reader) {
    String portTypeName = ParserUtil.getMandatoryNonEmptyAttribute(reader, WSDLConstants.ATTR_NAME);
    if (portTypeName == null) {
        //TODO: throw exception?
        //skip wsdl:portType element for now
        XMLStreamReaderUtil.skipElement(reader);
        return;
    }
    EditableWSDLPortType portType = new WSDLPortTypeImpl(reader,wsdlDoc, new QName(targetNamespace, portTypeName));
    extensionFacade.portTypeAttributes(portType, reader);
    wsdlDoc.addPortType(portType);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        QName name = reader.getName();
        if (WSDLConstants.QNAME_OPERATION.equals(name)) {
            parsePortTypeOperation(reader, portType);
        } else {
            extensionFacade.portTypeElements(portType, reader);
        }
    }
}
 
Example #6
Source File: RuntimeWSDLParser.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
private void parsePortType(XMLStreamReader reader) {
    String portTypeName = ParserUtil.getMandatoryNonEmptyAttribute(reader, WSDLConstants.ATTR_NAME);
    if (portTypeName == null) {
        //TODO: throw exception?
        //skip wsdl:portType element for now
        XMLStreamReaderUtil.skipElement(reader);
        return;
    }
    EditableWSDLPortType portType = new WSDLPortTypeImpl(reader,wsdlDoc, new QName(targetNamespace, portTypeName));
    extensionFacade.portTypeAttributes(portType, reader);
    wsdlDoc.addPortType(portType);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        QName name = reader.getName();
        if (WSDLConstants.QNAME_OPERATION.equals(name)) {
            parsePortTypeOperation(reader, portType);
        } else {
            extensionFacade.portTypeElements(portType, reader);
        }
    }
}
 
Example #7
Source File: RuntimeWSDLParser.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
private void parsePortType(XMLStreamReader reader) {
    String portTypeName = ParserUtil.getMandatoryNonEmptyAttribute(reader, WSDLConstants.ATTR_NAME);
    if (portTypeName == null) {
        //TODO: throw exception?
        //skip wsdl:portType element for now
        XMLStreamReaderUtil.skipElement(reader);
        return;
    }
    EditableWSDLPortType portType = new WSDLPortTypeImpl(reader,wsdlDoc, new QName(targetNamespace, portTypeName));
    extensionFacade.portTypeAttributes(portType, reader);
    wsdlDoc.addPortType(portType);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        QName name = reader.getName();
        if (WSDLConstants.QNAME_OPERATION.equals(name)) {
            parsePortTypeOperation(reader, portType);
        } else {
            extensionFacade.portTypeElements(portType, reader);
        }
    }
}
 
Example #8
Source File: RuntimeWSDLParser.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
private void parsePortType(XMLStreamReader reader) {
    String portTypeName = ParserUtil.getMandatoryNonEmptyAttribute(reader, WSDLConstants.ATTR_NAME);
    if (portTypeName == null) {
        //TODO: throw exception?
        //skip wsdl:portType element for now
        XMLStreamReaderUtil.skipElement(reader);
        return;
    }
    EditableWSDLPortType portType = new WSDLPortTypeImpl(reader,wsdlDoc, new QName(targetNamespace, portTypeName));
    extensionFacade.portTypeAttributes(portType, reader);
    wsdlDoc.addPortType(portType);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        QName name = reader.getName();
        if (WSDLConstants.QNAME_OPERATION.equals(name)) {
            parsePortTypeOperation(reader, portType);
        } else {
            extensionFacade.portTypeElements(portType, reader);
        }
    }
}
 
Example #9
Source File: WSDLModelImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invoked at the end of the model construction to fix up references, etc.
 */
public void freeze() {
    for (EditableWSDLService service : services.values()) {
        service.freeze(this);
    }
    for (EditableWSDLBoundPortType bp : bindings.values()) {
        bp.freeze();
    }
    // Enforce freeze all the portTypes referenced by this endpoints, see Bug8966673 for detail
    for (EditableWSDLPortType pt : portTypes.values()) {
        pt.freeze();
    }
}
 
Example #10
Source File: WSDLModelImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invoked at the end of the model construction to fix up references, etc.
 */
public void freeze() {
    for (EditableWSDLService service : services.values()) {
        service.freeze(this);
    }
    for (EditableWSDLBoundPortType bp : bindings.values()) {
        bp.freeze();
    }
    // Enforce freeze all the portTypes referenced by this endpoints, see Bug8966673 for detail
    for (EditableWSDLPortType pt : portTypes.values()) {
        pt.freeze();
    }
}
 
Example #11
Source File: WSDLModelImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invoked at the end of the model construction to fix up references, etc.
 */
public void freeze() {
    for (EditableWSDLService service : services.values()) {
        service.freeze(this);
    }
    for (EditableWSDLBoundPortType bp : bindings.values()) {
        bp.freeze();
    }
    // Enforce freeze all the portTypes referenced by this endpoints, see Bug8966673 for detail
    for (EditableWSDLPortType pt : portTypes.values()) {
        pt.freeze();
    }
}
 
Example #12
Source File: RuntimeWSDLParser.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private void parsePortTypeOperation(XMLStreamReader reader, EditableWSDLPortType portType) {
    String operationName = ParserUtil.getMandatoryNonEmptyAttribute(reader, WSDLConstants.ATTR_NAME);
    if (operationName == null) {
        //TODO: throw exception?
        //skip wsdl:portType element for now
        XMLStreamReaderUtil.skipElement(reader);
        return;
    }

    QName operationQName = new QName(portType.getName().getNamespaceURI(), operationName);
    EditableWSDLOperation operation = new WSDLOperationImpl(reader,portType, operationQName);
    extensionFacade.portTypeOperationAttributes(operation, reader);
    String parameterOrder = ParserUtil.getAttribute(reader, "parameterOrder");
    operation.setParameterOrder(parameterOrder);
    portType.put(operationName, operation);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        QName name = reader.getName();
        if (name.equals(WSDLConstants.QNAME_INPUT)) {
            parsePortTypeOperationInput(reader, operation);
        } else if (name.equals(WSDLConstants.QNAME_OUTPUT)) {
            parsePortTypeOperationOutput(reader, operation);
        } else if (name.equals(WSDLConstants.QNAME_FAULT)) {
            parsePortTypeOperationFault(reader, operation);
        } else {
            extensionFacade.portTypeOperationElements(operation, reader);
        }
    }
}
 
Example #13
Source File: WSDLOperationImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public WSDLOperationImpl(XMLStreamReader xsr, EditableWSDLPortType owner, QName name) {
    super(xsr);
    this.name = name;
    this.faults = new ArrayList<EditableWSDLFault>();
    this.faultMap = new QNameMap<EditableWSDLFault>();
    this.owner = owner;
}
 
Example #14
Source File: WSDLOperationImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public WSDLOperationImpl(XMLStreamReader xsr, EditableWSDLPortType owner, QName name) {
    super(xsr);
    this.name = name;
    this.faults = new ArrayList<EditableWSDLFault>();
    this.faultMap = new QNameMap<EditableWSDLFault>();
    this.owner = owner;
}
 
Example #15
Source File: WSDLOperationImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public WSDLOperationImpl(XMLStreamReader xsr, EditableWSDLPortType owner, QName name) {
    super(xsr);
    this.name = name;
    this.faults = new ArrayList<EditableWSDLFault>();
    this.faultMap = new QNameMap<EditableWSDLFault>();
    this.owner = owner;
}
 
Example #16
Source File: WSDLOperationImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public WSDLOperationImpl(XMLStreamReader xsr, EditableWSDLPortType owner, QName name) {
    super(xsr);
    this.name = name;
    this.faults = new ArrayList<EditableWSDLFault>();
    this.faultMap = new QNameMap<EditableWSDLFault>();
    this.owner = owner;
}
 
Example #17
Source File: WSDLModelImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invoked at the end of the model construction to fix up references, etc.
 */
public void freeze() {
    for (EditableWSDLService service : services.values()) {
        service.freeze(this);
    }
    for (EditableWSDLBoundPortType bp : bindings.values()) {
        bp.freeze();
    }
    // Enforce freeze all the portTypes referenced by this endpoints, see Bug8966673 for detail
    for (EditableWSDLPortType pt : portTypes.values()) {
        pt.freeze();
    }
}
 
Example #18
Source File: WSDLModelImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invoked at the end of the model construction to fix up references, etc.
 */
public void freeze() {
    for (EditableWSDLService service : services.values()) {
        service.freeze(this);
    }
    for (EditableWSDLBoundPortType bp : bindings.values()) {
        bp.freeze();
    }
    // Enforce freeze all the portTypes referenced by this endpoints, see Bug8966673 for detail
    for (EditableWSDLPortType pt : portTypes.values()) {
        pt.freeze();
    }
}
 
Example #19
Source File: RuntimeWSDLParser.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private void parsePortTypeOperation(XMLStreamReader reader, EditableWSDLPortType portType) {
    String operationName = ParserUtil.getMandatoryNonEmptyAttribute(reader, WSDLConstants.ATTR_NAME);
    if (operationName == null) {
        //TODO: throw exception?
        //skip wsdl:portType element for now
        XMLStreamReaderUtil.skipElement(reader);
        return;
    }

    QName operationQName = new QName(portType.getName().getNamespaceURI(), operationName);
    EditableWSDLOperation operation = new WSDLOperationImpl(reader,portType, operationQName);
    extensionFacade.portTypeOperationAttributes(operation, reader);
    String parameterOrder = ParserUtil.getAttribute(reader, "parameterOrder");
    operation.setParameterOrder(parameterOrder);
    portType.put(operationName, operation);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        QName name = reader.getName();
        if (name.equals(WSDLConstants.QNAME_INPUT)) {
            parsePortTypeOperationInput(reader, operation);
        } else if (name.equals(WSDLConstants.QNAME_OUTPUT)) {
            parsePortTypeOperationOutput(reader, operation);
        } else if (name.equals(WSDLConstants.QNAME_FAULT)) {
            parsePortTypeOperationFault(reader, operation);
        } else {
            extensionFacade.portTypeOperationElements(operation, reader);
        }
    }
}
 
Example #20
Source File: RuntimeWSDLParser.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private void parsePortTypeOperation(XMLStreamReader reader, EditableWSDLPortType portType) {
    String operationName = ParserUtil.getMandatoryNonEmptyAttribute(reader, WSDLConstants.ATTR_NAME);
    if (operationName == null) {
        //TODO: throw exception?
        //skip wsdl:portType element for now
        XMLStreamReaderUtil.skipElement(reader);
        return;
    }

    QName operationQName = new QName(portType.getName().getNamespaceURI(), operationName);
    EditableWSDLOperation operation = new WSDLOperationImpl(reader,portType, operationQName);
    extensionFacade.portTypeOperationAttributes(operation, reader);
    String parameterOrder = ParserUtil.getAttribute(reader, "parameterOrder");
    operation.setParameterOrder(parameterOrder);
    portType.put(operationName, operation);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        QName name = reader.getName();
        if (name.equals(WSDLConstants.QNAME_INPUT)) {
            parsePortTypeOperationInput(reader, operation);
        } else if (name.equals(WSDLConstants.QNAME_OUTPUT)) {
            parsePortTypeOperationOutput(reader, operation);
        } else if (name.equals(WSDLConstants.QNAME_FAULT)) {
            parsePortTypeOperationFault(reader, operation);
        } else {
            extensionFacade.portTypeOperationElements(operation, reader);
        }
    }
}
 
Example #21
Source File: RuntimeWSDLParser.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private void parsePortTypeOperation(XMLStreamReader reader, EditableWSDLPortType portType) {
    String operationName = ParserUtil.getMandatoryNonEmptyAttribute(reader, WSDLConstants.ATTR_NAME);
    if (operationName == null) {
        //TODO: throw exception?
        //skip wsdl:portType element for now
        XMLStreamReaderUtil.skipElement(reader);
        return;
    }

    QName operationQName = new QName(portType.getName().getNamespaceURI(), operationName);
    EditableWSDLOperation operation = new WSDLOperationImpl(reader,portType, operationQName);
    extensionFacade.portTypeOperationAttributes(operation, reader);
    String parameterOrder = ParserUtil.getAttribute(reader, "parameterOrder");
    operation.setParameterOrder(parameterOrder);
    portType.put(operationName, operation);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        QName name = reader.getName();
        if (name.equals(WSDLConstants.QNAME_INPUT)) {
            parsePortTypeOperationInput(reader, operation);
        } else if (name.equals(WSDLConstants.QNAME_OUTPUT)) {
            parsePortTypeOperationOutput(reader, operation);
        } else if (name.equals(WSDLConstants.QNAME_FAULT)) {
            parsePortTypeOperationFault(reader, operation);
        } else {
            extensionFacade.portTypeOperationElements(operation, reader);
        }
    }
}
 
Example #22
Source File: WSDLOperationImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public WSDLOperationImpl(XMLStreamReader xsr, EditableWSDLPortType owner, QName name) {
    super(xsr);
    this.name = name;
    this.faults = new ArrayList<EditableWSDLFault>();
    this.faultMap = new QNameMap<EditableWSDLFault>();
    this.owner = owner;
}
 
Example #23
Source File: RuntimeWSDLParser.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private void parsePortTypeOperation(XMLStreamReader reader, EditableWSDLPortType portType) {
    String operationName = ParserUtil.getMandatoryNonEmptyAttribute(reader, WSDLConstants.ATTR_NAME);
    if (operationName == null) {
        //TODO: throw exception?
        //skip wsdl:portType element for now
        XMLStreamReaderUtil.skipElement(reader);
        return;
    }

    QName operationQName = new QName(portType.getName().getNamespaceURI(), operationName);
    EditableWSDLOperation operation = new WSDLOperationImpl(reader,portType, operationQName);
    extensionFacade.portTypeOperationAttributes(operation, reader);
    String parameterOrder = ParserUtil.getAttribute(reader, "parameterOrder");
    operation.setParameterOrder(parameterOrder);
    portType.put(operationName, operation);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        QName name = reader.getName();
        if (name.equals(WSDLConstants.QNAME_INPUT)) {
            parsePortTypeOperationInput(reader, operation);
        } else if (name.equals(WSDLConstants.QNAME_OUTPUT)) {
            parsePortTypeOperationOutput(reader, operation);
        } else if (name.equals(WSDLConstants.QNAME_FAULT)) {
            parsePortTypeOperationFault(reader, operation);
        } else {
            extensionFacade.portTypeOperationElements(operation, reader);
        }
    }
}
 
Example #24
Source File: WSDLModelImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invoked at the end of the model construction to fix up references, etc.
 */
public void freeze() {
    for (EditableWSDLService service : services.values()) {
        service.freeze(this);
    }
    for (EditableWSDLBoundPortType bp : bindings.values()) {
        bp.freeze();
    }
    // Enforce freeze all the portTypes referenced by this endpoints, see Bug8966673 for detail
    for (EditableWSDLPortType pt : portTypes.values()) {
        pt.freeze();
    }
}
 
Example #25
Source File: RuntimeWSDLParser.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private void parsePortTypeOperation(XMLStreamReader reader, EditableWSDLPortType portType) {
    String operationName = ParserUtil.getMandatoryNonEmptyAttribute(reader, WSDLConstants.ATTR_NAME);
    if (operationName == null) {
        //TODO: throw exception?
        //skip wsdl:portType element for now
        XMLStreamReaderUtil.skipElement(reader);
        return;
    }

    QName operationQName = new QName(portType.getName().getNamespaceURI(), operationName);
    EditableWSDLOperation operation = new WSDLOperationImpl(reader,portType, operationQName);
    extensionFacade.portTypeOperationAttributes(operation, reader);
    String parameterOrder = ParserUtil.getAttribute(reader, "parameterOrder");
    operation.setParameterOrder(parameterOrder);
    portType.put(operationName, operation);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        QName name = reader.getName();
        if (name.equals(WSDLConstants.QNAME_INPUT)) {
            parsePortTypeOperationInput(reader, operation);
        } else if (name.equals(WSDLConstants.QNAME_OUTPUT)) {
            parsePortTypeOperationOutput(reader, operation);
        } else if (name.equals(WSDLConstants.QNAME_FAULT)) {
            parsePortTypeOperationFault(reader, operation);
        } else {
            extensionFacade.portTypeOperationElements(operation, reader);
        }
    }
}
 
Example #26
Source File: WSDLModelImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invoked at the end of the model construction to fix up references, etc.
 */
public void freeze() {
    for (EditableWSDLService service : services.values()) {
        service.freeze(this);
    }
    for (EditableWSDLBoundPortType bp : bindings.values()) {
        bp.freeze();
    }
    // Enforce freeze all the portTypes referenced by this endpoints, see Bug8966673 for detail
    for (EditableWSDLPortType pt : portTypes.values()) {
        pt.freeze();
    }
}
 
Example #27
Source File: WSDLOperationImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public WSDLOperationImpl(XMLStreamReader xsr, EditableWSDLPortType owner, QName name) {
    super(xsr);
    this.name = name;
    this.faults = new ArrayList<EditableWSDLFault>();
    this.faultMap = new QNameMap<EditableWSDLFault>();
    this.owner = owner;
}
 
Example #28
Source File: WSDLOperationImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public WSDLOperationImpl(XMLStreamReader xsr, EditableWSDLPortType owner, QName name) {
    super(xsr);
    this.name = name;
    this.faults = new ArrayList<EditableWSDLFault>();
    this.faultMap = new QNameMap<EditableWSDLFault>();
    this.owner = owner;
}
 
Example #29
Source File: WSDLModelImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Invoked at the end of the model construction to fix up references, etc.
 */
public void freeze() {
    for (EditableWSDLService service : services.values()) {
        service.freeze(this);
    }
    for (EditableWSDLBoundPortType bp : bindings.values()) {
        bp.freeze();
    }
    // Enforce freeze all the portTypes referenced by this endpoints, see Bug8966673 for detail
    for (EditableWSDLPortType pt : portTypes.values()) {
        pt.freeze();
    }
}
 
Example #30
Source File: RuntimeWSDLParser.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private void parsePortTypeOperation(XMLStreamReader reader, EditableWSDLPortType portType) {
    String operationName = ParserUtil.getMandatoryNonEmptyAttribute(reader, WSDLConstants.ATTR_NAME);
    if (operationName == null) {
        //TODO: throw exception?
        //skip wsdl:portType element for now
        XMLStreamReaderUtil.skipElement(reader);
        return;
    }

    QName operationQName = new QName(portType.getName().getNamespaceURI(), operationName);
    EditableWSDLOperation operation = new WSDLOperationImpl(reader,portType, operationQName);
    extensionFacade.portTypeOperationAttributes(operation, reader);
    String parameterOrder = ParserUtil.getAttribute(reader, "parameterOrder");
    operation.setParameterOrder(parameterOrder);
    portType.put(operationName, operation);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        QName name = reader.getName();
        if (name.equals(WSDLConstants.QNAME_INPUT)) {
            parsePortTypeOperationInput(reader, operation);
        } else if (name.equals(WSDLConstants.QNAME_OUTPUT)) {
            parsePortTypeOperationOutput(reader, operation);
        } else if (name.equals(WSDLConstants.QNAME_FAULT)) {
            parsePortTypeOperationFault(reader, operation);
        } else {
            extensionFacade.portTypeOperationElements(operation, reader);
        }
    }
}