Class DefaultServerConfiguration
java.lang.Object
com.levigo.jadice.web.server.config.DefaultServerConfiguration
- All Implemented Interfaces:
ServerConfiguration
- Direct Known Subclasses:
SpringPropertiesServerConfiguration
A default, "hard-coded" implementation of a class holding a bunch of properties used by the JWT
server.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.levigo.jadice.web.server.config.ServerConfiguration
ServerConfiguration.NetworkConfiguration, ServerConfiguration.TileCompressionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the timeout for document read subtasks.intReturns the maximum amount flow requests that can be in the queue of the executorintintintReturns the core pool size for general tasks which is the minimum number of workers to keep alive (and not allow to time out etc).intReturns the maximum pool size for general tasks.intSet the maximum size of the thread pool, that is used by jadice utils / jadice core inThreadPoolTaskServiceintGet the size of the thread pool, that is used by jadice utils / jadice core inThreadPoolTaskServicecom.levigo.jadice.format.pdf.settings.PDFStructureReaderSettings.PDFStructureReadStrategyReturns the configured Read-Strategy for PDF files.getSaveAnnotationHandler(String handlerID) Use AnnotationService insteadFor internal use onlyintintReturns the expiry time of tiles in the clients browser-cache in seconds.Returns theServerConfiguration.TileCompressionTypeused by theTileServletto write the PNG tilesintReturns the amount of how many rendering-threads a single client can utilizeintReturns the maximum amount Tile-requests that can be in the queue of pending requestsintReturns the maximum amount Tile-requests that can be in the queue of the executorintReturns the core pool size for tile rendering which is the minimum number of workers to keep alive (and not allow to time out etc).intReturns the maximum pool size for tile rendering.booleanReturns true if the Servlet-Filter that sets caching-headers to static resources is enabled or not (default: true)booleanReturns true if the Servlet-Filter that sets caching-headers to static resources is enabled or not (default: true)booleanReturns true if the Servlet-Filter that sets caching-headers to Tiles is enabled or not (default: true)booleanReturns whether server side tile caching is enabled or not.booleanbooleanReturns true, when the Tile-Security-Filter is enabled.booleanvoidsetCacheFilterEnabled(boolean cacheFilterEnabled) Enabled/disables the Servlet-Filter that sets caching-headers to static resourcesvoidsetClientConfiguration(ClientConfiguration clientConfiguration) replace the default configurationvoidClear the existing list and add all filters passed invoidsetDocumentReadSubTaskTimeout(long documentReadSubTaskTimeout) Sets the timeout for document read subtasks.voidsetFlowWorkerMaxQueueSizeActive(int flowWorkerMaxQueueSizeActive) Sets the maximum amount of flow requests that can be in the queue of the executorvoidsetFlowWorkerPoolCoreSize(int flowWorkerPoolCoreSize) Sets the core pool size for jadice flow workers which is the minimum number of workers to keep alive (and not allow to time out etc).voidsetFlowWorkerPoolMaxSize(int flowWorkerPoolMaxSize) Sets the maximum pool size for flow workers.voidsetGeneralPoolCoreSize(int generalPoolCoreSize) Sets the core pool size for general tasks which is the minimum number of workers to keep alive (and not allow to time out etc).voidsetGeneralPoolMaxSize(int generalPoolMaxSize) Sets the maximum pool size for general tasks.voidsetJadiceCoreMaxPoolSize(int jadiceCoreMaxPoolSize) Set the maximum size of the thread pool, that is used by jadice utils / jadice core inThreadPoolTaskServicevoidsetJadiceCorePoolSize(int jadiceCorePoolSize) Set the size of the thread pool, that is used by jadice utils / jadice core inThreadPoolTaskServicevoidsetMetricNames(MetricNamesConfiguration metricNames) voidsetNoCacheFilterEnabled(boolean noCacheFilterEnabled) Enabled/disables the Servlet-Filter that sets caching-headers to static resourcesvoidsetPageSegmentHandleMetricsFilters(List<PageSegmentHandleMetricsFilter> pageSegmentHandleMetricsFilters) Clear the existing list and add all filters passed invoidsetPdfStructureReadStrategy(com.levigo.jadice.format.pdf.settings.PDFStructureReaderSettings.PDFStructureReadStrategy pdfStructureReadStrategy) Sets the Read-Strategy for PDF files.voidClear the existing list and add all filters passed invoidsetSaveAnnotationHandlers(HashMap<String, SaveAnnotationsHandler> saveAnnotationsHandlers) Make your SaveAnnotationsHandler a SpringComponentso it will be automatically registeredvoidsetTextContentBunchSize(int bunchSize) If using thecom.levigo.jadice.web.client.config.ClientConfiguration'ssetIsTextContentStreamingmethod, you can set here how manyLineobjects you want to bundle before sending the bundle within one single message over the JWT connection frameworkvoidsetTileCacheFilterEnabled(boolean tileCacheFilterEnabled) Enabled/disables the Servlet-Filter that sets caching-headers to TilesvoidsetTileCachingEnabled(boolean tileCachingEnabled) This enables the server side caching of tiles, so that they do not need to be rendered every time.voidsetTileCachingHeaderExpiryTime(int tileCachingHeaderExpiryTime) Sets the expiry time of tiles in the clients browser-cache in seconds.voidsetTileCancellationEnabled(boolean tileCancellationEnabled) voidsetTileCompressionType(ServerConfiguration.TileCompressionType tileCompressionType) Sets theServerConfiguration.TileCompressionTypeused by theTileServletto write the PNG tilesvoidsetTileRendererMaxParallelRenderingPerClient(int tileRendererMaxParallelRenderingPerClient) Sets the number of how many rendering-threads a single client can utilize.voidsetTileRendererMaxPendingRequestsSize(int tileRendererMaxPendingRequestsSize) Sets the maximum amount Tile-requests that can be in the queue of the pending requestsvoidsetTileRendererMaxQueueSizeActive(int tileRendererMaxQueueSizeActive) Sets the maximum amount Tile-requests that can be in the queue of the executorvoidsetTileRendererPoolCoreSize(int tileRendererPoolCoreSize) Sets the core pool size for tile rendering which is the minimum number of workers to keep alive (and not allow to time out etc).voidsetTileRendererPoolMaxSize(int tileRendererPoolMaxSize) Sets the maximum pool size for tile rendering.voidsetTileSecurityFilterEnabled(boolean tileSecurityFilterEnabled) Enable or disable the Tile-Security-Filter.voidsetUseSessionSpecificDocumentKey(boolean useSessionSpecificDocumentKey) The PlainInvocationContext in the TileServlet uses the authentication-info of AuthenticationInfoManager if it is present.toString()
-
Constructor Details
-
DefaultServerConfiguration
public DefaultServerConfiguration()
-
-
Method Details
-
setMetricNames
- Specified by:
setMetricNamesin interfaceServerConfiguration- Parameters:
metricNames- set theMetricNamesConfigurationused to individually rename metrics generated by the jadice web toolkit
-
getMetricNames
- Specified by:
getMetricNamesin interfaceServerConfiguration- Returns:
- the
MetricNamesConfigurationused to individually rename metrics generated by the jadice web toolkit
-
isTileCachingEnabled
public boolean isTileCachingEnabled()Description copied from interface:ServerConfigurationReturns whether server side tile caching is enabled or not.- Specified by:
isTileCachingEnabledin interfaceServerConfiguration- Returns:
trueif the server side tile caching is enabled,falseif not
-
setTileCachingEnabled
public void setTileCachingEnabled(boolean tileCachingEnabled) Description copied from interface:ServerConfigurationThis enables the server side caching of tiles, so that they do not need to be rendered every time. It is highly recommended to enable it.- Specified by:
setTileCachingEnabledin interfaceServerConfiguration- Parameters:
tileCachingEnabled- True if tile caching should be enabled, false if not
-
getTileCompressionType
Description copied from interface:ServerConfigurationReturns theServerConfiguration.TileCompressionTypeused by theTileServletto write the PNG tiles- Specified by:
getTileCompressionTypein interfaceServerConfiguration- Returns:
- the TileCompressionType
-
setTileCompressionType
Description copied from interface:ServerConfigurationSets theServerConfiguration.TileCompressionTypeused by theTileServletto write the PNG tiles- Specified by:
setTileCompressionTypein interfaceServerConfiguration- Parameters:
tileCompressionType- the TileCompressionType
-
getGeneralPoolCoreSize
public int getGeneralPoolCoreSize()Description copied from interface:ServerConfigurationReturns the core pool size for general tasks which is the minimum number of workers to keep alive (and not allow to time out etc).- Specified by:
getGeneralPoolCoreSizein interfaceServerConfiguration
-
setGeneralPoolCoreSize
public void setGeneralPoolCoreSize(int generalPoolCoreSize) Description copied from interface:ServerConfigurationSets the core pool size for general tasks which is the minimum number of workers to keep alive (and not allow to time out etc). Must not be less than 0- Specified by:
setGeneralPoolCoreSizein interfaceServerConfiguration- Parameters:
generalPoolCoreSize-
-
getGeneralPoolMaxSize
public int getGeneralPoolMaxSize()Description copied from interface:ServerConfigurationReturns the maximum pool size for general tasks.- Specified by:
getGeneralPoolMaxSizein interfaceServerConfiguration
-
setGeneralPoolMaxSize
public void setGeneralPoolMaxSize(int generalPoolMaxSize) Description copied from interface:ServerConfigurationSets the maximum pool size for general tasks. Must be greater than 0- Specified by:
setGeneralPoolMaxSizein interfaceServerConfiguration- Parameters:
generalPoolMaxSize-
-
setJadiceCorePoolSize
public void setJadiceCorePoolSize(int jadiceCorePoolSize) Description copied from interface:ServerConfigurationSet the size of the thread pool, that is used by jadice utils / jadice core inThreadPoolTaskService- Specified by:
setJadiceCorePoolSizein interfaceServerConfiguration
-
getJadiceCorePoolSize
public int getJadiceCorePoolSize()Description copied from interface:ServerConfigurationGet the size of the thread pool, that is used by jadice utils / jadice core inThreadPoolTaskService- Specified by:
getJadiceCorePoolSizein interfaceServerConfiguration
-
setJadiceCoreMaxPoolSize
public void setJadiceCoreMaxPoolSize(int jadiceCoreMaxPoolSize) Description copied from interface:ServerConfigurationSet the maximum size of the thread pool, that is used by jadice utils / jadice core inThreadPoolTaskService- Specified by:
setJadiceCoreMaxPoolSizein interfaceServerConfiguration
-
getJadiceCoreMaxPoolSize
public int getJadiceCoreMaxPoolSize()Description copied from interface:ServerConfigurationSet the maximum size of the thread pool, that is used by jadice utils / jadice core inThreadPoolTaskService- Specified by:
getJadiceCoreMaxPoolSizein interfaceServerConfiguration
-
getTileRendererPoolMaxSize
public int getTileRendererPoolMaxSize()Description copied from interface:ServerConfigurationReturns the maximum pool size for tile rendering.- Specified by:
getTileRendererPoolMaxSizein interfaceServerConfiguration
-
setTileRendererPoolMaxSize
public void setTileRendererPoolMaxSize(int tileRendererPoolMaxSize) Description copied from interface:ServerConfigurationSets the maximum pool size for tile rendering. Must be greater than 0- Specified by:
setTileRendererPoolMaxSizein interfaceServerConfiguration- Parameters:
tileRendererPoolMaxSize-
-
getTileRendererPoolCoreSize
public int getTileRendererPoolCoreSize()Description copied from interface:ServerConfigurationReturns the core pool size for tile rendering which is the minimum number of workers to keep alive (and not allow to time out etc).- Specified by:
getTileRendererPoolCoreSizein interfaceServerConfiguration
-
setTileRendererPoolCoreSize
public void setTileRendererPoolCoreSize(int tileRendererPoolCoreSize) Description copied from interface:ServerConfigurationSets the core pool size for tile rendering which is the minimum number of workers to keep alive (and not allow to time out etc). Must not be less than 0- Specified by:
setTileRendererPoolCoreSizein interfaceServerConfiguration- Parameters:
tileRendererPoolCoreSize-
-
getTileRendererMaxParallelRenderingPerClient
public int getTileRendererMaxParallelRenderingPerClient()Description copied from interface:ServerConfigurationReturns the amount of how many rendering-threads a single client can utilize- Specified by:
getTileRendererMaxParallelRenderingPerClientin interfaceServerConfiguration- Returns:
- tileRendererMaxParallelRenderingPerClient
-
setTileRendererMaxParallelRenderingPerClient
public void setTileRendererMaxParallelRenderingPerClient(int tileRendererMaxParallelRenderingPerClient) Description copied from interface:ServerConfigurationSets the number of how many rendering-threads a single client can utilize. By default, the value is determined byServerConfiguration.getTileRendererPoolMaxSize(). If this value is set to more than 8, tileRendererMaxParallelRenderingPerClient will be the value minus 2, if it is less than 8, tileRendererMaxParallelRenderingPerClient will be the value minus 1. Set 0 if a client can utilize all rendering-threads.- Specified by:
setTileRendererMaxParallelRenderingPerClientin interfaceServerConfiguration- Parameters:
tileRendererMaxParallelRenderingPerClient- the amount of how many rendering-threads a single client can utilize
-
getNetworkConfiguration
- Specified by:
getNetworkConfigurationin interfaceServerConfiguration- Returns:
- the
ServerConfiguration.NetworkConfigurationused to initialize values of the network layer.
-
setClientConfiguration
Description copied from interface:ServerConfigurationreplace the default configuration- Specified by:
setClientConfigurationin interfaceServerConfiguration- Parameters:
clientConfiguration- theClientConfigurationused to expose configs for all clients by the server
-
getClientConfiguration
- Specified by:
getClientConfigurationin interfaceServerConfiguration- Returns:
- the
ClientConfigurationused to expose configs for all clients by the server
-
getExportConfiguration
- Specified by:
getExportConfigurationin interfaceServerConfiguration
-
toString
-
getTileRendererMaxQueueSizeActive
public int getTileRendererMaxQueueSizeActive()Description copied from interface:ServerConfigurationReturns the maximum amount Tile-requests that can be in the queue of the executor- Specified by:
getTileRendererMaxQueueSizeActivein interfaceServerConfiguration- Returns:
- the maximum amount Tile-requests that can be in the queue of the executor
-
setTileRendererMaxQueueSizeActive
public void setTileRendererMaxQueueSizeActive(int tileRendererMaxQueueSizeActive) Description copied from interface:ServerConfigurationSets the maximum amount Tile-requests that can be in the queue of the executor- Specified by:
setTileRendererMaxQueueSizeActivein interfaceServerConfiguration- Parameters:
tileRendererMaxQueueSizeActive- the maximum amount Tile-requests that can be in the queue of the executor
-
getTileRendererMaxPendingRequestsSize
public int getTileRendererMaxPendingRequestsSize()Description copied from interface:ServerConfigurationReturns the maximum amount Tile-requests that can be in the queue of pending requests- Specified by:
getTileRendererMaxPendingRequestsSizein interfaceServerConfiguration- Returns:
- the maximum amount Tile-requests that can be in the queue of pending requests
-
setTileRendererMaxPendingRequestsSize
public void setTileRendererMaxPendingRequestsSize(int tileRendererMaxPendingRequestsSize) Description copied from interface:ServerConfigurationSets the maximum amount Tile-requests that can be in the queue of the pending requests- Specified by:
setTileRendererMaxPendingRequestsSizein interfaceServerConfiguration- Parameters:
tileRendererMaxPendingRequestsSize- the maximum amount Tile-requests that can be in the queue of pending requests
-
getTileCachingHeaderExpiryTime
public int getTileCachingHeaderExpiryTime()Description copied from interface:ServerConfigurationReturns the expiry time of tiles in the clients browser-cache in seconds. A value of 0 means that the tile will not be cached.- Specified by:
getTileCachingHeaderExpiryTimein interfaceServerConfiguration- Returns:
- the time a tile will be kept in the clients browser-cache
- See Also:
-
setTileCachingHeaderExpiryTime
public void setTileCachingHeaderExpiryTime(int tileCachingHeaderExpiryTime) Description copied from interface:ServerConfigurationSets the expiry time of tiles in the clients browser-cache in seconds. To disable caching on the client browser set this value to 0 (this will also disable the Etag-Header).- Specified by:
setTileCachingHeaderExpiryTimein interfaceServerConfiguration- Parameters:
tileCachingHeaderExpiryTime- the time a tile will be kept in the clients browser-cache- See Also:
-
isCacheFilterEnabled
public boolean isCacheFilterEnabled()Description copied from interface:ServerConfigurationReturns true if the Servlet-Filter that sets caching-headers to static resources is enabled or not (default: true)- Specified by:
isCacheFilterEnabledin interfaceServerConfiguration- Returns:
- true if it is enabled, false otherwise
-
setCacheFilterEnabled
public void setCacheFilterEnabled(boolean cacheFilterEnabled) Description copied from interface:ServerConfigurationEnabled/disables the Servlet-Filter that sets caching-headers to static resources- Specified by:
setCacheFilterEnabledin interfaceServerConfiguration- Parameters:
cacheFilterEnabled- enable or disable the Servlet-Filter
-
isNoCacheFilterEnabled
public boolean isNoCacheFilterEnabled()Description copied from interface:ServerConfigurationReturns true if the Servlet-Filter that sets caching-headers to static resources is enabled or not (default: true)- Specified by:
isNoCacheFilterEnabledin interfaceServerConfiguration- Returns:
- true if it is enabled, false otherwise
-
setNoCacheFilterEnabled
public void setNoCacheFilterEnabled(boolean noCacheFilterEnabled) Description copied from interface:ServerConfigurationEnabled/disables the Servlet-Filter that sets caching-headers to static resources- Specified by:
setNoCacheFilterEnabledin interfaceServerConfiguration- Parameters:
noCacheFilterEnabled- enable or disable the Servlet-Filter
-
isTileCacheFilterEnabled
public boolean isTileCacheFilterEnabled()Description copied from interface:ServerConfigurationReturns true if the Servlet-Filter that sets caching-headers to Tiles is enabled or not (default: true)- Specified by:
isTileCacheFilterEnabledin interfaceServerConfiguration- Returns:
- true if it is enabled, false otherwise
-
setTileCacheFilterEnabled
public void setTileCacheFilterEnabled(boolean tileCacheFilterEnabled) Description copied from interface:ServerConfigurationEnabled/disables the Servlet-Filter that sets caching-headers to Tiles- Specified by:
setTileCacheFilterEnabledin interfaceServerConfiguration- Parameters:
tileCacheFilterEnabled- enable or disable the Servlet-Filter
-
getFlowWorkerPoolCoreSize
public int getFlowWorkerPoolCoreSize()- Specified by:
getFlowWorkerPoolCoreSizein interfaceServerConfiguration- Returns:
- The core pool size for jadice flow workers which is the minimum number of workers to keep alive (and not allow to time out etc).
-
setFlowWorkerPoolCoreSize
public void setFlowWorkerPoolCoreSize(int flowWorkerPoolCoreSize) Description copied from interface:ServerConfigurationSets the core pool size for jadice flow workers which is the minimum number of workers to keep alive (and not allow to time out etc). Must not be less than 0- Specified by:
setFlowWorkerPoolCoreSizein interfaceServerConfiguration- Parameters:
flowWorkerPoolCoreSize-
-
getFlowWorkerPoolMaxSize
public int getFlowWorkerPoolMaxSize()- Specified by:
getFlowWorkerPoolMaxSizein interfaceServerConfiguration- Returns:
- the maximum pool size for flow workers.
-
setFlowWorkerPoolMaxSize
public void setFlowWorkerPoolMaxSize(int flowWorkerPoolMaxSize) Description copied from interface:ServerConfigurationSets the maximum pool size for flow workers.- Specified by:
setFlowWorkerPoolMaxSizein interfaceServerConfiguration- Parameters:
flowWorkerPoolMaxSize- Must be greater than 0
-
getFlowWorkerMaxQueueSizeActive
public int getFlowWorkerMaxQueueSizeActive()Description copied from interface:ServerConfigurationReturns the maximum amount flow requests that can be in the queue of the executor- Specified by:
getFlowWorkerMaxQueueSizeActivein interfaceServerConfiguration- Returns:
- the maximum amount flow requests that can be in the queue of the executor
-
setFlowWorkerMaxQueueSizeActive
public void setFlowWorkerMaxQueueSizeActive(int flowWorkerMaxQueueSizeActive) Description copied from interface:ServerConfigurationSets the maximum amount of flow requests that can be in the queue of the executor- Specified by:
setFlowWorkerMaxQueueSizeActivein interfaceServerConfiguration- Parameters:
flowWorkerMaxQueueSizeActive- the maximum amount flow requests that can be in the queue of the executor
-
setRenderControlsMetricsFilters
Description copied from interface:ServerConfigurationClear the existing list and add all filters passed in- Specified by:
setRenderControlsMetricsFiltersin interfaceServerConfiguration- Parameters:
filters- thefiltersused for exposing finer grained render metrics
-
getRenderControlsMetricsFilters
- Specified by:
getRenderControlsMetricsFiltersin interfaceServerConfiguration- Returns:
- the
filtersused for exposing finer grained render metrics
-
setDocumentReadMetricsFilters
Description copied from interface:ServerConfigurationClear the existing list and add all filters passed in- Specified by:
setDocumentReadMetricsFiltersin interfaceServerConfiguration- Parameters:
filters- thefiltersused for exposing finer grained document read metrics
-
getDocumentReadMetricsFilters
- Specified by:
getDocumentReadMetricsFiltersin interfaceServerConfiguration- Returns:
- the
filtersused for exposing finer grained document read metrics
-
setPageSegmentHandleMetricsFilters
public void setPageSegmentHandleMetricsFilters(List<PageSegmentHandleMetricsFilter> pageSegmentHandleMetricsFilters) Description copied from interface:ServerConfigurationClear the existing list and add all filters passed in- Specified by:
setPageSegmentHandleMetricsFiltersin interfaceServerConfiguration- Parameters:
pageSegmentHandleMetricsFilters- thefiltersused for exposing finer grained render metrics, that are PageSegmentHandler based.
-
getPageSegmentHandleMetricsFilters
- Specified by:
getPageSegmentHandleMetricsFiltersin interfaceServerConfiguration- Returns:
- the
filtersused for exposing finer grained render metrics, that are PageSegmentHandler based.
-
isUseSessionSpecificDocumentKey
public boolean isUseSessionSpecificDocumentKey()- Specified by:
isUseSessionSpecificDocumentKeyin interfaceServerConfiguration- Returns:
-
setUseSessionSpecificDocumentKey
public void setUseSessionSpecificDocumentKey(boolean useSessionSpecificDocumentKey) Description copied from interface:ServerConfigurationThe PlainInvocationContext in the TileServlet uses the authentication-info of AuthenticationInfoManager if it is present. To receive the authentication-info the client-id is used. The client-id is generated by the client at creation time of the client (application loaded in browser).If this flag is true, instead of the browser-defined client-id the session-id is used (HttpSession).
- Specified by:
setUseSessionSpecificDocumentKeyin interfaceServerConfiguration- Parameters:
useSessionSpecificDocumentKey- set true, if you want to use the session-id for the client-id while retrieving the authentication-info in the id-generation step of the TileServlet
-
isTileCancellationEnabled
public boolean isTileCancellationEnabled()- Specified by:
isTileCancellationEnabledin interfaceServerConfiguration
-
setTileCancellationEnabled
public void setTileCancellationEnabled(boolean tileCancellationEnabled) - Specified by:
setTileCancellationEnabledin interfaceServerConfiguration
-
setTextContentBunchSize
public void setTextContentBunchSize(int bunchSize) Description copied from interface:ServerConfigurationIf using thecom.levigo.jadice.web.client.config.ClientConfiguration'ssetIsTextContentStreamingmethod, you can set here how manyLineobjects you want to bundle before sending the bundle within one single message over the JWT connection framework- Specified by:
setTextContentBunchSizein interfaceServerConfiguration- Parameters:
bunchSize- how manylinesto bundle
-
getTextContentBunchSize
public int getTextContentBunchSize()- Specified by:
getTextContentBunchSizein interfaceServerConfiguration- Returns:
- the value set in
ServerConfiguration.setTextContentBunchSize(int)
-
getPdfStructureReadStrategy
public com.levigo.jadice.format.pdf.settings.PDFStructureReaderSettings.PDFStructureReadStrategy getPdfStructureReadStrategy()Description copied from interface:ServerConfigurationReturns the configured Read-Strategy for PDF files.- Specified by:
getPdfStructureReadStrategyin interfaceServerConfiguration- Returns:
-
setPdfStructureReadStrategy
public void setPdfStructureReadStrategy(com.levigo.jadice.format.pdf.settings.PDFStructureReaderSettings.PDFStructureReadStrategy pdfStructureReadStrategy) Description copied from interface:ServerConfigurationSets the Read-Strategy for PDF files.- Specified by:
setPdfStructureReadStrategyin interfaceServerConfiguration- Parameters:
pdfStructureReadStrategy-
-
getDocumentReadSubTaskTimeout
public long getDocumentReadSubTaskTimeout()Description copied from interface:ServerConfigurationReturns the timeout for document read subtasks.- Specified by:
getDocumentReadSubTaskTimeoutin interfaceServerConfiguration- Returns:
- timeout in milliseconds.
-
setDocumentReadSubTaskTimeout
public void setDocumentReadSubTaskTimeout(long documentReadSubTaskTimeout) Description copied from interface:ServerConfigurationSets the timeout for document read subtasks.- Specified by:
setDocumentReadSubTaskTimeoutin interfaceServerConfiguration- Parameters:
documentReadSubTaskTimeout- timeout in milliseconds.
-
getSaveAnnotationHandler
Description copied from interface:ServerConfigurationUse AnnotationService instead- Specified by:
getSaveAnnotationHandlerin interfaceServerConfiguration
-
setSaveAnnotationHandlers
public void setSaveAnnotationHandlers(HashMap<String, SaveAnnotationsHandler> saveAnnotationsHandlers) Description copied from interface:ServerConfigurationMake your SaveAnnotationsHandler a SpringComponentso it will be automatically registered- Specified by:
setSaveAnnotationHandlersin interfaceServerConfiguration
-
getSaveAnnotationsHandlers
Description copied from interface:ServerConfigurationFor internal use only- Specified by:
getSaveAnnotationsHandlersin interfaceServerConfiguration
-
isTileSecurityFilterEnabled
public boolean isTileSecurityFilterEnabled()Description copied from interface:ServerConfigurationReturns true, when the Tile-Security-Filter is enabled. Caution: the Filter only works if an HTTP-session is present (e.g. by enablingConnectionConfiguration.setAlwaysCreateHttpSession(boolean)). The Tile-Security-Filter works by binding a client-id to an HTTP-session-id. With this feature you can not copy a tile-url and open it with a different client (which is generally a good idea).- Specified by:
isTileSecurityFilterEnabledin interfaceServerConfiguration- Returns:
- true if the filter is enabled
-
setTileSecurityFilterEnabled
public void setTileSecurityFilterEnabled(boolean tileSecurityFilterEnabled) Description copied from interface:ServerConfigurationEnable or disable the Tile-Security-Filter. Caution: the Filter only works if an HTTP-session is present (e.g. by enablingConnectionConfiguration.setAlwaysCreateHttpSession(boolean)). The Tile-Security-Filter works by binding a client-id to an HTTP-session-id. With this feature you can not copy a tile-url and open it with a different client (which is generally a good idea).- Specified by:
setTileSecurityFilterEnabledin interfaceServerConfiguration- Parameters:
tileSecurityFilterEnabled- enable or disable the filter
-