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

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


        public void propertyChange(PropertyChangeEvent evt) {
            if (evt.getPropertyName().equals(WsdlMockResponse.MOCKRESULT_PROPERTY)) {
                MockResult mockResult = mockResponse.getMockResult();
                MockRequest mockRequest = mockResult == null ? null : mockResult.getMockRequest();
                if (hasRequestEditor()) {
                    requestEditor.getDocument().setDocumentContent(new DocumentContent(mockRequest == null ? "" : mockRequest.getHttpRequest().getContentType(), mockRequest == null ? "" : mockRequest.getRequestContent()));
                }
            }
        }
View Full Code Here


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

            defaultXmlDocument.setDocumentContent(new DocumentContent(null, messageExchange == null ? null : messageExchange.getRequestContentAsXml()));
        } catch (Throwable e) {
            SoapUI.logError(e);
        }
    }
View Full Code Here

        }

        @Nonnull
        @Override
        public DocumentContent getDocumentContent(Format format) {
            return new DocumentContent(getRequest().getMediaType(), getRequest().getRequestContent());
        }
View Full Code Here

            fireContentChanged();
        }

        private DocumentContent extractContentFrom(HttpResponse response, Format format) {
            if (response == null) {
                return new DocumentContent(null, null);
            } else {
                String contentAsString;
                if (format == Format.XML) {
                    contentAsString = MediaTypeHandlerRegistry.getTypeHandler(response.getContentType()).createXmlRepresentation(response);
                } else {
                    contentAsString = response.getContentAsString();
                }
                return new DocumentContent(response.getContentType(), contentAsString);
            }
        }
View Full Code Here

        @Override
        @Nonnull
        public DocumentContent getDocumentContent(Format format) {
            AMFResponse response = amfRequestTestStep.getAMFRequest().getResponse();
            return new DocumentContent(response == null ? null : response.getContentType(), response == null ? null : response.getResponseContentXML());
        }
View Full Code Here

        @Override
        @Nonnull
        public DocumentContent getDocumentContent(Format format) {
            AMFRequest request = amfRequestTestStep.getAMFRequest();
            return new DocumentContent(null, request == null ? null : request.requestAsXML());
        }
View Full Code Here

    @Nonnull
    @Override
    public DocumentContent getDocumentContent(Format format) {
        Response response = request.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) {
        MockResult mockResult = mockResponse.getMockResult();
        final String requestContent = mockResult == null ? null : mockResult.getMockRequest().getRequestContent();
        return new DocumentContent(null, requestContent);
    }
View Full Code Here

    }

    @Nonnull
    @Override
    public DocumentContent getDocumentContent(Format format) {
        return new DocumentContent(null, request.getRequestContent());
    }
View Full Code Here

    }

    @Nonnull
    @Override
    public DocumentContent getDocumentContent(Format format) {
        return new DocumentContent(mockResponse.getContentType(), mockResponse.getResponseContent());
    }
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.