Package org.springframework.xd.rest.client.impl

Examples of org.springframework.xd.rest.client.impl.SpringXDTemplate


            new UsernamePasswordCredentials(
                configuration.getTarget().getTargetCredentials().getUsername(),
                configuration.getTarget().getTargetCredentials().getPassword()));
        CloseableHttpClient httpClient = HttpClientBuilder.create().setDefaultCredentialsProvider(credentialsProvider).build();
        HttpComponentsClientHttpRequestFactory requestFactory = new HttpComponentsClientHttpRequestFactory(httpClient);
        this.xdShell.setSpringXDOperations(new SpringXDTemplate(requestFactory, configuration.getTarget().getTargetUri()));
      }
      else {
        this.xdShell.setSpringXDOperations(new SpringXDTemplate(configuration.getTarget().getTargetUri()));
      }
      configuration.getTarget().setTargetResultMessage(
          String.format("Successfully targeted %s", configuration.getTarget().getTargetUri()));
    }
    catch (Exception e) {
View Full Code Here


            .setSSLSocketFactory(new SSLConnectionSocketFactory(
                new SSLContextBuilder().loadTrustMaterial(null,
                    new TrustSelfSignedStrategy())
                    .build()))
            .build());
    SpringXDTemplate template = new SpringXDTemplate(requestFactory, new URI("https://localhost:" + adminPort));
    PagedResources<ModuleDefinitionResource> moduleDefinitions = template.moduleOperations().list(RESTModuleType.sink);
    assertThat(moduleDefinitions.getLinks().size(), greaterThan(0));
  }
View Full Code Here

   *
   * @return A new instance of SpringXDTemplate
   */
  private SpringXDTemplate createSpringXDTemplate() {
    try {
      return new SpringXDTemplate(adminServer.toURI());
    }
    catch (URISyntaxException uriException) {
      throw new IllegalStateException(uriException.getMessage(), uriException);
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.xd.rest.client.impl.SpringXDTemplate

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.