io.mosip.kernel.websub.api.config.publisher.WebSubPublisherClientConfig Maven / Gradle / Ivy
package io.mosip.kernel.websub.api.config.publisher;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpHeaders;
import org.springframework.web.client.RestTemplate;
import io.mosip.kernel.core.websub.spi.PublisherClient;
import io.mosip.kernel.websub.api.client.PublisherClientImpl;
/**
* This class consist all the general and common configurations for this api.
*
* @author Urvil Joshi
*
*/
@Configuration
public class WebSubPublisherClientConfig {
@Bean(name = "websubRestTemplate")
public RestTemplate restTemplate() {
return new RestTemplate();
}
@Bean
public PublisherClient publisherClient(){
return new PublisherClientImpl<>();
}
}