Module is.codion.framework.db.http
Package is.codion.framework.db.http
Interface HttpEntityConnection
- All Superinterfaces:
AutoCloseable
,EntityConnection
A factory for http based EntityConnection builder.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Builds a http based EntityConnectionNested classes/interfaces inherited from interface is.codion.framework.db.EntityConnection
EntityConnection.Copy, EntityConnection.Count, EntityConnection.Insert, EntityConnection.Select, EntityConnection.Update
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyValue<Integer>
The connect timeout in milliseconds.
Value type: Integer
Default value: 2000 msstatic final PropertyValue<String>
The host on which to locate the http server
Value type: String
Default value: localhoststatic final PropertyValue<Boolean>
Specifies whether json serialization should be used.
Value types: Boolean
Default value: truestatic final PropertyValue<Integer>
The port which the http client should use.
Value type: Integer
Default value: 8080static final PropertyValue<Boolean>
Specifies whether https should be used.
Value type: boolean
Default value: truestatic final PropertyValue<Integer>
The port which the https client should use.
Value type: Integer
Default value: 4443static final PropertyValue<Integer>
The socket timeout in milliseconds.
Value type: Integer
Default value: 2000 msFields inherited from interface is.codion.framework.db.EntityConnection
DEFAULT_QUERY_TIMEOUT_SECONDS
-
Method Summary
Static MethodsMethods inherited from interface is.codion.framework.db.EntityConnection
close, commitTransaction, connected, count, delete, delete, delete, dependencies, entities, execute, execute, execute, execute, insert, insert, insertSelect, insertSelect, isQueryCacheEnabled, report, rollbackTransaction, select, select, select, select, select, select, select, selectSingle, selectSingle, setQueryCacheEnabled, startTransaction, transactionOpen, update, update, update, updateSelect, updateSelect, user
-
Field Details
-
HOSTNAME
The host on which to locate the http server
Value type: String
Default value: localhost -
PORT
The port which the http client should use.
Value type: Integer
Default value: 8080 -
SECURE_PORT
The port which the https client should use.
Value type: Integer
Default value: 4443 -
SECURE
Specifies whether https should be used.
Value type: boolean
Default value: true -
JSON
Specifies whether json serialization should be used.
Value types: Boolean
Default value: true -
SOCKET_TIMEOUT
The socket timeout in milliseconds.
Value type: Integer
Default value: 2000 ms -
CONNECT_TIMEOUT
The connect timeout in milliseconds.
Value type: Integer
Default value: 2000 ms
-
-
Method Details
-
builder
- Returns:
- a new builder instance
-