java.lang.Object
is.codion.framework.servlet.EntityService
- All Implemented Interfaces:
AuxiliaryServer
An
AuxiliaryServer implementation providing HTTP based entity services.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyValue<String> The https keystore to use on the classpath, this will be resolved to a temporary file and set as the codion.server.http.keyStore system property on server start Value type: String Default value: nullstatic final PropertyValue<Boolean> Specifies whether json based services should be enabled.static final PropertyValue<String> Specifies the password for the keystore used for securing http connections.static final PropertyValue<String> Specifies the keystore to use for securing http connections.static final PropertyValue<Integer> The port on which the http server is made available to clients.static final PropertyValue<Boolean> Specifies whether https should be used.static final PropertyValue<Integer> The port on which the http server is made available to clients.static final PropertyValue<Boolean> Specifies whether java serialization based services should be enabled.static final PropertyValue<Boolean> Specifies whether virtual threads should be used. -
Method Summary
-
Field Details
-
PORT
The port on which the http server is made available to clients.- Value type: Integer
- Default value: 8080
-
SECURE_PORT
The port on which the http server is made available to clients.- Value type: Integer
- Default value: 4443
-
SECURE
Specifies whether https should be used.- Value type: Boolean
- Default value: true
-
CLASSPATH_KEYSTORE
The https keystore to use on the classpath, this will be resolved to a temporary file and set as the codion.server.http.keyStore system property on server start- Value type: String
- Default value: null
-
KEYSTORE_PATH
Specifies the keystore to use for securing http connections.- Value type: String
- Default value: null
- See Also:
-
KEYSTORE_PASSWORD
Specifies the password for the keystore used for securing http connections.- Value type: String
- Default value: null
-
USE_VIRTUAL_THREADS
Specifies whether virtual threads should be used.- Value type: Boolean
- Default value: false
-
SERALIZATION
Specifies whether java serialization based services should be enabled.- Value type: Boolean
- Default value: false
-
JSON
Specifies whether json based services should be enabled.- Value type: Boolean
- Default value: true
-
-
Method Details
-
start
public void start()Description copied from interface:AuxiliaryServerStarts this server- Specified by:
startin interfaceAuxiliaryServer
-
stop
public void stop()Description copied from interface:AuxiliaryServerStops this server- Specified by:
stopin interfaceAuxiliaryServer
-
information
- Specified by:
informationin interfaceAuxiliaryServer- Returns:
- a String describing the server and its configuration, for logging purposes
-