Examples of RestService


Examples of com.eviware.soapui.impl.rest.RestService

        importWadl(project, "file:/" + path);
    }

    private void importWadl(WsdlProject project, String path) {
        RestService restService = (RestService) project.addNewInterface(((RestTestRequestStepInterface) item)
                .getRequestStepConfig().getService(), RestServiceFactory.REST_TYPE);
        try {
            new WadlImporter(restService).initFromWadl(path);
        } catch (Exception e) {
            UISupport.showErrorMessage(e);
View Full Code Here

Examples of com.mozilla.grouperfish.rest.api.RestService

  }

  public Grouperfish(final Module... modules) {
        SLF4JBridgeHandler.install();
      final Injector injector = Guice.createInjector(modules);
      final RestService rest = new JerseyGuiceRestService(injector, ResourceConfig.class);
      rest.start();
      log.info("Grouperfish started.");
        log.debug("Configured port: {}, default: {}",
                  System.getProperty(JerseyGuiceRestService.PROPERTY_PORT), DEFAULT_PORT);
  }
View Full Code Here

Examples of com.openshift.internal.client.RestService

      final String serverUrl, IHttpClient httpClient) throws OpenShiftException, IOException {
    Assert.notNull(clientId);
    Assert.notNull(serverUrl);
    Assert.notNull(httpClient);

    IRestService service = new RestService(serverUrl, clientId, new JsonMediaType(),
        IHttpClient.MEDIATYPE_APPLICATION_JSON, new OpenShiftJsonDTOFactory(), httpClient);
    return getConnection(service, username, password);
  }
View Full Code Here

Examples of com.openshift.internal.client.RestService

      final String serverUrl, IHttpClient httpClient) throws OpenShiftException, IOException {
    Assert.notNull(clientId);
    Assert.notNull(serverUrl);
    Assert.notNull(httpClient);

    IRestService service = new RestService(serverUrl, clientId, new JsonMediaType(),
        IHttpClient.MEDIATYPE_APPLICATION_JSON, new OpenShiftJsonDTOFactory(), httpClient);
    return getConnection(service, username, password);
  }
View Full Code Here

Examples of com.openshift.internal.client.RestService

      final String serverUrl, IHttpClient httpClient) throws OpenShiftException, IOException {
    Assert.notNull(clientId);
    Assert.notNull(serverUrl);
    Assert.notNull(httpClient);

    IRestService service = new RestService(serverUrl, clientId, new JsonMediaType(),
        IHttpClient.MEDIATYPE_APPLICATION_JSON, new OpenShiftJsonDTOFactory(), httpClient);
    return getConnection(service, username, password);
  }
View Full Code Here

Examples of com.openshift.internal.client.RestService

    Assert.notNull(serverUrl);

    try {
      final IHttpClient httpClient =
          new UrlConnectionHttpClientBuilder().setCredentials(login, password, authKey, authIV).client();
      final IRestService service = new RestService(serverUrl, clientId, httpClient);
      return getConnection(service, login, password);
    } catch (IOException e) {
      throw new OpenShiftException(e, "Failed to establish connection for user ''{0}}''", login);
    }
  }
View Full Code Here

Examples of com.openshift.internal.client.RestService

        return null;
      }
    }

    protected IRestService createRestService(IHttpClient httpClient) {
      return new RestService(serverUrl, clientId, new JsonMediaType(),
          IHttpClient.MEDIATYPE_APPLICATION_JSON, new OpenShiftJsonDTOFactory(), httpClient);
    }
View Full Code Here

Examples of com.openshift.internal.client.RestService

      final String token, final String serverUrl, IHttpClient httpClient) throws OpenShiftException, IOException {
    Assert.notNull(clientId);
    Assert.notNull(serverUrl);
    Assert.notNull(httpClient);

    IRestService service = new RestService(serverUrl, clientId, new JsonMediaType(),
        IHttpClient.MEDIATYPE_APPLICATION_JSON, new OpenShiftJsonDTOFactory(), httpClient);
    return getConnection(service, username, password, token);
  }
View Full Code Here

Examples of org.apache.openejb.server.rest.RESTService

    @Override
    public void afterApplicationCreated(WebAppInfo webApp) {
        // required for Pojo Web Services because when Assembler creates the application
        // the CoreContainerSystem does not contain the WebContext
        // see also the start method getContainerSystem().addWebDeployment(webContext);
        RESTService component = SystemInstance.get().getComponent(RESTService.class);
        if (component == null) return;
        component.afterApplicationCreated(webApp);
    }
View Full Code Here

Examples of org.apache.openejb.server.rest.RESTService

    @Override
    public void afterApplicationCreated(AppInfo appInfo, WebAppInfo webApp) {
        // required for Pojo Web Services because when Assembler creates the application
        // the CoreContainerSystem does not contain the WebContext
        // see also the start method getContainerSystem().addWebDeployment(webContext);
        RESTService component = SystemInstance.get().getComponent(RESTService.class);
        if (component == null) return;
        component.afterApplicationCreated(appInfo, webApp);
    }
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.