Examples of WebSocketRuntimeException


Examples of org.jwebsocket.kit.WebSocketRuntimeException

        && (level != null && level.length() > 0)
        && (filename != null && filename.length() > 0)
        && (bufferSize != null && bufferSize >= 0)) {
      return;
    }
    throw new WebSocketRuntimeException(
        "Missing one of the logging configuration directives, "
        + "please check your configuration file");
  }
View Full Code Here

Examples of org.jwebsocket.kit.WebSocketRuntimeException

    if ((id != null && id.length() > 0)
        && (namespace != null && namespace.length() > 0)
        && (description != null && description.length() > 0)) {
      return;
    }
    throw new WebSocketRuntimeException(
        "Missing one of the right configuration, please check your configuration file");
  }
View Full Code Here

Examples of org.jwebsocket.kit.WebSocketRuntimeException

        && (name != null && name.length() > 0)
        && (jar != null && jar.length() > 0)
        && (namespace != null && namespace.length() > 0)) {
      return;
    }
    throw new WebSocketRuntimeException(
        "Missing one of the plugin configuration, please check your configuration file");
  }
View Full Code Here

Examples of org.jwebsocket.kit.WebSocketRuntimeException

  public void validate() {
    if ((id != null && id.length() > 0)
        && (description != null && description.length() > 0)) {
      return;
    }
    throw new WebSocketRuntimeException(
        "Missing one of the role configuration, please check your configuration file");
  }
View Full Code Here

Examples of org.jwebsocket.kit.WebSocketRuntimeException

        && (lastname != null && lastname.length() > 0)
        && (description != null && description.length() > 0)
        && (status > 0)) {
      return;
    }
    throw new WebSocketRuntimeException(
        "Missing one of the user configuration, please check your configuration file");
  }
View Full Code Here

Examples of org.jwebsocket.kit.WebSocketRuntimeException

        && (domains != null && domains.size() > 0)
        && port >= 1024
        && timeout >= 0) {
      return;
    }
    throw new WebSocketRuntimeException(
        "Missing one of the engine configuration, "
        + "please check your configuration file");
  }
View Full Code Here

Examples of org.jwebsocket.kit.WebSocketRuntimeException

        && (name != null && name.length() > 0)
        && (jar != null && jar.length() > 0)
        && (namespace != null && namespace.length() > 0)) {
      return;
    }
    throw new WebSocketRuntimeException(
        "Missing one of the filter configuration, please check your configuration file");
  }
View Full Code Here

Examples of org.jwebsocket.kit.WebSocketRuntimeException

  private JWebSocketConfig(Builder builder) {
    if (builder.engines == null || builder.servers == null
        || builder.users == null || builder.globalRights == null
        || builder.globalRoles == null || builder.filters == null
        || builder.loggingConfig == null) {
      throw new WebSocketRuntimeException(
          "Configuration is not loaded completely.");
    }
    mInstallation = builder.installation;
    mProtocol = builder.protocol;
    jWebSocketHome = builder.jWebSocketHome;
View Full Code Here

Examples of org.jwebsocket.kit.WebSocketRuntimeException

        || (mPlugins == null || mPlugins.isEmpty())
        || (mFilters == null || mFilters.isEmpty())
        || (mLoggingConfig == null)
        || (mGlobalRights == null || mGlobalRights.isEmpty())
        || (mGlobalRoles == null || mGlobalRoles.isEmpty())) {
      throw new WebSocketRuntimeException(
          "Missing one of the server configuration, please check your configuration file");
    }
  }
View Full Code Here

Examples of org.jwebsocket.kit.WebSocketRuntimeException

        if (msg.isBinary()) {
            // TODO: handle binary data
        } else if (msg.isText()) {
            textData = msg.getTextData();
        } else {
            throw new WebSocketRuntimeException("Frame Doesn't contain any type of data");
        }
        engine.processPacket(connector, new RawPacket(textData));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.