Package com.eviware.soapui.model.propertyexpansion

Examples of com.eviware.soapui.model.propertyexpansion.DefaultPropertyExpansionContext


    private void processRequestWss(IncomingWss requestWss) throws IOException {
        if (requestWss != null) {
            Document dom = XmlUtils.parseXml(requestContent);
            try {
                requestWssResult = requestWss.processIncoming(dom, new DefaultPropertyExpansionContext(project));
                if (requestWssResult != null && requestWssResult.size() > 0) {
                    StringWriter writer = new StringWriter();
                    XmlUtils.serialize(dom, writer);
                    requestContent = writer.toString();
                }
View Full Code Here


    private void processResponseWss(IncomingWss incomingResponseWss) throws IOException {
        if (incomingResponseWss != null) {
            Document dom = XmlUtils.parseXml(responseContent);
            try {
                responseWssResult = incomingResponseWss
                        .processIncoming(dom, new DefaultPropertyExpansionContext(project));
                if (responseWssResult != null && responseWssResult.size() > 0) {
                    StringWriter writer = new StringWriter();
                    XmlUtils.serialize(dom, writer);
                    responseContent = writer.toString();
                }
View Full Code Here

    private void processRequestWss(IncomingWss incomingRequestWss) throws IOException {

        if (incomingRequestWss != null) {
            Document dom = XmlUtils.parseXml(requestContent);
            try {
                requestWssResult = incomingRequestWss.processIncoming(dom, new DefaultPropertyExpansionContext(project));
                if (requestWssResult != null && requestWssResult.size() > 0) {
                    StringWriter writer = new StringWriter();
                    XmlUtils.serialize(dom, writer);
                    requestContent = writer.toString();
                }
View Full Code Here

                }
            }
        }

        if (properties == null) {
            properties = new DefaultPropertyExpansionContext(modelItem);
        }

        properties.put(name, value);
    }
View Full Code Here

    public static WsdlInterface[] importWsdl(WsdlProject project, String url, boolean createRequests,
                                             QName bindingName, WsdlLoader wsdlLoader) throws SoapUIException {
        WsdlInterface[] result;

        PropertyExpansionContext context = new DefaultPropertyExpansionContext(project.getModelItem());
        url = PropertyExpander.expandProperties(context, url);
        try {
            result = WsdlImporter.importWsdl(project, url, bindingName, wsdlLoader);
        } catch (InvalidDefinitionException e) {
            throw e;
View Full Code Here

    private DefaultPropertyExpansionContext properties;
    private final T modelItem;

    public AbstractSubmitContext(T modelItem) {
        this.modelItem = modelItem;
        this.properties = new DefaultPropertyExpansionContext(modelItem);

        setProperty(TestCaseRunContext.RUN_COUNT, 0);
        setProperty(TestCaseRunContext.THREAD_INDEX, 0);
    }
View Full Code Here

    public AbstractSubmitContext(T modelItem, StringToObjectMap properties) {
        this(modelItem);

        if (properties != null && properties.size() > 0) {
            if (this.properties == null) {
                this.properties = new DefaultPropertyExpansionContext(modelItem);
            }

            this.properties.putAll(properties);
        }
    }
View Full Code Here

        return properties == null ? null : properties.remove(name);
    }

    public void setProperty(String name, Object value) {
        if (properties == null) {
            properties = new DefaultPropertyExpansionContext(modelItem);
        }

        properties.put(name, value);
    }
View Full Code Here

            }
        }
    }

    public static String expandPath(String path, RestParamsPropertyHolder params, RestRequestInterface request) {
        DefaultPropertyExpansionContext context = new DefaultPropertyExpansionContext(request);
        for (int c = 0; c < params.getPropertyCount(); c++) {
            RestParamProperty param = params.getPropertyAt(c);

            String value = PropertyExpander.expandProperties(context, param.getValue());
            if (!StringUtils.hasContent(value) && !param.getRequired()) {
View Full Code Here

            cursor.dispose();

            cursor.dispose();

            WsaUtils wsaUtils = new WsaUtils(object.xmlText(), soapVersion, null, new DefaultPropertyExpansionContext(
                    makeConnectionRequest));
            String content = wsaUtils.addWSAddressingRequest(makeConnectionRequest);

            makeConnectionRequest.setRequestContent(content);
View Full Code Here

TOP

Related Classes of com.eviware.soapui.model.propertyexpansion.DefaultPropertyExpansionContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.