Package org.hertsstack.httpclient
Interface HertsHttpClientBuilder
-
public interface HertsHttpClientBuilderHerts http client builder interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HertsHttpClientbuild()Buildjava.util.List<java.lang.Class<?>>getHertsRpcServices()Get HertsRpcService of listjava.lang.StringgetHost()Get server hostintgetServerPort()Get Server portbooleanisSecureConnection()Get secure or notHertsHttpClientBuilderport(int port)Set port<T> HertsHttpClientBuilderregisterHertService(java.lang.Class<T> interfaceClass)Herts implementation service Not implementation class.HertsHttpClientBuildersecure(boolean isSecureConnection)Secure or not
-
-
-
Method Detail
-
secure
HertsHttpClientBuilder secure(boolean isSecureConnection)
Secure or not- Parameters:
isSecureConnection- IsSecure- Returns:
- HertsHttpClientBuilder
-
port
HertsHttpClientBuilder port(int port)
Set port- Parameters:
port- Porr- Returns:
- HertsHttpClientBuilder
-
registerHertService
<T> HertsHttpClientBuilder registerHertService(java.lang.Class<T> interfaceClass)
Herts implementation service Not implementation class. Required @HertsHttp annotation- Type Parameters:
T- HertsService interface- Parameters:
interfaceClass- Interface class- Returns:
- HertsHttpClientBuilder
-
getHertsRpcServices
java.util.List<java.lang.Class<?>> getHertsRpcServices()
Get HertsRpcService of list- Returns:
- HertsRpcService
-
getHost
java.lang.String getHost()
Get server host- Returns:
- Host
-
getServerPort
int getServerPort()
Get Server port- Returns:
- Server port
-
isSecureConnection
boolean isSecureConnection()
Get secure or not- Returns:
- Result
-
build
HertsHttpClient build()
Build- Returns:
- HertsHttpClient
-
-