Package org.hertsstack.httpclient
Interface HertsHttpClientBuilder
-
public interface HertsHttpClientBuilder
Herts http client builder interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HertsHttpClient
build()
Buildjava.util.List<java.lang.Class<?>>
getHertsRpcServices()
Get HertsRpcService of listjava.lang.String
getHost()
Get server hostint
getServerPort()
Get Server portboolean
isSecureConnection()
Get secure or notHertsHttpClientBuilder
port(int port)
Set port<T> HertsHttpClientBuilder
registerHertService(java.lang.Class<T> interfaceClass)
Herts implementation service Not implementation class.HertsHttpClientBuilder
secure(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
-
-