Class EPPUnhandledNamespace
- java.lang.Object
-
- com.verisign.epp.codec.unhandlednamespaces.v1_0.EPPUnhandledNamespace
-
public class EPPUnhandledNamespace extends java.lang.Object
Class 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 forUnhandledNamespace
that 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 boolean
fromEppExtValue(EPPExtValue aExtValue)
Method to set the unhandled namespace attribute from anEPPExtValue
of anEPPResponse
.static java.util.List<EPPUnhandledNamespace>
fromResponse(EPPResponse aResponse)
Create a list ofUnhandledNamespace
instances from the passed inEPPResponse
java.lang.String
getNamespaceUri()
Gets the namespace URI of the unhandled namespace.java.lang.String
getXml()
Gets the response XML of the unhandled namespace.static void
logUnhandledNamespaces(java.util.List<EPPUnhandledNamespace> aUnhandledNamespaces)
Utility method to log the list ofEPPUnhandledNamespace
instances.static void
printUnhandledNamespaces(java.util.List<EPPUnhandledNamespace> aUnhandledNamespaces)
Utility method to print the list ofEPPUnhandledNamespace
instances.void
setNamespaceUri(java.lang.String aNamespaceUri)
Sets the namespace URI of the unhandled namespace.void
setXml(java.lang.String aXml)
Sets the response XML of the unhandled namespace.java.lang.String
toString()
Creates aString
of theEPPUnhandledNamespace
attributes.
-
-
-
Constructor Detail
-
EPPUnhandledNamespace
public EPPUnhandledNamespace()
Default constructor forUnhandledNamespace
.
-
EPPUnhandledNamespace
public EPPUnhandledNamespace(java.lang.String aNamespaceUri, java.lang.String aXml)
Constructor forUnhandledNamespace
that 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;
null
otherwise.
-
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;
null
otherwise.
-
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 anEPPExtValue
of anEPPResponse
.- Parameters:
aExtValue
-EPPExtValue
containing the unhandled namespaces information and content.- Returns:
true
if theaExtValue
does represent an unhandled namespace;false
otherwise.
-
fromResponse
public static java.util.List<EPPUnhandledNamespace> fromResponse(EPPResponse aResponse)
Create a list ofUnhandledNamespace
instances from the passed inEPPResponse
- Parameters:
aResponse
- Response to get the list ofUnhandledNamespace
instances.- Returns:
- List of
UnhandledNamespace
instances if at least one unhandled namespace was found;null
otherwise.
-
toString
public java.lang.String toString()
Creates aString
of theEPPUnhandledNamespace
attributes.- Overrides:
toString
in classjava.lang.Object
- Returns:
- Encoded
String
of the object attributes.
-
printUnhandledNamespaces
public static void printUnhandledNamespaces(java.util.List<EPPUnhandledNamespace> aUnhandledNamespaces)
Utility method to print the list ofEPPUnhandledNamespace
instances.- Parameters:
aUnhandledNamespaces
- List ofEPPUnhandledNamespace
instances.
-
logUnhandledNamespaces
public static void logUnhandledNamespaces(java.util.List<EPPUnhandledNamespace> aUnhandledNamespaces)
Utility method to log the list ofEPPUnhandledNamespace
instances.- Parameters:
aUnhandledNamespaces
- List ofEPPUnhandledNamespace
instances.
-
-