/** * 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()); }
/** * Return a builder for a {@code MockRestServiceServer} that should be used * to reply to the given {@code AsyncRestTemplate}. * @since 4.3 */ public static MockRestServiceServerBuilder bindTo(AsyncRestTemplate asyncRestTemplate) { return new DefaultBuilder(asyncRestTemplate); }
/** * 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()); }
/** * Return a builder for a {@code MockRestServiceServer} that should be used * to reply to the given {@code RestTemplate}. * @since 4.3 */ public static MockRestServiceServerBuilder bindTo(RestTemplate restTemplate) { return new DefaultBuilder(restTemplate); }
/** * 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()); }
/** * Return a builder for a {@code MockRestServiceServer} that should be used * to reply to the given {@code AsyncRestTemplate}. * @since 4.3 * @deprecated see deprecation notice on * {@link org.springframework.web.client.AsyncRestTemplate} itself */ @Deprecated public static MockRestServiceServerBuilder bindTo(org.springframework.web.client.AsyncRestTemplate asyncRestTemplate) { return new DefaultBuilder(asyncRestTemplate); }
/** * Return a builder for a {@code MockRestServiceServer} that should be used * to reply to the given {@code RestTemplate}. * @since 4.3 */ public static MockRestServiceServerBuilder bindTo(RestTemplate restTemplate) { return new DefaultBuilder(restTemplate); }
/** * Return a builder for a {@code MockRestServiceServer} that should be used * to reply to the given {@code AsyncRestTemplate}. * @since 4.3 * @deprecated see deprecation notice on * {@link org.springframework.web.client.AsyncRestTemplate} itself */ @Deprecated public static MockRestServiceServerBuilder bindTo(org.springframework.web.client.AsyncRestTemplate asyncRestTemplate) { return new DefaultBuilder(asyncRestTemplate); }
/** * Return a builder for a {@code MockRestServiceServer} that should be used * to reply to the given {@code RestTemplate}. * @since 4.3 */ public static MockRestServiceServerBuilder bindTo(RestTemplate restTemplate) { return new DefaultBuilder(restTemplate); }