Package com.verisign.epp.interfaces
Class EPPUnhandledNamespacesLoginAdapter
java.lang.Object
com.verisign.epp.interfaces.EPPUnhandledNamespacesLoginAdapter
- All Implemented Interfaces:
EPPLoginAdapter
Interface that can be implemented and configured to be called by
EPPSession to customize the EPPLoginCmd prior to sending it.
Both the server's EPPGreeting and the original EPPLoginCmd is
provided. The adapter can modify the EPPLoginCmd that will then be
sent. This adapter is used to customize the login services that is passed by
the client to trigger application of the unhandled namespaces defined in
draft-ietf-regext-unhandled-namespaces.-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPUnhandledNamespacesLoginAdapter(String aFilterNamespace) EPPUnhandledNamespacesLoginAdapterconstructor that takes a single Namespace URI to filter from the login services. -
Method Summary
Modifier and TypeMethodDescriptionvoidadaptLogin(EPPLoginCmd aLoginCmd, EPPGreeting aGreeting) Adapt theEPPLoginCmdaLoginCmdparameter based on the current state of theEPPLoginCmdand the contents of theEPPGreetingaGreetingparameter sent by the server.voidaddFilterNamespace(String aNamespace) Add a Namespace URI to the list of Namespace URIs to filter from the login services.voidsetFilterNamespaces(List<String> aFilterNamespaces) Sets the Namespace URIs to filter from the login services.
-
Constructor Details
-
EPPUnhandledNamespacesLoginAdapter
public EPPUnhandledNamespacesLoginAdapter()Default constructor. Filters are set withsetFilterNamespaces(List)andaddFilterNamespace(String). -
EPPUnhandledNamespacesLoginAdapter
EPPUnhandledNamespacesLoginAdapterconstructor that takes a single Namespace URI to filter from the login services.- Parameters:
aFilterNamespace- Namespace URI to filter from the login services.
-
-
Method Details
-
setFilterNamespaces
Sets the Namespace URIs to filter from the login services.- Parameters:
aFilterNamespaces- Namespace URIs to filter from the login services.
-
addFilterNamespace
Add a Namespace URI to the list of Namespace URIs to filter from the login services.- Parameters:
aNamespace- Namespace URI to add to the Namespace URIs list
-
adaptLogin
Adapt theEPPLoginCmdaLoginCmdparameter based on the current state of theEPPLoginCmdand the contents of theEPPGreetingaGreetingparameter sent by the server. This method will filter the Namespace URIs from the login services set in theaLoginCmdparameter.- Specified by:
adaptLoginin interfaceEPPLoginAdapter- Parameters:
aLoginCmd- OriginalEPPLoginCmdcreated byEPPSessionthat will have the login services filtered by the Namespace URI list.aGreeting-EPPGreetingreturned by the server that can be used to drive the adapting of theEPPLoginCmd.- Throws:
EPPCommandException- Error found with adapting the login
-