Package com.eviware.soapui.impl.wsdl.submit.transports.http

Examples of com.eviware.soapui.impl.wsdl.submit.transports.http.DocumentContent


            if (messageExchange != null && messageExchange.getOperation() != null) {
                defaultXmlDocument.setTypeSystem(messageExchange.getOperation().getInterface().getDefinitionContext()
                        .getInterfaceDefinition().getSchemaTypeSystem());
            }

            defaultXmlDocument.setDocumentContent(new DocumentContent(null, messageExchange == null ? null : messageExchange.getResponseContentAsXml()));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
View Full Code Here


        @Nonnull
        @Override
        public DocumentContent getDocumentContent(Format format) {
            JdbcResponse response = jdbcRequestTestStep.getJdbcRequest().getResponse();
            return new DocumentContent(response == null ? null : response.getContentType(), response == null ? null : response.getContentAsString());
        }
View Full Code Here

    }

    @Nonnull
    @Override
    public DocumentContent getDocumentContent(Format format) {
        return new DocumentContent("text/xml", xml);
    }
View Full Code Here

    @Override
    public void documentUpdated() {
        if (!updating) {
            updating = true;

            final DocumentContent rawDocumentContent = getDocument().getDocumentContent(EditorDocument.Format.RAW);
            final String contentType = rawDocumentContent.getContentType();
            if (rawDocumentContent.getContentAsString() == null) {
                editArea.setText("");
                editArea.setEnabled(false);
            } else if (seemsToBeJsonContentType(contentType) && readOnly) {
                editArea.setText("The content you are trying to view cannot be viewed as XML");
                editArea.setEnabled(false);
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.submit.transports.http.DocumentContent

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.