Package google.registry.model.eppinput
Class EppInput
java.lang.Object
google.registry.model.ImmutableObject
google.registry.model.eppinput.EppInput
- All Implemented Interfaces:
Cloneable
This class represents the root EPP XML element for input.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Epp envelope wrapper for check on some objects.static interface
Marker interface for types that can go in theEppInput.CommandWrapper.extension
field.static class
The "command" element that holds an actual command inside of it.static class
Epp envelope wrapper for create of some object.static class
Epp envelope wrapper for delete of some object.static class
Empty type to represent the empty "hello" command.static class
Epp envelope wrapper for info on some object.static class
A tag that goes inside of an EPP <command>.static class
Login command.static class
Logout command.static class
An options object inside ofEppInput.Login
.static class
Poll command.static class
Epp envelope wrapper for renewing some object.static class
A command that has an extension inside of it.static class
A services object inside ofEppInput.Login
.static class
Epp envelope wrapper for transferring some object.static class
Epp envelope wrapper for update of some object.static class
RFC 5730 says we should check the version and return special error code 2100 if it isn't what we support, but it also specifies a schema that only allows 1.0 in the version field, so any other version doesn't validate.static class
Exception to throw if encountering a protocol version other than "1.0".Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotHydrate, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
-
Field Summary
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the EPP command name, defined as the name of theInnerCommand
element within the<command>
element (e.g.Returns the EPP resource type ("domain", "contact", or "host") for commands that operate on EPP resources, otherwise absent.<E extends EppInput.CommandExtension>
Optional<E> getSingleExtension
(Class<E> clazz) Get the extension based on type, or null.Returns the target ID (name for domains and hosts, contact ID for contacts) if this command always acts on a single EPP resource, or absent otherwise (e.g.com.google.common.collect.ImmutableList
<String> Returns all the target IDs (name for domains and hosts, contact ID for contacts) that this command references if it acts on EPP resources, or the empty list otherwise (e.g.boolean
Returns whether this EppInput represents a command that operates on domains.Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, createVKey, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
Constructor Details
-
EppInput
public EppInput()
-
-
Method Details
-
getCommandWrapper
-
getCommandType
Returns the EPP command name, defined as the name of theInnerCommand
element within the<command>
element (e.g. "create" or "poll"), or "hello" for the hello command. -
getResourceType
Returns the EPP resource type ("domain", "contact", or "host") for commands that operate on EPP resources, otherwise absent. -
isDomainType
public boolean isDomainType()Returns whether this EppInput represents a command that operates on domains. -
getSingleTargetId
Returns the target ID (name for domains and hosts, contact ID for contacts) if this command always acts on a single EPP resource, or absent otherwise (e.g. for "check" or "poll"). -
getTargetIds
Returns all the target IDs (name for domains and hosts, contact ID for contacts) that this command references if it acts on EPP resources, or the empty list otherwise (e.g. for "poll"). -
getSingleExtension
Get the extension based on type, or null. If there are multiple, it chooses the first.
-