Class RegistryHandler.RegistryZone
java.lang.Object
com.verisign.epp.serverstub.registry.v02.RegistryHandler.RegistryZone
- Enclosing class:
RegistryHandler
RegistryZone represents an in-memory version of a Registry Zone
with the base zone information along with all policy extensions.-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.RegistryZone(EPPRegistryZone aZoneInfo) RegistryZoneconstructor that takes the required zone information.RegistryZone(EPPRegistryZone aZoneInfo, List<EPPRegistryZoneInterface> aExtensions) RegistryZoneconstructor that takes both attributes (zone information and extensions). -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExtension(EPPRegistryZoneInterface aExtension) Adds a policy extension to the list of extensions.getExtension(Class aExtClass) Gets the policy extension byClass.Gets the extensions list.Gets the zone information as defined indraft-gould-carney-regext-registry.booleanIs the extensions list defined?booleanIs the zone information defined?voidsetExtension(EPPRegistryZoneInterface aExtension) Sets an policy extension in the list of extensions.voidsetExtensions(List<EPPRegistryZoneInterface> aExtensions) Sets the extensions list.voidsetZoneInfo(EPPRegistryZone aZoneInfo) Sets the zone information as defined indraft-gould-carney-regext-registry.toString()Convert theRegistryZoneinto aStringfor printing.
-
Constructor Details
-
RegistryZone
public RegistryZone()Default constructor. The zone information and the extensions should be set. -
RegistryZone
RegistryZoneconstructor that takes the required zone information.- Parameters:
aZoneInfo- Zone information as defined indraft-gould-carney-regext-registry.
-
RegistryZone
RegistryZoneconstructor that takes both attributes (zone information and extensions).- Parameters:
aZoneInfo- Zone information as defined indraft-gould-carney-regext-registry.aExtensions- Policy extensions included in the command
-
-
Method Details
-
hasZoneInfo
public boolean hasZoneInfo()Is the zone information defined?- Returns:
trueif the zone information is defined;falseotherwise.
-
getZoneInfo
Gets the zone information as defined indraft-gould-carney-regext-registry.- Returns:
- Zone information if defined;
nullotherwise.
-
setZoneInfo
Sets the zone information as defined indraft-gould-carney-regext-registry.- Parameters:
aZoneInfo- Zone information as defined indraft-gould-carney-regext-registry.
-
hasExtensions
public boolean hasExtensions()Is the extensions list defined?- Returns:
trueif the extensions list is defined;falseotherwise.
-
getExtensions
Gets the extensions list.- Returns:
- Extensions list if defined;
nullotherwise.
-
setExtensions
Sets the extensions list.- Parameters:
aExtensions- Policy extensions included with the command. Set tonullif undefined.
-
setExtension
Sets an policy extension in the list of extensions. If the policy extension is already defined based on the policy extension class, it will be replaced; otherwise it will be added.- Parameters:
aExtension- The policy extension to set (add or replace)
-
getExtension
Gets the policy extension byClass.- Parameters:
aExtClass- The policy extensionClassto look for- Returns:
- Policy extension if found;
nullotherwise
-
addExtension
Adds a policy extension to the list of extensions.- Parameters:
aExtension- Policy extension to add
-
toString
Convert theRegistryZoneinto aStringfor printing.
-