mirror of
https://github.com/google/nomulus
synced 2026-07-26 01:53:16 +00:00
Break SessionSource out of SessionMetadata and rename it EppRequestSource.
The "SessionSource" has nothing to do with sessions (and it's often used in sessionless contexts). What it does indicate is the endpoint used to make the request. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=125295224
This commit is contained in:
@@ -37,9 +37,9 @@ import dagger.Provides;
|
||||
|
||||
import google.registry.config.RegistryEnvironment;
|
||||
import google.registry.flows.EppException;
|
||||
import google.registry.flows.EppRequestSource;
|
||||
import google.registry.flows.FlowRunner;
|
||||
import google.registry.flows.PasswordOnlyTransportCredentials;
|
||||
import google.registry.flows.SessionMetadata.SessionSource;
|
||||
import google.registry.flows.StatelessRequestSessionMetadata;
|
||||
import google.registry.flows.domain.DomainCheckFlow;
|
||||
import google.registry.model.domain.fee.FeeCheckResponseExtension;
|
||||
@@ -80,8 +80,7 @@ public class CheckApiAction implements Runnable {
|
||||
private final StatelessRequestSessionMetadata sessionMetadata =
|
||||
new StatelessRequestSessionMetadata(
|
||||
RegistryEnvironment.get().config().getCheckApiServletRegistrarClientId(),
|
||||
ImmutableSet.of(FEE_0_6.getUri()),
|
||||
SessionSource.HTTP);
|
||||
ImmutableSet.of(FEE_0_6.getUri()));
|
||||
|
||||
@Inject @Parameter("domain") String domain;
|
||||
@Inject Response response;
|
||||
@@ -119,6 +118,7 @@ public class CheckApiAction implements Runnable {
|
||||
Trid.create(getClass().getSimpleName()),
|
||||
sessionMetadata,
|
||||
new PasswordOnlyTransportCredentials(),
|
||||
EppRequestSource.CHECK_API,
|
||||
false,
|
||||
false,
|
||||
inputXmlBytes,
|
||||
|
||||
Reference in New Issue
Block a user