@Test public void testDefaultFallback() throws Exception { final StreamingHttpService service = new HttpPredicateRouterBuilder() .buildStreaming(); final Single<StreamingHttpResponse> responseSingle = service.handle(ctx, request, reqRespFactory); final StreamingHttpResponse response = responseSingle.toFuture().get(); assert response != null; assertEquals(404, response.status().code()); }
@Override public StreamingHttpService buildStreaming() { return new InOrderRouter(DefaultFallbackServiceStreaming.instance(), routes); }
HttpPredicateRouterBuilder implements RouteStarter { @Override public StreamingHttpService buildStreaming() { return new InOrderRouter(DefaultFallbackServiceStreaming.instance(), routes); } }
HttpPredicateRouterBuilder implements RouteStarter { @Override public StreamingHttpService buildStreaming() { return new InOrderRouter(DefaultFallbackServiceStreaming.instance(), routes); }  }
HttpPredicateRouterBuilder implements RouteStarter { @Override public StreamingHttpService buildStreaming() { return new InOrderRouter(DefaultFallbackServiceStreaming.instance(), routes); }  @Override RouteContinuation whenMethod(final HttpRequestMethod method); @Override RouteContinuation whenMethodIsOneOf(final HttpRequestMethod... methods); @Override RouteContinuation whenPathEquals(final String path); @Override RouteContinuation whenPathIsOneOf(final String... paths); @Override RouteContinuation whenPathStartsWith(final String pathPrefix); @Override RouteContinuation whenPathMatches(final String pathRegex); @Override RouteContinuation whenPathMatches(final Pattern pathRegex); @Override StringMultiValueMatcher whenQueryParam(final String name); @Override StringMultiValueMatcher whenHeader(final CharSequence name); @Override CookieMatcher whenCookie(final String name); @Override RouteContinuation whenIsSsl(); @Override RouteContinuation whenIsNotSsl(); @Override RouteContinuation when(final Predicate<StreamingHttpRequest> predicate); @Override RouteContinuation when(final BiPredicate<ConnectionContext, StreamingHttpRequest> predicate); @Override StreamingHttpService buildStreaming(); }
HttpPredicateRouterBuilder implements RouteStarter { @Override public StreamingHttpService buildStreaming() { return new InOrderRouter(DefaultFallbackServiceStreaming.instance(), routes); }  @Override RouteContinuation whenMethod(final HttpRequestMethod method); @Override RouteContinuation whenMethodIsOneOf(final HttpRequestMethod... methods); @Override RouteContinuation whenPathEquals(final String path); @Override RouteContinuation whenPathIsOneOf(final String... paths); @Override RouteContinuation whenPathStartsWith(final String pathPrefix); @Override RouteContinuation whenPathMatches(final String pathRegex); @Override RouteContinuation whenPathMatches(final Pattern pathRegex); @Override StringMultiValueMatcher whenQueryParam(final String name); @Override StringMultiValueMatcher whenHeader(final CharSequence name); @Override CookieMatcher whenCookie(final String name); @Override RouteContinuation whenIsSsl(); @Override RouteContinuation whenIsNotSsl(); @Override RouteContinuation when(final Predicate<StreamingHttpRequest> predicate); @Override RouteContinuation when(final BiPredicate<ConnectionContext, StreamingHttpRequest> predicate); @Override StreamingHttpService buildStreaming();  }