@Component
public class RestTemplateFactory
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean<org.springframework.web.client.RestTemplate>, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
RestTemplateFactory() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
org.springframework.web.client.RestTemplate |
getObject() |
java.lang.Class<?> |
getObjectType() |
java.lang.String |
getString(java.lang.String url) |
boolean |
isSingleton() |
public java.lang.String getString(java.lang.String url)
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public org.springframework.web.client.RestTemplate getObject() throws java.lang.Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<org.springframework.web.client.RestTemplate>
java.lang.Exception
public java.lang.Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<org.springframework.web.client.RestTemplate>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<org.springframework.web.client.RestTemplate>