Examples of host()


Examples of org.jclouds.openstack.trove.v1.domain.User.Builder.host()

        
         Builder builder = User.builder();
         builder.name((String) postParams.get("name"))
                .password((String) postParams.get("password"));
        
         builder.host((String) postParams.get("host"));
         builder.databases(databases);
        
         User user = builder.build();
         users.add(user);
      }
View Full Code Here

Examples of org.keycloak.util.KeycloakUriBuilder.host()

                log.error("request scheme: " + request.getScheme() + " ssl required");
                throw new RuntimeException("Can't resolve relative url from adapter config.");
            }
        }
        builder.scheme(scheme);
        builder.host(request.getHost());
        if (request.getPort() != -1) {
           builder.port(request.getPort());
        }
        return builder;
    }
View Full Code Here

Examples of org.resteasy.specimpl.UriBuilderImpl.host()

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

                        UriBuilderImpl builder = new UriBuilderImpl();
                        builder.scheme(absolute.getProtocol());
                        builder.host(absolute.getHost());
                        builder.port(absolute.getPort());
                        builder.path(absolute.getPath());
                        builder.replaceQueryParams(absolute.getQuery());
                        absolutePath = builder.build();
                    }
View Full Code Here

Examples of org.restlet.ext.jaxrs.ExtendedUriBuilder.host()

            }
            if (expectedUserInfo != null) {
                expectedUriBuilder.userInfo(expectedUserInfo);
            }
            if (expectedHost != null) {
                expectedUriBuilder.host(expectedHost);
            }
            expectedUriBuilder.port(expectedPort);
            expectedUriBuilder.path(expectedPath);
            expectedUriBuilder.extension(expectedExtension);
            if (expectedQuery != null) {
View Full Code Here

Examples of org.restlet.ext.jaxrs.ExtendedUriBuilder.host()

    /**
     * Test method for {@link ExtendedUriBuilder#encode(boolean)} .
     */
    public void testEncode() throws Exception {
        ExtendedUriBuilder uriBuilder = ExtendedUriBuilder.newInstance();
        uriBuilder.host("www.xyz.de");
        uriBuilder.scheme("http");
        uriBuilder.segment("path1", "path2");
        uriBuilder.path("hh ho");
        assertEqualsURI("http://www.xyz.de/path1/path2/hh%20ho", uriBuilder,
                true);
View Full Code Here

Examples of org.springframework.web.servlet.support.ServletUriComponentsBuilder.host()

    if (hostToUse.contains(":")) {

      String[] hostAndPort = StringUtils.split(hostToUse, ":");

      builder.host(hostAndPort[0]);
      builder.port(Integer.parseInt(hostAndPort[1]));

    } else {
      builder.host(hostToUse);
      builder.port(-1); // reset port if it was forwarded from default port
View Full Code Here

Examples of org.springframework.web.util.UriComponentsBuilder.host()

      Matcher m = pattern.matcher(identifier);
      if (m.matches()) {
        builder.scheme(m.group(2));
        builder.userInfo(m.group(6));
        builder.host(m.group(8));
        String port = m.group(10);
        if (!Strings.isNullOrEmpty(port)) {
          builder.port(Integer.parseInt(port));
        }
        builder.path(m.group(11));
View Full Code Here

Examples of org.terasology.network.internal.NetworkSystemImpl.host()

        EngineEntityManager entityManager = getEntityManager();
        EngineTime time = mock(EngineTime.class);
        NetworkSystem server = new NetworkSystemImpl(time);
        netSystems.add(server);
        server.connectToEntitySystem(entityManager, CoreRegistry.get(EntitySystemLibrary.class), null);
        server.host(7777, true);

        Thread.sleep(500);

        NetworkSystem client = new NetworkSystemImpl(time);
        netSystems.add(client);
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.