Package org.eclipse.jetty.websocket.core.api

Examples of org.eclipse.jetty.websocket.core.api.WebSocketPolicy


  {
    super.init(isServlet, filterConfig);

    try
    {
      WebSocketPolicy serverPolicy = WebSocketPolicy.newServerPolicy();
      String bs = filterConfig.getInitParameter("bufferSize");
      if (bs != null)
        serverPolicy.setBufferSize(Integer.parseInt(bs));
      String max = filterConfig.getInitParameter("maxIdleTime");
      if (max != null)
        serverPolicy.setIdleTimeout(Integer.parseInt(max));

      max = filterConfig.getInitParameter("maxTextMessageSize");
      if (max != null)
        serverPolicy.setMaxTextMessageSize(Integer.parseInt(max));

      max = filterConfig.getInitParameter("maxBinaryMessageSize");
      if (max != null)
        serverPolicy.setMaxBinaryMessageSize(Integer.parseInt(max));
      _webSocketFactory = new WebSocketServerFactory(serverPolicy);

      _webSocketFactory.setCreator(new WebSocketCreator()
      {
        @Override
View Full Code Here


  {
    super.init(isServlet, filterConfig);

    try
    {
      WebSocketPolicy serverPolicy = WebSocketPolicy.newServerPolicy();
      String bs = filterConfig.getInitParameter("bufferSize");
      if (bs != null)
        serverPolicy.setBufferSize(Integer.parseInt(bs));
      String max = filterConfig.getInitParameter("maxIdleTime");
      if (max != null)
        serverPolicy.setIdleTimeout(Integer.parseInt(max));

      max = filterConfig.getInitParameter("maxTextMessageSize");
      if (max != null)
        serverPolicy.setMaxTextMessageSize(Integer.parseInt(max));

      max = filterConfig.getInitParameter("maxBinaryMessageSize");
      if (max != null)
        serverPolicy.setMaxBinaryMessageSize(Integer.parseInt(max));
      _webSocketFactory = new WebSocketServerFactory(serverPolicy);

      _webSocketFactory.setCreator(new WebSocketCreator()
      {
        @Override
View Full Code Here

TOP

Related Classes of org.eclipse.jetty.websocket.core.api.WebSocketPolicy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.