Module is.codion.framework.db.http
Package is.codion.framework.db.http
Class DefaultHttpEntityConnectionProviderBuilder
java.lang.Object
is.codion.framework.db.AbstractEntityConnectionProvider.AbstractBuilder<HttpEntityConnectionProvider,HttpEntityConnectionProvider.Builder>
is.codion.framework.db.http.DefaultHttpEntityConnectionProviderBuilder
- All Implemented Interfaces:
EntityConnectionProvider.Builder<HttpEntityConnectionProvider,
,HttpEntityConnectionProvider.Builder> HttpEntityConnectionProvider.Builder
public final class DefaultHttpEntityConnectionProviderBuilder
extends AbstractEntityConnectionProvider.AbstractBuilder<HttpEntityConnectionProvider,HttpEntityConnectionProvider.Builder>
implements HttpEntityConnectionProvider.Builder
Builds a
HttpEntityConnectionProvider
instance.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aEntityConnectionProvider
instance based on this builderconnectTimeout
(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 class is.codion.framework.db.AbstractEntityConnectionProvider.AbstractBuilder
clientId, clientTypeId, clientVersion, connectionType, domainType, onClose, user
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface is.codion.framework.db.EntityConnectionProvider.Builder
clientId, clientTypeId, clientVersion, connectionType, domainType, onClose, user
-
Constructor Details
-
DefaultHttpEntityConnectionProviderBuilder
public DefaultHttpEntityConnectionProviderBuilder()
-
-
Method Details
-
hostName
- Specified by:
hostName
in interfaceHttpEntityConnectionProvider.Builder
- Parameters:
hostName
- the server host name- Returns:
- this builder instance
-
port
- Specified by:
port
in interfaceHttpEntityConnectionProvider.Builder
- Parameters:
port
- the server port- Returns:
- this builder instance
-
securePort
- Specified by:
securePort
in interfaceHttpEntityConnectionProvider.Builder
- Parameters:
securePort
- the server https port- Returns:
- this builder instance
-
https
- Specified by:
https
in interfaceHttpEntityConnectionProvider.Builder
- Parameters:
https
- true if https should be enabled- Returns:
- this builder instance
-
json
- Specified by:
json
in interfaceHttpEntityConnectionProvider.Builder
- Parameters:
json
- true if json serialization should be used- Returns:
- this builder instance
-
socketTimeout
- Specified by:
socketTimeout
in interfaceHttpEntityConnectionProvider.Builder
- Parameters:
socketTimeout
- the socket timeout- Returns:
- this builder instance
-
connectTimeout
- Specified by:
connectTimeout
in interfaceHttpEntityConnectionProvider.Builder
- Parameters:
connectTimeout
- the connect timeout- Returns:
- this builder instance
-
executor
Description copied from interface:HttpEntityConnectionProvider.Builder
By default the http client uses a shared thread pool executor.- Specified by:
executor
in interfaceHttpEntityConnectionProvider.Builder
- Parameters:
executor
- the http client executor to use- Returns:
- this builder instance
-
build
Description copied from interface:EntityConnectionProvider.Builder
Builds aEntityConnectionProvider
instance based on this builder- Specified by:
build
in interfaceEntityConnectionProvider.Builder<HttpEntityConnectionProvider,
HttpEntityConnectionProvider.Builder> - Returns:
- a new
EntityConnectionProvider
instance
-