Examples of port()


Examples of org.jboss.resteasy.specimpl.UriBuilderImpl.port()

         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.replaceQuery(absolute.getQuery());
         absolutePath = builder.build();
      }
      catch (MalformedURLException e)
View Full Code Here

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

            if (port < 0) {
                // disabled?
                return null;
            }
            KeycloakUriBuilder secureUrl = KeycloakUriBuilder.fromUri(url).scheme("https").port(-1);
            if (port != 443) secureUrl.port(port);
            url = secureUrl.build().toString();
        }
        return deployment.getAuthUrl().clone()
                .queryParam(OAuth2Constants.CLIENT_ID, deployment.getResourceName())
                .queryParam(OAuth2Constants.REDIRECT_URI, url)
View Full Code Here

Examples of org.qi4j.library.http.JettyConfiguration.port()

            // END SNIPPET: assembly

            port = FreePortFinder.findFreePortOnLoopback();
            JettyConfiguration config = module.forMixin( JettyConfiguration.class ).declareDefaults();
            config.hostName().set( "127.0.0.1" );
            config.port().set( port );

            // START SNIPPET: assembly
            new HttpShiroAssembler().
                withConfig( configModule, Visibility.layer ).
                assemble( module );
View Full Code Here

Examples of org.qi4j.library.http.JettyConfiguration.port()

            // END SNIPPET: assembly

            port = FreePortFinder.findFreePortOnLoopback();
            JettyConfiguration config = module.forMixin( JettyConfiguration.class ).declareDefaults();
            config.hostName().set( "127.0.0.1" );
            config.port().set( port );

            // START SNIPPET: assembly
            new HttpShiroAssembler().
                withConfig( configModule, Visibility.layer ).
                assemble( module );
View Full Code Here

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

                        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();
                    }
                    catch (MalformedURLException e)
View Full Code Here

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

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

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

    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.servlet.support.ServletUriComponentsBuilder.port()

      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
    }

    String port = request.getHeader("X-Forwarded-Port");

    if (StringUtils.hasText(port)) {
View Full Code Here

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

    }

    String port = request.getHeader("X-Forwarded-Port");

    if (StringUtils.hasText(port)) {
      builder.port(Integer.parseInt(port));
    }

    return builder;
  }
View Full Code Here

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

        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));
        builder.query(m.group(13));
        builder.fragment(m.group(15)); // we throw away the hash, but this is the group it would be if we kept it
      } else {
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.