Package ratpack.server

Examples of ratpack.server.BindAddress


    final Handler next = context -> {
      calledNext = true;
      latch.countDown();
    };

    final BindAddress bindAddress = new BindAddress() {
      @Override
      public String getHost() {
        return "localhost";
      }
View Full Code Here


          HostAndPort hostData = getHostData(context);
          if (hostData != null) {
            host = hostData.getHostText();
            port = hostData.getPortOrDefault(-1);
          } else {
            BindAddress bindAddress = context.getBindAddress();
            int bindPort = bindAddress.getPort();
            host = bindAddress.getHost();
            port = ProtocolUtil.isDefaultPortForScheme(bindPort, this.scheme) ? -1 : bindPort;
          }
        }
      }
      try {
View Full Code Here

    final Response response = new DefaultResponse(execControl, responseHeaders, ctx.alloc(), responseTransmitter);
    ctx.attr(RESPONSE_TRANSMITTER_ATTRIBUTE_KEY).set(responseTransmitter);

    InetSocketAddress socketAddress = (InetSocketAddress) channel.localAddress();
    final BindAddress bindAddress = new InetSocketAddressBackedBindAddress(socketAddress);

    Action<Action<Object>> subscribeHandler = thing -> {
      transmitted.set(true);
      channelSubscriptions.put(channel, thing);
      channel.closeFuture().addListener(future -> channelSubscriptions.remove(channel));
View Full Code Here

TOP

Related Classes of ratpack.server.BindAddress

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.