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) clientVersion(Version clientVersion) connectTimeout(int connectTimeout) Specifies a local domain instance, in which case its entity definitions are used directly instead of being fetched from the server.domain(DomainType domainType) Specifies the domain type, in which case the entity definitions are fetched from the server.https(boolean https) json(boolean json) port(int port) securePort(int securePort) socketTimeout(int socketTimeout)
-
Method Details
-
domain
Specifies the domain type, in which case the entity definitions are fetched from the server.- Parameters:
domainType- the domain model type- Returns:
- this builder instance
- See Also:
-
domain
Specifies a local domain instance, in which case its entity definitions are used directly instead of being fetched from the server.- Parameters:
domain- the domain model to base this connection on- Returns:
- this builder instance
- See Also:
-
hostname
- Parameters:
hostname- the http server hostname- 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
-
clientVersion
- Parameters:
clientVersion- the client version- Returns:
- this Builder instance
-
build
HttpEntityConnection build()- Returns:
- a http based
HttpEntityConnection
-