Examples of buildRequest()


Examples of org.jboss.as.cli.operation.impl.DefaultOperationRequestBuilder.buildRequest()

                builder.addNode("subsystem", "datasources");
                builder.addNode(dsType, jndiName.getValue(args, true));
                builder.setOperationName("write-attribute");
                builder.addProperty("name", arg.getPropertyName());
                builder.addProperty("value", value);
                request.add(builder.buildRequest());
            }
        }
    }

    private void initArguments() {
View Full Code Here

Examples of org.jboss.as.cli.operation.impl.DefaultOperationRequestBuilder.buildRequest()

                    builder.setOperationName("read-attribute");
                    builder.addProperty("name", attrName);

                    try {
                        ModelNode result = client.execute(builder.buildRequest());
                        if(!result.hasDefined("result"))
                            return Collections.emptyList();
                        return Collections.singletonList(result.get("result").asString());
                    } catch (Exception e) {
                        return Collections.emptyList();
View Full Code Here

Examples of org.jboss.as.cli.operation.impl.DefaultOperationRequestBuilder.buildRequest()

                    entriesNode.add(entry);
                }
            }
        }

        return builder.buildRequest();
    }
}
View Full Code Here

Examples of org.jboss.as.cli.operation.impl.DefaultOperationRequestBuilder.buildRequest()

            }
        } else if(Util.isDeployedAndEnabledInStandalone(name, client)) {
            builder = new DefaultOperationRequestBuilder();
            builder.setOperationName("undeploy");
            builder.addNode("deployment", name);
            steps.add(builder.buildRequest());
        }

        if (!keepContent) {
            builder = new DefaultOperationRequestBuilder();
            builder.setOperationName("remove");
View Full Code Here

Examples of org.jboss.as.cli.operation.impl.DefaultOperationRequestBuilder.buildRequest()

        if (!keepContent) {
            builder = new DefaultOperationRequestBuilder();
            builder.setOperationName("remove");
            builder.addNode("deployment", name);
            steps.add(builder.buildRequest());
        }
        return composite;
    }
}
View Full Code Here

Examples of org.jboss.as.cli.operation.impl.DefaultOperationRequestBuilder.buildRequest()

        DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder();
        builder.addNode("subsystem", "messaging");
        builder.addNode("hornetq-server", serverName);
        builder.addNode(resource, jndiName);
        builder.setOperationName("remove");
        return builder.buildRequest();
    }
}
View Full Code Here

Examples of org.jboss.soa.esb.services.soapui.SoapUIClientService.buildRequest()

        try {
            SoapUIInvoker soapUIInvoker = new SoapUIInvoker() {
                private SoapUIClientService service = new SoapUIClientService();

                public String buildRequest(String wsdl, String operation, String serviceName, Map params, Properties httpClientProps, String smooksResource, String soapNs) throws IOException, UnsupportedOperationException, SAXException {
                    return service.buildRequest(wsdl, operation, null, params, httpClientProps, smooksResource, soapNs);
                }

                public String buildResponse(String wsdl, String operation, String serviceName, Map params, Properties httpClientProps, String smooksResource, String soapNs) throws IOException, UnsupportedOperationException, SAXException {
                    return service.buildResponse(wsdl, operation, null, params, httpClientProps, smooksResource, soapNs) ;
                }
View Full Code Here

Examples of org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder.buildRequest()

        MockHttpServletRequestBuilder reqBuilder = post("/api/maps/foo")
            .contentType(MediaType.APPLICATION_JSON)
            .content(obj.toString());

        MockHttpServletRequest req = reqBuilder.buildRequest(new MockServletContext());
        try {
            new MapController(geoServer, new RecentObjectCache())
                .create("foo", new JSONObj().put("name", "map1"), req);
            fail();
        }
View Full Code Here

Examples of uk.org.ogsadai.client.toolkit.activity.RequestAndStatusHandler.buildRequest()

     
      Workflow workflow = (Workflow) workflowObject;
      RequestAndStatusHandler handler = workflow.getRequestAndStatusHandler();
      DocumentRequestBuilder builder = new DocumentRequestBuilder();
      try {
      handler.buildRequest(builder);
    } catch (ActivityIllegalStateException e) {
      LOG.error("Exception in converting the workflow to XML", e);
      e.printStackTrace();
    }
      String workflowXML = builder.getXML();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.