public interface JexConfig
Jex configuration.
-
Method Summary
Modifier and TypeMethodDescriptionReturn the access manager.accessManager(AccessManager accessManager) Set the AccessManager to use.Return the contextPath to use.contextPath(String contextPath) Set the contextPath.booleanhealth()Return true to include the health endpoint.health(boolean health) Set to true to include the health endpoint.host()Return the host to bind to.Set the host to bind to.booleanReturn true to ignore trailing slashes.ignoreTrailingSlashes(boolean ignoreTrailingSlashes) Set to true to ignore trailing slashes.Return the JsonService.jsonService(JsonService jsonService) Set the JsonService to use.Return the multipartConfig.multipartConfig(UploadConfig multipartConfig) Set the upload configuration.intReturn the multipartFileThreshold.multipartFileThreshold(int multipartFileThreshold) Set the multipartFileThreshold.intport()Return the port to use.port(int port) Set the port to use.booleanReturn true if static files should be pre compressed.preCompressStaticFiles(boolean preCompressStaticFiles) Set to true to pre compress static files.renderer(String extension, TemplateRender renderer) Register a template renderer explicitly.Return the template renderers registered by extension.booleanReturn true if virtual threads should be used.virtualThreads(boolean virtualThreads) Set to true to use virtual threads if supported.
-
Method Details
-
port
Set the port to use. Defaults to 7001. -
host
Set the host to bind to. -
contextPath
Set the contextPath. -
health
Set to true to include the health endpoint. Defaults to true. -
ignoreTrailingSlashes
Set to true to ignore trailing slashes. Defaults to true. -
preCompressStaticFiles
Set to true to pre compress static files. Defaults to false. -
jsonService
Set the JsonService to use. -
accessManager
Set the AccessManager to use. -
multipartConfig
Set the upload configuration. -
multipartFileThreshold
Set the multipartFileThreshold. -
renderer
Register a template renderer explicitly.- Parameters:
extension- The extension the renderer applies to.renderer- The template render to use for the given extension.
-
virtualThreads
Set to true to use virtual threads if supported. Defaults to false. -
virtualThreads
boolean virtualThreads()Return true if virtual threads should be used. -
port
int port()Return the port to use. -
host
String host()Return the host to bind to. -
contextPath
String contextPath()Return the contextPath to use. -
health
boolean health()Return true to include the health endpoint. -
ignoreTrailingSlashes
boolean ignoreTrailingSlashes()Return true to ignore trailing slashes. -
preCompressStaticFiles
boolean preCompressStaticFiles()Return true if static files should be pre compressed. -
jsonService
JsonService jsonService()Return the JsonService. -
accessManager
AccessManager accessManager()Return the access manager. -
multipartConfig
UploadConfig multipartConfig()Return the multipartConfig. -
multipartFileThreshold
int multipartFileThreshold()Return the multipartFileThreshold. -
renderers
Map<String,TemplateRender> renderers()Return the template renderers registered by extension.
-