Package com.eviware.soapui.model.iface

Examples of com.eviware.soapui.model.iface.Operation


public class EndpointStrategyRequestFilter extends AbstractRequestFilter
{
  public void filterRequest( SubmitContext context, Request wsdlRequest )
  {
    Operation operation = wsdlRequest.getOperation();
    if( operation != null )
    {
      EndpointStrategy endpointStrategy = operation.getInterface().getProject().getEndpointStrategy();
      if( endpointStrategy != null )
        endpointStrategy.filterRequest( context, wsdlRequest );
    }
  }
View Full Code Here


          if( UISupport.confirm( "Update existing requests with new endpoint\n[" + endpoint + "]",
              "Update Definition" ) )
          {
            for( int c = 0; c < getOperationCount(); c++ )
            {
              Operation operation = getOperationAt( c );

              for( int ix = 0; ix < operation.getRequestCount(); ix++ )
              {
                operation.getRequestAt( ix ).setEndpoint( endpoint );
              }
            }
          }

          addEndpoint( endpoint );
View Full Code Here

    {
      TestStep step = testCase.getTestStepAt( c );
      if( step instanceof HttpRequestTestStep )
      {
        HttpRequestTestStep requestStep = ( HttpRequestTestStep )step;
        Operation operation = requestStep.getTestRequest().getOperation();
        if( operation != null )
        {
          String[] endpoints = operation.getInterface().getEndpoints();
          for( int i = 0; i < endpoints.length; i++ )
          {
            endpointSet.add( endpoints[i] );
          }
        }
View Full Code Here

* @author Ole.Matzura
*/

public class EndpointStrategyRequestFilter extends AbstractRequestFilter {
    public void filterRequest(SubmitContext context, Request wsdlRequest) {
        Operation operation = wsdlRequest.getOperation();
        if (operation != null) {
            EndpointStrategy endpointStrategy = operation.getInterface().getProject().getEndpointStrategy();
            if (endpointStrategy != null) {
                endpointStrategy.filterRequest(context, wsdlRequest);
            }
        }
    }
View Full Code Here

    }

    public String writeResponse(MockResult result, String responseContent) throws Exception {
        MimeMultipart mp = null;

        Operation operation = getMockOperation().getOperation();

        // variables needed for both multipart sections....
        boolean isXOP = isMtomEnabled() && isForceMtom();
        StringToStringMap contentIds = new StringToStringMap();
View Full Code Here

    protected AbstractMockOperation(BaseMockOperationConfigType config, MockService parent, String icon) {
        super(config, parent, icon);
    }

    protected void setupConfig(BaseMockOperationConfigType config) {
        Operation operation = getOperation();
        if (!config.isSetName()) {
            config.setName(operation == null ? "<missing operation>" : operation.getName());
        }

        if (!config.isSetDefaultResponse() && getMockResponseCount() > 0) {
            setDefaultResponse(getMockResponseAt(0).getName());
        }
View Full Code Here

        for (int c = 0; c < testCase.getTestStepCount(); c++) {
            TestStep step = testCase.getTestStepAt(c);
            if (step instanceof HttpRequestTestStep) {
                HttpRequestTestStep requestStep = (HttpRequestTestStep) step;
                Operation operation = requestStep.getTestRequest().getOperation();
                if (operation != null) {
                    String[] endpoints = operation.getInterface().getEndpoints();
                    for (int i = 0; i < endpoints.length; i++) {
                        endpointSet.add(endpoints[i]);
                    }
                }
                currentEndpointSet.add(requestStep.getTestRequest().getEndpoint());
View Full Code Here

        createIcons();
        addListeners();
    }

    private void addListeners() {
        Operation operation = getOperation();
        if (operation != null) {
            operation.getInterface().getProject().addProjectListener(projectListener);
            operation.getInterface().addInterfaceListener(interfaceListener);
            operation.getInterface().addPropertyChangeListener(WsdlInterface.NAME_PROPERTY, this);
        }
    }
View Full Code Here

                mockService.setPort(Integer.parseInt(dialog.getValue(Form.PORT)));
            } catch (NumberFormatException e1) {
            }

            for (int i = 0; i < iface.getOperationCount(); i++) {
                Operation operation = iface.getOperationAt(i);
                if (!operations.contains(operation.getName())) {
                    continue;
                }

                MockOperation mockOperation = mockService.addNewMockOperation(operation);
                if (mockOperation != null) {
View Full Code Here

                if (!list.contains(endpoint)) {
                    if (UISupport.confirm("Update existing requests with new endpoint\n[" + endpoint + "]",
                            "Update Definition")) {
                        for (int c = 0; c < getOperationCount(); c++) {
                            Operation operation = getOperationAt(c);

                            for (int ix = 0; ix < operation.getRequestCount(); ix++) {
                                operation.getRequestAt(ix).setEndpoint(endpoint);
                            }
                        }
                    }

                    addEndpoint(endpoint);
View Full Code Here

TOP

Related Classes of com.eviware.soapui.model.iface.Operation

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.