Java Code Examples for org.springframework.web.client.support.RestGatewaySupport#getRestTemplate()
The following examples show how to use
org.springframework.web.client.support.RestGatewaySupport#getRestTemplate() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MockRestServiceServer.java From spring-analysis-note with MIT License | 2 votes |
/** * Return a builder for a {@code MockRestServiceServer} that should be used * to reply to the given {@code RestGatewaySupport}. * @since 4.3 */ public static MockRestServiceServerBuilder bindTo(RestGatewaySupport restGateway) { Assert.notNull(restGateway, "'gatewaySupport' must not be null"); return new DefaultBuilder(restGateway.getRestTemplate()); }
Example 2
Source File: MockRestServiceServer.java From java-technology-stack with MIT License | 2 votes |
/** * Return a builder for a {@code MockRestServiceServer} that should be used * to reply to the given {@code RestGatewaySupport}. * @since 4.3 */ public static MockRestServiceServerBuilder bindTo(RestGatewaySupport restGateway) { Assert.notNull(restGateway, "'gatewaySupport' must not be null"); return new DefaultBuilder(restGateway.getRestTemplate()); }