pipeline.addLast("access-token-authenticator", new SecurityAuthenticationHttpHandler(
realm, tokenValidator, configuration, accessTokenTransformer, discoveryServiceClient));
}
// for now there's only one hardcoded rule, but if there will be more, we may want it generic and configurable
pipeline.addLast("http-request-handler",
new HttpRequestHandler(clientBootstrap, serviceLookup,
ImmutableList.<ProxyRule>of(new DatasetsProxyRule(configuration))));
return pipeline;
}
}
);