Package org.serviceconnector.net

Examples of org.serviceconnector.net.ConnectionType


    this.connectionType = compositeConfig.getString(this.name + Constants.PROPERTY_QUALIFIER_CONNECTION_TYPE);
    if (this.connectionType == null) {
      throw new SCMPValidatorException(SCMPError.V_WRONG_CONFIGURATION_FILE, "required property=" + this.name
          + Constants.PROPERTY_QUALIFIER_CONNECTION_TYPE + " is missing");
    }
    ConnectionType connectionTypeConf = ConnectionType.getType(this.connectionType);
    if (connectionTypeConf == ConnectionType.UNDEFINED) {
      throw new SCMPValidatorException(SCMPError.V_WRONG_CONFIGURATION_FILE, "unkown connectionType=" + this.name
          + this.connectionType);
    }
View Full Code Here


    this.connectionType = compositeConfig.getString(this.name + Constants.PROPERTY_QUALIFIER_CONNECTION_TYPE);
    if (this.connectionType == null) {
      throw new SCMPValidatorException(SCMPError.V_WRONG_CONFIGURATION_FILE, "required property=" + this.name
          + Constants.PROPERTY_QUALIFIER_CONNECTION_TYPE + " is missing");
    }
    ConnectionType connectionTypeConf = ConnectionType.getType(this.connectionType);
    if (connectionTypeConf == ConnectionType.UNDEFINED) {
      throw new SCMPValidatorException(SCMPError.V_WRONG_CONFIGURATION_FILE, "unkown connectionType=" + this.name
          + this.connectionType);
    }
View Full Code Here

    ListenerListConfiguration responderConfiguration = AppContext.getResponderConfiguration();
    responderConfiguration.load(AppContext.getApacheCompositeConfig(), AppContext.getRequesterConfiguration());

    for (ListenerConfiguration listenerConfiguration : responderConfiguration.getListenerConfigurations().values()) {
      String connectionTypeString = listenerConfiguration.getConnectionType();
      ConnectionType connectionType = ConnectionType.getType(connectionTypeString);

      switch (connectionType) {
      case DEFAULT_SERVER_CONNECTION_TYPE:
      case NETTY_TCP:
        return run(listenerConfiguration.getNetworkInterfaces().get(0), listenerConfiguration.getPort(), bodyString);
View Full Code Here

      throw new InvalidParameterException("Wrong number of arguments: " + args.length);
    }

    String hostToConnect = args[0];
    int portToConnect = Integer.valueOf(args[1]);
    ConnectionType connectionType = ConnectionType.getType(args[2]);
    String serviceName = args[3];
    FILE_SERVICE_FUNCTION function = FILE_SERVICE_FUNCTION.getFileServiceFunction(args[4]);
    if (function == FILE_SERVICE_FUNCTION.NOT_VALID) {
      throw new InvalidParameterException("Wrong file service function in argmuents value=" + args[4]);
    }
View Full Code Here

TOP

Related Classes of org.serviceconnector.net.ConnectionType

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.