Class HttpHostFactoryBean
java.lang.Object
net.shibboleth.shared.spring.factory.AbstractFactoryBean<T>
net.shibboleth.shared.spring.factory.AbstractComponentAwareFactoryBean<org.apache.hc.core5.http.HttpHost>
net.shibboleth.shared.spring.httpclient.factory.HttpHostFactoryBean
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<org.apache.hc.core5.http.HttpHost>,InitializingBean
public class HttpHostFactoryBean
extends AbstractComponentAwareFactoryBean<org.apache.hc.core5.http.HttpHost>
Factory bean for
HttpHost.
Mainly for insulation from Apache client API.
- Since:
- 9.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe hostname.private IntegerThe port.private StringThe scheme.Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hc.core5.http.HttpHostCall the parent class to create the instance.Class<?>This abstract method declaration mirrors the method in the FactoryBean interface, for a consistent offering of abstract template methods.voidsetHostname(String what) Set the hostname.voidSet the port.voidSet the scheme.Methods inherited from class net.shibboleth.shared.spring.factory.AbstractComponentAwareFactoryBean
createInstance, destroyInstance, setThrowIfNullMethods inherited from class net.shibboleth.shared.spring.factory.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Field Details
-
scheme
The scheme. -
hostname
The hostname. -
port
The port.
-
-
Constructor Details
-
HttpHostFactoryBean
public HttpHostFactoryBean()
-
-
Method Details
-
getObjectType
This abstract method declaration mirrors the method in the FactoryBean interface, for a consistent offering of abstract template methods.- Specified by:
getObjectTypein interfaceFactoryBean<org.apache.hc.core5.http.HttpHost>- Specified by:
getObjectTypein classAbstractFactoryBean<org.apache.hc.core5.http.HttpHost>- See Also:
-
setScheme
Set the scheme.- Parameters:
what- value to set
-
setHostname
Set the hostname.- Parameters:
what- value to set
-
setPort
Set the port.- Parameters:
what- value to set
-
doCreateInstance
Call the parent class to create the instance.- Specified by:
doCreateInstancein classAbstractComponentAwareFactoryBean<org.apache.hc.core5.http.HttpHost>- Returns:
- the bean.
- Throws:
Exception- if needed.
-