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

The following examples show how to use com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLOperation. 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 TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private void parsePortTypeOperationOutput(XMLStreamReader reader, EditableWSDLOperation operation) {
    String msg = ParserUtil.getAttribute(reader, "message");
    QName msgName = ParserUtil.getQName(reader, msg);
    String name = ParserUtil.getAttribute(reader, "name");
    EditableWSDLOutput output = new WSDLOutputImpl(reader,name, msgName, operation);
    operation.setOutput(output);
    extensionFacade.portTypeOperationOutputAttributes(output, reader);
    extensionFacade.portTypeOperationOutput(operation, reader);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        extensionFacade.portTypeOperationOutputElements(output, reader);
    }
}
 
Example #2
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 #3
Source File: RuntimeWSDLParser.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private void parsePortTypeOperationOutput(XMLStreamReader reader, EditableWSDLOperation operation) {
    String msg = ParserUtil.getAttribute(reader, "message");
    QName msgName = ParserUtil.getQName(reader, msg);
    String name = ParserUtil.getAttribute(reader, "name");
    EditableWSDLOutput output = new WSDLOutputImpl(reader,name, msgName, operation);
    operation.setOutput(output);
    extensionFacade.portTypeOperationOutputAttributes(output, reader);
    extensionFacade.portTypeOperationOutput(operation, reader);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        extensionFacade.portTypeOperationOutputElements(output, reader);
    }
}
 
Example #4
Source File: RuntimeWSDLParser.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private void parsePortTypeOperationInput(XMLStreamReader reader, EditableWSDLOperation operation) {
    String msg = ParserUtil.getMandatoryNonEmptyAttribute(reader, "message");
    QName msgName = ParserUtil.getQName(reader, msg);
    String name = ParserUtil.getAttribute(reader, "name");
    EditableWSDLInput input = new WSDLInputImpl(reader, name, msgName, operation);
    operation.setInput(input);
    extensionFacade.portTypeOperationInputAttributes(input, reader);
    extensionFacade.portTypeOperationInput(operation, reader);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        extensionFacade.portTypeOperationInputElements(input, reader);
    }
}
 
Example #5
Source File: RuntimeWSDLParser.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private void parsePortTypeOperationFault(XMLStreamReader reader, EditableWSDLOperation operation) {
    String msg = ParserUtil.getMandatoryNonEmptyAttribute(reader, "message");
    QName msgName = ParserUtil.getQName(reader, msg);
    String name = ParserUtil.getMandatoryNonEmptyAttribute(reader, "name");
    EditableWSDLFault fault = new WSDLFaultImpl(reader,name, msgName, operation);
    operation.addFault(fault);
    extensionFacade.portTypeOperationFaultAttributes(fault, reader);
    extensionFacade.portTypeOperationFault(operation, reader);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        extensionFacade.portTypeOperationFaultElements(fault, reader);
    }
}
 
Example #6
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 #7
Source File: RuntimeWSDLParser.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private void parsePortTypeOperationFault(XMLStreamReader reader, EditableWSDLOperation operation) {
    String msg = ParserUtil.getMandatoryNonEmptyAttribute(reader, "message");
    QName msgName = ParserUtil.getQName(reader, msg);
    String name = ParserUtil.getMandatoryNonEmptyAttribute(reader, "name");
    EditableWSDLFault fault = new WSDLFaultImpl(reader,name, msgName, operation);
    operation.addFault(fault);
    extensionFacade.portTypeOperationFaultAttributes(fault, reader);
    extensionFacade.portTypeOperationFault(operation, reader);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        extensionFacade.portTypeOperationFaultElements(fault, reader);
    }
}
 
Example #8
Source File: RuntimeWSDLParser.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private void parsePortTypeOperationOutput(XMLStreamReader reader, EditableWSDLOperation operation) {
    String msg = ParserUtil.getAttribute(reader, "message");
    QName msgName = ParserUtil.getQName(reader, msg);
    String name = ParserUtil.getAttribute(reader, "name");
    EditableWSDLOutput output = new WSDLOutputImpl(reader,name, msgName, operation);
    operation.setOutput(output);
    extensionFacade.portTypeOperationOutputAttributes(output, reader);
    extensionFacade.portTypeOperationOutput(operation, reader);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        extensionFacade.portTypeOperationOutputElements(output, reader);
    }
}
 
Example #9
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 #10
Source File: RuntimeWSDLParser.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private void parsePortTypeOperationInput(XMLStreamReader reader, EditableWSDLOperation operation) {
    String msg = ParserUtil.getMandatoryNonEmptyAttribute(reader, "message");
    QName msgName = ParserUtil.getQName(reader, msg);
    String name = ParserUtil.getAttribute(reader, "name");
    EditableWSDLInput input = new WSDLInputImpl(reader, name, msgName, operation);
    operation.setInput(input);
    extensionFacade.portTypeOperationInputAttributes(input, reader);
    extensionFacade.portTypeOperationInput(operation, reader);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        extensionFacade.portTypeOperationInputElements(input, reader);
    }
}
 
Example #11
Source File: RuntimeWSDLParser.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private void parsePortTypeOperationFault(XMLStreamReader reader, EditableWSDLOperation operation) {
    String msg = ParserUtil.getMandatoryNonEmptyAttribute(reader, "message");
    QName msgName = ParserUtil.getQName(reader, msg);
    String name = ParserUtil.getMandatoryNonEmptyAttribute(reader, "name");
    EditableWSDLFault fault = new WSDLFaultImpl(reader,name, msgName, operation);
    operation.addFault(fault);
    extensionFacade.portTypeOperationFaultAttributes(fault, reader);
    extensionFacade.portTypeOperationFault(operation, reader);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        extensionFacade.portTypeOperationFaultElements(fault, reader);
    }
}
 
Example #12
Source File: RuntimeWSDLParser.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private void parsePortTypeOperationInput(XMLStreamReader reader, EditableWSDLOperation operation) {
    String msg = ParserUtil.getMandatoryNonEmptyAttribute(reader, "message");
    QName msgName = ParserUtil.getQName(reader, msg);
    String name = ParserUtil.getAttribute(reader, "name");
    EditableWSDLInput input = new WSDLInputImpl(reader, name, msgName, operation);
    operation.setInput(input);
    extensionFacade.portTypeOperationInputAttributes(input, reader);
    extensionFacade.portTypeOperationInput(operation, reader);
    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        extensionFacade.portTypeOperationInputElements(input, reader);
    }
}
 
Example #13
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 #14
Source File: WSDLParserExtension.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public boolean portTypeOperationOutput(EditableWSDLOperation op, XMLStreamReader reader) {
    return false;
}
 
Example #15
Source File: WSDLInputImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public WSDLInputImpl(XMLStreamReader xsr,String name, QName messageName, EditableWSDLOperation operation) {
    super(xsr);
    this.name = name;
    this.messageName = messageName;
    this.operation = operation;
}
 
Example #16
Source File: WSDLInputImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
@NotNull
public EditableWSDLOperation getOperation() {
    return operation;
}
 
Example #17
Source File: WSDLBoundOperationImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
public EditableWSDLOperation getOperation() {
    return operation;
}
 
Example #18
Source File: WSDLInputImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public WSDLInputImpl(XMLStreamReader xsr,String name, QName messageName, EditableWSDLOperation operation) {
    super(xsr);
    this.name = name;
    this.messageName = messageName;
    this.operation = operation;
}
 
Example #19
Source File: WSDLParserExtension.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public void portTypeOperationAttributes(EditableWSDLOperation operation, XMLStreamReader reader) {
}
 
Example #20
Source File: WSDLParserExtension.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public boolean portTypeOperationOutput(EditableWSDLOperation op, XMLStreamReader reader) {
    return false;
}
 
Example #21
Source File: WSDLFaultImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@NotNull
public EditableWSDLOperation getOperation() {
    return operation;
}
 
Example #22
Source File: WSDLInputImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@NotNull
public EditableWSDLOperation getOperation() {
    return operation;
}
 
Example #23
Source File: WSDLParserExtension.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public boolean portTypeOperationInput(EditableWSDLOperation op, XMLStreamReader reader) {
    return false;
}
 
Example #24
Source File: WSDLPortTypeImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public void freeze() {
    for(EditableWSDLOperation op : portTypeOperations.values()){
        op.freeze(owner);
    }
}
 
Example #25
Source File: WSDLParserExtension.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public boolean portTypeOperationInput(EditableWSDLOperation op, XMLStreamReader reader) {
    return false;
}
 
Example #26
Source File: WSDLPortTypeImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public EditableWSDLOperation get(String operationName) {
    return portTypeOperations.get(operationName);
}
 
Example #27
Source File: WSDLPortTypeImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public void freeze() {
    for(EditableWSDLOperation op : portTypeOperations.values()){
        op.freeze(owner);
    }
}
 
Example #28
Source File: WSDLFaultImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public WSDLFaultImpl(XMLStreamReader xsr, String name, QName messageName, EditableWSDLOperation operation) {
    super(xsr);
    this.name = name;
    this.messageName = messageName;
    this.operation = operation;
}
 
Example #29
Source File: WSDLInputImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public WSDLInputImpl(XMLStreamReader xsr,String name, QName messageName, EditableWSDLOperation operation) {
    super(xsr);
    this.name = name;
    this.messageName = messageName;
    this.operation = operation;
}
 
Example #30
Source File: WSDLParserExtension.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public boolean portTypeOperationFault(EditableWSDLOperation op, XMLStreamReader reader) {
    return false;
}