Esempio n. 1
0
  @Override
  protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters)
      throws Exception {
    NettyConfiguration config;
    if (configuration != null) {
      config = configuration.copy();
    } else {
      config = new NettyConfiguration();
    }

    config.parseURI(new URI(remaining), parameters, this);

    NettyEndpoint nettyEndpoint = new NettyEndpoint(remaining, this, config);
    nettyEndpoint.setTimer(getTimer());
    setProperties(nettyEndpoint.getConfiguration(), parameters);
    return nettyEndpoint;
  }
Esempio n. 2
0
 /**
  * Parses the configuration
  *
  * @return the parsed and valid configuration to use
  */
 protected NettyConfiguration parseConfiguration(
     NettyConfiguration configuration, String remaining, Map<String, Object> parameters)
     throws Exception {
   configuration.parseURI(new URI(remaining), parameters, this, "tcp", "udp");
   return configuration;
 }