Package io.reactivex.netty.contexts.http

Examples of io.reactivex.netty.contexts.http.HttpRequestIdProvider


    private RxContexts() {
    }

    public static <I, O> HttpServerBuilder<I, O> newHttpServerBuilder(int port, RequestHandler<I, O> requestHandler,
                                                                      RequestCorrelator correlator) {
        HttpRequestIdProvider provider = new HttpRequestIdProvider(defaultRequestIdContextKeyName, correlator);
        return newHttpServerBuilder(port, requestHandler, provider, correlator);
    }
View Full Code Here


        return newHttpServerBuilder(port, requestHandler, provider, correlator);
    }

    public static <I, O> HttpServerBuilder<I, O> newHttpServerBuilder(int port, RequestHandler<I, O> requestHandler,
            RequestCorrelator correlator, PipelineConfigurator<HttpServerRequest<I>, HttpServerResponse<O>> configurator) {
        HttpRequestIdProvider provider = new HttpRequestIdProvider(defaultRequestIdContextKeyName, correlator);
        return newHttpServerBuilder(port, requestHandler, provider, correlator, configurator);
    }
View Full Code Here

    }

    public static <I, O> HttpServerBuilder<I, O> newHttpServerBuilder(int port, RequestHandler<I, O> requestHandler,
                                                                      String requestIdHeaderName,
                                                                      RequestCorrelator correlator) {
        HttpRequestIdProvider provider = new HttpRequestIdProvider(requestIdHeaderName, correlator);
        return newHttpServerBuilder(port, requestHandler, provider, correlator);
    }
View Full Code Here

        return newHttpServerBuilder(port, requestHandler, provider, correlator);
    }

    public static <I, O> HttpClientBuilder<I, O> newHttpClientBuilder(String host, int port,
                                                                      RequestCorrelator correlator) {
        HttpRequestIdProvider provider = new HttpRequestIdProvider(defaultRequestIdContextKeyName, correlator);
        return newHttpClientBuilder(host, port, provider, correlator);
    }
View Full Code Here

        return newHttpClientBuilder(host, port, provider, correlator);
    }
   
    public static <I, O> HttpClientBuilder<I, O> newHttpClientBuilder(String host, int port,
            RequestCorrelator correlator, PipelineConfigurator<HttpClientResponse<O>, HttpClientRequest<I>> httpConfigurator) {
        HttpRequestIdProvider provider = new HttpRequestIdProvider(defaultRequestIdContextKeyName, correlator);
        return newHttpClientBuilder(host, port, provider, correlator, httpConfigurator);
    }
View Full Code Here

    }


    public static <I, O> HttpClientBuilder<I, O> newHttpClientBuilder(String host, int port, String requestIdHeaderName,
                                                                      RequestCorrelator correlator) {
        HttpRequestIdProvider provider = new HttpRequestIdProvider(requestIdHeaderName, correlator);
        return newHttpClientBuilder(host, port, provider, correlator);
    }
View Full Code Here

                                                                 DEFAULT_CORRELATOR).build();
    }

    public static <I, O> HttpServer<I, O> createHttpServer(int port, RequestHandler<I, O> requestHandler,
                                                           PipelineConfigurator<HttpServerRequest<I>, HttpServerResponse<O>> configurator) {
        HttpRequestIdProvider provider = new HttpRequestIdProvider(defaultRequestIdContextKeyName, DEFAULT_CORRELATOR);
        return newHttpServerBuilder(port, requestHandler, defaultRequestIdContextKeyName, DEFAULT_CORRELATOR)
                .pipelineConfigurator(ContextPipelineConfigurators
                                              .httpServerConfigurator(provider, DEFAULT_CORRELATOR, configurator)).build();
    }
View Full Code Here

    }

    public static <I, O> HttpServer<I, O> createHttpServer(int port, RequestHandler<I, O> requestHandler,
                                                           String requestIdHeaderName,
                                                           PipelineConfigurator<HttpServerRequest<I>, HttpServerResponse<O>> configurator) {
        HttpRequestIdProvider provider = new HttpRequestIdProvider(requestIdHeaderName, DEFAULT_CORRELATOR);
        return newHttpServerBuilder(port, requestHandler, requestIdHeaderName, DEFAULT_CORRELATOR)
                .pipelineConfigurator(ContextPipelineConfigurators
                                              .httpServerConfigurator(provider, DEFAULT_CORRELATOR, configurator)).build();
    }
View Full Code Here

                                              .httpServerConfigurator(provider, DEFAULT_CORRELATOR, configurator)).build();
    }

    public static <I, O> HttpClient<I, O> createHttpClient(String host, int port,
                                                           PipelineConfigurator<HttpClientResponse<O>, HttpClientRequest<I>> configurator) {
        HttpRequestIdProvider provider = new HttpRequestIdProvider(defaultRequestIdContextKeyName, DEFAULT_CORRELATOR);
        return RxContexts.<I, O>newHttpClientBuilder(host, port, defaultRequestIdContextKeyName,
                                                     DEFAULT_CORRELATOR)
                         .pipelineConfigurator(ContextPipelineConfigurators.httpClientConfigurator(provider,
                                                                                                   DEFAULT_CORRELATOR,
                                                                                                   configurator))
View Full Code Here

                         .build();
    }

    public static <I, O> HttpClient<I, O> createHttpClient(String host, int port, String requestIdHeaderName,
                                                           PipelineConfigurator<HttpClientResponse<O>, HttpClientRequest<I>> configurator) {
        HttpRequestIdProvider provider = new HttpRequestIdProvider(requestIdHeaderName, DEFAULT_CORRELATOR);
        return RxContexts.<I, O>newHttpClientBuilder(host, port, requestIdHeaderName, DEFAULT_CORRELATOR)
                         .pipelineConfigurator(ContextPipelineConfigurators.httpClientConfigurator(provider,
                                                                                                   DEFAULT_CORRELATOR,
                                                                                                   configurator))
                         .build();
View Full Code Here

TOP

Related Classes of io.reactivex.netty.contexts.http.HttpRequestIdProvider

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.