クラス WCardinalConfigurationSupport
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.wcardinal.configuration.WCardinalConfigurationSupport
- すべての実装されたインタフェース:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,WCardinalConfiguration
@Configuration
@ComponentScan("org.wcardinal")
@ConditionalOnWebApplication
public class WCardinalConfigurationSupport
extends org.springframework.context.support.ApplicationObjectSupport
implements WCardinalConfiguration
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明String[]Returns the allowed origins.String[]Returns the default communication protocols.Returns the encoding of embedded controller variables.intReturns the maximum size of binary messages in bytes.longReturns the maximum disconnection time in milliseconds.longReturns the maximum idle time in milliseconds.intReturns the maximum size of text messages.intReturns the maximum number of queued trigger requests per controllers.intReturns the message pool size.intReturns the partial message size.Returns the URL of the polling endpoint.intReturns the polling timeout in seconds.longReturns the client-side connection request timeout of the synchronization process.longReturns the client-side sync process interval in milliseconds.longReturns the client-side update request interval in the synchronization process.longReturns the client-side update request timeout in the synchronization process.longReturns the connection request timeout of the synchronization process.longReturns the update request interval in the synchronization process.longReturns the update request timeout in the synchronization process.intReturns the default thread pool size.Returns the URL of the WebSocket endpoint.voidinitApplicationContext(org.springframework.context.ApplicationContext context) booleanReturns true if HTTP requests of controllers area allowed.booleanReturns true if controller variables are embeddable.booleanReturns true if partial messages are enabled.booleanReturns true if shared connections are enabled.setAllowedOrigins(String... origins) Sets the allowed origins.setControllerHttpEnabled(boolean enabled) Sets whether HTTP requests of controllers are allowed.setControllerVariableEmbeddable(boolean embeddable) Sets whether controller variables are embeddable.setDefaultProtocols(String... protocols) Sets the default communication protocols.Sets to the specified encoding of embedded controller variables.setMaximumBinaryMessageSize(int limit) Sets the maximum size of binary messages.setMaximumDisconnectionTime(long disconnectionTime) Sets the maximum disconnection time in milliseconds.setMaximumIdleTime(long idleTime) Sets the maximum idle time in milliseconds.setMaximumTextMessageSize(int limit) Sets the maximum size of text messages.setMaximumTriggerQueueSize(int size) Sets the maximum number of queued trigger requests.setMessagePoolSize(int poolSize) Sets the message pool size.setPartialMessageEnabled(boolean enabled) Sets whether partial messages are enabled.setPartialMessageSize(int size) Sets the partial message size.setPollingPath(String path) Sets the URL of the polling endpoint.setPollingTimeout(int timeout) Sets the the polling timeout in seconds.setSharedConnectionEnabled(boolean enabled) Sets whether shared connections are enabled.setSyncClientConnectTimeout(long timeout) Sets the client-side connection request timeout in the synchronization process.setSyncClientProcessInterval(long interval) Sets the client-side sync process interval in milliseconds.setSyncClientUpdateInterval(long interval) Sets the client-side update request interval in the synchronization process.setSyncClientUpdateTimeout(long timeout) Sets the client-side update request timeout in the synchronization process.setSyncConnectTimeout(long timeout) Sets the connection request timeout in the synchronization process.setSyncUpdateInterval(long interval) Sets the update request interval in the synchronization process.setSyncUpdateTimeout(long timeout) Sets the update request timeout in the synchronization process.setThreadPoolSize(int poolSize) Sets the default thread pool size.setWebSocketPath(String path) Sets the URL of the WebSocket endpoint.クラスから継承されたメソッド org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, isContextRequired, obtainApplicationContext, requiredContextClass, setApplicationContext
-
コンストラクタの詳細
-
WCardinalConfigurationSupport
public WCardinalConfigurationSupport()
-
-
メソッドの詳細
-
initApplicationContext
public void initApplicationContext(org.springframework.context.ApplicationContext context) - オーバーライド:
initApplicationContextクラス内org.springframework.context.support.ApplicationObjectSupport
-
getMaximumBinaryMessageSize
public int getMaximumBinaryMessageSize()インタフェースからコピーされた説明:WCardinalConfigurationReturns the maximum size of binary messages in bytes. The default value is 500000. The default value can be changed by setting a property `wcardinal.message.binary.size.max` in properties files, command-line arguments, etc.- 定義:
getMaximumBinaryMessageSizeインタフェース内WCardinalConfiguration- 戻り値:
- the maximum size of binary messages in bytes.
- 関連項目:
-
getMaximumTextMessageSize
public int getMaximumTextMessageSize()インタフェースからコピーされた説明:WCardinalConfigurationReturns the maximum size of text messages. The default value is 62500. The default value can be changed by setting a property `wcardinal.message.text.size.max` in properties files, command-line arguments, etc.- 定義:
getMaximumTextMessageSizeインタフェース内WCardinalConfiguration- 戻り値:
- the maximum size of text messages
- 関連項目:
-
getMaximumIdleTime
public long getMaximumIdleTime()インタフェースからコピーされた説明:WCardinalConfigurationReturns the maximum idle time in milliseconds. The default value is 30000. The default value can be changed by setting a property `wcardinal.idle.max` in properties files, command-line arguments, etc.- 定義:
getMaximumIdleTimeインタフェース内WCardinalConfiguration- 戻り値:
- the maximum idle time in milliseconds
- 関連項目:
-
getWebSocketPath
インタフェースからコピーされた説明:WCardinalConfigurationReturns the URL of the WebSocket endpoint. The default value is "**\/wcardinal-websocket". The default value can be changed by setting a property `wcardinal.websocket.path` in properties files, command-line arguments, etc.- 定義:
getWebSocketPathインタフェース内WCardinalConfiguration- 戻り値:
- the URL of the WebSocket endpoint
- 関連項目:
-
getAllowedOrigins
インタフェースからコピーされた説明:WCardinalConfigurationReturns the allowed origins. The default value is an empty string array. The default value can be changed by setting a property `wcardinal.allowed-origins` in properties files, command-line arguments, etc.- 定義:
getAllowedOriginsインタフェース内WCardinalConfiguration- 戻り値:
- the allowed origins
- 関連項目:
-
setMaximumBinaryMessageSize
インタフェースからコピーされた説明:WCardinalConfigurationSets the maximum size of binary messages.- 定義:
setMaximumBinaryMessageSizeインタフェース内WCardinalConfiguration- パラメータ:
limit- the maximum size of binary messages in bytes- 戻り値:
- this
- 関連項目:
-
setMaximumTextMessageSize
インタフェースからコピーされた説明:WCardinalConfigurationSets the maximum size of text messages.- 定義:
setMaximumTextMessageSizeインタフェース内WCardinalConfiguration- パラメータ:
limit- the maximum size of text messages in bytes- 戻り値:
- this
- 関連項目:
-
setMaximumIdleTime
インタフェースからコピーされた説明:WCardinalConfigurationSets the maximum idle time in milliseconds. A browser who have not sent any messages for this time span is considered inactive and disconnected.- 定義:
setMaximumIdleTimeインタフェース内WCardinalConfiguration- パラメータ:
idleTime- the maximum idle time in milliseconds- 戻り値:
- this
- 関連項目:
-
setAllowedOrigins
インタフェースからコピーされた説明:WCardinalConfigurationSets the allowed origins.- 定義:
setAllowedOriginsインタフェース内WCardinalConfiguration- パラメータ:
origins- allowed origin- 戻り値:
- this
- 関連項目:
-
setWebSocketPath
インタフェースからコピーされた説明:WCardinalConfigurationSets the URL of the WebSocket endpoint.- 定義:
setWebSocketPathインタフェース内WCardinalConfiguration- パラメータ:
path- the URL of the WebSocket endpoint- 戻り値:
- this
- 関連項目:
-
setControllerHttpEnabled
インタフェースからコピーされた説明:WCardinalConfigurationSets whether HTTP requests of controllers are allowed.- 定義:
setControllerHttpEnabledインタフェース内WCardinalConfiguration- パラメータ:
enabled- true to allow, false to disallow the controller requests- 戻り値:
- this
- 関連項目:
-
isControllerHttpEnabled
public boolean isControllerHttpEnabled()インタフェースからコピーされた説明:WCardinalConfigurationReturns true if HTTP requests of controllers area allowed. The default value is true. The default value can be changed by setting a property `wcardinal.controller.http` in properties files, command-line arguments, etc.- 定義:
isControllerHttpEnabledインタフェース内WCardinalConfiguration- 戻り値:
- true if HTTP requests of controllers area allowed
- 関連項目:
-
getPollingTimeout
public int getPollingTimeout()インタフェースからコピーされた説明:WCardinalConfigurationReturns the polling timeout in seconds. The default value is 10000. The default value can be changed by setting a property `wcardinal.polling.timeout` in properties files, command-line arguments, etc.- 定義:
getPollingTimeoutインタフェース内WCardinalConfiguration- 戻り値:
- the polling timeout in seconds
- 関連項目:
-
setPollingTimeout
インタフェースからコピーされた説明:WCardinalConfigurationSets the the polling timeout in seconds.- 定義:
setPollingTimeoutインタフェース内WCardinalConfiguration- パラメータ:
timeout- the polling timeout in seconds- 戻り値:
- this
- 関連項目:
-
getThreadPoolSize
public int getThreadPoolSize()インタフェースからコピーされた説明:WCardinalConfigurationReturns the default thread pool size. The default value is 30. The default value can be changed by setting a property `wcardinal.thread.pool.size` in properties files, command-line arguments, etc.- 定義:
getThreadPoolSizeインタフェース内WCardinalConfiguration- 戻り値:
- the default thread pool size
- 関連項目:
-
setThreadPoolSize
インタフェースからコピーされた説明:WCardinalConfigurationSets the default thread pool size.- 定義:
setThreadPoolSizeインタフェース内WCardinalConfiguration- パラメータ:
poolSize- the default thread pool size- 戻り値:
- this
- 関連項目:
-
getPollingPath
インタフェースからコピーされた説明:WCardinalConfigurationReturns the URL of the polling endpoint. The default value is "**\/wcardinal-polling". The default value can be changed by setting a property `wcardinal.polling.path` in properties files, command-line arguments, etc.- 定義:
getPollingPathインタフェース内WCardinalConfiguration- 戻り値:
- the URL of the polling endpoint
- 関連項目:
-
setPollingPath
インタフェースからコピーされた説明:WCardinalConfigurationSets the URL of the polling endpoint.- 定義:
setPollingPathインタフェース内WCardinalConfiguration- パラメータ:
path- the URL of the polling endpoint- 戻り値:
- this
- 関連項目:
-
getMessagePoolSize
public int getMessagePoolSize()インタフェースからコピーされた説明:WCardinalConfigurationReturns the message pool size. The default value is 30. The default value can be changed by setting a property `wcardinal.message.pool.size` in properties files, command-line arguments, etc.- 定義:
getMessagePoolSizeインタフェース内WCardinalConfiguration- 戻り値:
- the message pool size
- 関連項目:
-
setMessagePoolSize
インタフェースからコピーされた説明:WCardinalConfigurationSets the message pool size.- 定義:
setMessagePoolSizeインタフェース内WCardinalConfiguration- パラメータ:
poolSize- the message pool size- 戻り値:
- this
- 関連項目:
-
isPartialMessageEnabled
public boolean isPartialMessageEnabled()インタフェースからコピーされた説明:WCardinalConfigurationReturns true if partial messages are enabled. The default value is true. The default value can be changed by setting a property `wcardinal.message.partial` in properties files, command-line arguments, etc.- 定義:
isPartialMessageEnabledインタフェース内WCardinalConfiguration- 戻り値:
- true if partial messages are enabled
- 関連項目:
-
setPartialMessageEnabled
インタフェースからコピーされた説明:WCardinalConfigurationSets whether partial messages are enabled.- 定義:
setPartialMessageEnabledインタフェース内WCardinalConfiguration- パラメータ:
enabled- true to enable partial messages- 戻り値:
- itselt
- 関連項目:
-
getDefaultProtocols
インタフェースからコピーされた説明:WCardinalConfigurationReturns the default communication protocols. The default value is "websocket,polling-100". The default value can be changed by setting a property `wcardinal.io.protocol.defaults` in properties files, command-line arguments, etc.- 定義:
getDefaultProtocolsインタフェース内WCardinalConfiguration- 戻り値:
- default communication protocols
- 関連項目:
-
setDefaultProtocols
インタフェースからコピーされた説明:WCardinalConfigurationSets the default communication protocols.- 定義:
setDefaultProtocolsインタフェース内WCardinalConfiguration- パラメータ:
protocols- default communication protocols- 戻り値:
- this
- 関連項目:
-
setControllerVariableEmbeddable
インタフェースからコピーされた説明:WCardinalConfigurationSets whether controller variables are embeddable.- 定義:
setControllerVariableEmbeddableインタフェース内WCardinalConfiguration- パラメータ:
embeddable- true to make controller variables embeddable- 戻り値:
- this
- 関連項目:
-
isControllerVariableEmbeddable
public boolean isControllerVariableEmbeddable()インタフェースからコピーされた説明:WCardinalConfigurationReturns true if controller variables are embeddable. The default value is true. The default value can be changed by setting a property `wcardinal.controller.variable.embedding` in properties files, command-line arguments, etc.- 定義:
isControllerVariableEmbeddableインタフェース内WCardinalConfiguration- 戻り値:
- true if controller variables are embeddable
- 関連項目:
-
setEmbeddedControllerVariableEncoding
public WCardinalConfiguration setEmbeddedControllerVariableEncoding(ControllerVariableEncoding encoding) インタフェースからコピーされた説明:WCardinalConfigurationSets to the specified encoding of embedded controller variables. The default value is "REPLACE". The default value can be changed by setting a property `wcardinal.controller.variable.embedding.encoding` in properties files, command-line arguments, etc.- 定義:
setEmbeddedControllerVariableEncodingインタフェース内WCardinalConfiguration- パラメータ:
encoding- encoding- 戻り値:
- this
- 関連項目:
-
getEmbeddedControllerVariableEncoding
インタフェースからコピーされた説明:WCardinalConfigurationReturns the encoding of embedded controller variables.- 定義:
getEmbeddedControllerVariableEncodingインタフェース内WCardinalConfiguration- 戻り値:
- the encoding of embedded controller variables
- 関連項目:
-
getSyncConnectTimeout
public long getSyncConnectTimeout()インタフェースからコピーされた説明:WCardinalConfigurationReturns the connection request timeout of the synchronization process. The default value is 5000. The default value can be changed by setting a property `wcardinal.sync.connect.timeout` in properties files, command-line arguments, etc.- 定義:
getSyncConnectTimeoutインタフェース内WCardinalConfiguration- 戻り値:
- the connection request timeout of the synchronization process
- 関連項目:
-
setSyncConnectTimeout
インタフェースからコピーされた説明:WCardinalConfigurationSets the connection request timeout in the synchronization process.- 定義:
setSyncConnectTimeoutインタフェース内WCardinalConfiguration- パラメータ:
timeout- connection request timeout in the synchronization process- 戻り値:
- this
- 関連項目:
-
getSyncUpdateTimeout
public long getSyncUpdateTimeout()インタフェースからコピーされた説明:WCardinalConfigurationReturns the update request timeout in the synchronization process. The default value is 5000. The default value can be changed by setting a property `wcardinal.sync.update.timeout` in properties files, command-line arguments, etc.- 定義:
getSyncUpdateTimeoutインタフェース内WCardinalConfiguration- 戻り値:
- the update request timeout in the synchronization process
- 関連項目:
-
setSyncUpdateTimeout
インタフェースからコピーされた説明:WCardinalConfigurationSets the update request timeout in the synchronization process.- 定義:
setSyncUpdateTimeoutインタフェース内WCardinalConfiguration- パラメータ:
timeout- update request timeout in the synchronization process- 戻り値:
- this
- 関連項目:
-
getSyncUpdateInterval
public long getSyncUpdateInterval()インタフェースからコピーされた説明:WCardinalConfigurationReturns the update request interval in the synchronization process. The default value is 10000. The default value can be changed by setting a property `wcardinal.sync.update.interval` in properties files, command-line arguments, etc.- 定義:
getSyncUpdateIntervalインタフェース内WCardinalConfiguration- 戻り値:
- the update request interval in the synchronization process
- 関連項目:
-
setSyncUpdateInterval
インタフェースからコピーされた説明:WCardinalConfigurationSets the update request interval in the synchronization process.- 定義:
setSyncUpdateIntervalインタフェース内WCardinalConfiguration- パラメータ:
interval- update request interval in the synchronization process- 戻り値:
- this
- 関連項目:
-
getSyncClientConnectTimeout
public long getSyncClientConnectTimeout()インタフェースからコピーされた説明:WCardinalConfigurationReturns the client-side connection request timeout of the synchronization process. The default value is 5000. The default value can be changed by setting a property `wcardinal.sync.client.connect.timeout` in properties files, command-line arguments, etc.- 定義:
getSyncClientConnectTimeoutインタフェース内WCardinalConfiguration- 戻り値:
- the client-side connection request timeout of the synchronization process
- 関連項目:
-
setSyncClientConnectTimeout
インタフェースからコピーされた説明:WCardinalConfigurationSets the client-side connection request timeout in the synchronization process.- 定義:
setSyncClientConnectTimeoutインタフェース内WCardinalConfiguration- パラメータ:
timeout- client-side connection request timeout in the synchronization process- 戻り値:
- this
- 関連項目:
-
getSyncClientUpdateTimeout
public long getSyncClientUpdateTimeout()インタフェースからコピーされた説明:WCardinalConfigurationReturns the client-side update request timeout in the synchronization process. The default value is 5000. The default value can be changed by setting a property `wcardinal.sync.client.update.timeout` in properties files, command-line arguments, etc.- 定義:
getSyncClientUpdateTimeoutインタフェース内WCardinalConfiguration- 戻り値:
- the client-side update request timeout in the synchronization process
- 関連項目:
-
setSyncClientUpdateTimeout
インタフェースからコピーされた説明:WCardinalConfigurationSets the client-side update request timeout in the synchronization process.- 定義:
setSyncClientUpdateTimeoutインタフェース内WCardinalConfiguration- パラメータ:
timeout- client-side update request timeout in the synchronization process- 戻り値:
- this
- 関連項目:
-
getSyncClientUpdateInterval
public long getSyncClientUpdateInterval()インタフェースからコピーされた説明:WCardinalConfigurationReturns the client-side update request interval in the synchronization process. The default value is 10000. The default value can be changed by setting a property `wcardinal.sync.client.update.interval` in properties files, command-line arguments, etc.- 定義:
getSyncClientUpdateIntervalインタフェース内WCardinalConfiguration- 戻り値:
- the client-side update request interval in the synchronization process
- 関連項目:
-
setSyncClientUpdateInterval
インタフェースからコピーされた説明:WCardinalConfigurationSets the client-side update request interval in the synchronization process.- 定義:
setSyncClientUpdateIntervalインタフェース内WCardinalConfiguration- パラメータ:
interval- client-side update request interval in the synchronization process- 戻り値:
- this
- 関連項目:
-
getSyncClientProcessInterval
public long getSyncClientProcessInterval()インタフェースからコピーされた説明:WCardinalConfigurationReturns the client-side sync process interval in milliseconds. If the interval is 0 or less, sync messages are processed immediately. The default value is 0. The default value can be changed by setting a property `wcardinal.sync.client.process.interval` in properties files, command-line arguments, etc.- 定義:
getSyncClientProcessIntervalインタフェース内WCardinalConfiguration- 戻り値:
- the client-side sync process interval in milliseconds.
- 関連項目:
-
setSyncClientProcessInterval
インタフェースからコピーされた説明:WCardinalConfigurationSets the client-side sync process interval in milliseconds.- 定義:
setSyncClientProcessIntervalインタフェース内WCardinalConfiguration- パラメータ:
interval- the client-side sync process interval in milliseconds.- 戻り値:
- this
- 関連項目:
-
setPartialMessageSize
インタフェースからコピーされた説明:WCardinalConfigurationSets the partial message size.- 定義:
setPartialMessageSizeインタフェース内WCardinalConfiguration- パラメータ:
size- partial message size- 戻り値:
- this
- 関連項目:
-
getPartialMessageSize
public int getPartialMessageSize()インタフェースからコピーされた説明:WCardinalConfigurationReturns the partial message size. The default value is 10000. The default value can be changed by setting a property `wcardinal.message.partial.size` in properties files, command-line arguments, etc.- 定義:
getPartialMessageSizeインタフェース内WCardinalConfiguration- 戻り値:
- partial message size
- 関連項目:
-
getMaximumTriggerQueueSize
public int getMaximumTriggerQueueSize()インタフェースからコピーされた説明:WCardinalConfigurationReturns the maximum number of queued trigger requests per controllers. This is to avoid consuming large memory. If it is 0 or less, imposes no restrictions. The default value is 100. The default value can be changed by setting a property `wcardinal.trigger.queue.size.max` in properties files, command-line arguments, etc.- 定義:
getMaximumTriggerQueueSizeインタフェース内WCardinalConfiguration- 戻り値:
- the maximum number of queued trigger messages.
- 関連項目:
-
setMaximumTriggerQueueSize
インタフェースからコピーされた説明:WCardinalConfigurationSets the maximum number of queued trigger requests.- 定義:
setMaximumTriggerQueueSizeインタフェース内WCardinalConfiguration- パラメータ:
size- maximum number of queued trigger requests.- 戻り値:
- this
- 関連項目:
-
getMaximumDisconnectionTime
public long getMaximumDisconnectionTime()インタフェースからコピーされた説明:WCardinalConfigurationReturns the maximum disconnection time in milliseconds. If it is negative, the maximum disconnection time is not checked. The default value is -1. The default value can be changed by setting a property `wcardinal.disconnection.max` in properties files, command-line arguments, etc.- 定義:
getMaximumDisconnectionTimeインタフェース内WCardinalConfiguration- 戻り値:
- the maximum disconnection time in milliseconds
- 関連項目:
-
setMaximumDisconnectionTime
インタフェースからコピーされた説明:WCardinalConfigurationSets the maximum disconnection time in milliseconds. A browser who have been disconnected for this time span is considered inactive.- 定義:
setMaximumDisconnectionTimeインタフェース内WCardinalConfiguration- パラメータ:
disconnectionTime- the maximum disconnection time in milliseconds- 戻り値:
- this
- 関連項目:
-