本文整理汇总了Java中org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean类的典型用法代码示例。如果您正苦于以下问题:Java ServletServerContainerFactoryBean类的具体用法?Java ServletServerContainerFactoryBean怎么用?Java ServletServerContainerFactoryBean使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ServletServerContainerFactoryBean类属于org.springframework.web.socket.server.standard包,在下文中一共展示了ServletServerContainerFactoryBean类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createWebSocketContainer
import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean; //导入依赖的package包/类
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
container.setMaxTextMessageBufferSize(8192);
container.setMaxBinaryMessageBufferSize(8192);
return container;
}
示例2: createWebSocketContainer
import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean; //导入依赖的package包/类
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
container.setMaxTextMessageBufferSize(8192);
container.setMaxBinaryMessageBufferSize(8192);
return container;
}
示例3: createWebSocketContainer
import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean; //导入依赖的package包/类
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
container.setMaxTextMessageBufferSize(1000000); // chars
container.setMaxBinaryMessageBufferSize(1000000); // bytes
return container;
}
示例4: createWebSocketContainer
import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean; //导入依赖的package包/类
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
container.setMaxSessionIdleTimeout(10000);
container.setMaxTextMessageBufferSize(1000000);
container.setMaxBinaryMessageBufferSize(1000000);
return container;
}
示例5: createWebSocketContainer
import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean; //导入依赖的package包/类
/**
* For serving up websockets in a Tomcat / GlassFish / WildFly environment
*
* @return
*/
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
container.setMaxTextMessageBufferSize(8192);
container.setMaxBinaryMessageBufferSize(8192);
return container;
}
示例6: createServletServerContainerFactoryBean
import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean; //导入依赖的package包/类
@Bean
@ConfigurationProperties(prefix = "hsweb.websocket")
public ServletServerContainerFactoryBean createServletServerContainerFactoryBean() {
ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
container.setMaxTextMessageBufferSize(10_1024_1024);
container.setMaxBinaryMessageBufferSize(10_1024_1024);
return container;
}
示例7: createWebSocketContainer
import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean; //导入依赖的package包/类
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
container.setMaxTextMessageBufferSize(32768);
container.setMaxBinaryMessageBufferSize(32768);
return container;
}
示例8: createWebSocketContainer
import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean; //导入依赖的package包/类
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
container.setMaxTextMessageBufferSize(10 * 1024 * 1024);
container.setMaxBinaryMessageBufferSize(10 * 1024 * 1024);
return container;
}
示例9: createWebSocketContainer
import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean; //导入依赖的package包/类
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
container.setMaxTextMessageBufferSize(1_000_000);
container.setMaxBinaryMessageBufferSize(1_000_000);
return container;
}
示例10: createWebSocketContainer
import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean; //导入依赖的package包/类
/**
* Creates the web socket container.
*
* @return the servlet server container factory bean
*/
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
container.setMaxTextMessageBufferSize(8192);
container.setMaxBinaryMessageBufferSize(8192);
return container;
}
示例11: createWebSocketContainer
import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean; //导入依赖的package包/类
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
container.setMaxBinaryMessageBufferSize(Constants.WEBSOCKET_MAX_BUFFER_SIZE);
container.setMaxTextMessageBufferSize(Constants.WEBSOCKET_MAX_BUFFER_SIZE);
container.setMaxSessionIdleTimeout(Constants.WEBSOCKET_TIMEOUT);
return container;
}
示例12: createWebSocketContainer
import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean; //导入依赖的package包/类
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
// container.setMaxSessionIdleTimeout(10000);
return container;
}
示例13: createWebSocketContainer
import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean; //导入依赖的package包/类
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
container.setMaxTextMessageBufferSize(IXSIConstants.MAX_TEXT_MSG_SIZE);
return container;
}