Search in sources :

Example 1 with FilterChainDispatcher

use of com.linkedin.r2.filter.transport.FilterChainDispatcher in project rest.li by linkedin.

the class HttpServerFactory method createHttpsServer.

public HttpServer createHttpsServer(int port, int sslPort, String keyStore, String keyStorePassword, String contextPath, int threadPoolSize, TransportDispatcher transportDispatcher, HttpJettyServer.ServletType servletType, int asyncTimeOut, boolean restOverStream) {
    final TransportDispatcher filterDispatcher = new FilterChainDispatcher(transportDispatcher, _filters);
    final HttpDispatcher dispatcher = new HttpDispatcher(filterDispatcher);
    return new HttpsJettyServer(port, sslPort, keyStore, keyStorePassword, contextPath, threadPoolSize, dispatcher, servletType, asyncTimeOut, restOverStream);
}
Also used : FilterChainDispatcher(com.linkedin.r2.filter.transport.FilterChainDispatcher) TransportDispatcher(com.linkedin.r2.transport.common.bridge.server.TransportDispatcher)

Example 2 with FilterChainDispatcher

use of com.linkedin.r2.filter.transport.FilterChainDispatcher in project rest.li by linkedin.

the class HttpServerFactory method createH2cServer.

public HttpServer createH2cServer(int port, String contextPath, int threadPoolSize, TransportDispatcher transportDispatcher, boolean restOverStream) {
    final TransportDispatcher filterDispatcher = new FilterChainDispatcher(transportDispatcher, _filters);
    final HttpDispatcher dispatcher = new HttpDispatcher(filterDispatcher);
    return new H2cJettyServer(port, contextPath, threadPoolSize, dispatcher, restOverStream);
}
Also used : FilterChainDispatcher(com.linkedin.r2.filter.transport.FilterChainDispatcher) TransportDispatcher(com.linkedin.r2.transport.common.bridge.server.TransportDispatcher)

Example 3 with FilterChainDispatcher

use of com.linkedin.r2.filter.transport.FilterChainDispatcher in project rest.li by linkedin.

the class HttpServerFactory method createServer.

public HttpServer createServer(int port, String contextPath, int threadPoolSize, TransportDispatcher transportDispatcher, HttpJettyServer.ServletType servletType, int asyncTimeOut, boolean restOverStream) {
    final TransportDispatcher filterDispatcher = new FilterChainDispatcher(transportDispatcher, _filters);
    final HttpDispatcher dispatcher = new HttpDispatcher(filterDispatcher);
    return new HttpJettyServer(port, contextPath, threadPoolSize, dispatcher, servletType, asyncTimeOut, restOverStream);
}
Also used : FilterChainDispatcher(com.linkedin.r2.filter.transport.FilterChainDispatcher) TransportDispatcher(com.linkedin.r2.transport.common.bridge.server.TransportDispatcher)

Example 4 with FilterChainDispatcher

use of com.linkedin.r2.filter.transport.FilterChainDispatcher in project rest.li by linkedin.

the class HttpServerFactory method createRAPServer.

public HttpServer createRAPServer(int port, TransportDispatcher transportDispatcher, int timeout, boolean restOverStream) {
    final TransportDispatcher filterDispatcher = new FilterChainDispatcher(transportDispatcher, _filters);
    HttpServlet httpServlet = restOverStream ? new RAPStreamServlet(filterDispatcher, timeout) : new RAPServlet(filterDispatcher);
    return new HttpJettyServer(port, httpServlet);
}
Also used : FilterChainDispatcher(com.linkedin.r2.filter.transport.FilterChainDispatcher) HttpServlet(javax.servlet.http.HttpServlet) TransportDispatcher(com.linkedin.r2.transport.common.bridge.server.TransportDispatcher)

Example 5 with FilterChainDispatcher

use of com.linkedin.r2.filter.transport.FilterChainDispatcher in project rest.li by linkedin.

the class HttpNettyServerFactory method createServer.

public HttpServer createServer(int port, int threadPoolSize, TransportDispatcher transportDispatcher) {
    final TransportDispatcher filterDispatcher = new FilterChainDispatcher(transportDispatcher, _filters);
    final HttpDispatcher dispatcher = new HttpDispatcher(filterDispatcher);
    return new HttpNettyServer(port, threadPoolSize, dispatcher);
}
Also used : FilterChainDispatcher(com.linkedin.r2.filter.transport.FilterChainDispatcher) TransportDispatcher(com.linkedin.r2.transport.common.bridge.server.TransportDispatcher)

Aggregations

FilterChainDispatcher (com.linkedin.r2.filter.transport.FilterChainDispatcher)5 TransportDispatcher (com.linkedin.r2.transport.common.bridge.server.TransportDispatcher)5 HttpServlet (javax.servlet.http.HttpServlet)1