Examples of host()


Examples of javax.ws.rs.core.UriBuilder.host()

    }

    public void testBuildMethods() {
        UriBuilder builder = new UriBuilderImpl();
        String[] segments = new String[] {"some", "{v1}", "path{v2}", "{v3}", "a+b{v4}"};
        builder.host("localhost").port(8080).segment(segments).fragment("{v5}");

        // build
        URI uri = builder.build("path", "Ex", "a#b", "c%2Bd", "frag");
        String uriString = uri.toString();
        assertEquals("//localhost:8080/some/path/pathEx/a%23b/a+bc%252Bd#frag", uriString);
View Full Code Here

Examples of kafka.cluster.Broker.host()

                        log.warn("No leader for partition %s/%s found!", metadata.topic(), part.partitionId());
                    }
                    else {
                        builder.add(new KafkaPartition(metadata.topic(),
                                part.partitionId(),
                                HostAddress.fromParts(leader.host(), leader.port()),
                                ImmutableList.copyOf(Lists.transform(part.isr(), brokerToHostAddress()))));
                    }
                }
            }
View Full Code Here

Examples of net.sf.sahi.request.HttpRequest.host()

                int _s_ = uri.indexOf("/_s_/");
                int q = uri.indexOf("?");
                if (_s_ != -1 && (q == -1 || (q > _s_))) {
                    processLocally(uri, requestFromBrowser);
                } else {
                    if (isHostTheProxy(requestFromBrowser.host()) && requestFromBrowser.port() == Configuration.getPort()) {
                        processLocally(uri, requestFromBrowser);
                    } else if (uri.indexOf("favicon.ico") != -1) {
                        sendResponseToBrowser(new HttpFileResponse(Configuration.getHtdocsRoot() + "spr/favicon.ico"));
                    } else {
                        processAsProxy(requestFromBrowser);
View Full Code Here

Examples of org.apache.accumulo.server.master.state.TServerInstance.host()

      String fakeSessionID = " ";
      TServerInstance simple = new TServerInstance(last.getLocation(), fakeSessionID);
      Iterator<TServerInstance> find = locations.tailMap(simple).keySet().iterator();
      if (find.hasNext()) {
        TServerInstance current = find.next();
        if (current.host().equals(last.host()))
          return current;
      }
    }
   
    // The strategy here is to walk through the locations and hand them back, one at a time
View Full Code Here

Examples of org.apache.accumulo.server.master.state.TServerInstance.host()

      String fakeSessionID = " ";
      TServerInstance simple = new TServerInstance(last.getLocation(), fakeSessionID);
      Iterator<TServerInstance> find = locations.tailMap(simple).keySet().iterator();
      if (find.hasNext()) {
        TServerInstance current = find.next();
        if (current.host().equals(last.host()))
          return current;
      }
    }
   
    // The strategy here is to walk through the locations and hand them back, one at a time
View Full Code Here

Examples of org.apache.accumulo.server.master.state.TServerInstance.host()

      // Maintain locality
      TServerInstance simple = new TServerInstance(last.getLocation(), "");
      Iterator<TServerInstance> find = locations.tailMap(simple).keySet().iterator();
      if (find.hasNext()) {
        TServerInstance current = find.next();
        if (current.host().equals(last.host()))
          return current;
      }
    }
   
    // The strategy here is to walk through the locations and hand them back, one at a time
View Full Code Here

Examples of org.apache.accumulo.server.master.state.TServerInstance.host()

      // Maintain locality
      TServerInstance simple = new TServerInstance(last.getLocation(), "");
      Iterator<TServerInstance> find = locations.tailMap(simple).keySet().iterator();
      if (find.hasNext()) {
        TServerInstance current = find.next();
        if (current.host().equals(last.host()))
          return current;
      }
    }
   
    // The strategy here is to walk through the locations and hand them back, one at a time
View Full Code Here

Examples of org.apache.tomee.util.QuickServerXmlParser.host()

            if (!home.exists()) {
                throw new IllegalArgumentException("You need to set openejb.home");
            }

            final QuickServerXmlParser parser = QuickServerXmlParser.parse(new File(home, "conf/server.xml"));
            final String remoteEjb = System.getProperty(Context.PROVIDER_URL, "http://" + parser.host() + ":" + parser.http() + "/tomee/ejb");

            try {
                instance = new RemoteTomEEEJBContainer();
                instance.container = new RemoteServer();
                instance.container.setPortStartup(Integer.parseInt(parser.http()));
View Full Code Here

Examples of org.apache.tomee.util.QuickServerXmlParser.host()

            writer.write(value
                .replace(parser.http(), Integer.toString(tomeeHttpPort))
                .replace(parser.https(), Integer.toString(tomeeHttpsPort))
                .replace(parser.ajp(), Integer.toString(tomeeAjpPort))
                .replace(parser.stop(), Integer.toString(tomeeShutdownPort))
                .replace(parser.host(), tomeeHost)
                .replace(parser.appBase(), webappDir));
        } catch (final IOException e) {
            throw new TomEEException(e.getMessage(), e);
        } finally {
            close(writer);
View Full Code Here

Examples of org.cruxframework.crux.core.server.rest.core.UriBuilder.host()

    {
      URL absolute = new URL(request.getRequestURL().toString());

      UriBuilder builder = new UriBuilder();
      builder.scheme(absolute.getProtocol());
      builder.host(absolute.getHost());
      builder.port(absolute.getPort());
      builder.path(absolute.getPath());
      builder.replaceQuery(null);
      absolutePath = builder.build();
    }
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.