Module is.codion.framework.db.http
Package is.codion.framework.db.http
Interface HttpEntityConnection
- All Superinterfaces:
AutoCloseable,is.codion.framework.db.EntityConnection
public interface HttpEntityConnection
extends is.codion.framework.db.EntityConnection
A factory class for http based EntityConnection builder.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilds a http based EntityConnectionNested classes/interfaces inherited from interface is.codion.framework.db.EntityConnection
is.codion.framework.db.EntityConnection.Copy, is.codion.framework.db.EntityConnection.Count, is.codion.framework.db.EntityConnection.Insert, is.codion.framework.db.EntityConnection.Select, is.codion.framework.db.EntityConnection.Update -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final is.codion.common.property.PropertyValue<Integer>The connect timeout in milliseconds.
Value type: Integer
Default value: 2000 msstatic final is.codion.common.property.PropertyValue<String>The host on which to locate the http server
Value type: String
Default value: localhoststatic final is.codion.common.property.PropertyValue<Boolean>Specifies whether json serialization should be used.
Value types: Boolean
Default value: truestatic final is.codion.common.property.PropertyValue<Integer>The port which the http client should use.
Value type: Integer
Default value: 8080static final is.codion.common.property.PropertyValue<Boolean>Specifies whether https should be used.
Value type: boolean
Default value: truestatic final is.codion.common.property.PropertyValue<Integer>The port which the https client should use.
Value type: Integer
Default value: 4443static final is.codion.common.property.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
beginTransaction, 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, 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
-