Examples of port()


Examples of net.kuujo.vertigo.io.OutputContext.port()

              }
              return (T) input;
            case ContextUri.ENDPOINT_OUT:
              OutputContext output = instance.output();
              if (curi.hasPort()) {
                OutputPortContext outPort = output.port(curi.getPort());
                if (outPort == null) {
                  throw new IllegalArgumentException("The URI port " + curi.getPort() + " does not exist in the given output configuration");
                }
                return (T) outPort;
              }
View Full Code Here

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

                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.cruxframework.crux.core.server.rest.core.UriBuilder.port()

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

Examples of org.ektorp.http.StdHttpClient.Builder.port()

            String password, SimpleTableDef[] tableDefs) {

        Builder httpClientBuilder = new Builder();
        httpClientBuilder.host(hostname);
        if (port != null) {
            httpClientBuilder.port(port);
        }
        if (username != null) {
            httpClientBuilder.username(username);
        }
        if (password != null) {
View Full Code Here

Examples of org.ektorp.http.StdHttpClient.Builder.port()

            String password, SimpleTableDef[] tableDefs) {

        Builder httpClientBuilder = new Builder();
        httpClientBuilder.host(hostname);
        if (port != null) {
            httpClientBuilder.port(port);
        }
        if (username != null) {
            httpClientBuilder.username(username);
        }
        if (password != null) {
View Full Code Here

Examples of org.ektorp.http.StdHttpClient.Builder.port()

            String password) {

        Builder httpClientBuilder = new Builder();
        httpClientBuilder.host(hostname);
        if (port != null) {
            httpClientBuilder.port(port);
        }
        if (username != null) {
            httpClientBuilder.username(username);
        }
        if (password != null) {
View Full Code Here

Examples of org.infinispan.configuration.as.OutboundSocketBinding.port()

         @Override
         public void parsingComplete(ParserContext context) {
            ParserContextAS7 ctx = (ParserContextAS7) context;
            OutboundSocketBinding binding = ctx.getOutboundSocketBinding(value);
            builder.host(binding.host()).port(binding.port());
         }
      });
      ParseUtils.requireNoContent(reader);
   }
View Full Code Here

Examples of org.infinispan.loaders.remote.configuration.RemoteServerConfiguration.port()

            RemoteCacheStoreConfiguration rcsc = (RemoteCacheStoreConfiguration) c.loaders().cacheLoaders().get(0);
            assert !rcsc.purgeOnStartup();
            assert rcsc.servers().size() == 1;
            RemoteServerConfiguration server = rcsc.servers().get(0);
            assert server.host().equals("remote-host");
            assert server.port() == 11222;
            assert rcsc.async().enabled();
            assert rcsc.async().flushLockTimeout() == 1;
            assert rcsc.async().modificationQueueSize() == 1024;
            assert rcsc.async().shutdownTimeout() == 25000;
            assert rcsc.async().threadPoolSize() == 1;
View Full Code Here

Examples of org.jboss.aerogear.simplepush.server.SimplePushServerConfig.port()

        try {
            final ServerBootstrap sb = new ServerBootstrap();
            sb.group(bossGroup, workerGroup)
                    .channel(NioServerSocketChannel.class)
                    .childHandler(new SockJSChannelInitializer(simplePushConfig, config.dataStore(), config.sockJsConfig(), reaperExcutorGroup));
            final Channel ch = sb.bind(simplePushConfig.host(), simplePushConfig.port()).sync().channel();
            logger.info("Server started");
            logger.debug(config.toString());
            ch.closeFuture().sync();
        } finally {
            bossGroup.shutdownGracefully();
View Full Code Here

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
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.