Module is.codion.framework.db.http
Package is.codion.framework.db.http
Interface HttpEntityConnection.Builder
- Enclosing interface:
- HttpEntityConnection
public static interface HttpEntityConnection.Builder
Builds a http based EntityConnection
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clientType
(String clientType) connectTimeout
(int connectTimeout) domainType
(DomainType domainType) 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)
-
Method Details
-
domainType
- Parameters:
domainType
- the domain model type- Returns:
- this builder instance
-
hostName
- Parameters:
hostName
- the http server host name- Returns:
- this builder instance
-
port
- Parameters:
port
- the http server port- Returns:
- this builder instance
-
securePort
- Parameters:
securePort
- the https server port- Returns:
- this builder instance
-
https
- Parameters:
https
- true if https should be used- 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
-
user
- Parameters:
user
- the user- Returns:
- this builder instance
-
clientType
- Parameters:
clientType
- the client type- Returns:
- this builder instance
-
clientId
- Parameters:
clientId
- the client id- 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
-
build
EntityConnection build()- Returns:
- a http based EntityConnection
-