Class EPPUnhandledNamespace
- java.lang.Object
-
- com.verisign.epp.codec.unhandlednamespaces.v1_0.EPPUnhandledNamespace
-
public class EPPUnhandledNamespace extends java.lang.ObjectClass used to hold the unhandled namespace information, which includes the namespace URI and the response XML of the unhandled namespace.
-
-
Constructor Summary
Constructors Constructor Description EPPUnhandledNamespace()Default constructor forUnhandledNamespace.EPPUnhandledNamespace(java.lang.String aNamespaceUri, java.lang.String aXml)Constructor forUnhandledNamespacethat takes to two attributes of the namespace URI and the response XML.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfromEppExtValue(EPPExtValue aExtValue)Method to set the unhandled namespace attribute from anEPPExtValueof anEPPResponse.static java.util.List<EPPUnhandledNamespace>fromResponse(EPPResponse aResponse)Create a list ofUnhandledNamespaceinstances from the passed inEPPResponsejava.lang.StringgetNamespaceUri()Gets the namespace URI of the unhandled namespace.java.lang.StringgetXml()Gets the response XML of the unhandled namespace.static voidlogUnhandledNamespaces(java.util.List<EPPUnhandledNamespace> aUnhandledNamespaces)Utility method to log the list ofEPPUnhandledNamespaceinstances.static voidprintUnhandledNamespaces(java.util.List<EPPUnhandledNamespace> aUnhandledNamespaces)Utility method to print the list ofEPPUnhandledNamespaceinstances.voidsetNamespaceUri(java.lang.String aNamespaceUri)Sets the namespace URI of the unhandled namespace.voidsetXml(java.lang.String aXml)Sets the response XML of the unhandled namespace.java.lang.StringtoString()Creates aStringof theEPPUnhandledNamespaceattributes.
-
-
-
Constructor Detail
-
EPPUnhandledNamespace
public EPPUnhandledNamespace()
Default constructor forUnhandledNamespace.
-
EPPUnhandledNamespace
public EPPUnhandledNamespace(java.lang.String aNamespaceUri, java.lang.String aXml)Constructor forUnhandledNamespacethat takes to two attributes of the namespace URI and the response XML.- Parameters:
aNamespaceUri- Namespace URI of the unhandled namespaceaXml- Response XML of the unhandled namespace
-
-
Method Detail
-
getNamespaceUri
public java.lang.String getNamespaceUri()
Gets the namespace URI of the unhandled namespace.- Returns:
- the namespaceUri namespace URI of the unhandled namespace if set;
nullotherwise.
-
setNamespaceUri
public void setNamespaceUri(java.lang.String aNamespaceUri)
Sets the namespace URI of the unhandled namespace.- Parameters:
aNamespaceUri- tnamespace URI of the unhandled namespace
-
getXml
public java.lang.String getXml()
Gets the response XML of the unhandled namespace.- Returns:
- Response XML of unhandled namespace if set;
nullotherwise.
-
setXml
public void setXml(java.lang.String aXml)
Sets the response XML of the unhandled namespace.- Parameters:
aXml- Response XML of the unhandled namespace.
-
fromEppExtValue
public boolean fromEppExtValue(EPPExtValue aExtValue)
Method to set the unhandled namespace attribute from anEPPExtValueof anEPPResponse.- Parameters:
aExtValue-EPPExtValuecontaining the unhandled namespaces information and content.- Returns:
trueif theaExtValuedoes represent an unhandled namespace;falseotherwise.
-
fromResponse
public static java.util.List<EPPUnhandledNamespace> fromResponse(EPPResponse aResponse)
Create a list ofUnhandledNamespaceinstances from the passed inEPPResponse- Parameters:
aResponse- Response to get the list ofUnhandledNamespaceinstances.- Returns:
- List of
UnhandledNamespaceinstances if at least one unhandled namespace was found;nullotherwise.
-
toString
public java.lang.String toString()
Creates aStringof theEPPUnhandledNamespaceattributes.- Overrides:
toStringin classjava.lang.Object- Returns:
- Encoded
Stringof the object attributes.
-
printUnhandledNamespaces
public static void printUnhandledNamespaces(java.util.List<EPPUnhandledNamespace> aUnhandledNamespaces)
Utility method to print the list ofEPPUnhandledNamespaceinstances.- Parameters:
aUnhandledNamespaces- List ofEPPUnhandledNamespaceinstances.
-
logUnhandledNamespaces
public static void logUnhandledNamespaces(java.util.List<EPPUnhandledNamespace> aUnhandledNamespaces)
Utility method to log the list ofEPPUnhandledNamespaceinstances.- Parameters:
aUnhandledNamespaces- List ofEPPUnhandledNamespaceinstances.
-
-