mirror of
https://github.com/google/nomulus.git
synced 2025-06-26 22:34:55 +02:00
Decouple dryRun from SessionMetadata
dryRun is only available via the (sessionless!) tool, and is not a property of the session. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=125203026
This commit is contained in:
parent
3ae646d687
commit
e359ab5f52
17 changed files with 31 additions and 54 deletions
|
@ -42,10 +42,12 @@ public class EppRequestHandler {
|
|||
public void executeEpp(
|
||||
SessionMetadata sessionMetadata,
|
||||
TransportCredentials credentials,
|
||||
boolean isDryRun,
|
||||
byte[] inputXmlBytes) {
|
||||
try {
|
||||
response.setPayload(new String(
|
||||
eppController.handleEppCommand(sessionMetadata, credentials, inputXmlBytes), UTF_8));
|
||||
eppController.handleEppCommand(
|
||||
sessionMetadata, credentials, isDryRun, inputXmlBytes), UTF_8));
|
||||
response.setContentType(APPLICATION_EPP_XML);
|
||||
// Note that we always return 200 (OK) even if the EppController returns an error response.
|
||||
// This is because returning an non-OK HTTP status code will cause the proxy server to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue