Package com.mikuac.shiro.properties
Class WebSocketProperties
java.lang.Object
com.mikuac.shiro.properties.WebSocketProperties
@Component
@ConfigurationProperties(prefix="shiro.ws")
public class WebSocketProperties
extends Object
正向 ws 配置
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean获取访问密钥认证约定是否启用约定二进制消息的最大长度 512KB最大文本消息缓冲区 512KB超时回收,10秒inthashCode()voidsetAccessToken(String accessToken) 访问密钥, 强烈推荐在公网的服务器设置voidsetAuthSchema(String authSchema) 认证约定voidsetEnableAuthSchema(Boolean enableAuthSchema) 是否启用约定voidsetMaxBinaryMessageBufferSize(Integer maxBinaryMessageBufferSize) 二进制消息的最大长度 512KBvoidsetMaxTextMessageBufferSize(Integer maxTextMessageBufferSize) 最大文本消息缓冲区 512KBvoidsetTimeout(Integer timeout) 超时回收,10秒toString()
-
Constructor Details
-
WebSocketProperties
public WebSocketProperties()
-
-
Method Details
-
getAccessToken
获取访问密钥- Returns:
- 密钥
-
getAuthSchema
认证约定 -
getEnableAuthSchema
是否启用约定 -
getTimeout
超时回收,10秒 -
getMaxTextMessageBufferSize
最大文本消息缓冲区 512KB -
getMaxBinaryMessageBufferSize
二进制消息的最大长度 512KB -
setAccessToken
访问密钥, 强烈推荐在公网的服务器设置 -
setAuthSchema
认证约定 -
setEnableAuthSchema
是否启用约定 -
setTimeout
超时回收,10秒 -
setMaxTextMessageBufferSize
最大文本消息缓冲区 512KB -
setMaxBinaryMessageBufferSize
二进制消息的最大长度 512KB -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-