mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
Rename Response in the epp model to EppResponse
So that it doesn't conflict with request.Response. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=124595393
This commit is contained in:
parent
0ce293325c
commit
7cf4ddce97
41 changed files with 92 additions and 83 deletions
|
@ -26,7 +26,7 @@ import javax.xml.bind.annotation.XmlRootElement;
|
|||
@XmlRootElement(name = "epp")
|
||||
public class EppOutput extends ImmutableObject {
|
||||
@XmlElements({
|
||||
@XmlElement(name = "response", type = Response.class),
|
||||
@XmlElement(name = "response", type = EppResponse.class),
|
||||
@XmlElement(name = "greeting", type = Greeting.class) })
|
||||
ResponseOrGreeting responseOrGreeting;
|
||||
|
||||
|
@ -38,15 +38,15 @@ public class EppOutput extends ImmutableObject {
|
|||
|
||||
@VisibleForTesting
|
||||
public boolean isSuccess() {
|
||||
return ((Response) responseOrGreeting).result.getCode().isSuccess();
|
||||
return ((EppResponse) responseOrGreeting).result.getCode().isSuccess();
|
||||
}
|
||||
|
||||
public Response getResponse() {
|
||||
return (Response) responseOrGreeting;
|
||||
public EppResponse getResponse() {
|
||||
return (EppResponse) responseOrGreeting;
|
||||
}
|
||||
|
||||
public boolean isResponse() {
|
||||
return responseOrGreeting instanceof Response;
|
||||
return responseOrGreeting instanceof EppResponse;
|
||||
}
|
||||
|
||||
/** Marker interface for types allowed inside of an {@link EppOutput}. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue