org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean Java Examples

The following examples show how to use org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WebSocketConfig.java    From WeEvent with Apache License 2.0 5 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
    ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
    container.setMaxTextMessageBufferSize(maxSize);
    container.setMaxBinaryMessageBufferSize(maxSize);
    return container;
}
 
Example #2
Source File: WebSocketConfig.java    From devicehive-java-server with Apache License 2.0 5 votes vote down vote up
@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;
}
 
Example #3
Source File: Spring4WebSocketExamplesApplication.java    From spring4ws-demos with Apache License 2.0 5 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
	ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
	container.setMaxTextMessageBufferSize(1_000_000);
	container.setMaxBinaryMessageBufferSize(1_000_000);
	return container;
}
 
Example #4
Source File: WebSocketConfig.java    From bearchoke with Apache License 2.0 5 votes vote down vote up
/**
 * 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;
}
 
Example #5
Source File: BootTestApplication.java    From kurento-java with Apache License 2.0 5 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
  ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
  container.setMaxSessionIdleTimeout((long)10000);
  container.setMaxTextMessageBufferSize(1000000);
  container.setMaxBinaryMessageBufferSize(1000000);
  return container;
}
 
Example #6
Source File: KurentoRoomServerApp.java    From kurento-room with Apache License 2.0 5 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
  ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
  container.setMaxTextMessageBufferSize(1000000); // chars
  container.setMaxBinaryMessageBufferSize(1000000); // bytes
  return container;
}
 
Example #7
Source File: WebSocketConfiguration.java    From iotplatform with Apache License 2.0 5 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
  ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
  container.setMaxTextMessageBufferSize(8192);
  container.setMaxBinaryMessageBufferSize(8192);
  return container;
}
 
Example #8
Source File: BootStrap.java    From MyBlog with Apache License 2.0 5 votes vote down vote up
/*********************************************************************************************************/
//WebSocketConfigurer配置
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
    ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
    container.setMaxTextMessageBufferSize(1024 * 1024 * 10);
    container.setMaxBinaryMessageBufferSize(1024 * 1024 * 10);
    return container;
}
 
Example #9
Source File: WebSocketServletServerContainerFactoryBeanTests.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Bean
ServletServerContainerFactoryBean createWebSocketContainer() {
	ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
	container.setMaxTextMessageBufferSize(42);
	return container;
}
 
Example #10
Source File: InfoSocketConfig.java    From openvidu with Apache License 2.0 4 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
	ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
	container.setMaxTextMessageBufferSize(50 * 1024);
	return container;
}
 
Example #11
Source File: WebSocketServletServerContainerFactoryBeanTests.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Bean
ServletServerContainerFactoryBean createWebSocketContainer() {
	ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
	container.setMaxTextMessageBufferSize(42);
	return container;
}
 
Example #12
Source File: PlayerApp.java    From kurento-tutorial-java with Apache License 2.0 4 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createServletServerContainerFactoryBean() {
  ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
  container.setMaxTextMessageBufferSize(32768);
  return container;
}
 
Example #13
Source File: Application.java    From kurento-tutorial-java with Apache License 2.0 4 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createServletServerContainerFactoryBean() {
  ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
  container.setMaxTextMessageBufferSize(32768);
  return container;
}
 
Example #14
Source File: One2OneCallRecApp.java    From kurento-tutorial-java with Apache License 2.0 4 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createServletServerContainerFactoryBean() {
  ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
  container.setMaxTextMessageBufferSize(32768);
  return container;
}
 
Example #15
Source File: One2ManyCallApp.java    From kurento-tutorial-java with Apache License 2.0 4 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createServletServerContainerFactoryBean() {
  ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
  container.setMaxTextMessageBufferSize(32768);
  return container;
}
 
Example #16
Source File: PlateDetectorApp.java    From kurento-tutorial-java with Apache License 2.0 4 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createServletServerContainerFactoryBean() {
  ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
  container.setMaxTextMessageBufferSize(32768);
  return container;
}
 
Example #17
Source File: MetadataApp.java    From kurento-tutorial-java with Apache License 2.0 4 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createServletServerContainerFactoryBean() {
  ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
  container.setMaxTextMessageBufferSize(32768);
  return container;
}
 
Example #18
Source File: One2OneCallApp.java    From kurento-tutorial-java with Apache License 2.0 4 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createServletServerContainerFactoryBean() {
  ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
  container.setMaxTextMessageBufferSize(32768);
  return container;
}
 
Example #19
Source File: HelloWorldRecApp.java    From kurento-tutorial-java with Apache License 2.0 4 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createServletServerContainerFactoryBean() {
  ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
  container.setMaxTextMessageBufferSize(32768);
  return container;
}
 
Example #20
Source File: HelloWorldRecApp.java    From kurento-tutorial-java with Apache License 2.0 4 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createServletServerContainerFactoryBean() {
  ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
  container.setMaxTextMessageBufferSize(32768);
  return container;
}
 
Example #21
Source File: Application.java    From kurento-tutorial-java with Apache License 2.0 4 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createServletServerContainerFactoryBean() {
  ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
  container.setMaxTextMessageBufferSize(32768);
  return container;
}
 
Example #22
Source File: ShowDataChannelApp.java    From kurento-tutorial-java with Apache License 2.0 4 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createServletServerContainerFactoryBean() {
  ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
  container.setMaxTextMessageBufferSize(32768);
  return container;
}
 
Example #23
Source File: SendDataChannelApp.java    From kurento-tutorial-java with Apache License 2.0 4 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createServletServerContainerFactoryBean() {
  ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
  container.setMaxTextMessageBufferSize(32768);
  return container;
}
 
Example #24
Source File: One2OneCallAdvApp.java    From kurento-tutorial-java with Apache License 2.0 4 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createServletServerContainerFactoryBean() {
  ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
  container.setMaxTextMessageBufferSize(32768);
  return container;
}
 
Example #25
Source File: CrowdDetectorApp.java    From kurento-tutorial-java with Apache License 2.0 4 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createServletServerContainerFactoryBean() {
  ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
  container.setMaxTextMessageBufferSize(32768);
  return container;
}
 
Example #26
Source File: MagicMirrorApp.java    From kurento-tutorial-java with Apache License 2.0 4 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createServletServerContainerFactoryBean() {
  ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
  container.setMaxTextMessageBufferSize(32768);
  return container;
}
 
Example #27
Source File: ChromaApp.java    From kurento-tutorial-java with Apache License 2.0 4 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createServletServerContainerFactoryBean() {
  ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
  container.setMaxTextMessageBufferSize(32768);
  return container;
}
 
Example #28
Source File: PointerDetectorApp.java    From kurento-tutorial-java with Apache License 2.0 4 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createServletServerContainerFactoryBean() {
  ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
  container.setMaxTextMessageBufferSize(32768);
  return container;
}
 
Example #29
Source File: GroupCallApp.java    From kurento-tutorial-java with Apache License 2.0 4 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createServletServerContainerFactoryBean() {
  ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
  container.setMaxTextMessageBufferSize(32768);
  return container;
}
 
Example #30
Source File: TestServerApplication.java    From kurento-java with Apache License 2.0 4 votes vote down vote up
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
  ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
  // container.setMaxSessionIdleTimeout(10000);
  return container;
}