Inject RdapAuthorization

We currently create it from injected arguments, and pass it to every function.

Instead, we just create a provider for it and inject it where needed.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=247072517
This commit is contained in:
guyben 2019-05-07 12:48:54 -07:00 committed by jianglai
parent 5308b5d29a
commit d29d43a9bb
10 changed files with 70 additions and 102 deletions

View file

@ -79,8 +79,7 @@ public class RdapEntityAction extends RdapActionBase {
Optional.empty(),
rdapWhoisServer,
now,
OutputDataType.FULL,
getAuthorization());
OutputDataType.FULL);
}
}
Long ianaIdentifier = Longs.tryParse(pathSearchString);