Package io.remotecontrol.server

Examples of io.remotecontrol.server.Receiver


    @Override
    public void handle(Context context) throws Exception {
      final Registry commandRegistry = context.join(registry);
      final RegistryBuilder registryBuilder = Registries.registry();

      Receiver receiver = new RatpackReceiver(chain -> new DelegatingCommandDelegate(registryBuilder, commandRegistry) {
        @Override
        public void clearRegistry() {
          registryReference.set(null);
        }
      });

      ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
      receiver.execute(context.getRequest().getBody().getInputStream(), outputStream);

      if (registryBuilder.size() > 0) {
        Registry newRegistry = registryBuilder.build();
        registryReference.set(newRegistry);
      }
View Full Code Here

TOP

Related Classes of io.remotecontrol.server.Receiver

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.