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 TypeMethodDescriptionlong
Returns the timeout for document read subtasks.int
Returns the maximum amount flow requests that can be in the queue of the executorint
int
int
Returns the core pool size for general tasks which is the minimum number of workers to keep alive (and not allow to time out etc).int
Returns the maximum pool size for general tasks.int
Set the maximum size of the thread pool, that is used by jadice utils / jadice core inThreadPoolTaskService
int
Get the size of the thread pool, that is used by jadice utils / jadice core inThreadPoolTaskService
com.levigo.jadice.format.pdf.settings.PDFStructureReaderSettings.PDFStructureReadStrategy
Returns the configured Read-Strategy for PDF files.getSaveAnnotationHandler
(String handlerID) int
int
Returns the expiry time of tiles in the clients browser-cache in seconds.Returns theServerConfiguration.TileCompressionType
used by theTileServlet
to write the PNG tilesint
Returns the amount of how many rendering-threads a single client can utilizeint
Returns the maximum amount Tile-requests that can be in the queue of pending requestsint
Returns the maximum amount Tile-requests that can be in the queue of the executorint
Returns the core pool size for tile rendering which is the minimum number of workers to keep alive (and not allow to time out etc).int
Returns the maximum pool size for tile rendering.boolean
Returns true if the Servlet-Filter that sets caching-headers to static resources is enabled or not (default: true)boolean
Returns true if the Servlet-Filter that sets caching-headers to static resources is enabled or not (default: true)boolean
Returns true if the Servlet-Filter that sets caching-headers to Tiles is enabled or not (default: true)boolean
Returns whether server side tile caching is enabled or not.boolean
boolean
Returns true, when the Tile-Security-Filter is enabled.boolean
void
setCacheFilterEnabled
(boolean cacheFilterEnabled) Enabled/disables the Servlet-Filter that sets caching-headers to static resourcesvoid
setClientConfiguration
(ClientConfiguration clientConfiguration) replace the default configurationvoid
Clear the existing list and add all filters passed invoid
setDocumentReadSubTaskTimeout
(long documentReadSubTaskTimeout) Sets the timeout for document read subtasks.void
setFlowWorkerMaxQueueSizeActive
(int flowWorkerMaxQueueSizeActive) Sets the maximum amount of flow requests that can be in the queue of the executorvoid
setFlowWorkerPoolCoreSize
(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).void
setFlowWorkerPoolMaxSize
(int flowWorkerPoolMaxSize) Sets the maximum pool size for flow workers.void
setGeneralPoolCoreSize
(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).void
setGeneralPoolMaxSize
(int generalPoolMaxSize) Sets the maximum pool size for general tasks.void
setJadiceCoreMaxPoolSize
(int jadiceCoreMaxPoolSize) Set the maximum size of the thread pool, that is used by jadice utils / jadice core inThreadPoolTaskService
void
setJadiceCorePoolSize
(int jadiceCorePoolSize) Set the size of the thread pool, that is used by jadice utils / jadice core inThreadPoolTaskService
void
setMetricNames
(MetricNamesConfiguration metricNames) void
setNoCacheFilterEnabled
(boolean noCacheFilterEnabled) Enabled/disables the Servlet-Filter that sets caching-headers to static resourcesvoid
setPageSegmentHandleMetricsFilters
(List<PageSegmentHandleMetricsFilter> pageSegmentHandleMetricsFilters) Clear the existing list and add all filters passed invoid
setPdfStructureReadStrategy
(com.levigo.jadice.format.pdf.settings.PDFStructureReaderSettings.PDFStructureReadStrategy pdfStructureReadStrategy) Sets the Read-Strategy for PDF files.void
Clear the existing list and add all filters passed invoid
setSaveAnnotationHandlers
(HashMap<String, SaveAnnotationsHandler> saveAnnotationsHandlers) void
setTextContentBunchSize
(int bunchSize) If using thecom.levigo.jadice.web.client.config.ClientConfiguration's
setIsTextContentStreaming
method, you can set here how manyLine
objects you want to bundle before sending the bundle within one single message over the JWT connection frameworkvoid
setTileCacheFilterEnabled
(boolean tileCacheFilterEnabled) Enabled/disables the Servlet-Filter that sets caching-headers to Tilesvoid
setTileCachingEnabled
(boolean tileCachingEnabled) This enables the server side caching of tiles, so that they do not need to be rendered every time.void
setTileCachingHeaderExpiryTime
(int tileCachingHeaderExpiryTime) Sets the expiry time of tiles in the clients browser-cache in seconds.void
setTileCancellationEnabled
(boolean tileCancellationEnabled) void
setTileCompressionType
(ServerConfiguration.TileCompressionType tileCompressionType) Sets theServerConfiguration.TileCompressionType
used by theTileServlet
to write the PNG tilesvoid
setTileRendererMaxParallelRenderingPerClient
(int tileRendererMaxParallelRenderingPerClient) Sets the number of how many rendering-threads a single client can utilize.void
setTileRendererMaxPendingRequestsSize
(int tileRendererMaxPendingRequestsSize) Sets the maximum amount Tile-requests that can be in the queue of the pending requestsvoid
setTileRendererMaxQueueSizeActive
(int tileRendererMaxQueueSizeActive) Sets the maximum amount Tile-requests that can be in the queue of the executorvoid
setTileRendererPoolCoreSize
(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).void
setTileRendererPoolMaxSize
(int tileRendererPoolMaxSize) Sets the maximum pool size for tile rendering.void
setTileSecurityFilterEnabled
(boolean tileSecurityFilterEnabled) Enable or disable the Tile-Security-Filter.void
setUseSessionSpecificDocumentKey
(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:
setMetricNames
in interfaceServerConfiguration
- Parameters:
metricNames
- set theMetricNamesConfiguration
used to individually rename metrics generated by the jadice web toolkit
-
getMetricNames
- Specified by:
getMetricNames
in interfaceServerConfiguration
- Returns:
- the
MetricNamesConfiguration
used to individually rename metrics generated by the jadice web toolkit
-
isTileCachingEnabled
public boolean isTileCachingEnabled()Description copied from interface:ServerConfiguration
Returns whether server side tile caching is enabled or not.- Specified by:
isTileCachingEnabled
in interfaceServerConfiguration
- Returns:
true
if the server side tile caching is enabled,false
if not
-
setTileCachingEnabled
public void setTileCachingEnabled(boolean tileCachingEnabled) Description copied from interface:ServerConfiguration
This 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:
setTileCachingEnabled
in interfaceServerConfiguration
- Parameters:
tileCachingEnabled
- True if tile caching should be enabled, false if not
-
getTileCompressionType
Description copied from interface:ServerConfiguration
Returns theServerConfiguration.TileCompressionType
used by theTileServlet
to write the PNG tiles- Specified by:
getTileCompressionType
in interfaceServerConfiguration
- Returns:
- the TileCompressionType
-
setTileCompressionType
Description copied from interface:ServerConfiguration
Sets theServerConfiguration.TileCompressionType
used by theTileServlet
to write the PNG tiles- Specified by:
setTileCompressionType
in interfaceServerConfiguration
- Parameters:
tileCompressionType
- the TileCompressionType
-
getGeneralPoolCoreSize
public int getGeneralPoolCoreSize()Description copied from interface:ServerConfiguration
Returns 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:
getGeneralPoolCoreSize
in interfaceServerConfiguration
-
setGeneralPoolCoreSize
public void setGeneralPoolCoreSize(int generalPoolCoreSize) Description copied from interface:ServerConfiguration
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). Must not be less than 0- Specified by:
setGeneralPoolCoreSize
in interfaceServerConfiguration
- Parameters:
generalPoolCoreSize
-
-
getGeneralPoolMaxSize
public int getGeneralPoolMaxSize()Description copied from interface:ServerConfiguration
Returns the maximum pool size for general tasks.- Specified by:
getGeneralPoolMaxSize
in interfaceServerConfiguration
-
setGeneralPoolMaxSize
public void setGeneralPoolMaxSize(int generalPoolMaxSize) Description copied from interface:ServerConfiguration
Sets the maximum pool size for general tasks. Must be greater than 0- Specified by:
setGeneralPoolMaxSize
in interfaceServerConfiguration
- Parameters:
generalPoolMaxSize
-
-
setJadiceCorePoolSize
public void setJadiceCorePoolSize(int jadiceCorePoolSize) Description copied from interface:ServerConfiguration
Set the size of the thread pool, that is used by jadice utils / jadice core inThreadPoolTaskService
- Specified by:
setJadiceCorePoolSize
in interfaceServerConfiguration
-
getJadiceCorePoolSize
public int getJadiceCorePoolSize()Description copied from interface:ServerConfiguration
Get the size of the thread pool, that is used by jadice utils / jadice core inThreadPoolTaskService
- Specified by:
getJadiceCorePoolSize
in interfaceServerConfiguration
-
setJadiceCoreMaxPoolSize
public void setJadiceCoreMaxPoolSize(int jadiceCoreMaxPoolSize) Description copied from interface:ServerConfiguration
Set the maximum size of the thread pool, that is used by jadice utils / jadice core inThreadPoolTaskService
- Specified by:
setJadiceCoreMaxPoolSize
in interfaceServerConfiguration
-
getJadiceCoreMaxPoolSize
public int getJadiceCoreMaxPoolSize()Description copied from interface:ServerConfiguration
Set the maximum size of the thread pool, that is used by jadice utils / jadice core inThreadPoolTaskService
- Specified by:
getJadiceCoreMaxPoolSize
in interfaceServerConfiguration
-
getTileRendererPoolMaxSize
public int getTileRendererPoolMaxSize()Description copied from interface:ServerConfiguration
Returns the maximum pool size for tile rendering.- Specified by:
getTileRendererPoolMaxSize
in interfaceServerConfiguration
-
setTileRendererPoolMaxSize
public void setTileRendererPoolMaxSize(int tileRendererPoolMaxSize) Description copied from interface:ServerConfiguration
Sets the maximum pool size for tile rendering. Must be greater than 0- Specified by:
setTileRendererPoolMaxSize
in interfaceServerConfiguration
- Parameters:
tileRendererPoolMaxSize
-
-
getTileRendererPoolCoreSize
public int getTileRendererPoolCoreSize()Description copied from interface:ServerConfiguration
Returns 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:
getTileRendererPoolCoreSize
in interfaceServerConfiguration
-
setTileRendererPoolCoreSize
public void setTileRendererPoolCoreSize(int tileRendererPoolCoreSize) Description copied from interface:ServerConfiguration
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). Must not be less than 0- Specified by:
setTileRendererPoolCoreSize
in interfaceServerConfiguration
- Parameters:
tileRendererPoolCoreSize
-
-
getTileRendererMaxParallelRenderingPerClient
public int getTileRendererMaxParallelRenderingPerClient()Description copied from interface:ServerConfiguration
Returns the amount of how many rendering-threads a single client can utilize- Specified by:
getTileRendererMaxParallelRenderingPerClient
in interfaceServerConfiguration
- Returns:
- tileRendererMaxParallelRenderingPerClient
-
setTileRendererMaxParallelRenderingPerClient
public void setTileRendererMaxParallelRenderingPerClient(int tileRendererMaxParallelRenderingPerClient) Description copied from interface:ServerConfiguration
Sets 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:
setTileRendererMaxParallelRenderingPerClient
in interfaceServerConfiguration
- Parameters:
tileRendererMaxParallelRenderingPerClient
- the amount of how many rendering-threads a single client can utilize
-
getNetworkConfiguration
- Specified by:
getNetworkConfiguration
in interfaceServerConfiguration
- Returns:
- the
ServerConfiguration.NetworkConfiguration
used to initialize values of the network layer.
-
setClientConfiguration
Description copied from interface:ServerConfiguration
replace the default configuration- Specified by:
setClientConfiguration
in interfaceServerConfiguration
- Parameters:
clientConfiguration
- theClientConfiguration
used to expose configs for all clients by the server
-
getClientConfiguration
- Specified by:
getClientConfiguration
in interfaceServerConfiguration
- Returns:
- the
ClientConfiguration
used to expose configs for all clients by the server
-
toString
-
getTileRendererMaxQueueSizeActive
public int getTileRendererMaxQueueSizeActive()Description copied from interface:ServerConfiguration
Returns the maximum amount Tile-requests that can be in the queue of the executor- Specified by:
getTileRendererMaxQueueSizeActive
in 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:ServerConfiguration
Sets the maximum amount Tile-requests that can be in the queue of the executor- Specified by:
setTileRendererMaxQueueSizeActive
in 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:ServerConfiguration
Returns the maximum amount Tile-requests that can be in the queue of pending requests- Specified by:
getTileRendererMaxPendingRequestsSize
in 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:ServerConfiguration
Sets the maximum amount Tile-requests that can be in the queue of the pending requests- Specified by:
setTileRendererMaxPendingRequestsSize
in 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:ServerConfiguration
Returns 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:
getTileCachingHeaderExpiryTime
in 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:ServerConfiguration
Sets 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:
setTileCachingHeaderExpiryTime
in 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:ServerConfiguration
Returns true if the Servlet-Filter that sets caching-headers to static resources is enabled or not (default: true)- Specified by:
isCacheFilterEnabled
in interfaceServerConfiguration
- Returns:
- true if it is enabled, false otherwise
-
setCacheFilterEnabled
public void setCacheFilterEnabled(boolean cacheFilterEnabled) Description copied from interface:ServerConfiguration
Enabled/disables the Servlet-Filter that sets caching-headers to static resources- Specified by:
setCacheFilterEnabled
in interfaceServerConfiguration
- Parameters:
cacheFilterEnabled
- enable or disable the Servlet-Filter
-
isNoCacheFilterEnabled
public boolean isNoCacheFilterEnabled()Description copied from interface:ServerConfiguration
Returns true if the Servlet-Filter that sets caching-headers to static resources is enabled or not (default: true)- Specified by:
isNoCacheFilterEnabled
in interfaceServerConfiguration
- Returns:
- true if it is enabled, false otherwise
-
setNoCacheFilterEnabled
public void setNoCacheFilterEnabled(boolean noCacheFilterEnabled) Description copied from interface:ServerConfiguration
Enabled/disables the Servlet-Filter that sets caching-headers to static resources- Specified by:
setNoCacheFilterEnabled
in interfaceServerConfiguration
- Parameters:
noCacheFilterEnabled
- enable or disable the Servlet-Filter
-
isTileCacheFilterEnabled
public boolean isTileCacheFilterEnabled()Description copied from interface:ServerConfiguration
Returns true if the Servlet-Filter that sets caching-headers to Tiles is enabled or not (default: true)- Specified by:
isTileCacheFilterEnabled
in interfaceServerConfiguration
- Returns:
- true if it is enabled, false otherwise
-
setTileCacheFilterEnabled
public void setTileCacheFilterEnabled(boolean tileCacheFilterEnabled) Description copied from interface:ServerConfiguration
Enabled/disables the Servlet-Filter that sets caching-headers to Tiles- Specified by:
setTileCacheFilterEnabled
in interfaceServerConfiguration
- Parameters:
tileCacheFilterEnabled
- enable or disable the Servlet-Filter
-
getFlowWorkerPoolCoreSize
public int getFlowWorkerPoolCoreSize()- Specified by:
getFlowWorkerPoolCoreSize
in 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:ServerConfiguration
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). Must not be less than 0- Specified by:
setFlowWorkerPoolCoreSize
in interfaceServerConfiguration
- Parameters:
flowWorkerPoolCoreSize
-
-
getFlowWorkerPoolMaxSize
public int getFlowWorkerPoolMaxSize()- Specified by:
getFlowWorkerPoolMaxSize
in interfaceServerConfiguration
- Returns:
- the maximum pool size for flow workers.
-
setFlowWorkerPoolMaxSize
public void setFlowWorkerPoolMaxSize(int flowWorkerPoolMaxSize) Description copied from interface:ServerConfiguration
Sets the maximum pool size for flow workers.- Specified by:
setFlowWorkerPoolMaxSize
in interfaceServerConfiguration
- Parameters:
flowWorkerPoolMaxSize
- Must be greater than 0
-
getFlowWorkerMaxQueueSizeActive
public int getFlowWorkerMaxQueueSizeActive()Description copied from interface:ServerConfiguration
Returns the maximum amount flow requests that can be in the queue of the executor- Specified by:
getFlowWorkerMaxQueueSizeActive
in 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:ServerConfiguration
Sets the maximum amount of flow requests that can be in the queue of the executor- Specified by:
setFlowWorkerMaxQueueSizeActive
in interfaceServerConfiguration
- Parameters:
flowWorkerMaxQueueSizeActive
- the maximum amount flow requests that can be in the queue of the executor
-
setRenderControlsMetricsFilters
Description copied from interface:ServerConfiguration
Clear the existing list and add all filters passed in- Specified by:
setRenderControlsMetricsFilters
in interfaceServerConfiguration
- Parameters:
filters
- thefilters
used for exposing finer grained render metrics
-
getRenderControlsMetricsFilters
- Specified by:
getRenderControlsMetricsFilters
in interfaceServerConfiguration
- Returns:
- the
filters
used for exposing finer grained render metrics
-
setDocumentReadMetricsFilters
Description copied from interface:ServerConfiguration
Clear the existing list and add all filters passed in- Specified by:
setDocumentReadMetricsFilters
in interfaceServerConfiguration
- Parameters:
filters
- thefilters
used for exposing finer grained document read metrics
-
getDocumentReadMetricsFilters
- Specified by:
getDocumentReadMetricsFilters
in interfaceServerConfiguration
- Returns:
- the
filters
used for exposing finer grained document read metrics
-
setPageSegmentHandleMetricsFilters
public void setPageSegmentHandleMetricsFilters(List<PageSegmentHandleMetricsFilter> pageSegmentHandleMetricsFilters) Description copied from interface:ServerConfiguration
Clear the existing list and add all filters passed in- Specified by:
setPageSegmentHandleMetricsFilters
in interfaceServerConfiguration
- Parameters:
pageSegmentHandleMetricsFilters
- thefilters
used for exposing finer grained render metrics, that are PageSegmentHandler based.
-
getPageSegmentHandleMetricsFilters
- Specified by:
getPageSegmentHandleMetricsFilters
in interfaceServerConfiguration
- Returns:
- the
filters
used for exposing finer grained render metrics, that are PageSegmentHandler based.
-
isUseSessionSpecificDocumentKey
public boolean isUseSessionSpecificDocumentKey()- Specified by:
isUseSessionSpecificDocumentKey
in interfaceServerConfiguration
- Returns:
-
setUseSessionSpecificDocumentKey
public void setUseSessionSpecificDocumentKey(boolean useSessionSpecificDocumentKey) Description copied from interface:ServerConfiguration
The 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:
setUseSessionSpecificDocumentKey
in 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:
isTileCancellationEnabled
in interfaceServerConfiguration
-
setTileCancellationEnabled
public void setTileCancellationEnabled(boolean tileCancellationEnabled) - Specified by:
setTileCancellationEnabled
in interfaceServerConfiguration
-
setTextContentBunchSize
public void setTextContentBunchSize(int bunchSize) Description copied from interface:ServerConfiguration
If using thecom.levigo.jadice.web.client.config.ClientConfiguration's
setIsTextContentStreaming
method, you can set here how manyLine
objects you want to bundle before sending the bundle within one single message over the JWT connection framework- Specified by:
setTextContentBunchSize
in interfaceServerConfiguration
- Parameters:
bunchSize
- how manylines
to bundle
-
getTextContentBunchSize
public int getTextContentBunchSize()- Specified by:
getTextContentBunchSize
in interfaceServerConfiguration
- Returns:
- the value set in
ServerConfiguration.setTextContentBunchSize(int)
-
getPdfStructureReadStrategy
public com.levigo.jadice.format.pdf.settings.PDFStructureReaderSettings.PDFStructureReadStrategy getPdfStructureReadStrategy()Description copied from interface:ServerConfiguration
Returns the configured Read-Strategy for PDF files.- Specified by:
getPdfStructureReadStrategy
in interfaceServerConfiguration
- Returns:
-
setPdfStructureReadStrategy
public void setPdfStructureReadStrategy(com.levigo.jadice.format.pdf.settings.PDFStructureReaderSettings.PDFStructureReadStrategy pdfStructureReadStrategy) Description copied from interface:ServerConfiguration
Sets the Read-Strategy for PDF files.- Specified by:
setPdfStructureReadStrategy
in interfaceServerConfiguration
- Parameters:
pdfStructureReadStrategy
-
-
getDocumentReadSubTaskTimeout
public long getDocumentReadSubTaskTimeout()Description copied from interface:ServerConfiguration
Returns the timeout for document read subtasks.- Specified by:
getDocumentReadSubTaskTimeout
in interfaceServerConfiguration
- Returns:
- timeout in milliseconds.
-
setDocumentReadSubTaskTimeout
public void setDocumentReadSubTaskTimeout(long documentReadSubTaskTimeout) Description copied from interface:ServerConfiguration
Sets the timeout for document read subtasks.- Specified by:
setDocumentReadSubTaskTimeout
in interfaceServerConfiguration
- Parameters:
documentReadSubTaskTimeout
- timeout in milliseconds.
-
getSaveAnnotationHandler
- Specified by:
getSaveAnnotationHandler
in interfaceServerConfiguration
-
setSaveAnnotationHandlers
public void setSaveAnnotationHandlers(HashMap<String, SaveAnnotationsHandler> saveAnnotationsHandlers) - Specified by:
setSaveAnnotationHandlers
in interfaceServerConfiguration
-
isTileSecurityFilterEnabled
public boolean isTileSecurityFilterEnabled()Description copied from interface:ServerConfiguration
Returns 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:
isTileSecurityFilterEnabled
in interfaceServerConfiguration
- Returns:
- true if the filter is enabled
-
setTileSecurityFilterEnabled
public void setTileSecurityFilterEnabled(boolean tileSecurityFilterEnabled) Description copied from interface:ServerConfiguration
Enable 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:
setTileSecurityFilterEnabled
in interfaceServerConfiguration
- Parameters:
tileSecurityFilterEnabled
- enable or disable the filter
-