Module is.codion.framework.db.http
Package is.codion.framework.db.http
Interface HttpEntityConnectionProvider.Builder
- All Superinterfaces:
EntityConnectionProvider.Builder<HttpEntityConnectionProvider,
HttpEntityConnectionProvider.Builder>
- All Known Implementing Classes:
DefaultHttpEntityConnectionProviderBuilder
- Enclosing interface:
- HttpEntityConnectionProvider
public static interface HttpEntityConnectionProvider.Builder
extends EntityConnectionProvider.Builder<HttpEntityConnectionProvider,HttpEntityConnectionProvider.Builder>
Builds a
HttpEntityConnectionProvider
instance.-
Method Summary
Modifier and TypeMethodDescriptionconnectTimeout
(int connectTimeout) By default the http client uses a shared thread pool executor.https
(boolean https) json
(boolean json) port
(int port) securePort
(int securePort) socketTimeout
(int socketTimeout) Methods inherited from interface is.codion.framework.db.EntityConnectionProvider.Builder
build, clientId, clientTypeId, clientVersion, connectionType, domainType, onClose, user
-
Method Details
-
hostName
- Parameters:
hostName
- the server host name- Returns:
- this builder instance
-
port
- Parameters:
port
- the server port- Returns:
- this builder instance
-
securePort
- Parameters:
securePort
- the server https port- Returns:
- this builder instance
-
https
- Parameters:
https
- true if https should be enabled- Returns:
- this builder instance
-
json
- Parameters:
json
- true if json serialization should be used- Returns:
- this builder instance
-
socketTimeout
- Parameters:
socketTimeout
- the socket timeout- Returns:
- this builder instance
-
connectTimeout
- Parameters:
connectTimeout
- the connect timeout- Returns:
- this builder instance
-
executor
By default the http client uses a shared thread pool executor.- Parameters:
executor
- the http client executor to use- Returns:
- this builder instance
-