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

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


    {
      return new MimeMessageResponse( request, httpMethod, requestContent, context );
    }
    else
    {
      return new SinglePartHttpResponse( request, httpMethod, requestContent, context );
    }
  }
View Full Code Here


                                 Header responseContentTypeHeader, String requestContent) {
        if (responseContentTypeHeader != null
                && responseContentTypeHeader.getValue().toUpperCase().startsWith("MULTIPART")) {
            return new MimeMessageResponse(request, httpMethod, requestContent, context);
        } else {
            return new SinglePartHttpResponse(request, httpMethod, requestContent, context);
        }
    }
View Full Code Here

        // TODO Some of these properties should be pulled up as they are common for may steps
        // FIXME The property names shouldn't be hardcoded
        if (event.getSource() == testRequest) {
            if (event.getNewValue() instanceof SinglePartHttpResponse) {
                SinglePartHttpResponse response = (SinglePartHttpResponse) event.getNewValue();
                firePropertyValueChanged("Response", String.valueOf(response), null);
                String XMLContent = response.getContentAsXml();
                // FIXME The value should not be hard coded
                firePropertyValueChanged("ResponseAsXml", null, XMLContent);
            }

            if (event.getPropertyName().equals("domain")) {
View Full Code Here

        // TODO Some of these properties should be pulled up as they are common for may steps
        // FIXME The property names shouldn't be hardcoded
        if (event.getSource() == testRequest) {
            if (event.getNewValue() instanceof SinglePartHttpResponse) {
                SinglePartHttpResponse response = (SinglePartHttpResponse) event.getNewValue();
                firePropertyValueChanged("Response", String.valueOf(response), null);
                String XMLCOntent = response.getContentAsXml();
                firePropertyValueChanged("ResponseAsXml", String.valueOf(XMLCOntent), null);
            }

            if (event.getPropertyName().equals("domain")) {
                delegatePropertyChange("Domain", event);
View Full Code Here

        return submitContext;
    }

    private SinglePartHttpResponse makeResponseFor(RestRequest restRequest, String path) throws Exception {
        ExtendedHttpMethod httpMethod = prepareHttpMethodWith(path);
        SinglePartHttpResponse response =
                new SinglePartHttpResponse(restRequest, httpMethod, null, mock(PropertyExpansionContext.class));
        response.setResponseContent("{ firstName: 'Kalle', secondName: 'Ek' }");
        return response;
    }
View Full Code Here

TOP

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

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.