Class EppResponseMessage
- All Implemented Interfaces:
InboundMessageType
EppMessage
subclass that implements InboundMessageType
, which represents an
inbound EPP message and serves to verify the response received from the server.
There are 4 created types of this EppRequestMessage
, which represent the expected
successful response types. Their names are: success, failure greeting, domainExists,
domainNotExists. Success implies a response declaring the command was completed successfully.
Failure implies a response declaring the command was not completed successfully. Greeting is the
standard initial response the server sends after a connection is established. DomainExists is a
response to a Check request saying the domain exists on the server. DomainNotExists is a response
that essentially says the opposite.
Stores an expected clTRID and domainName which are the ones used by the EppRequestMessage
pointing to this EppRequestMessage
.
From the ByteBuf
input, stores the corresponding Document
represented and to be validated.
-
Field Summary
Fields inherited from class google.registry.monitoring.blackbox.message.EppMessage
CLIENT_ID_KEY, CLIENT_PASSWORD_KEY, CLIENT_TRID_KEY, DOMAIN_KEY, HEADER_LENGTH, message, SERVER_TRID_KEY, XFAIL_EXPRESSION, XPASS_EXPRESSION
-
Constructor Summary
ConstructorDescriptionEppResponseMessage
(String name, BiFunction<String, String, List<String>> getCheckList) -
Method Summary
Modifier and TypeMethodDescriptionvoid
getDocument
(io.netty.buffer.ByteBuf buf) ExtractsDocument
from theByteBuf
input.name()
void
verify()
Verifies that the response recorded is what we expect from the request sent.Methods inherited from class google.registry.monitoring.blackbox.message.EppMessage
byteArrayToXmlDoc, eppValidate, getElementValue, getElementValue, getEppDocFromTemplate, toString, verifyEppResponse, xmlDocToByteArray, xmlDocToString
-
Constructor Details
-
EppResponseMessage
-
-
Method Details
-
verify
Verifies that the response recorded is what we expect from the request sent.- Throws:
FailureException
-
getDocument
ExtractsDocument
from theByteBuf
input.- Throws:
FailureException
-
name
-