mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 00:17:20 +02:00
Refactor out creation of server TRIDs so they can be tested
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=152837185
This commit is contained in:
parent
af942774f4
commit
8653d2f204
29 changed files with 174 additions and 62 deletions
|
@ -152,6 +152,13 @@ public class FlowModule {
|
|||
return credentials;
|
||||
}
|
||||
|
||||
@Provides
|
||||
@FlowScope
|
||||
Trid provideTrid(EppInput eppInput, ServerTridProvider serverTridProvider) {
|
||||
return Trid.create(
|
||||
eppInput.getCommandWrapper().getClTrid(), serverTridProvider.createServerTrid());
|
||||
}
|
||||
|
||||
@Provides
|
||||
@FlowScope
|
||||
@ClientId
|
||||
|
@ -161,12 +168,6 @@ public class FlowModule {
|
|||
return Strings.nullToEmpty(sessionMetadata.getClientId());
|
||||
}
|
||||
|
||||
@Provides
|
||||
@FlowScope
|
||||
static Trid provideTrid(EppInput eppInput) {
|
||||
return Trid.create(eppInput.getCommandWrapper().getClTrid());
|
||||
}
|
||||
|
||||
@Provides
|
||||
@FlowScope
|
||||
static Class<? extends Flow> provideFlowClass(EppInput eppInput) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue